Don't nuke git/svn information during build.
[hcoop/zz_old/debian/suphp.git] / configure
CommitLineData
623e7ab4 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for suPHP 0.7.1.
4#
5# Report bugs to <sebastian.marsching@suphp.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='suPHP'
730PACKAGE_TARNAME='suphp'
731PACKAGE_VERSION='0.7.1'
732PACKAGE_STRING='suPHP 0.7.1'
733PACKAGE_BUGREPORT='sebastian.marsching@suphp.org'
734
735ac_unique_file="src/Application.cpp"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750# include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755# include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CXX
848CXXFLAGS
849ac_ct_CXX
850CXXDEPMODE
851am__fastdepCXX_TRUE
852am__fastdepCXX_FALSE
853build
854build_cpu
855build_vendor
856build_os
857host
858host_cpu
859host_vendor
860host_os
861SED
862GREP
863EGREP
864LN_S
865ECHO
866AR
867RANLIB
868DSYMUTIL
869NMEDIT
870CPP
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876APXS
877APACHE_VERSION_1_3
878APACHE_VERSION_2
879APXS_INCLUDEDIR
880APXS_LIBEXECDIR
881APXS_EXTRA_CFLAGS
882APR_INCLUDEDIR
883APR_CPPFLAGS
884OPT_APACHEMOD_USERGROUP_DEF
885COND_AP13_TRUE
886COND_AP13_FALSE
887COND_AP20_TRUE
888COND_AP20_FALSE
889COND_APUSERGROUP_TRUE
890COND_APUSERGROUP_FALSE
891LIBOBJS
892LTLIBOBJS'
893ac_subst_files=''
894 ac_precious_vars='build_alias
895host_alias
896target_alias
897CC
898CFLAGS
899LDFLAGS
900LIBS
901CPPFLAGS
902CXX
903CXXFLAGS
904CCC
905CPP
906CXXCPP
907F77
908FFLAGS'
909
910
911# Initialize some variables set by options.
912ac_init_help=
913ac_init_version=false
914# The variables have the same names as the options, with
915# dashes changed to underlines.
916cache_file=/dev/null
917exec_prefix=NONE
918no_create=
919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
927verbose=
928x_includes=NONE
929x_libraries=NONE
930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
936# (The list follows the same order as the GNU Coding Standards.)
937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
945includedir='${prefix}/include'
946oldincludedir='/usr/include'
947docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948infodir='${datarootdir}/info'
949htmldir='${docdir}'
950dvidir='${docdir}'
951pdfdir='${docdir}'
952psdir='${docdir}'
953libdir='${exec_prefix}/lib'
954localedir='${datarootdir}/locale'
955mandir='${datarootdir}/man'
956
957ac_prev=
958ac_dashdash=
959for ac_option
960do
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
966 fi
967
968 case $ac_option in
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018 eval enable_$ac_feature=no ;;
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1029
1030 -enable-* | --enable-*)
1031 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037 eval enable_$ac_feature=\$ac_optarg ;;
1038
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1047
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1051
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1058
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1063
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1069
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1076
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1081
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1086
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1093
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1098
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1105
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1110
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1114
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1118
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1122
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1131
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1136
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1143
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1150
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1167
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1172
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1177
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=\$ac_optarg ;;
1235
1236 -without-* | --without-*)
1237 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid package name: $ac_package" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243 eval with_$ac_package=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) { echo "$as_me: error: unrecognized option: $ac_option
1264Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283 ;;
1284
1285 esac
1286done
1287
1288if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 { echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1292fi
1293
1294# Be sure to have absolute directory names.
1295for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1299do
1300 eval ac_val=\$$ac_var
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1307done
1308
1309# There might be people who depend on the old broken behavior: `$host'
1310# used to hold the argument of --host etc.
1311# FIXME: To remove some day.
1312build=$build_alias
1313host=$host_alias
1314target=$target_alias
1315
1316# FIXME: To remove some day.
1317if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325fi
1326
1327ac_tool_prefix=
1328test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330test "$silent" = yes && exec 6>/dev/null
1331
1332
1333ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334ac_ls_di=`ls -di .` &&
1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { echo "$as_me: error: Working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1341
1342
1343# Find the source files, if location was not specified.
1344if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$0" ||
1348$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$0" : 'X\(//\)[^/]' \| \
1350 X"$0" : 'X\(//\)$' \| \
1351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352echo X"$0" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\).*/{
1366 s//\1/
1367 q
1368 }
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1373 fi
1374else
1375 ac_srcdir_defaulted=no
1376fi
1377if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1386 pwd)`
1387# When building in place, set srcdir=.
1388if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390fi
1391# Remove unnecessary trailing slashes from srcdir.
1392# Double slashes in file names in object file debugging info
1393# mess up M-x gdb in Emacs.
1394case $srcdir in
1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396esac
1397for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402done
1403
1404#
1405# Report the --help message.
1406#
1407if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411\`configure' configures suPHP 0.7.1 to adapt to many kinds of systems.
1412
1413Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418Defaults for the options are specified in brackets.
1419
1420Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437By default, \`make install' will install all the files in
1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440for instance \`--prefix=\$HOME'.
1441
1442For better control, use the options below.
1443
1444Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/suphp]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464_ACEOF
1465
1466 cat <<\_ACEOF
1467
1468Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472
1473System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476_ACEOF
1477fi
1478
1479if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of suPHP 0.7.1:";;
1482 esac
1483 cat <<\_ACEOF
1484
1485Optional Features:
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-dependency-tracking speeds up one-time build
1489 --enable-dependency-tracking do not reject slow dependency extractors
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --enable-checkpath Check if script resides in DOCUMENT_ROOT (default is
1496 ENABLED)
1497
1498Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1502 --with-pic try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --with-tags[=TAGS] include additional configurations [automatic]
1505 --with-apr=DIR|FILE prefix for installed APR, path to APR build tree,
1506 or the full path to apr-config
1507 --with-apxs=FILE Build shared Apache module. FILE is the optional
1508 pathname to the Apache apxs tool; defaults to
1509 "apxs".
1510 --with-setid-mode=MODE Mode to use for setting UID/GID. MODE can be on of
1511 "owner", "config" or "paranoid"; defaults to
1512 "paranoid".
1513 --with-min-uid=UID Minimum UID, which is allowed to run scripts
1514 (default=100)
1515 --with-min-gid=GID Minimum GID, which is allowed to run scripts
1516 (default=100)
1517 --with-apache-user=USERNAME
1518 Name of the user Apache is running as (default is
1519 "wwwrun"
1520 --with-logfile=FILE Path to suPHP logfile (default is
1521 "/var/log/httpd/suphp_log"
1522
1523Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1533 CPP C preprocessor
1534 CXXCPP C++ preprocessor
1535 F77 Fortran 77 compiler command
1536 FFLAGS Fortran 77 compiler flags
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
1541Report bugs to <sebastian.marsching@suphp.org>.
1542_ACEOF
1543ac_status=$?
1544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" || continue
1550 ac_builddir=.
1551
1552case "$ac_dir" in
1553.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554*)
1555 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562esac
1563ac_abs_top_builddir=$ac_pwd
1564ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565# for backward compatibility:
1566ac_top_builddir=$ac_top_build_prefix
1567
1568case $srcdir in
1569 .) # We are building in place.
1570 ac_srcdir=.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581esac
1582ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1597fi
1598
1599test -n "$ac_init_help" && exit $ac_status
1600if $ac_init_version; then
1601 cat <<\_ACEOF
1602suPHP configure 0.7.1
1603generated by GNU Autoconf 2.61
1604
1605Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16062002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607This configure script is free software; the Free Software Foundation
1608gives unlimited permission to copy, distribute and modify it.
1609_ACEOF
1610 exit
1611fi
1612cat >config.log <<_ACEOF
1613This file contains any messages produced by compilers while
1614running configure, to aid debugging if configure makes a mistake.
1615
1616It was created by suPHP $as_me 0.7.1, which was
1617generated by GNU Autoconf 2.61. Invocation command line was
1618
1619 $ $0 $@
1620
1621_ACEOF
1622exec 5>>config.log
1623{
1624cat <<_ASUNAME
1625## --------- ##
1626## Platform. ##
1627## --------- ##
1628
1629hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634
1635/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1637
1638/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1639/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1640/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1642/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1643/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1644/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1645
1646_ASUNAME
1647
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 echo "PATH: $as_dir"
1654done
1655IFS=$as_save_IFS
1656
1657} >&5
1658
1659cat >&5 <<_ACEOF
1660
1661
1662## ----------- ##
1663## Core tests. ##
1664## ----------- ##
1665
1666_ACEOF
1667
1668
1669# Keep a trace of the command line.
1670# Strip out --no-create and --no-recursion so they do not pile up.
1671# Strip out --silent because we don't want to record it for future runs.
1672# Also quote any args containing shell meta-characters.
1673# Make two passes to allow for proper duplicate-argument suppression.
1674ac_configure_args=
1675ac_configure_args0=
1676ac_configure_args1=
1677ac_must_keep_next=false
1678for ac_pass in 1 2
1679do
1680 for ac_arg
1681 do
1682 case $ac_arg in
1683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685 | -silent | --silent | --silen | --sile | --sil)
1686 continue ;;
1687 *\'*)
1688 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689 esac
1690 case $ac_pass in
1691 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692 2)
1693 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694 if test $ac_must_keep_next = true; then
1695 ac_must_keep_next=false # Got value, back to normal.
1696 else
1697 case $ac_arg in
1698 *=* | --config-cache | -C | -disable-* | --disable-* \
1699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701 | -with-* | --with-* | -without-* | --without-* | --x)
1702 case "$ac_configure_args0 " in
1703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704 esac
1705 ;;
1706 -* ) ac_must_keep_next=true ;;
1707 esac
1708 fi
1709 ac_configure_args="$ac_configure_args '$ac_arg'"
1710 ;;
1711 esac
1712 done
1713done
1714$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716
1717# When interrupted or exit'd, cleanup temporary files, and complete
1718# config.log. We remove comments because anyway the quotes in there
1719# would cause problems or look ugly.
1720# WARNING: Use '\'' to represent an apostrophe within the trap.
1721# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722trap 'exit_status=$?
1723 # Save into config.log some information that might help in debugging.
1724 {
1725 echo
1726
1727 cat <<\_ASBOX
1728## ---------------- ##
1729## Cache variables. ##
1730## ---------------- ##
1731_ASBOX
1732 echo
1733 # The following way of writing the cache mishandles newlines in values,
1734(
1735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736 eval ac_val=\$$ac_var
1737 case $ac_val in #(
1738 *${as_nl}*)
1739 case $ac_var in #(
1740 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742 esac
1743 case $ac_var in #(
1744 _ | IFS | as_nl) ;; #(
1745 *) $as_unset $ac_var ;;
1746 esac ;;
1747 esac
1748 done
1749 (set) 2>&1 |
1750 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751 *${as_nl}ac_space=\ *)
1752 sed -n \
1753 "s/'\''/'\''\\\\'\'''\''/g;
1754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755 ;; #(
1756 *)
1757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 ;;
1759 esac |
1760 sort
1761)
1762 echo
1763
1764 cat <<\_ASBOX
1765## ----------------- ##
1766## Output variables. ##
1767## ----------------- ##
1768_ASBOX
1769 echo
1770 for ac_var in $ac_subst_vars
1771 do
1772 eval ac_val=\$$ac_var
1773 case $ac_val in
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 esac
1776 echo "$ac_var='\''$ac_val'\''"
1777 done | sort
1778 echo
1779
1780 if test -n "$ac_subst_files"; then
1781 cat <<\_ASBOX
1782## ------------------- ##
1783## File substitutions. ##
1784## ------------------- ##
1785_ASBOX
1786 echo
1787 for ac_var in $ac_subst_files
1788 do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792 esac
1793 echo "$ac_var='\''$ac_val'\''"
1794 done | sort
1795 echo
1796 fi
1797
1798 if test -s confdefs.h; then
1799 cat <<\_ASBOX
1800## ----------- ##
1801## confdefs.h. ##
1802## ----------- ##
1803_ASBOX
1804 echo
1805 cat confdefs.h
1806 echo
1807 fi
1808 test "$ac_signal" != 0 &&
1809 echo "$as_me: caught signal $ac_signal"
1810 echo "$as_me: exit $exit_status"
1811 } >&5
1812 rm -f core *.core core.conftest.* &&
1813 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814 exit $exit_status
1815' 0
1816for ac_signal in 1 2 13 15; do
1817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818done
1819ac_signal=0
1820
1821# confdefs.h avoids OS command line length limits that DEFS can exceed.
1822rm -f -r conftest* confdefs.h
1823
1824# Predefined preprocessor variables.
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_NAME "$PACKAGE_NAME"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833_ACEOF
1834
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_VERSION "$PACKAGE_VERSION"
1838_ACEOF
1839
1840
1841cat >>confdefs.h <<_ACEOF
1842#define PACKAGE_STRING "$PACKAGE_STRING"
1843_ACEOF
1844
1845
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848_ACEOF
1849
1850
1851# Let the site file select an alternate cache file if it wants to.
1852# Prefer explicitly selected file to automatically selected ones.
1853if test -n "$CONFIG_SITE"; then
1854 set x "$CONFIG_SITE"
1855elif test "x$prefix" != xNONE; then
1856 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1857else
1858 set x "$ac_default_prefix/share/config.site" \
1859 "$ac_default_prefix/etc/config.site"
1860fi
1861shift
1862for ac_site_file
1863do
1864 if test -r "$ac_site_file"; then
1865 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1868 . "$ac_site_file"
1869 fi
1870done
1871
1872if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special
1874 # files actually), so we avoid doing that.
1875 if test -f "$cache_file"; then
1876 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877echo "$as_me: loading cache $cache_file" >&6;}
1878 case $cache_file in
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";;
1881 esac
1882 fi
1883else
1884 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885echo "$as_me: creating cache $cache_file" >&6;}
1886 >$cache_file
1887fi
1888
1889# Check that the precious variables saved in the cache have kept the same
1890# value.
1891ac_cache_corrupted=false
1892for ac_var in $ac_precious_vars; do
1893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in
1898 set,)
1899 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1902 ,set)
1903 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1906 ,);;
1907 *)
1908 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1912echo "$as_me: former value: $ac_old_val" >&2;}
1913 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1914echo "$as_me: current value: $ac_new_val" >&2;}
1915 ac_cache_corrupted=:
1916 fi;;
1917 esac
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1920 case $ac_new_val in
1921 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1923 esac
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927 esac
1928 fi
1929done
1930if $ac_cache_corrupted; then
1931 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1936fi
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962ac_ext=c
1963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967
1968
1969
1970# Auxiliary tools
1971ac_aux_dir=
1972for ac_dir in config "$srcdir"/config; do
1973 if test -f "$ac_dir/install-sh"; then
1974 ac_aux_dir=$ac_dir
1975 ac_install_sh="$ac_aux_dir/install-sh -c"
1976 break
1977 elif test -f "$ac_dir/install.sh"; then
1978 ac_aux_dir=$ac_dir
1979 ac_install_sh="$ac_aux_dir/install.sh -c"
1980 break
1981 elif test -f "$ac_dir/shtool"; then
1982 ac_aux_dir=$ac_dir
1983 ac_install_sh="$ac_aux_dir/shtool install -c"
1984 break
1985 fi
1986done
1987if test -z "$ac_aux_dir"; then
1988 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1989echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1990 { (exit 1); exit 1; }; }
1991fi
1992
1993# These three variables are undocumented and unsupported,
1994# and are intended to be withdrawn in a future Autoconf release.
1995# They can cause serious problems if a builder's source tree is in a directory
1996# whose full name contains unusual characters.
1997ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1998ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1999ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2000
2001
2002
2003am__api_version='1.10'
2004
2005# Find a good install program. We prefer a C program (faster),
2006# so one script is as good as another. But avoid the broken or
2007# incompatible versions:
2008# SysV /etc/install, /usr/sbin/install
2009# SunOS /usr/etc/install
2010# IRIX /sbin/install
2011# AIX /bin/install
2012# AmigaOS /C/install, which installs bootblocks on floppy discs
2013# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016# OS/2's system install, which has a completely different semantic
2017# ./install, which can be erroneously created by make from ./install.sh.
2018{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2020if test -z "$INSTALL"; then
2021if test "${ac_cv_path_install+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 # Account for people who put trailing slashes in PATH elements.
2030case $as_dir/ in
2031 ./ | .// | /cC/* | \
2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2034 /usr/ucb/* ) ;;
2035 *)
2036 # OSF1 and SCO ODT 3.0 have their own names for install.
2037 # Don't use installbsd from OSF since it installs stuff as root
2038 # by default.
2039 for ac_prog in ginstall scoinst install; do
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2045 :
2046 elif test $ac_prog = install &&
2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2049 :
2050 else
2051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2052 break 3
2053 fi
2054 fi
2055 done
2056 done
2057 ;;
2058esac
2059done
2060IFS=$as_save_IFS
2061
2062
2063fi
2064 if test "${ac_cv_path_install+set}" = set; then
2065 INSTALL=$ac_cv_path_install
2066 else
2067 # As a last resort, use the slow shell script. Don't cache a
2068 # value for INSTALL within a source directory, because that will
2069 # break other packages using the cache if that directory is
2070 # removed, or if the value is a relative name.
2071 INSTALL=$ac_install_sh
2072 fi
2073fi
2074{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2075echo "${ECHO_T}$INSTALL" >&6; }
2076
2077# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078# It thinks the first close brace ends the variable substitution.
2079test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080
2081test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2082
2083test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084
2085{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2086echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2087# Just in case
2088sleep 1
2089echo timestamp > conftest.file
2090# Do `set' in a subshell so we don't clobber the current shell's
2091# arguments. Must try -L first in case configure is actually a
2092# symlink; some systems play weird games with the mod time of symlinks
2093# (eg FreeBSD returns the mod time of the symlink's containing
2094# directory).
2095if (
2096 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2097 if test "$*" = "X"; then
2098 # -L didn't work.
2099 set X `ls -t $srcdir/configure conftest.file`
2100 fi
2101 rm -f conftest.file
2102 if test "$*" != "X $srcdir/configure conftest.file" \
2103 && test "$*" != "X conftest.file $srcdir/configure"; then
2104
2105 # If neither matched, then we have a broken ls. This can happen
2106 # if, for instance, CONFIG_SHELL is bash and it inherits a
2107 # broken ls alias from the environment. This has actually
2108 # happened. Such a system could not be considered "sane".
2109 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2110alias in your environment" >&5
2111echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2112alias in your environment" >&2;}
2113 { (exit 1); exit 1; }; }
2114 fi
2115
2116 test "$2" = conftest.file
2117 )
2118then
2119 # Ok.
2120 :
2121else
2122 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2123Check your system clock" >&5
2124echo "$as_me: error: newly created file is older than distributed files!
2125Check your system clock" >&2;}
2126 { (exit 1); exit 1; }; }
2127fi
2128{ echo "$as_me:$LINENO: result: yes" >&5
2129echo "${ECHO_T}yes" >&6; }
2130test "$program_prefix" != NONE &&
2131 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2132# Use a double $ so make ignores it.
2133test "$program_suffix" != NONE &&
2134 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2135# Double any \ or $. echo might interpret backslashes.
2136# By default was `s,x,x', remove it if useless.
2137cat <<\_ACEOF >conftest.sed
2138s/[\\$]/&&/g;s/;s,x,x,$//
2139_ACEOF
2140program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2141rm -f conftest.sed
2142
2143# expand $ac_aux_dir to an absolute path
2144am_aux_dir=`cd $ac_aux_dir && pwd`
2145
2146test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2147# Use eval to expand $SHELL
2148if eval "$MISSING --run true"; then
2149 am_missing_run="$MISSING --run "
2150else
2151 am_missing_run=
2152 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2153echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2154fi
2155
2156{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2157echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2158if test -z "$MKDIR_P"; then
2159 if test "${ac_cv_path_mkdir+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2164do
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 for ac_prog in mkdir gmkdir; do
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2171 'mkdir (GNU coreutils) '* | \
2172 'mkdir (coreutils) '* | \
2173 'mkdir (fileutils) '4.1*)
2174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2175 break 3;;
2176 esac
2177 done
2178 done
2179done
2180IFS=$as_save_IFS
2181
2182fi
2183
2184 if test "${ac_cv_path_mkdir+set}" = set; then
2185 MKDIR_P="$ac_cv_path_mkdir -p"
2186 else
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for MKDIR_P within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 test -d ./--version && rmdir ./--version
2192 MKDIR_P="$ac_install_sh -d"
2193 fi
2194fi
2195{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2196echo "${ECHO_T}$MKDIR_P" >&6; }
2197
2198mkdir_p="$MKDIR_P"
2199case $mkdir_p in
2200 [\\/$]* | ?:[\\/]*) ;;
2201 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2202esac
2203
2204for ac_prog in gawk mawk nawk awk
2205do
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207set dummy $ac_prog; ac_word=$2
2208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210if test "${ac_cv_prog_AWK+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213 if test -n "$AWK"; then
2214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2215else
2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH
2218do
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_AWK="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2226 fi
2227done
2228done
2229IFS=$as_save_IFS
2230
2231fi
2232fi
2233AWK=$ac_cv_prog_AWK
2234if test -n "$AWK"; then
2235 { echo "$as_me:$LINENO: result: $AWK" >&5
2236echo "${ECHO_T}$AWK" >&6; }
2237else
2238 { echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6; }
2240fi
2241
2242
2243 test -n "$AWK" && break
2244done
2245
2246{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2247echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2248set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2249if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252 cat >conftest.make <<\_ACEOF
2253SHELL = /bin/sh
2254all:
2255 @echo '@@@%%%=$(MAKE)=@@@%%%'
2256_ACEOF
2257# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2258case `${MAKE-make} -f conftest.make 2>/dev/null` in
2259 *@@@%%%=?*=@@@%%%*)
2260 eval ac_cv_prog_make_${ac_make}_set=yes;;
2261 *)
2262 eval ac_cv_prog_make_${ac_make}_set=no;;
2263esac
2264rm -f conftest.make
2265fi
2266if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268echo "${ECHO_T}yes" >&6; }
2269 SET_MAKE=
2270else
2271 { echo "$as_me:$LINENO: result: no" >&5
2272echo "${ECHO_T}no" >&6; }
2273 SET_MAKE="MAKE=${MAKE-make}"
2274fi
2275
2276rm -rf .tst 2>/dev/null
2277mkdir .tst 2>/dev/null
2278if test -d .tst; then
2279 am__leading_dot=.
2280else
2281 am__leading_dot=_
2282fi
2283rmdir .tst 2>/dev/null
2284
2285if test "`cd $srcdir && pwd`" != "`pwd`"; then
2286 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2287 # is not polluted with repeated "-I."
2288 am__isrc=' -I$(srcdir)'
2289 # test to see if srcdir already configured
2290 if test -f $srcdir/config.status; then
2291 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2292echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2293 { (exit 1); exit 1; }; }
2294 fi
2295fi
2296
2297# test whether we have cygpath
2298if test -z "$CYGPATH_W"; then
2299 if (cygpath --version) >/dev/null 2>/dev/null; then
2300 CYGPATH_W='cygpath -w'
2301 else
2302 CYGPATH_W=echo
2303 fi
2304fi
2305
2306
2307# Define the identity of the package.
2308 PACKAGE=suPHP
2309 VERSION=0.7.1
2310
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE "$PACKAGE"
2314_ACEOF
2315
2316
2317cat >>confdefs.h <<_ACEOF
2318#define VERSION "$VERSION"
2319_ACEOF
2320
2321# Some tools Automake needs.
2322
2323ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324
2325
2326AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327
2328
2329AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330
2331
2332AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333
2334
2335MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2336
2337install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2338
2339# Installed binaries are usually stripped using `strip' when the user
2340# run `make install-strip'. However `strip' might not be the right
2341# tool to use in cross-compilation environments, therefore Automake
2342# will honor the `STRIP' environment variable to overrule this program.
2343if test "$cross_compiling" != no; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2346set dummy ${ac_tool_prefix}strip; ac_word=$2
2347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349if test "${ac_cv_prog_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 if test -n "$STRIP"; then
2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354else
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366done
2367done
2368IFS=$as_save_IFS
2369
2370fi
2371fi
2372STRIP=$ac_cv_prog_STRIP
2373if test -n "$STRIP"; then
2374 { echo "$as_me:$LINENO: result: $STRIP" >&5
2375echo "${ECHO_T}$STRIP" >&6; }
2376else
2377 { echo "$as_me:$LINENO: result: no" >&5
2378echo "${ECHO_T}no" >&6; }
2379fi
2380
2381
2382fi
2383if test -z "$ac_cv_prog_STRIP"; then
2384 ac_ct_STRIP=$STRIP
2385 # Extract the first word of "strip", so it can be a program name with args.
2386set dummy strip; ac_word=$2
2387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392 if test -n "$ac_ct_STRIP"; then
2393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2394else
2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_ac_ct_STRIP="strip"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2405 fi
2406done
2407done
2408IFS=$as_save_IFS
2409
2410fi
2411fi
2412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2413if test -n "$ac_ct_STRIP"; then
2414 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2415echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2416else
2417 { echo "$as_me:$LINENO: result: no" >&5
2418echo "${ECHO_T}no" >&6; }
2419fi
2420
2421 if test "x$ac_ct_STRIP" = x; then
2422 STRIP=":"
2423 else
2424 case $cross_compiling:$ac_tool_warned in
2425yes:)
2426{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427whose name does not start with the host triplet. If you think this
2428configuration is useful to you, please write to autoconf@gnu.org." >&5
2429echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430whose name does not start with the host triplet. If you think this
2431configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432ac_tool_warned=yes ;;
2433esac
2434 STRIP=$ac_ct_STRIP
2435 fi
2436else
2437 STRIP="$ac_cv_prog_STRIP"
2438fi
2439
2440fi
2441INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2442
2443# We need awk for the "check" target. The system "awk" is bad on
2444# some platforms.
2445# Always define AMTAR for backward compatibility.
2446
2447AMTAR=${AMTAR-"${am_missing_run}tar"}
2448
2449am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2450
2451
2452
2453
2454
2455# Check for right directory
2456
2457# Config headers for automake
2458ac_config_headers="$ac_config_headers src/config.h"
2459
2460
2461# Build time sanity check
2462{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2463echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2464# Just in case
2465sleep 1
2466echo timestamp > conftest.file
2467# Do `set' in a subshell so we don't clobber the current shell's
2468# arguments. Must try -L first in case configure is actually a
2469# symlink; some systems play weird games with the mod time of symlinks
2470# (eg FreeBSD returns the mod time of the symlink's containing
2471# directory).
2472if (
2473 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2474 if test "$*" = "X"; then
2475 # -L didn't work.
2476 set X `ls -t $srcdir/configure conftest.file`
2477 fi
2478 rm -f conftest.file
2479 if test "$*" != "X $srcdir/configure conftest.file" \
2480 && test "$*" != "X conftest.file $srcdir/configure"; then
2481
2482 # If neither matched, then we have a broken ls. This can happen
2483 # if, for instance, CONFIG_SHELL is bash and it inherits a
2484 # broken ls alias from the environment. This has actually
2485 # happened. Such a system could not be considered "sane".
2486 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2487alias in your environment" >&5
2488echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2489alias in your environment" >&2;}
2490 { (exit 1); exit 1; }; }
2491 fi
2492
2493 test "$2" = conftest.file
2494 )
2495then
2496 # Ok.
2497 :
2498else
2499 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2500Check your system clock" >&5
2501echo "$as_me: error: newly created file is older than distributed files!
2502Check your system clock" >&2;}
2503 { (exit 1); exit 1; }; }
2504fi
2505{ echo "$as_me:$LINENO: result: yes" >&5
2506echo "${ECHO_T}yes" >&6; }
2507
2508# Look for install program
2509# Find a good install program. We prefer a C program (faster),
2510# so one script is as good as another. But avoid the broken or
2511# incompatible versions:
2512# SysV /etc/install, /usr/sbin/install
2513# SunOS /usr/etc/install
2514# IRIX /sbin/install
2515# AIX /bin/install
2516# AmigaOS /C/install, which installs bootblocks on floppy discs
2517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2518# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2520# OS/2's system install, which has a completely different semantic
2521# ./install, which can be erroneously created by make from ./install.sh.
2522{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2523echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2524if test -z "$INSTALL"; then
2525if test "${ac_cv_path_install+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 # Account for people who put trailing slashes in PATH elements.
2534case $as_dir/ in
2535 ./ | .// | /cC/* | \
2536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2538 /usr/ucb/* ) ;;
2539 *)
2540 # OSF1 and SCO ODT 3.0 have their own names for install.
2541 # Don't use installbsd from OSF since it installs stuff as root
2542 # by default.
2543 for ac_prog in ginstall scoinst install; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2546 if test $ac_prog = install &&
2547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # AIX install. It has an incompatible calling convention.
2549 :
2550 elif test $ac_prog = install &&
2551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552 # program-specific install script used by HP pwplus--don't use.
2553 :
2554 else
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2557 fi
2558 fi
2559 done
2560 done
2561 ;;
2562esac
2563done
2564IFS=$as_save_IFS
2565
2566
2567fi
2568 if test "${ac_cv_path_install+set}" = set; then
2569 INSTALL=$ac_cv_path_install
2570 else
2571 # As a last resort, use the slow shell script. Don't cache a
2572 # value for INSTALL within a source directory, because that will
2573 # break other packages using the cache if that directory is
2574 # removed, or if the value is a relative name.
2575 INSTALL=$ac_install_sh
2576 fi
2577fi
2578{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2579echo "${ECHO_T}$INSTALL" >&6; }
2580
2581# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2582# It thinks the first close brace ends the variable substitution.
2583test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2584
2585test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2586
2587test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2588
2589
2590# Look for compiler
2591ac_ext=c
2592ac_cpp='$CPP $CPPFLAGS'
2593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2598set dummy ${ac_tool_prefix}gcc; ac_word=$2
2599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601if test "${ac_cv_prog_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618done
2619done
2620IFS=$as_save_IFS
2621
2622fi
2623fi
2624CC=$ac_cv_prog_CC
2625if test -n "$CC"; then
2626 { echo "$as_me:$LINENO: result: $CC" >&5
2627echo "${ECHO_T}$CC" >&6; }
2628else
2629 { echo "$as_me:$LINENO: result: no" >&5
2630echo "${ECHO_T}no" >&6; }
2631fi
2632
2633
2634fi
2635if test -z "$ac_cv_prog_CC"; then
2636 ac_ct_CC=$CC
2637 # Extract the first word of "gcc", so it can be a program name with args.
2638set dummy gcc; ac_word=$2
2639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_ac_ct_CC="gcc"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658done
2659done
2660IFS=$as_save_IFS
2661
2662fi
2663fi
2664ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665if test -n "$ac_ct_CC"; then
2666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667echo "${ECHO_T}$ac_ct_CC" >&6; }
2668else
2669 { echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6; }
2671fi
2672
2673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677yes:)
2678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679whose name does not start with the host triplet. If you think this
2680configuration is useful to you, please write to autoconf@gnu.org." >&5
2681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682whose name does not start with the host triplet. If you think this
2683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684ac_tool_warned=yes ;;
2685esac
2686 CC=$ac_ct_CC
2687 fi
2688else
2689 CC="$ac_cv_prog_CC"
2690fi
2691
2692if test -z "$CC"; then
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2695set dummy ${ac_tool_prefix}cc; ac_word=$2
2696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2698if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703else
2704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705for as_dir in $PATH
2706do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_CC="${ac_tool_prefix}cc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715done
2716done
2717IFS=$as_save_IFS
2718
2719fi
2720fi
2721CC=$ac_cv_prog_CC
2722if test -n "$CC"; then
2723 { echo "$as_me:$LINENO: result: $CC" >&5
2724echo "${ECHO_T}$CC" >&6; }
2725else
2726 { echo "$as_me:$LINENO: result: no" >&5
2727echo "${ECHO_T}no" >&6; }
2728fi
2729
2730
2731 fi
2732fi
2733if test -z "$CC"; then
2734 # Extract the first word of "cc", so it can be a program name with args.
2735set dummy cc; ac_word=$2
2736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2738if test "${ac_cv_prog_CC+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2743else
2744 ac_prog_rejected=no
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2753 ac_prog_rejected=yes
2754 continue
2755 fi
2756 ac_cv_prog_CC="cc"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761done
2762IFS=$as_save_IFS
2763
2764if test $ac_prog_rejected = yes; then
2765 # We found a bogon in the path, so make sure we never use it.
2766 set dummy $ac_cv_prog_CC
2767 shift
2768 if test $# != 0; then
2769 # We chose a different compiler from the bogus one.
2770 # However, it has the same basename, so the bogon will be chosen
2771 # first if we set CC to just the basename; use the full file name.
2772 shift
2773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2774 fi
2775fi
2776fi
2777fi
2778CC=$ac_cv_prog_CC
2779if test -n "$CC"; then
2780 { echo "$as_me:$LINENO: result: $CC" >&5
2781echo "${ECHO_T}$CC" >&6; }
2782else
2783 { echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6; }
2785fi
2786
2787
2788fi
2789if test -z "$CC"; then
2790 if test -n "$ac_tool_prefix"; then
2791 for ac_prog in cl.exe
2792 do
2793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2794set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2797if test "${ac_cv_prog_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799else
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814done
2815done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822 { echo "$as_me:$LINENO: result: $CC" >&5
2823echo "${ECHO_T}$CC" >&6; }
2824else
2825 { echo "$as_me:$LINENO: result: no" >&5
2826echo "${ECHO_T}no" >&6; }
2827fi
2828
2829
2830 test -n "$CC" && break
2831 done
2832fi
2833if test -z "$CC"; then
2834 ac_ct_CC=$CC
2835 for ac_prog in cl.exe
2836do
2837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2838set dummy $ac_prog; ac_word=$2
2839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2841if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843else
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_ac_ct_CC="$ac_prog"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858done
2859done
2860IFS=$as_save_IFS
2861
2862fi
2863fi
2864ac_ct_CC=$ac_cv_prog_ac_ct_CC
2865if test -n "$ac_ct_CC"; then
2866 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2867echo "${ECHO_T}$ac_ct_CC" >&6; }
2868else
2869 { echo "$as_me:$LINENO: result: no" >&5
2870echo "${ECHO_T}no" >&6; }
2871fi
2872
2873
2874 test -n "$ac_ct_CC" && break
2875done
2876
2877 if test "x$ac_ct_CC" = x; then
2878 CC=""
2879 else
2880 case $cross_compiling:$ac_tool_warned in
2881yes:)
2882{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2883whose name does not start with the host triplet. If you think this
2884configuration is useful to you, please write to autoconf@gnu.org." >&5
2885echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2886whose name does not start with the host triplet. If you think this
2887configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2888ac_tool_warned=yes ;;
2889esac
2890 CC=$ac_ct_CC
2891 fi
2892fi
2893
2894fi
2895
2896
2897test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2898See \`config.log' for more details." >&5
2899echo "$as_me: error: no acceptable C compiler found in \$PATH
2900See \`config.log' for more details." >&2;}
2901 { (exit 1); exit 1; }; }
2902
2903# Provide some information about the compiler.
2904echo "$as_me:$LINENO: checking for C compiler version" >&5
2905ac_compiler=`set X $ac_compile; echo $2`
2906{ (ac_try="$ac_compiler --version >&5"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler --version >&5") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916{ (ac_try="$ac_compiler -v >&5"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -v >&5") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926{ (ac_try="$ac_compiler -V >&5"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compiler -V >&5") 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936
2937cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952ac_clean_files_save=$ac_clean_files
2953ac_clean_files="$ac_clean_files a.out a.exe b.out"
2954# Try to create an executable without -o first, disregard a.out.
2955# It will help us diagnose broken compilers, and finding out an intuition
2956# of exeext.
2957{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2958echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2959ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2960#
2961# List of possible output files, starting from the most likely.
2962# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2963# only as a last resort. b.out is created by i960 compilers.
2964ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2965#
2966# The IRIX 6 linker writes into existing files which may not be
2967# executable, retaining their permissions. Remove them first so a
2968# subsequent execution test works.
2969ac_rmfiles=
2970for ac_file in $ac_files
2971do
2972 case $ac_file in
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2974 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2975 esac
2976done
2977rm -f $ac_rmfiles
2978
2979if { (ac_try="$ac_link_default"
2980case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_link_default") 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
2989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2990# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2991# in a Makefile. We should not override ac_cv_exeext if it was cached,
2992# so that the user can short-circuit this test for compilers unknown to
2993# Autoconf.
2994for ac_file in $ac_files ''
2995do
2996 test -f "$ac_file" || continue
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2999 ;;
3000 [ab].out )
3001 # We found the default executable, but exeext='' is most
3002 # certainly right.
3003 break;;
3004 *.* )
3005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3006 then :; else
3007 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 fi
3009 # We set ac_cv_exeext here because the later test for it is not
3010 # safe: cross compilers may not add the suffix if given an `-o'
3011 # argument, so we may need to know it at that point already.
3012 # Even if this section looks crufty: it has the advantage of
3013 # actually working.
3014 break;;
3015 * )
3016 break;;
3017 esac
3018done
3019test "$ac_cv_exeext" = no && ac_cv_exeext=
3020
3021else
3022 ac_file=''
3023fi
3024
3025{ echo "$as_me:$LINENO: result: $ac_file" >&5
3026echo "${ECHO_T}$ac_file" >&6; }
3027if test -z "$ac_file"; then
3028 echo "$as_me: failed program was:" >&5
3029sed 's/^/| /' conftest.$ac_ext >&5
3030
3031{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3032See \`config.log' for more details." >&5
3033echo "$as_me: error: C compiler cannot create executables
3034See \`config.log' for more details." >&2;}
3035 { (exit 77); exit 77; }; }
3036fi
3037
3038ac_exeext=$ac_cv_exeext
3039
3040# Check that the compiler produces executables we can run. If not, either
3041# the compiler is broken, or we cross compile.
3042{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3043echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3044# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3045# If not cross compiling, check that we can run a simple program.
3046if test "$cross_compiling" != yes; then
3047 if { ac_try='./$ac_file'
3048 { (case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_try") 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 cross_compiling=no
3058 else
3059 if test "$cross_compiling" = maybe; then
3060 cross_compiling=yes
3061 else
3062 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3063If you meant to cross compile, use \`--host'.
3064See \`config.log' for more details." >&5
3065echo "$as_me: error: cannot run C compiled programs.
3066If you meant to cross compile, use \`--host'.
3067See \`config.log' for more details." >&2;}
3068 { (exit 1); exit 1; }; }
3069 fi
3070 fi
3071fi
3072{ echo "$as_me:$LINENO: result: yes" >&5
3073echo "${ECHO_T}yes" >&6; }
3074
3075rm -f a.out a.exe conftest$ac_cv_exeext b.out
3076ac_clean_files=$ac_clean_files_save
3077# Check that the compiler produces executables we can run. If not, either
3078# the compiler is broken, or we cross compile.
3079{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3080echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3081{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3082echo "${ECHO_T}$cross_compiling" >&6; }
3083
3084{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3085echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3086if { (ac_try="$ac_link"
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_link") 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; then
3096 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3097# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3098# work properly (i.e., refer to `conftest.exe'), while it won't with
3099# `rm'.
3100for ac_file in conftest.exe conftest conftest.*; do
3101 test -f "$ac_file" || continue
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3104 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3105 break;;
3106 * ) break;;
3107 esac
3108done
3109else
3110 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3111See \`config.log' for more details." >&5
3112echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3113See \`config.log' for more details." >&2;}
3114 { (exit 1); exit 1; }; }
3115fi
3116
3117rm -f conftest$ac_cv_exeext
3118{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3119echo "${ECHO_T}$ac_cv_exeext" >&6; }
3120
3121rm -f conftest.$ac_ext
3122EXEEXT=$ac_cv_exeext
3123ac_exeext=$EXEEXT
3124{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3125echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3126if test "${ac_cv_objext+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3128else
3129 cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h. */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h. */
3135
3136int
3137main ()
3138{
3139
3140 ;
3141 return 0;
3142}
3143_ACEOF
3144rm -f conftest.o conftest.obj
3145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compile") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; then
3155 for ac_file in conftest.o conftest.obj conftest.*; do
3156 test -f "$ac_file" || continue;
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3160 break;;
3161 esac
3162done
3163else
3164 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3168See \`config.log' for more details." >&5
3169echo "$as_me: error: cannot compute suffix of object files: cannot compile
3170See \`config.log' for more details." >&2;}
3171 { (exit 1); exit 1; }; }
3172fi
3173
3174rm -f conftest.$ac_cv_objext conftest.$ac_ext
3175fi
3176{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3177echo "${ECHO_T}$ac_cv_objext" >&6; }
3178OBJEXT=$ac_cv_objext
3179ac_objext=$OBJEXT
3180{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3181echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3182if test "${ac_cv_c_compiler_gnu+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184else
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191
3192int
3193main ()
3194{
3195#ifndef __GNUC__
3196 choke me
3197#endif
3198
3199 ;
3200 return 0;
3201}
3202_ACEOF
3203rm -f conftest.$ac_objext
3204if { (ac_try="$ac_compile"
3205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && {
3217 test -z "$ac_c_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
3220 ac_compiler_gnu=yes
3221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 ac_compiler_gnu=no
3226fi
3227
3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229ac_cv_c_compiler_gnu=$ac_compiler_gnu
3230
3231fi
3232{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3233echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3234GCC=`test $ac_compiler_gnu = yes && echo yes`
3235ac_test_CFLAGS=${CFLAGS+set}
3236ac_save_CFLAGS=$CFLAGS
3237{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3238echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3239if test "${ac_cv_prog_cc_g+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241else
3242 ac_save_c_werror_flag=$ac_c_werror_flag
3243 ac_c_werror_flag=yes
3244 ac_cv_prog_cc_g=no
3245 CFLAGS="-g"
3246 cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
3252
3253int
3254main ()
3255{
3256
3257 ;
3258 return 0;
3259}
3260_ACEOF
3261rm -f conftest.$ac_objext
3262if { (ac_try="$ac_compile"
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
3267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } && {
3275 test -z "$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 } && test -s conftest.$ac_objext; then
3278 ac_cv_prog_cc_g=yes
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 CFLAGS=""
3284 cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h. */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h. */
3290
3291int
3292main ()
3293{
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299rm -f conftest.$ac_objext
3300if { (ac_try="$ac_compile"
3301case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304esac
3305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 :
3317else
3318 echo "$as_me: failed program was:" >&5
3319sed 's/^/| /' conftest.$ac_ext >&5
3320
3321 ac_c_werror_flag=$ac_save_c_werror_flag
3322 CFLAGS="-g"
3323 cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h. */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h. */
3329
3330int
3331main ()
3332{
3333
3334 ;
3335 return 0;
3336}
3337_ACEOF
3338rm -f conftest.$ac_objext
3339if { (ac_try="$ac_compile"
3340case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343esac
3344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_compile") 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && {
3352 test -z "$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 } && test -s conftest.$ac_objext; then
3355 ac_cv_prog_cc_g=yes
3356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360
3361fi
3362
3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364fi
3365
3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367fi
3368
3369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 ac_c_werror_flag=$ac_save_c_werror_flag
3371fi
3372{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3373echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3374if test "$ac_test_CFLAGS" = set; then
3375 CFLAGS=$ac_save_CFLAGS
3376elif test $ac_cv_prog_cc_g = yes; then
3377 if test "$GCC" = yes; then
3378 CFLAGS="-g -O2"
3379 else
3380 CFLAGS="-g"
3381 fi
3382else
3383 if test "$GCC" = yes; then
3384 CFLAGS="-O2"
3385 else
3386 CFLAGS=
3387 fi
3388fi
3389{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3390echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3391if test "${ac_cv_prog_cc_c89+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394 ac_cv_prog_cc_c89=no
3395ac_save_CC=$CC
3396cat >conftest.$ac_ext <<_ACEOF
3397/* confdefs.h. */
3398_ACEOF
3399cat confdefs.h >>conftest.$ac_ext
3400cat >>conftest.$ac_ext <<_ACEOF
3401/* end confdefs.h. */
3402#include <stdarg.h>
3403#include <stdio.h>
3404#include <sys/types.h>
3405#include <sys/stat.h>
3406/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3407struct buf { int x; };
3408FILE * (*rcsopen) (struct buf *, struct stat *, int);
3409static char *e (p, i)
3410 char **p;
3411 int i;
3412{
3413 return p[i];
3414}
3415static char *f (char * (*g) (char **, int), char **p, ...)
3416{
3417 char *s;
3418 va_list v;
3419 va_start (v,p);
3420 s = g (p, va_arg (v,int));
3421 va_end (v);
3422 return s;
3423}
3424
3425/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3426 function prototypes and stuff, but not '\xHH' hex character constants.
3427 These don't provoke an error unfortunately, instead are silently treated
3428 as 'x'. The following induces an error, until -std is added to get
3429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3430 array size at least. It's necessary to write '\x00'==0 to get something
3431 that's true only with -std. */
3432int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3433
3434/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3435 inside strings and character constants. */
3436#define FOO(x) 'x'
3437int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3438
3439int test (int i, double x);
3440struct s1 {int (*f) (int a);};
3441struct s2 {int (*f) (double a);};
3442int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3443int argc;
3444char **argv;
3445int
3446main ()
3447{
3448return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3449 ;
3450 return 0;
3451}
3452_ACEOF
3453for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3454 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3455do
3456 CC="$ac_save_CC $ac_arg"
3457 rm -f conftest.$ac_objext
3458if { (ac_try="$ac_compile"
3459case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462esac
3463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464 (eval "$ac_compile") 2>conftest.er1
3465 ac_status=$?
3466 grep -v '^ *+' conftest.er1 >conftest.err
3467 rm -f conftest.er1
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } && {
3471 test -z "$ac_c_werror_flag" ||
3472 test ! -s conftest.err
3473 } && test -s conftest.$ac_objext; then
3474 ac_cv_prog_cc_c89=$ac_arg
3475else
3476 echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
3479
3480fi
3481
3482rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
3484done
3485rm -f conftest.$ac_ext
3486CC=$ac_save_CC
3487
3488fi
3489# AC_CACHE_VAL
3490case "x$ac_cv_prog_cc_c89" in
3491 x)
3492 { echo "$as_me:$LINENO: result: none needed" >&5
3493echo "${ECHO_T}none needed" >&6; } ;;
3494 xno)
3495 { echo "$as_me:$LINENO: result: unsupported" >&5
3496echo "${ECHO_T}unsupported" >&6; } ;;
3497 *)
3498 CC="$CC $ac_cv_prog_cc_c89"
3499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3500echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3501esac
3502
3503
3504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509DEPDIR="${am__leading_dot}deps"
3510
3511ac_config_commands="$ac_config_commands depfiles"
3512
3513
3514am_make=${MAKE-make}
3515cat > confinc << 'END'
3516am__doit:
3517 @echo done
3518.PHONY: am__doit
3519END
3520# If we don't find an include directive, just comment out the code.
3521{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3522echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3523am__include="#"
3524am__quote=
3525_am_result=none
3526# First try GNU make style include.
3527echo "include confinc" > confmf
3528# We grep out `Entering directory' and `Leaving directory'
3529# messages which can occur if `w' ends up in MAKEFLAGS.
3530# In particular we don't look at `^make:' because GNU make might
3531# be invoked under some other name (usually "gmake"), in which
3532# case it prints its new name instead of `make'.
3533if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3534 am__include=include
3535 am__quote=
3536 _am_result=GNU
3537fi
3538# Now try BSD make style include.
3539if test "$am__include" = "#"; then
3540 echo '.include "confinc"' > confmf
3541 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3542 am__include=.include
3543 am__quote="\""
3544 _am_result=BSD
3545 fi
3546fi
3547
3548
3549{ echo "$as_me:$LINENO: result: $_am_result" >&5
3550echo "${ECHO_T}$_am_result" >&6; }
3551rm -f confinc confmf
3552
3553# Check whether --enable-dependency-tracking was given.
3554if test "${enable_dependency_tracking+set}" = set; then
3555 enableval=$enable_dependency_tracking;
3556fi
3557
3558if test "x$enable_dependency_tracking" != xno; then
3559 am_depcomp="$ac_aux_dir/depcomp"
3560 AMDEPBACKSLASH='\'
3561fi
3562 if test "x$enable_dependency_tracking" != xno; then
3563 AMDEP_TRUE=
3564 AMDEP_FALSE='#'
3565else
3566 AMDEP_TRUE='#'
3567 AMDEP_FALSE=
3568fi
3569
3570
3571
3572depcc="$CC" am_compiler_list=
3573
3574{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3575echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3576if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3580 # We make a subdir and do the tests there. Otherwise we can end up
3581 # making bogus files that we don't know about and never remove. For
3582 # instance it was reported that on HP-UX the gcc test will end up
3583 # making a dummy file named `D' -- because `-MD' means `put the output
3584 # in D'.
3585 mkdir conftest.dir
3586 # Copy depcomp to subdir because otherwise we won't find it if we're
3587 # using a relative directory.
3588 cp "$am_depcomp" conftest.dir
3589 cd conftest.dir
3590 # We will build objects and dependencies in a subdirectory because
3591 # it helps to detect inapplicable dependency modes. For instance
3592 # both Tru64's cc and ICC support -MD to output dependencies as a
3593 # side effect of compilation, but ICC will put the dependencies in
3594 # the current directory while Tru64 will put them in the object
3595 # directory.
3596 mkdir sub
3597
3598 am_cv_CC_dependencies_compiler_type=none
3599 if test "$am_compiler_list" = ""; then
3600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3601 fi
3602 for depmode in $am_compiler_list; do
3603 # Setup a source with many dependencies, because some compilers
3604 # like to wrap large dependency lists on column 80 (with \), and
3605 # we should not choose a depcomp mode which is confused by this.
3606 #
3607 # We need to recreate these files for each test, as the compiler may
3608 # overwrite some of them when testing with obscure command lines.
3609 # This happens at least with the AIX C compiler.
3610 : > sub/conftest.c
3611 for i in 1 2 3 4 5 6; do
3612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3613 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3614 # Solaris 8's {/usr,}/bin/sh.
3615 touch sub/conftst$i.h
3616 done
3617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3618
3619 case $depmode in
3620 nosideeffect)
3621 # after this tag, mechanisms are not by side-effect, so they'll
3622 # only be used when explicitly requested
3623 if test "x$enable_dependency_tracking" = xyes; then
3624 continue
3625 else
3626 break
3627 fi
3628 ;;
3629 none) break ;;
3630 esac
3631 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3632 # mode. It turns out that the SunPro C++ compiler does not properly
3633 # handle `-M -o', and we need to detect this.
3634 if depmode=$depmode \
3635 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3636 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3637 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3638 >/dev/null 2>conftest.err &&
3639 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3641 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3643 # icc doesn't choke on unknown options, it will just issue warnings
3644 # or remarks (even with -Werror). So we grep stderr for any message
3645 # that says an option was ignored or not supported.
3646 # When given -MP, icc 7.0 and 7.1 complain thusly:
3647 # icc: Command line warning: ignoring option '-M'; no argument required
3648 # The diagnosis changed in icc 8.0:
3649 # icc: Command line remark: option '-MP' not supported
3650 if (grep 'ignoring option' conftest.err ||
3651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3652 am_cv_CC_dependencies_compiler_type=$depmode
3653 break
3654 fi
3655 fi
3656 done
3657
3658 cd ..
3659 rm -rf conftest.dir
3660else
3661 am_cv_CC_dependencies_compiler_type=none
3662fi
3663
3664fi
3665{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3666echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3667CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3668
3669 if
3670 test "x$enable_dependency_tracking" != xno \
3671 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3672 am__fastdepCC_TRUE=
3673 am__fastdepCC_FALSE='#'
3674else
3675 am__fastdepCC_TRUE='#'
3676 am__fastdepCC_FALSE=
3677fi
3678
3679
3680ac_ext=cpp
3681ac_cpp='$CXXCPP $CPPFLAGS'
3682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685if test -z "$CXX"; then
3686 if test -n "$CCC"; then
3687 CXX=$CCC
3688 else
3689 if test -n "$ac_tool_prefix"; then
3690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3691 do
3692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3696if test "${ac_cv_prog_CXX+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699 if test -n "$CXX"; then
3700 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3701else
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3712 fi
3713done
3714done
3715IFS=$as_save_IFS
3716
3717fi
3718fi
3719CXX=$ac_cv_prog_CXX
3720if test -n "$CXX"; then
3721 { echo "$as_me:$LINENO: result: $CXX" >&5
3722echo "${ECHO_T}$CXX" >&6; }
3723else
3724 { echo "$as_me:$LINENO: result: no" >&5
3725echo "${ECHO_T}no" >&6; }
3726fi
3727
3728
3729 test -n "$CXX" && break
3730 done
3731fi
3732if test -z "$CXX"; then
3733 ac_ct_CXX=$CXX
3734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3735do
3736 # Extract the first word of "$ac_prog", so it can be a program name with args.
3737set dummy $ac_prog; ac_word=$2
3738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3740if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 if test -n "$ac_ct_CXX"; then
3744 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3745else
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_ac_ct_CXX="$ac_prog"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3756 fi
3757done
3758done
3759IFS=$as_save_IFS
3760
3761fi
3762fi
3763ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3764if test -n "$ac_ct_CXX"; then
3765 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3766echo "${ECHO_T}$ac_ct_CXX" >&6; }
3767else
3768 { echo "$as_me:$LINENO: result: no" >&5
3769echo "${ECHO_T}no" >&6; }
3770fi
3771
3772
3773 test -n "$ac_ct_CXX" && break
3774done
3775
3776 if test "x$ac_ct_CXX" = x; then
3777 CXX="g++"
3778 else
3779 case $cross_compiling:$ac_tool_warned in
3780yes:)
3781{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3782whose name does not start with the host triplet. If you think this
3783configuration is useful to you, please write to autoconf@gnu.org." >&5
3784echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3785whose name does not start with the host triplet. If you think this
3786configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3787ac_tool_warned=yes ;;
3788esac
3789 CXX=$ac_ct_CXX
3790 fi
3791fi
3792
3793 fi
3794fi
3795# Provide some information about the compiler.
3796echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3797ac_compiler=`set X $ac_compile; echo $2`
3798{ (ac_try="$ac_compiler --version >&5"
3799case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802esac
3803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compiler --version >&5") 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }
3808{ (ac_try="$ac_compiler -v >&5"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_compiler -v >&5") 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }
3818{ (ac_try="$ac_compiler -V >&5"
3819case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822esac
3823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compiler -V >&5") 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }
3828
3829{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3830echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3831if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834 cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
3840
3841int
3842main ()
3843{
3844#ifndef __GNUC__
3845 choke me
3846#endif
3847
3848 ;
3849 return 0;
3850}
3851_ACEOF
3852rm -f conftest.$ac_objext
3853if { (ac_try="$ac_compile"
3854case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857esac
3858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_compile") 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && {
3866 test -z "$ac_cxx_werror_flag" ||
3867 test ! -s conftest.err
3868 } && test -s conftest.$ac_objext; then
3869 ac_compiler_gnu=yes
3870else
3871 echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 ac_compiler_gnu=no
3875fi
3876
3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3879
3880fi
3881{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3882echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3883GXX=`test $ac_compiler_gnu = yes && echo yes`
3884ac_test_CXXFLAGS=${CXXFLAGS+set}
3885ac_save_CXXFLAGS=$CXXFLAGS
3886{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3887echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3888if test "${ac_cv_prog_cxx_g+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3892 ac_cxx_werror_flag=yes
3893 ac_cv_prog_cxx_g=no
3894 CXXFLAGS="-g"
3895 cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
3901
3902int
3903main ()
3904{
3905
3906 ;
3907 return 0;
3908}
3909_ACEOF
3910rm -f conftest.$ac_objext
3911if { (ac_try="$ac_compile"
3912case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915esac
3916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_compile") 2>conftest.er1
3918 ac_status=$?
3919 grep -v '^ *+' conftest.er1 >conftest.err
3920 rm -f conftest.er1
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } && {
3924 test -z "$ac_cxx_werror_flag" ||
3925 test ! -s conftest.err
3926 } && test -s conftest.$ac_objext; then
3927 ac_cv_prog_cxx_g=yes
3928else
3929 echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 CXXFLAGS=""
3933 cat >conftest.$ac_ext <<_ACEOF
3934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
3938/* end confdefs.h. */
3939
3940int
3941main ()
3942{
3943
3944 ;
3945 return 0;
3946}
3947_ACEOF
3948rm -f conftest.$ac_objext
3949if { (ac_try="$ac_compile"
3950case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953esac
3954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_compile") 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } && {
3962 test -z "$ac_cxx_werror_flag" ||
3963 test ! -s conftest.err
3964 } && test -s conftest.$ac_objext; then
3965 :
3966else
3967 echo "$as_me: failed program was:" >&5
3968sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3971 CXXFLAGS="-g"
3972 cat >conftest.$ac_ext <<_ACEOF
3973/* confdefs.h. */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h. */
3978
3979int
3980main ()
3981{
3982
3983 ;
3984 return 0;
3985}
3986_ACEOF
3987rm -f conftest.$ac_objext
3988if { (ac_try="$ac_compile"
3989case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992esac
3993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_compile") 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && {
4001 test -z "$ac_cxx_werror_flag" ||
4002 test ! -s conftest.err
4003 } && test -s conftest.$ac_objext; then
4004 ac_cv_prog_cxx_g=yes
4005else
4006 echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009
4010fi
4011
4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013fi
4014
4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016fi
4017
4018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4020fi
4021{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4022echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4023if test "$ac_test_CXXFLAGS" = set; then
4024 CXXFLAGS=$ac_save_CXXFLAGS
4025elif test $ac_cv_prog_cxx_g = yes; then
4026 if test "$GXX" = yes; then
4027 CXXFLAGS="-g -O2"
4028 else
4029 CXXFLAGS="-g"
4030 fi
4031else
4032 if test "$GXX" = yes; then
4033 CXXFLAGS="-O2"
4034 else
4035 CXXFLAGS=
4036 fi
4037fi
4038ac_ext=c
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044depcc="$CXX" am_compiler_list=
4045
4046{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4047echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4048if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050else
4051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4052 # We make a subdir and do the tests there. Otherwise we can end up
4053 # making bogus files that we don't know about and never remove. For
4054 # instance it was reported that on HP-UX the gcc test will end up
4055 # making a dummy file named `D' -- because `-MD' means `put the output
4056 # in D'.
4057 mkdir conftest.dir
4058 # Copy depcomp to subdir because otherwise we won't find it if we're
4059 # using a relative directory.
4060 cp "$am_depcomp" conftest.dir
4061 cd conftest.dir
4062 # We will build objects and dependencies in a subdirectory because
4063 # it helps to detect inapplicable dependency modes. For instance
4064 # both Tru64's cc and ICC support -MD to output dependencies as a
4065 # side effect of compilation, but ICC will put the dependencies in
4066 # the current directory while Tru64 will put them in the object
4067 # directory.
4068 mkdir sub
4069
4070 am_cv_CXX_dependencies_compiler_type=none
4071 if test "$am_compiler_list" = ""; then
4072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4073 fi
4074 for depmode in $am_compiler_list; do
4075 # Setup a source with many dependencies, because some compilers
4076 # like to wrap large dependency lists on column 80 (with \), and
4077 # we should not choose a depcomp mode which is confused by this.
4078 #
4079 # We need to recreate these files for each test, as the compiler may
4080 # overwrite some of them when testing with obscure command lines.
4081 # This happens at least with the AIX C compiler.
4082 : > sub/conftest.c
4083 for i in 1 2 3 4 5 6; do
4084 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4085 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4086 # Solaris 8's {/usr,}/bin/sh.
4087 touch sub/conftst$i.h
4088 done
4089 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4090
4091 case $depmode in
4092 nosideeffect)
4093 # after this tag, mechanisms are not by side-effect, so they'll
4094 # only be used when explicitly requested
4095 if test "x$enable_dependency_tracking" = xyes; then
4096 continue
4097 else
4098 break
4099 fi
4100 ;;
4101 none) break ;;
4102 esac
4103 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4104 # mode. It turns out that the SunPro C++ compiler does not properly
4105 # handle `-M -o', and we need to detect this.
4106 if depmode=$depmode \
4107 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4109 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4110 >/dev/null 2>conftest.err &&
4111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4113 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4115 # icc doesn't choke on unknown options, it will just issue warnings
4116 # or remarks (even with -Werror). So we grep stderr for any message
4117 # that says an option was ignored or not supported.
4118 # When given -MP, icc 7.0 and 7.1 complain thusly:
4119 # icc: Command line warning: ignoring option '-M'; no argument required
4120 # The diagnosis changed in icc 8.0:
4121 # icc: Command line remark: option '-MP' not supported
4122 if (grep 'ignoring option' conftest.err ||
4123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4124 am_cv_CXX_dependencies_compiler_type=$depmode
4125 break
4126 fi
4127 fi
4128 done
4129
4130 cd ..
4131 rm -rf conftest.dir
4132else
4133 am_cv_CXX_dependencies_compiler_type=none
4134fi
4135
4136fi
4137{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4138echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4139CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4140
4141 if
4142 test "x$enable_dependency_tracking" != xno \
4143 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4144 am__fastdepCXX_TRUE=
4145 am__fastdepCXX_FALSE='#'
4146else
4147 am__fastdepCXX_TRUE='#'
4148 am__fastdepCXX_FALSE=
4149fi
4150
4151
4152# Check whether --enable-shared was given.
4153if test "${enable_shared+set}" = set; then
4154 enableval=$enable_shared; p=${PACKAGE-default}
4155 case $enableval in
4156 yes) enable_shared=yes ;;
4157 no) enable_shared=no ;;
4158 *)
4159 enable_shared=no
4160 # Look at the argument we got. We use all the common list separators.
4161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4162 for pkg in $enableval; do
4163 IFS="$lt_save_ifs"
4164 if test "X$pkg" = "X$p"; then
4165 enable_shared=yes
4166 fi
4167 done
4168 IFS="$lt_save_ifs"
4169 ;;
4170 esac
4171else
4172 enable_shared=yes
4173fi
4174
4175
4176# Check whether --enable-static was given.
4177if test "${enable_static+set}" = set; then
4178 enableval=$enable_static; p=${PACKAGE-default}
4179 case $enableval in
4180 yes) enable_static=yes ;;
4181 no) enable_static=no ;;
4182 *)
4183 enable_static=no
4184 # Look at the argument we got. We use all the common list separators.
4185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4186 for pkg in $enableval; do
4187 IFS="$lt_save_ifs"
4188 if test "X$pkg" = "X$p"; then
4189 enable_static=yes
4190 fi
4191 done
4192 IFS="$lt_save_ifs"
4193 ;;
4194 esac
4195else
4196 enable_static=yes
4197fi
4198
4199
4200# Check whether --enable-fast-install was given.
4201if test "${enable_fast_install+set}" = set; then
4202 enableval=$enable_fast_install; p=${PACKAGE-default}
4203 case $enableval in
4204 yes) enable_fast_install=yes ;;
4205 no) enable_fast_install=no ;;
4206 *)
4207 enable_fast_install=no
4208 # Look at the argument we got. We use all the common list separators.
4209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4210 for pkg in $enableval; do
4211 IFS="$lt_save_ifs"
4212 if test "X$pkg" = "X$p"; then
4213 enable_fast_install=yes
4214 fi
4215 done
4216 IFS="$lt_save_ifs"
4217 ;;
4218 esac
4219else
4220 enable_fast_install=yes
4221fi
4222
4223
4224# Make sure we can run config.sub.
4225$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4226 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4227echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4228 { (exit 1); exit 1; }; }
4229
4230{ echo "$as_me:$LINENO: checking build system type" >&5
4231echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4232if test "${ac_cv_build+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
4235 ac_build_alias=$build_alias
4236test "x$ac_build_alias" = x &&
4237 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4238test "x$ac_build_alias" = x &&
4239 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4240echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4241 { (exit 1); exit 1; }; }
4242ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4243 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4244echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4245 { (exit 1); exit 1; }; }
4246
4247fi
4248{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4249echo "${ECHO_T}$ac_cv_build" >&6; }
4250case $ac_cv_build in
4251*-*-*) ;;
4252*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4253echo "$as_me: error: invalid value of canonical build" >&2;}
4254 { (exit 1); exit 1; }; };;
4255esac
4256build=$ac_cv_build
4257ac_save_IFS=$IFS; IFS='-'
4258set x $ac_cv_build
4259shift
4260build_cpu=$1
4261build_vendor=$2
4262shift; shift
4263# Remember, the first character of IFS is used to create $*,
4264# except with old shells:
4265build_os=$*
4266IFS=$ac_save_IFS
4267case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4268
4269
4270{ echo "$as_me:$LINENO: checking host system type" >&5
4271echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4272if test "${ac_cv_host+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275 if test "x$host_alias" = x; then
4276 ac_cv_host=$ac_cv_build
4277else
4278 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4279 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4280echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4281 { (exit 1); exit 1; }; }
4282fi
4283
4284fi
4285{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4286echo "${ECHO_T}$ac_cv_host" >&6; }
4287case $ac_cv_host in
4288*-*-*) ;;
4289*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4290echo "$as_me: error: invalid value of canonical host" >&2;}
4291 { (exit 1); exit 1; }; };;
4292esac
4293host=$ac_cv_host
4294ac_save_IFS=$IFS; IFS='-'
4295set x $ac_cv_host
4296shift
4297host_cpu=$1
4298host_vendor=$2
4299shift; shift
4300# Remember, the first character of IFS is used to create $*,
4301# except with old shells:
4302host_os=$*
4303IFS=$ac_save_IFS
4304case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4305
4306
4307{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4308echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4309if test "${lt_cv_path_SED+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312 # Loop through the user's path and test for sed and gsed.
4313# Then use that list of sed's as ones to test for truncation.
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for lt_ac_prog in sed gsed; do
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4322 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4323 fi
4324 done
4325 done
4326done
4327IFS=$as_save_IFS
4328lt_ac_max=0
4329lt_ac_count=0
4330# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4331# along with /bin/sed that truncates output.
4332for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4333 test ! -f $lt_ac_sed && continue
4334 cat /dev/null > conftest.in
4335 lt_ac_count=0
4336 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4337 # Check for GNU sed and select it if it is found.
4338 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4339 lt_cv_path_SED=$lt_ac_sed
4340 break
4341 fi
4342 while true; do
4343 cat conftest.in conftest.in >conftest.tmp
4344 mv conftest.tmp conftest.in
4345 cp conftest.in conftest.nl
4346 echo >>conftest.nl
4347 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4348 cmp -s conftest.out conftest.nl || break
4349 # 10000 chars as input seems more than enough
4350 test $lt_ac_count -gt 10 && break
4351 lt_ac_count=`expr $lt_ac_count + 1`
4352 if test $lt_ac_count -gt $lt_ac_max; then
4353 lt_ac_max=$lt_ac_count
4354 lt_cv_path_SED=$lt_ac_sed
4355 fi
4356 done
4357done
4358
4359fi
4360
4361SED=$lt_cv_path_SED
4362
4363{ echo "$as_me:$LINENO: result: $SED" >&5
4364echo "${ECHO_T}$SED" >&6; }
4365
4366{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4367echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4368if test "${ac_cv_path_GREP+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371 # Extract the first word of "grep ggrep" to use in msg output
4372if test -z "$GREP"; then
4373set dummy grep ggrep; ac_prog_name=$2
4374if test "${ac_cv_path_GREP+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
4377 ac_path_GREP_found=false
4378# Loop through the user's path and test for each of PROGNAME-LIST
4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_prog in grep ggrep; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4388 # Check for GNU ac_path_GREP and select it if it is found.
4389 # Check for GNU $ac_path_GREP
4390case `"$ac_path_GREP" --version 2>&1` in
4391*GNU*)
4392 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4393*)
4394 ac_count=0
4395 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4396 while :
4397 do
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 echo 'GREP' >> "conftest.nl"
4402 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404 ac_count=`expr $ac_count + 1`
4405 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_GREP="$ac_path_GREP"
4408 ac_path_GREP_max=$ac_count
4409 fi
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4412 done
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414esac
4415
4416
4417 $ac_path_GREP_found && break 3
4418 done
4419done
4420
4421done
4422IFS=$as_save_IFS
4423
4424
4425fi
4426
4427GREP="$ac_cv_path_GREP"
4428if test -z "$GREP"; then
4429 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4430echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4431 { (exit 1); exit 1; }; }
4432fi
4433
4434else
4435 ac_cv_path_GREP=$GREP
4436fi
4437
4438
4439fi
4440{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4441echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4442 GREP="$ac_cv_path_GREP"
4443
4444
4445{ echo "$as_me:$LINENO: checking for egrep" >&5
4446echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4447if test "${ac_cv_path_EGREP+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4451 then ac_cv_path_EGREP="$GREP -E"
4452 else
4453 # Extract the first word of "egrep" to use in msg output
4454if test -z "$EGREP"; then
4455set dummy egrep; ac_prog_name=$2
4456if test "${ac_cv_path_EGREP+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459 ac_path_EGREP_found=false
4460# Loop through the user's path and test for each of PROGNAME-LIST
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in egrep; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4470 # Check for GNU ac_path_EGREP and select it if it is found.
4471 # Check for GNU $ac_path_EGREP
4472case `"$ac_path_EGREP" --version 2>&1` in
4473*GNU*)
4474 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4475*)
4476 ac_count=0
4477 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4478 while :
4479 do
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 echo 'EGREP' >> "conftest.nl"
4484 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 ac_count=`expr $ac_count + 1`
4487 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_EGREP="$ac_path_EGREP"
4490 ac_path_EGREP_max=$ac_count
4491 fi
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496esac
4497
4498
4499 $ac_path_EGREP_found && break 3
4500 done
4501done
4502
4503done
4504IFS=$as_save_IFS
4505
4506
4507fi
4508
4509EGREP="$ac_cv_path_EGREP"
4510if test -z "$EGREP"; then
4511 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4512echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4513 { (exit 1); exit 1; }; }
4514fi
4515
4516else
4517 ac_cv_path_EGREP=$EGREP
4518fi
4519
4520
4521 fi
4522fi
4523{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4524echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4525 EGREP="$ac_cv_path_EGREP"
4526
4527
4528
4529# Check whether --with-gnu-ld was given.
4530if test "${with_gnu_ld+set}" = set; then
4531 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4532else
4533 with_gnu_ld=no
4534fi
4535
4536ac_prog=ld
4537if test "$GCC" = yes; then
4538 # Check if gcc -print-prog-name=ld gives a path.
4539 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4540echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4541 case $host in
4542 *-*-mingw*)
4543 # gcc leaves a trailing carriage return which upsets mingw
4544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4545 *)
4546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4547 esac
4548 case $ac_prog in
4549 # Accept absolute paths.
4550 [\\/]* | ?:[\\/]*)
4551 re_direlt='/[^/][^/]*/\.\./'
4552 # Canonicalize the pathname of ld
4553 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4554 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4555 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4556 done
4557 test -z "$LD" && LD="$ac_prog"
4558 ;;
4559 "")
4560 # If it fails, then pretend we aren't using GCC.
4561 ac_prog=ld
4562 ;;
4563 *)
4564 # If it is relative, then search for the first ld in PATH.
4565 with_gnu_ld=unknown
4566 ;;
4567 esac
4568elif test "$with_gnu_ld" = yes; then
4569 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4570echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4571else
4572 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4573echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4574fi
4575if test "${lt_cv_path_LD+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578 if test -z "$LD"; then
4579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4580 for ac_dir in $PATH; do
4581 IFS="$lt_save_ifs"
4582 test -z "$ac_dir" && ac_dir=.
4583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4584 lt_cv_path_LD="$ac_dir/$ac_prog"
4585 # Check to see if the program is GNU ld. I'd rather use --version,
4586 # but apparently some variants of GNU ld only accept -v.
4587 # Break only if it was the GNU/non-GNU ld that we prefer.
4588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4589 *GNU* | *'with BFD'*)
4590 test "$with_gnu_ld" != no && break
4591 ;;
4592 *)
4593 test "$with_gnu_ld" != yes && break
4594 ;;
4595 esac
4596 fi
4597 done
4598 IFS="$lt_save_ifs"
4599else
4600 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4601fi
4602fi
4603
4604LD="$lt_cv_path_LD"
4605if test -n "$LD"; then
4606 { echo "$as_me:$LINENO: result: $LD" >&5
4607echo "${ECHO_T}$LD" >&6; }
4608else
4609 { echo "$as_me:$LINENO: result: no" >&5
4610echo "${ECHO_T}no" >&6; }
4611fi
4612test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4613echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4614 { (exit 1); exit 1; }; }
4615{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4616echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4617if test "${lt_cv_prog_gnu_ld+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619else
4620 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4621case `$LD -v 2>&1 </dev/null` in
4622*GNU* | *'with BFD'*)
4623 lt_cv_prog_gnu_ld=yes
4624 ;;
4625*)
4626 lt_cv_prog_gnu_ld=no
4627 ;;
4628esac
4629fi
4630{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4631echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4632with_gnu_ld=$lt_cv_prog_gnu_ld
4633
4634
4635{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4636echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4637if test "${lt_cv_ld_reload_flag+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640 lt_cv_ld_reload_flag='-r'
4641fi
4642{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4643echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4644reload_flag=$lt_cv_ld_reload_flag
4645case $reload_flag in
4646"" | " "*) ;;
4647*) reload_flag=" $reload_flag" ;;
4648esac
4649reload_cmds='$LD$reload_flag -o $output$reload_objs'
4650case $host_os in
4651 darwin*)
4652 if test "$GCC" = yes; then
4653 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4654 else
4655 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4656 fi
4657 ;;
4658esac
4659
4660{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4661echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4662if test "${lt_cv_path_NM+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665 if test -n "$NM"; then
4666 # Let the user override the test.
4667 lt_cv_path_NM="$NM"
4668else
4669 lt_nm_to_check="${ac_tool_prefix}nm"
4670 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4671 lt_nm_to_check="$lt_nm_to_check nm"
4672 fi
4673 for lt_tmp_nm in $lt_nm_to_check; do
4674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4675 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4676 IFS="$lt_save_ifs"
4677 test -z "$ac_dir" && ac_dir=.
4678 tmp_nm="$ac_dir/$lt_tmp_nm"
4679 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4680 # Check to see if the nm accepts a BSD-compat flag.
4681 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4682 # nm: unknown option "B" ignored
4683 # Tru64's nm complains that /dev/null is an invalid object file
4684 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4685 */dev/null* | *'Invalid file or object type'*)
4686 lt_cv_path_NM="$tmp_nm -B"
4687 break
4688 ;;
4689 *)
4690 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4691 */dev/null*)
4692 lt_cv_path_NM="$tmp_nm -p"
4693 break
4694 ;;
4695 *)
4696 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4697 continue # so that we can try to find one that supports BSD flags
4698 ;;
4699 esac
4700 ;;
4701 esac
4702 fi
4703 done
4704 IFS="$lt_save_ifs"
4705 done
4706 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4707fi
4708fi
4709{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4710echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4711NM="$lt_cv_path_NM"
4712
4713{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4714echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4715LN_S=$as_ln_s
4716if test "$LN_S" = "ln -s"; then
4717 { echo "$as_me:$LINENO: result: yes" >&5
4718echo "${ECHO_T}yes" >&6; }
4719else
4720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4721echo "${ECHO_T}no, using $LN_S" >&6; }
4722fi
4723
4724{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4725echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4726if test "${lt_cv_deplibs_check_method+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729 lt_cv_file_magic_cmd='$MAGIC_CMD'
4730lt_cv_file_magic_test_file=
4731lt_cv_deplibs_check_method='unknown'
4732# Need to set the preceding variable on all platforms that support
4733# interlibrary dependencies.
4734# 'none' -- dependencies not supported.
4735# `unknown' -- same as none, but documents that we really don't know.
4736# 'pass_all' -- all dependencies passed with no checks.
4737# 'test_compile' -- check by making test program.
4738# 'file_magic [[regex]]' -- check by looking for files in library path
4739# which responds to the $file_magic_cmd with a given extended regex.
4740# If you have `file' or equivalent on your system and you're not sure
4741# whether `pass_all' will *always* work, you probably want this one.
4742
4743case $host_os in
4744aix[4-9]*)
4745 lt_cv_deplibs_check_method=pass_all
4746 ;;
4747
4748beos*)
4749 lt_cv_deplibs_check_method=pass_all
4750 ;;
4751
4752bsdi[45]*)
4753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4754 lt_cv_file_magic_cmd='/usr/bin/file -L'
4755 lt_cv_file_magic_test_file=/shlib/libc.so
4756 ;;
4757
4758cygwin*)
4759 # func_win32_libid is a shell function defined in ltmain.sh
4760 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4761 lt_cv_file_magic_cmd='func_win32_libid'
4762 ;;
4763
4764mingw* | pw32*)
4765 # Base MSYS/MinGW do not provide the 'file' command needed by
4766 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4767 # unless we find 'file', for example because we are cross-compiling.
4768 if ( file / ) >/dev/null 2>&1; then
4769 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4770 lt_cv_file_magic_cmd='func_win32_libid'
4771 else
4772 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4773 lt_cv_file_magic_cmd='$OBJDUMP -f'
4774 fi
4775 ;;
4776
4777darwin* | rhapsody*)
4778 lt_cv_deplibs_check_method=pass_all
4779 ;;
4780
4781freebsd* | dragonfly*)
4782 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4783 case $host_cpu in
4784 i*86 )
4785 # Not sure whether the presence of OpenBSD here was a mistake.
4786 # Let's accept both of them until this is cleared up.
4787 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4788 lt_cv_file_magic_cmd=/usr/bin/file
4789 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4790 ;;
4791 esac
4792 else
4793 lt_cv_deplibs_check_method=pass_all
4794 fi
4795 ;;
4796
4797gnu*)
4798 lt_cv_deplibs_check_method=pass_all
4799 ;;
4800
4801hpux10.20* | hpux11*)
4802 lt_cv_file_magic_cmd=/usr/bin/file
4803 case $host_cpu in
4804 ia64*)
4805 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4806 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4807 ;;
4808 hppa*64*)
4809 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]'
4810 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4811 ;;
4812 *)
4813 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4814 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4815 ;;
4816 esac
4817 ;;
4818
4819interix[3-9]*)
4820 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4822 ;;
4823
4824irix5* | irix6* | nonstopux*)
4825 case $LD in
4826 *-32|*"-32 ") libmagic=32-bit;;
4827 *-n32|*"-n32 ") libmagic=N32;;
4828 *-64|*"-64 ") libmagic=64-bit;;
4829 *) libmagic=never-match;;
4830 esac
4831 lt_cv_deplibs_check_method=pass_all
4832 ;;
4833
4834# This must be Linux ELF.
4835linux* | k*bsd*-gnu)
4836 lt_cv_deplibs_check_method=pass_all
4837 ;;
4838
4839netbsd* | netbsdelf*-gnu)
4840 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4842 else
4843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4844 fi
4845 ;;
4846
4847newos6*)
4848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4849 lt_cv_file_magic_cmd=/usr/bin/file
4850 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4851 ;;
4852
4853nto-qnx*)
4854 lt_cv_deplibs_check_method=unknown
4855 ;;
4856
4857openbsd*)
4858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4860 else
4861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4862 fi
4863 ;;
4864
4865osf3* | osf4* | osf5*)
4866 lt_cv_deplibs_check_method=pass_all
4867 ;;
4868
4869rdos*)
4870 lt_cv_deplibs_check_method=pass_all
4871 ;;
4872
4873solaris*)
4874 lt_cv_deplibs_check_method=pass_all
4875 ;;
4876
4877sysv4 | sysv4.3*)
4878 case $host_vendor in
4879 motorola)
4880 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]'
4881 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4882 ;;
4883 ncr)
4884 lt_cv_deplibs_check_method=pass_all
4885 ;;
4886 sequent)
4887 lt_cv_file_magic_cmd='/bin/file'
4888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4889 ;;
4890 sni)
4891 lt_cv_file_magic_cmd='/bin/file'
4892 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4893 lt_cv_file_magic_test_file=/lib/libc.so
4894 ;;
4895 siemens)
4896 lt_cv_deplibs_check_method=pass_all
4897 ;;
4898 pc)
4899 lt_cv_deplibs_check_method=pass_all
4900 ;;
4901 esac
4902 ;;
4903
4904sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4905 lt_cv_deplibs_check_method=pass_all
4906 ;;
4907esac
4908
4909fi
4910{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4911echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4912file_magic_cmd=$lt_cv_file_magic_cmd
4913deplibs_check_method=$lt_cv_deplibs_check_method
4914test -z "$deplibs_check_method" && deplibs_check_method=unknown
4915
4916
4917
4918
4919# If no C compiler was specified, use CC.
4920LTCC=${LTCC-"$CC"}
4921
4922# If no C compiler flags were specified, use CFLAGS.
4923LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4924
4925# Allow CC to be a program name with arguments.
4926compiler=$CC
4927
4928
4929# Check whether --enable-libtool-lock was given.
4930if test "${enable_libtool_lock+set}" = set; then
4931 enableval=$enable_libtool_lock;
4932fi
4933
4934test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4935
4936# Some flags need to be propagated to the compiler or linker for good
4937# libtool support.
4938case $host in
4939ia64-*-hpux*)
4940 # Find out which ABI we are using.
4941 echo 'int i;' > conftest.$ac_ext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943 (eval $ac_compile) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; then
4947 case `/usr/bin/file conftest.$ac_objext` in
4948 *ELF-32*)
4949 HPUX_IA64_MODE="32"
4950 ;;
4951 *ELF-64*)
4952 HPUX_IA64_MODE="64"
4953 ;;
4954 esac
4955 fi
4956 rm -rf conftest*
4957 ;;
4958*-*-irix6*)
4959 # Find out which ABI we are using.
4960 echo '#line 4960 "configure"' > conftest.$ac_ext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; then
4966 if test "$lt_cv_prog_gnu_ld" = yes; then
4967 case `/usr/bin/file conftest.$ac_objext` in
4968 *32-bit*)
4969 LD="${LD-ld} -melf32bsmip"
4970 ;;
4971 *N32*)
4972 LD="${LD-ld} -melf32bmipn32"
4973 ;;
4974 *64-bit*)
4975 LD="${LD-ld} -melf64bmip"
4976 ;;
4977 esac
4978 else
4979 case `/usr/bin/file conftest.$ac_objext` in
4980 *32-bit*)
4981 LD="${LD-ld} -32"
4982 ;;
4983 *N32*)
4984 LD="${LD-ld} -n32"
4985 ;;
4986 *64-bit*)
4987 LD="${LD-ld} -64"
4988 ;;
4989 esac
4990 fi
4991 fi
4992 rm -rf conftest*
4993 ;;
4994
4995x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4996s390*-*linux*|sparc*-*linux*)
4997 # Find out which ABI we are using.
4998 echo 'int i;' > conftest.$ac_ext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; then
5004 case `/usr/bin/file conftest.o` in
5005 *32-bit*)
5006 case $host in
5007 x86_64-*kfreebsd*-gnu)
5008 LD="${LD-ld} -m elf_i386_fbsd"
5009 ;;
5010 x86_64-*linux*)
5011 LD="${LD-ld} -m elf_i386"
5012 ;;
5013 ppc64-*linux*|powerpc64-*linux*)
5014 LD="${LD-ld} -m elf32ppclinux"
5015 ;;
5016 s390x-*linux*)
5017 LD="${LD-ld} -m elf_s390"
5018 ;;
5019 sparc64-*linux*)
5020 LD="${LD-ld} -m elf32_sparc"
5021 ;;
5022 esac
5023 ;;
5024 *64-bit*)
5025 case $host in
5026 x86_64-*kfreebsd*-gnu)
5027 LD="${LD-ld} -m elf_x86_64_fbsd"
5028 ;;
5029 x86_64-*linux*)
5030 LD="${LD-ld} -m elf_x86_64"
5031 ;;
5032 ppc*-*linux*|powerpc*-*linux*)
5033 LD="${LD-ld} -m elf64ppc"
5034 ;;
5035 s390*-*linux*)
5036 LD="${LD-ld} -m elf64_s390"
5037 ;;
5038 sparc*-*linux*)
5039 LD="${LD-ld} -m elf64_sparc"
5040 ;;
5041 esac
5042 ;;
5043 esac
5044 fi
5045 rm -rf conftest*
5046 ;;
5047
5048*-*-sco3.2v5*)
5049 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5050 SAVE_CFLAGS="$CFLAGS"
5051 CFLAGS="$CFLAGS -belf"
5052 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5053echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5054if test "${lt_cv_cc_needs_belf+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056else
5057 ac_ext=c
5058ac_cpp='$CPP $CPPFLAGS'
5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062
5063 cat >conftest.$ac_ext <<_ACEOF
5064/* confdefs.h. */
5065_ACEOF
5066cat confdefs.h >>conftest.$ac_ext
5067cat >>conftest.$ac_ext <<_ACEOF
5068/* end confdefs.h. */
5069
5070int
5071main ()
5072{
5073
5074 ;
5075 return 0;
5076}
5077_ACEOF
5078rm -f conftest.$ac_objext conftest$ac_exeext
5079if { (ac_try="$ac_link"
5080case "(($ac_try" in
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5083esac
5084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_link") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest$ac_exeext &&
5095 $as_test_x conftest$ac_exeext; then
5096 lt_cv_cc_needs_belf=yes
5097else
5098 echo "$as_me: failed program was:" >&5
5099sed 's/^/| /' conftest.$ac_ext >&5
5100
5101 lt_cv_cc_needs_belf=no
5102fi
5103
5104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5105 conftest$ac_exeext conftest.$ac_ext
5106 ac_ext=c
5107ac_cpp='$CPP $CPPFLAGS'
5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112fi
5113{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5114echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5115 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5116 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5117 CFLAGS="$SAVE_CFLAGS"
5118 fi
5119 ;;
5120sparc*-*solaris*)
5121 # Find out which ABI we are using.
5122 echo 'int i;' > conftest.$ac_ext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5124 (eval $ac_compile) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; then
5128 case `/usr/bin/file conftest.o` in
5129 *64-bit*)
5130 case $lt_cv_prog_gnu_ld in
5131 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5132 *)
5133 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5134 LD="${LD-ld} -64"
5135 fi
5136 ;;
5137 esac
5138 ;;
5139 esac
5140 fi
5141 rm -rf conftest*
5142 ;;
5143
5144
5145esac
5146
5147need_locks="$enable_libtool_lock"
5148
5149
5150ac_ext=c
5151ac_cpp='$CPP $CPPFLAGS'
5152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5156echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5157# On Suns, sometimes $CPP names a directory.
5158if test -n "$CPP" && test -d "$CPP"; then
5159 CPP=
5160fi
5161if test -z "$CPP"; then
5162 if test "${ac_cv_prog_CPP+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 # Double quotes because CPP needs to be expanded
5166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5167 do
5168 ac_preproc_ok=false
5169for ac_c_preproc_warn_flag in '' yes
5170do
5171 # Use a header file that comes with gcc, so configuring glibc
5172 # with a fresh cross-compiler works.
5173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5174 # <limits.h> exists even on freestanding compilers.
5175 # On the NeXT, cc -E runs the code through the compiler's parser,
5176 # not just through cpp. "Syntax error" is here to catch this case.
5177 cat >conftest.$ac_ext <<_ACEOF
5178/* confdefs.h. */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h. */
5183#ifdef __STDC__
5184# include <limits.h>
5185#else
5186# include <assert.h>
5187#endif
5188 Syntax error
5189_ACEOF
5190if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
5197 ac_status=$?
5198 grep -v '^ *+' conftest.er1 >conftest.err
5199 rm -f conftest.er1
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } >/dev/null && {
5203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5204 test ! -s conftest.err
5205 }; then
5206 :
5207else
5208 echo "$as_me: failed program was:" >&5
5209sed 's/^/| /' conftest.$ac_ext >&5
5210
5211 # Broken: fails on valid input.
5212continue
5213fi
5214
5215rm -f conftest.err conftest.$ac_ext
5216
5217 # OK, works on sane cases. Now check whether nonexistent headers
5218 # can be detected and how.
5219 cat >conftest.$ac_ext <<_ACEOF
5220/* confdefs.h. */
5221_ACEOF
5222cat confdefs.h >>conftest.$ac_ext
5223cat >>conftest.$ac_ext <<_ACEOF
5224/* end confdefs.h. */
5225#include <ac_nonexistent.h>
5226_ACEOF
5227if { (ac_try="$ac_cpp conftest.$ac_ext"
5228case "(($ac_try" in
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5231esac
5232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } >/dev/null && {
5240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5241 test ! -s conftest.err
5242 }; then
5243 # Broken: success on invalid input.
5244continue
5245else
5246 echo "$as_me: failed program was:" >&5
5247sed 's/^/| /' conftest.$ac_ext >&5
5248
5249 # Passes both tests.
5250ac_preproc_ok=:
5251break
5252fi
5253
5254rm -f conftest.err conftest.$ac_ext
5255
5256done
5257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5258rm -f conftest.err conftest.$ac_ext
5259if $ac_preproc_ok; then
5260 break
5261fi
5262
5263 done
5264 ac_cv_prog_CPP=$CPP
5265
5266fi
5267 CPP=$ac_cv_prog_CPP
5268else
5269 ac_cv_prog_CPP=$CPP
5270fi
5271{ echo "$as_me:$LINENO: result: $CPP" >&5
5272echo "${ECHO_T}$CPP" >&6; }
5273ac_preproc_ok=false
5274for ac_c_preproc_warn_flag in '' yes
5275do
5276 # Use a header file that comes with gcc, so configuring glibc
5277 # with a fresh cross-compiler works.
5278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5279 # <limits.h> exists even on freestanding compilers.
5280 # On the NeXT, cc -E runs the code through the compiler's parser,
5281 # not just through cpp. "Syntax error" is here to catch this case.
5282 cat >conftest.$ac_ext <<_ACEOF
5283/* confdefs.h. */
5284_ACEOF
5285cat confdefs.h >>conftest.$ac_ext
5286cat >>conftest.$ac_ext <<_ACEOF
5287/* end confdefs.h. */
5288#ifdef __STDC__
5289# include <limits.h>
5290#else
5291# include <assert.h>
5292#endif
5293 Syntax error
5294_ACEOF
5295if { (ac_try="$ac_cpp conftest.$ac_ext"
5296case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299esac
5300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null && {
5308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5309 test ! -s conftest.err
5310 }; then
5311 :
5312else
5313 echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 # Broken: fails on valid input.
5317continue
5318fi
5319
5320rm -f conftest.err conftest.$ac_ext
5321
5322 # OK, works on sane cases. Now check whether nonexistent headers
5323 # can be detected and how.
5324 cat >conftest.$ac_ext <<_ACEOF
5325/* confdefs.h. */
5326_ACEOF
5327cat confdefs.h >>conftest.$ac_ext
5328cat >>conftest.$ac_ext <<_ACEOF
5329/* end confdefs.h. */
5330#include <ac_nonexistent.h>
5331_ACEOF
5332if { (ac_try="$ac_cpp conftest.$ac_ext"
5333case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336esac
5337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null && {
5345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5347 }; then
5348 # Broken: success on invalid input.
5349continue
5350else
5351 echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 # Passes both tests.
5355ac_preproc_ok=:
5356break
5357fi
5358
5359rm -f conftest.err conftest.$ac_ext
5360
5361done
5362# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5363rm -f conftest.err conftest.$ac_ext
5364if $ac_preproc_ok; then
5365 :
5366else
5367 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5368See \`config.log' for more details." >&5
5369echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5370See \`config.log' for more details." >&2;}
5371 { (exit 1); exit 1; }; }
5372fi
5373
5374ac_ext=c
5375ac_cpp='$CPP $CPPFLAGS'
5376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379
5380
5381{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5382echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5383if test "${ac_cv_header_stdc+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385else
5386 cat >conftest.$ac_ext <<_ACEOF
5387/* confdefs.h. */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h. */
5392#include <stdlib.h>
5393#include <stdarg.h>
5394#include <string.h>
5395#include <float.h>
5396
5397int
5398main ()
5399{
5400
5401 ;
5402 return 0;
5403}
5404_ACEOF
5405rm -f conftest.$ac_objext
5406if { (ac_try="$ac_compile"
5407case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410esac
5411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_header_stdc=yes
5423else
5424 echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 ac_cv_header_stdc=no
5428fi
5429
5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431
5432if test $ac_cv_header_stdc = yes; then
5433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5434 cat >conftest.$ac_ext <<_ACEOF
5435/* confdefs.h. */
5436_ACEOF
5437cat confdefs.h >>conftest.$ac_ext
5438cat >>conftest.$ac_ext <<_ACEOF
5439/* end confdefs.h. */
5440#include <string.h>
5441
5442_ACEOF
5443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5444 $EGREP "memchr" >/dev/null 2>&1; then
5445 :
5446else
5447 ac_cv_header_stdc=no
5448fi
5449rm -f conftest*
5450
5451fi
5452
5453if test $ac_cv_header_stdc = yes; then
5454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5455 cat >conftest.$ac_ext <<_ACEOF
5456/* confdefs.h. */
5457_ACEOF
5458cat confdefs.h >>conftest.$ac_ext
5459cat >>conftest.$ac_ext <<_ACEOF
5460/* end confdefs.h. */
5461#include <stdlib.h>
5462
5463_ACEOF
5464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5465 $EGREP "free" >/dev/null 2>&1; then
5466 :
5467else
5468 ac_cv_header_stdc=no
5469fi
5470rm -f conftest*
5471
5472fi
5473
5474if test $ac_cv_header_stdc = yes; then
5475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5476 if test "$cross_compiling" = yes; then
5477 :
5478else
5479 cat >conftest.$ac_ext <<_ACEOF
5480/* confdefs.h. */
5481_ACEOF
5482cat confdefs.h >>conftest.$ac_ext
5483cat >>conftest.$ac_ext <<_ACEOF
5484/* end confdefs.h. */
5485#include <ctype.h>
5486#include <stdlib.h>
5487#if ((' ' & 0x0FF) == 0x020)
5488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5490#else
5491# define ISLOWER(c) \
5492 (('a' <= (c) && (c) <= 'i') \
5493 || ('j' <= (c) && (c) <= 'r') \
5494 || ('s' <= (c) && (c) <= 'z'))
5495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5496#endif
5497
5498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5499int
5500main ()
5501{
5502 int i;
5503 for (i = 0; i < 256; i++)
5504 if (XOR (islower (i), ISLOWER (i))
5505 || toupper (i) != TOUPPER (i))
5506 return 2;
5507 return 0;
5508}
5509_ACEOF
5510rm -f conftest$ac_exeext
5511if { (ac_try="$ac_link"
5512case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_link") 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5521 { (case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524esac
5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_try") 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 :
5531else
5532 echo "$as_me: program exited with status $ac_status" >&5
5533echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
5536( exit $ac_status )
5537ac_cv_header_stdc=no
5538fi
5539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5540fi
5541
5542
5543fi
5544fi
5545{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5546echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5547if test $ac_cv_header_stdc = yes; then
5548
5549cat >>confdefs.h <<\_ACEOF
5550#define STDC_HEADERS 1
5551_ACEOF
5552
5553fi
5554
5555# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5566 inttypes.h stdint.h unistd.h
5567do
5568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5569{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574 cat >conftest.$ac_ext <<_ACEOF
5575/* confdefs.h. */
5576_ACEOF
5577cat confdefs.h >>conftest.$ac_ext
5578cat >>conftest.$ac_ext <<_ACEOF
5579/* end confdefs.h. */
5580$ac_includes_default
5581
5582#include <$ac_header>
5583_ACEOF
5584rm -f conftest.$ac_objext
5585if { (ac_try="$ac_compile"
5586case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589esac
5590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_c_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.$ac_objext; then
5601 eval "$as_ac_Header=yes"
5602else
5603 echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 eval "$as_ac_Header=no"
5607fi
5608
5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610fi
5611ac_res=`eval echo '${'$as_ac_Header'}'`
5612 { echo "$as_me:$LINENO: result: $ac_res" >&5
5613echo "${ECHO_T}$ac_res" >&6; }
5614if test `eval echo '${'$as_ac_Header'}'` = yes; then
5615 cat >>confdefs.h <<_ACEOF
5616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5617_ACEOF
5618
5619fi
5620
5621done
5622
5623
5624
5625for ac_header in dlfcn.h
5626do
5627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633fi
5634ac_res=`eval echo '${'$as_ac_Header'}'`
5635 { echo "$as_me:$LINENO: result: $ac_res" >&5
5636echo "${ECHO_T}$ac_res" >&6; }
5637else
5638 # Is the header compilable?
5639{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5641cat >conftest.$ac_ext <<_ACEOF
5642/* confdefs.h. */
5643_ACEOF
5644cat confdefs.h >>conftest.$ac_ext
5645cat >>conftest.$ac_ext <<_ACEOF
5646/* end confdefs.h. */
5647$ac_includes_default
5648#include <$ac_header>
5649_ACEOF
5650rm -f conftest.$ac_objext
5651if { (ac_try="$ac_compile"
5652case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655esac
5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 ac_header_compiler=yes
5668else
5669 echo "$as_me: failed program was:" >&5
5670sed 's/^/| /' conftest.$ac_ext >&5
5671
5672 ac_header_compiler=no
5673fi
5674
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5677echo "${ECHO_T}$ac_header_compiler" >&6; }
5678
5679# Is the header present?
5680{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5681echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5682cat >conftest.$ac_ext <<_ACEOF
5683/* confdefs.h. */
5684_ACEOF
5685cat confdefs.h >>conftest.$ac_ext
5686cat >>conftest.$ac_ext <<_ACEOF
5687/* end confdefs.h. */
5688#include <$ac_header>
5689_ACEOF
5690if { (ac_try="$ac_cpp conftest.$ac_ext"
5691case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694esac
5695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } >/dev/null && {
5703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5705 }; then
5706 ac_header_preproc=yes
5707else
5708 echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
5711 ac_header_preproc=no
5712fi
5713
5714rm -f conftest.err conftest.$ac_ext
5715{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5716echo "${ECHO_T}$ac_header_preproc" >&6; }
5717
5718# So? What about this header?
5719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5720 yes:no: )
5721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5722echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5724echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5725 ac_header_preproc=yes
5726 ;;
5727 no:yes:* )
5728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5729echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5731echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5733echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5735echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5739echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5740 ( cat <<\_ASBOX
5741## -------------------------------------------- ##
5742## Report this to sebastian.marsching@suphp.org ##
5743## -------------------------------------------- ##
5744_ASBOX
5745 ) | sed "s/^/$as_me: WARNING: /" >&2
5746 ;;
5747esac
5748{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753 eval "$as_ac_Header=\$ac_header_preproc"
5754fi
5755ac_res=`eval echo '${'$as_ac_Header'}'`
5756 { echo "$as_me:$LINENO: result: $ac_res" >&5
5757echo "${ECHO_T}$ac_res" >&6; }
5758
5759fi
5760if test `eval echo '${'$as_ac_Header'}'` = yes; then
5761 cat >>confdefs.h <<_ACEOF
5762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5763_ACEOF
5764
5765fi
5766
5767done
5768
5769
5770
5771if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5772 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5773 (test "X$CXX" != "Xg++"))) ; then
5774 ac_ext=cpp
5775ac_cpp='$CXXCPP $CPPFLAGS'
5776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5779{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5780echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5781if test -z "$CXXCPP"; then
5782 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785 # Double quotes because CXXCPP needs to be expanded
5786 for CXXCPP in "$CXX -E" "/lib/cpp"
5787 do
5788 ac_preproc_ok=false
5789for ac_cxx_preproc_warn_flag in '' yes
5790do
5791 # Use a header file that comes with gcc, so configuring glibc
5792 # with a fresh cross-compiler works.
5793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794 # <limits.h> exists even on freestanding compilers.
5795 # On the NeXT, cc -E runs the code through the compiler's parser,
5796 # not just through cpp. "Syntax error" is here to catch this case.
5797 cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h. */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h. */
5803#ifdef __STDC__
5804# include <limits.h>
5805#else
5806# include <assert.h>
5807#endif
5808 Syntax error
5809_ACEOF
5810if { (ac_try="$ac_cpp conftest.$ac_ext"
5811case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814esac
5815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } >/dev/null && {
5823 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5824 test ! -s conftest.err
5825 }; then
5826 :
5827else
5828 echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 # Broken: fails on valid input.
5832continue
5833fi
5834
5835rm -f conftest.err conftest.$ac_ext
5836
5837 # OK, works on sane cases. Now check whether nonexistent headers
5838 # can be detected and how.
5839 cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
5845#include <ac_nonexistent.h>
5846_ACEOF
5847if { (ac_try="$ac_cpp conftest.$ac_ext"
5848case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } >/dev/null && {
5860 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5861 test ! -s conftest.err
5862 }; then
5863 # Broken: success on invalid input.
5864continue
5865else
5866 echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 # Passes both tests.
5870ac_preproc_ok=:
5871break
5872fi
5873
5874rm -f conftest.err conftest.$ac_ext
5875
5876done
5877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5878rm -f conftest.err conftest.$ac_ext
5879if $ac_preproc_ok; then
5880 break
5881fi
5882
5883 done
5884 ac_cv_prog_CXXCPP=$CXXCPP
5885
5886fi
5887 CXXCPP=$ac_cv_prog_CXXCPP
5888else
5889 ac_cv_prog_CXXCPP=$CXXCPP
5890fi
5891{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5892echo "${ECHO_T}$CXXCPP" >&6; }
5893ac_preproc_ok=false
5894for ac_cxx_preproc_warn_flag in '' yes
5895do
5896 # Use a header file that comes with gcc, so configuring glibc
5897 # with a fresh cross-compiler works.
5898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899 # <limits.h> exists even on freestanding compilers.
5900 # On the NeXT, cc -E runs the code through the compiler's parser,
5901 # not just through cpp. "Syntax error" is here to catch this case.
5902 cat >conftest.$ac_ext <<_ACEOF
5903/* confdefs.h. */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h. */
5908#ifdef __STDC__
5909# include <limits.h>
5910#else
5911# include <assert.h>
5912#endif
5913 Syntax error
5914_ACEOF
5915if { (ac_try="$ac_cpp conftest.$ac_ext"
5916case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919esac
5920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } >/dev/null && {
5928 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5929 test ! -s conftest.err
5930 }; then
5931 :
5932else
5933 echo "$as_me: failed program was:" >&5
5934sed 's/^/| /' conftest.$ac_ext >&5
5935
5936 # Broken: fails on valid input.
5937continue
5938fi
5939
5940rm -f conftest.err conftest.$ac_ext
5941
5942 # OK, works on sane cases. Now check whether nonexistent headers
5943 # can be detected and how.
5944 cat >conftest.$ac_ext <<_ACEOF
5945/* confdefs.h. */
5946_ACEOF
5947cat confdefs.h >>conftest.$ac_ext
5948cat >>conftest.$ac_ext <<_ACEOF
5949/* end confdefs.h. */
5950#include <ac_nonexistent.h>
5951_ACEOF
5952if { (ac_try="$ac_cpp conftest.$ac_ext"
5953case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956esac
5957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } >/dev/null && {
5965 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5966 test ! -s conftest.err
5967 }; then
5968 # Broken: success on invalid input.
5969continue
5970else
5971 echo "$as_me: failed program was:" >&5
5972sed 's/^/| /' conftest.$ac_ext >&5
5973
5974 # Passes both tests.
5975ac_preproc_ok=:
5976break
5977fi
5978
5979rm -f conftest.err conftest.$ac_ext
5980
5981done
5982# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5983rm -f conftest.err conftest.$ac_ext
5984if $ac_preproc_ok; then
5985 :
5986else
5987 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5988See \`config.log' for more details." >&5
5989echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5990See \`config.log' for more details." >&2;}
5991 { (exit 1); exit 1; }; }
5992fi
5993
5994ac_ext=cpp
5995ac_cpp='$CXXCPP $CPPFLAGS'
5996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5999
6000fi
6001
6002
6003ac_ext=f
6004ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6005ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6007if test -n "$ac_tool_prefix"; then
6008 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
6009 do
6010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6011set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6014if test "${ac_cv_prog_F77+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017 if test -n "$F77"; then
6018 ac_cv_prog_F77="$F77" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031done
6032done
6033IFS=$as_save_IFS
6034
6035fi
6036fi
6037F77=$ac_cv_prog_F77
6038if test -n "$F77"; then
6039 { echo "$as_me:$LINENO: result: $F77" >&5
6040echo "${ECHO_T}$F77" >&6; }
6041else
6042 { echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6; }
6044fi
6045
6046
6047 test -n "$F77" && break
6048 done
6049fi
6050if test -z "$F77"; then
6051 ac_ct_F77=$F77
6052 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
6053do
6054 # Extract the first word of "$ac_prog", so it can be a program name with args.
6055set dummy $ac_prog; ac_word=$2
6056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061 if test -n "$ac_ct_F77"; then
6062 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_ac_ct_F77="$ac_prog"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075done
6076done
6077IFS=$as_save_IFS
6078
6079fi
6080fi
6081ac_ct_F77=$ac_cv_prog_ac_ct_F77
6082if test -n "$ac_ct_F77"; then
6083 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6084echo "${ECHO_T}$ac_ct_F77" >&6; }
6085else
6086 { echo "$as_me:$LINENO: result: no" >&5
6087echo "${ECHO_T}no" >&6; }
6088fi
6089
6090
6091 test -n "$ac_ct_F77" && break
6092done
6093
6094 if test "x$ac_ct_F77" = x; then
6095 F77=""
6096 else
6097 case $cross_compiling:$ac_tool_warned in
6098yes:)
6099{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6100whose name does not start with the host triplet. If you think this
6101configuration is useful to you, please write to autoconf@gnu.org." >&5
6102echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6103whose name does not start with the host triplet. If you think this
6104configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6105ac_tool_warned=yes ;;
6106esac
6107 F77=$ac_ct_F77
6108 fi
6109fi
6110
6111
6112# Provide some information about the compiler.
6113echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6114ac_compiler=`set X $ac_compile; echo $2`
6115{ (ac_try="$ac_compiler --version >&5"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_compiler --version >&5") 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }
6125{ (ac_try="$ac_compiler -v >&5"
6126case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129esac
6130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_compiler -v >&5") 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }
6135{ (ac_try="$ac_compiler -V >&5"
6136case "(($ac_try" in
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6139esac
6140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_compiler -V >&5") 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }
6145rm -f a.out
6146
6147# If we don't use `.F' as extension, the preprocessor is not run on the
6148# input file. (Note that this only needs to work for GNU compilers.)
6149ac_save_ext=$ac_ext
6150ac_ext=F
6151{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6152echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6153if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156 cat >conftest.$ac_ext <<_ACEOF
6157 program main
6158#ifndef __GNUC__
6159 choke me
6160#endif
6161
6162 end
6163_ACEOF
6164rm -f conftest.$ac_objext
6165if { (ac_try="$ac_compile"
6166case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169esac
6170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compile") 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_f77_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_objext; then
6181 ac_compiler_gnu=yes
6182else
6183 echo "$as_me: failed program was:" >&5
6184sed 's/^/| /' conftest.$ac_ext >&5
6185
6186 ac_compiler_gnu=no
6187fi
6188
6189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6191
6192fi
6193{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6194echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6195ac_ext=$ac_save_ext
6196ac_test_FFLAGS=${FFLAGS+set}
6197ac_save_FFLAGS=$FFLAGS
6198FFLAGS=
6199{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6200echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6201if test "${ac_cv_prog_f77_g+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203else
6204 FFLAGS=-g
6205cat >conftest.$ac_ext <<_ACEOF
6206 program main
6207
6208 end
6209_ACEOF
6210rm -f conftest.$ac_objext
6211if { (ac_try="$ac_compile"
6212case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215esac
6216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_f77_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
6227 ac_cv_prog_f77_g=yes
6228else
6229 echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232 ac_cv_prog_f77_g=no
6233fi
6234
6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236
6237fi
6238{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6239echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6240if test "$ac_test_FFLAGS" = set; then
6241 FFLAGS=$ac_save_FFLAGS
6242elif test $ac_cv_prog_f77_g = yes; then
6243 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6244 FFLAGS="-g -O2"
6245 else
6246 FFLAGS="-g"
6247 fi
6248else
6249 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6250 FFLAGS="-O2"
6251 else
6252 FFLAGS=
6253 fi
6254fi
6255
6256G77=`test $ac_compiler_gnu = yes && echo yes`
6257ac_ext=c
6258ac_cpp='$CPP $CPPFLAGS'
6259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261ac_compiler_gnu=$ac_cv_c_compiler_gnu
6262
6263
6264
6265# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6266# find the maximum length of command line arguments
6267{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6268echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6269if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
6272 i=0
6273 teststring="ABCD"
6274
6275 case $build_os in
6276 msdosdjgpp*)
6277 # On DJGPP, this test can blow up pretty badly due to problems in libc
6278 # (any single argument exceeding 2000 bytes causes a buffer overrun
6279 # during glob expansion). Even if it were fixed, the result of this
6280 # check would be larger than it should be.
6281 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6282 ;;
6283
6284 gnu*)
6285 # Under GNU Hurd, this test is not required because there is
6286 # no limit to the length of command line arguments.
6287 # Libtool will interpret -1 as no limit whatsoever
6288 lt_cv_sys_max_cmd_len=-1;
6289 ;;
6290
6291 cygwin* | mingw*)
6292 # On Win9x/ME, this test blows up -- it succeeds, but takes
6293 # about 5 minutes as the teststring grows exponentially.
6294 # Worse, since 9x/ME are not pre-emptively multitasking,
6295 # you end up with a "frozen" computer, even though with patience
6296 # the test eventually succeeds (with a max line length of 256k).
6297 # Instead, let's just punt: use the minimum linelength reported by
6298 # all of the supported platforms: 8192 (on NT/2K/XP).
6299 lt_cv_sys_max_cmd_len=8192;
6300 ;;
6301
6302 amigaos*)
6303 # On AmigaOS with pdksh, this test takes hours, literally.
6304 # So we just punt and use a minimum line length of 8192.
6305 lt_cv_sys_max_cmd_len=8192;
6306 ;;
6307
6308 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6309 # This has been around since 386BSD, at least. Likely further.
6310 if test -x /sbin/sysctl; then
6311 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6312 elif test -x /usr/sbin/sysctl; then
6313 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6314 else
6315 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6316 fi
6317 # And add a safety zone
6318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6320 ;;
6321
6322 interix*)
6323 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6324 lt_cv_sys_max_cmd_len=196608
6325 ;;
6326
6327 osf*)
6328 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6329 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6330 # nice to cause kernel panics so lets avoid the loop below.
6331 # First set a reasonable default.
6332 lt_cv_sys_max_cmd_len=16384
6333 #
6334 if test -x /sbin/sysconfig; then
6335 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6336 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6337 esac
6338 fi
6339 ;;
6340 sco3.2v5*)
6341 lt_cv_sys_max_cmd_len=102400
6342 ;;
6343 sysv5* | sco5v6* | sysv4.2uw2*)
6344 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6345 if test -n "$kargmax"; then
6346 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6347 else
6348 lt_cv_sys_max_cmd_len=32768
6349 fi
6350 ;;
6351 *)
6352 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6353 if test -n "$lt_cv_sys_max_cmd_len"; then
6354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6356 else
6357 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6358 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6359 = "XX$teststring") >/dev/null 2>&1 &&
6360 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6361 lt_cv_sys_max_cmd_len=$new_result &&
6362 test $i != 17 # 1/2 MB should be enough
6363 do
6364 i=`expr $i + 1`
6365 teststring=$teststring$teststring
6366 done
6367 teststring=
6368 # Add a significant safety factor because C++ compilers can tack on massive
6369 # amounts of additional arguments before passing them to the linker.
6370 # It appears as though 1/2 is a usable value.
6371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6372 fi
6373 ;;
6374 esac
6375
6376fi
6377
6378if test -n $lt_cv_sys_max_cmd_len ; then
6379 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6380echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6381else
6382 { echo "$as_me:$LINENO: result: none" >&5
6383echo "${ECHO_T}none" >&6; }
6384fi
6385
6386
6387
6388
6389
6390# Check for command to grab the raw symbol name followed by C symbol from nm.
6391{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6392echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6393if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
6396
6397# These are sane defaults that work on at least a few old systems.
6398# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6399
6400# Character class describing NM global symbol codes.
6401symcode='[BCDEGRST]'
6402
6403# Regexp to match symbols that can be accessed directly from C.
6404sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6405
6406# Transform an extracted symbol line into a proper C declaration
6407lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6408
6409# Transform an extracted symbol line into symbol name and symbol address
6410lt_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'"
6411
6412# Define system-specific variables.
6413case $host_os in
6414aix*)
6415 symcode='[BCDT]'
6416 ;;
6417cygwin* | mingw* | pw32*)
6418 symcode='[ABCDGISTW]'
6419 ;;
6420hpux*) # Its linker distinguishes data from code symbols
6421 if test "$host_cpu" = ia64; then
6422 symcode='[ABCDEGRST]'
6423 fi
6424 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6425 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'"
6426 ;;
6427linux* | k*bsd*-gnu)
6428 if test "$host_cpu" = ia64; then
6429 symcode='[ABCDGIRSTW]'
6430 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6431 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'"
6432 fi
6433 ;;
6434irix* | nonstopux*)
6435 symcode='[BCDEGRST]'
6436 ;;
6437osf*)
6438 symcode='[BCDEGQRST]'
6439 ;;
6440solaris*)
6441 symcode='[BDRT]'
6442 ;;
6443sco3.2v5*)
6444 symcode='[DT]'
6445 ;;
6446sysv4.2uw2*)
6447 symcode='[DT]'
6448 ;;
6449sysv5* | sco5v6* | unixware* | OpenUNIX*)
6450 symcode='[ABDT]'
6451 ;;
6452sysv4)
6453 symcode='[DFNSTU]'
6454 ;;
6455esac
6456
6457# Handle CRLF in mingw tool chain
6458opt_cr=
6459case $build_os in
6460mingw*)
6461 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6462 ;;
6463esac
6464
6465# If we're using GNU nm, then use its standard symbol codes.
6466case `$NM -V 2>&1` in
6467*GNU* | *'with BFD'*)
6468 symcode='[ABCDGIRSTW]' ;;
6469esac
6470
6471# Try without a prefix undercore, then with it.
6472for ac_symprfx in "" "_"; do
6473
6474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6475 symxfrm="\\1 $ac_symprfx\\2 \\2"
6476
6477 # Write the raw and C identifiers.
6478 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6479
6480 # Check to see that the pipe works correctly.
6481 pipe_works=no
6482
6483 rm -f conftest*
6484 cat > conftest.$ac_ext <<EOF
6485#ifdef __cplusplus
6486extern "C" {
6487#endif
6488char nm_test_var;
6489void nm_test_func(){}
6490#ifdef __cplusplus
6491}
6492#endif
6493int main(){nm_test_var='a';nm_test_func();return(0);}
6494EOF
6495
6496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6497 (eval $ac_compile) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; then
6501 # Now try to grab the symbols.
6502 nlist=conftest.nm
6503 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6504 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && test -s "$nlist"; then
6508 # Try sorting and uniquifying the output.
6509 if sort "$nlist" | uniq > "$nlist"T; then
6510 mv -f "$nlist"T "$nlist"
6511 else
6512 rm -f "$nlist"T
6513 fi
6514
6515 # Make sure that we snagged all the symbols we need.
6516 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6517 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6518 cat <<EOF > conftest.$ac_ext
6519#ifdef __cplusplus
6520extern "C" {
6521#endif
6522
6523EOF
6524 # Now generate the symbol file.
6525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6526
6527 cat <<EOF >> conftest.$ac_ext
6528#if defined (__STDC__) && __STDC__
6529# define lt_ptr_t void *
6530#else
6531# define lt_ptr_t char *
6532# define const
6533#endif
6534
6535/* The mapping between symbol names and symbols. */
6536const struct {
6537 const char *name;
6538 lt_ptr_t address;
6539}
6540lt_preloaded_symbols[] =
6541{
6542EOF
6543 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6544 cat <<\EOF >> conftest.$ac_ext
6545 {0, (lt_ptr_t) 0}
6546};
6547
6548#ifdef __cplusplus
6549}
6550#endif
6551EOF
6552 # Now try linking the two files.
6553 mv conftest.$ac_objext conftstm.$ac_objext
6554 lt_save_LIBS="$LIBS"
6555 lt_save_CFLAGS="$CFLAGS"
6556 LIBS="conftstm.$ac_objext"
6557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6563 pipe_works=yes
6564 fi
6565 LIBS="$lt_save_LIBS"
6566 CFLAGS="$lt_save_CFLAGS"
6567 else
6568 echo "cannot find nm_test_func in $nlist" >&5
6569 fi
6570 else
6571 echo "cannot find nm_test_var in $nlist" >&5
6572 fi
6573 else
6574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6575 fi
6576 else
6577 echo "$progname: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6579 fi
6580 rm -rf conftest* conftst*
6581
6582 # Do not use the global_symbol_pipe unless it works.
6583 if test "$pipe_works" = yes; then
6584 break
6585 else
6586 lt_cv_sys_global_symbol_pipe=
6587 fi
6588done
6589
6590fi
6591
6592if test -z "$lt_cv_sys_global_symbol_pipe"; then
6593 lt_cv_sys_global_symbol_to_cdecl=
6594fi
6595if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6596 { echo "$as_me:$LINENO: result: failed" >&5
6597echo "${ECHO_T}failed" >&6; }
6598else
6599 { echo "$as_me:$LINENO: result: ok" >&5
6600echo "${ECHO_T}ok" >&6; }
6601fi
6602
6603{ echo "$as_me:$LINENO: checking for objdir" >&5
6604echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6605if test "${lt_cv_objdir+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608 rm -f .libs 2>/dev/null
6609mkdir .libs 2>/dev/null
6610if test -d .libs; then
6611 lt_cv_objdir=.libs
6612else
6613 # MS-DOS does not allow filenames that begin with a dot.
6614 lt_cv_objdir=_libs
6615fi
6616rmdir .libs 2>/dev/null
6617fi
6618{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6619echo "${ECHO_T}$lt_cv_objdir" >&6; }
6620objdir=$lt_cv_objdir
6621
6622
6623
6624
6625
6626case $host_os in
6627aix3*)
6628 # AIX sometimes has problems with the GCC collect2 program. For some
6629 # reason, if we set the COLLECT_NAMES environment variable, the problems
6630 # vanish in a puff of smoke.
6631 if test "X${COLLECT_NAMES+set}" != Xset; then
6632 COLLECT_NAMES=
6633 export COLLECT_NAMES
6634 fi
6635 ;;
6636esac
6637
6638# Sed substitution that helps us do robust quoting. It backslashifies
6639# metacharacters that are still active within double-quoted strings.
6640Xsed='sed -e 1s/^X//'
6641sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6642
6643# Same as above, but do not quote variable references.
6644double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6645
6646# Sed substitution to delay expansion of an escaped shell variable in a
6647# double_quote_subst'ed string.
6648delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6649
6650# Sed substitution to avoid accidental globbing in evaled expressions
6651no_glob_subst='s/\*/\\\*/g'
6652
6653# Constants:
6654rm="rm -f"
6655
6656# Global variables:
6657default_ofile=libtool
6658can_build_shared=yes
6659
6660# All known linkers require a `.a' archive for static linking (except MSVC,
6661# which needs '.lib').
6662libext=a
6663ltmain="$ac_aux_dir/ltmain.sh"
6664ofile="$default_ofile"
6665with_gnu_ld="$lt_cv_prog_gnu_ld"
6666
6667if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6669set dummy ${ac_tool_prefix}ar; ac_word=$2
6670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672if test "${ac_cv_prog_AR+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675 if test -n "$AR"; then
6676 ac_cv_prog_AR="$AR" # Let the user override the test.
6677else
6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_AR="${ac_tool_prefix}ar"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689done
6690done
6691IFS=$as_save_IFS
6692
6693fi
6694fi
6695AR=$ac_cv_prog_AR
6696if test -n "$AR"; then
6697 { echo "$as_me:$LINENO: result: $AR" >&5
6698echo "${ECHO_T}$AR" >&6; }
6699else
6700 { echo "$as_me:$LINENO: result: no" >&5
6701echo "${ECHO_T}no" >&6; }
6702fi
6703
6704
6705fi
6706if test -z "$ac_cv_prog_AR"; then
6707 ac_ct_AR=$AR
6708 # Extract the first word of "ar", so it can be a program name with args.
6709set dummy ar; ac_word=$2
6710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715 if test -n "$ac_ct_AR"; then
6716 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6717else
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_AR="ar"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729done
6730done
6731IFS=$as_save_IFS
6732
6733fi
6734fi
6735ac_ct_AR=$ac_cv_prog_ac_ct_AR
6736if test -n "$ac_ct_AR"; then
6737 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6738echo "${ECHO_T}$ac_ct_AR" >&6; }
6739else
6740 { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
6742fi
6743
6744 if test "x$ac_ct_AR" = x; then
6745 AR="false"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748yes:)
6749{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750whose name does not start with the host triplet. If you think this
6751configuration is useful to you, please write to autoconf@gnu.org." >&5
6752echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753whose name does not start with the host triplet. If you think this
6754configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755ac_tool_warned=yes ;;
6756esac
6757 AR=$ac_ct_AR
6758 fi
6759else
6760 AR="$ac_cv_prog_AR"
6761fi
6762
6763if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6765set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768if test "${ac_cv_prog_RANLIB+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770else
6771 if test -n "$RANLIB"; then
6772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6773else
6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785done
6786done
6787IFS=$as_save_IFS
6788
6789fi
6790fi
6791RANLIB=$ac_cv_prog_RANLIB
6792if test -n "$RANLIB"; then
6793 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6794echo "${ECHO_T}$RANLIB" >&6; }
6795else
6796 { echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6; }
6798fi
6799
6800
6801fi
6802if test -z "$ac_cv_prog_RANLIB"; then
6803 ac_ct_RANLIB=$RANLIB
6804 # Extract the first word of "ranlib", so it can be a program name with args.
6805set dummy ranlib; ac_word=$2
6806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811 if test -n "$ac_ct_RANLIB"; then
6812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6813else
6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_ac_ct_RANLIB="ranlib"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825done
6826done
6827IFS=$as_save_IFS
6828
6829fi
6830fi
6831ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6832if test -n "$ac_ct_RANLIB"; then
6833 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6834echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6835else
6836 { echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6; }
6838fi
6839
6840 if test "x$ac_ct_RANLIB" = x; then
6841 RANLIB=":"
6842 else
6843 case $cross_compiling:$ac_tool_warned in
6844yes:)
6845{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6846whose name does not start with the host triplet. If you think this
6847configuration is useful to you, please write to autoconf@gnu.org." >&5
6848echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6849whose name does not start with the host triplet. If you think this
6850configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6851ac_tool_warned=yes ;;
6852esac
6853 RANLIB=$ac_ct_RANLIB
6854 fi
6855else
6856 RANLIB="$ac_cv_prog_RANLIB"
6857fi
6858
6859if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6861set dummy ${ac_tool_prefix}strip; ac_word=$2
6862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864if test "${ac_cv_prog_STRIP+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867 if test -n "$STRIP"; then
6868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6869else
6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881done
6882done
6883IFS=$as_save_IFS
6884
6885fi
6886fi
6887STRIP=$ac_cv_prog_STRIP
6888if test -n "$STRIP"; then
6889 { echo "$as_me:$LINENO: result: $STRIP" >&5
6890echo "${ECHO_T}$STRIP" >&6; }
6891else
6892 { echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6; }
6894fi
6895
6896
6897fi
6898if test -z "$ac_cv_prog_STRIP"; then
6899 ac_ct_STRIP=$STRIP
6900 # Extract the first word of "strip", so it can be a program name with args.
6901set dummy strip; ac_word=$2
6902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 if test -n "$ac_ct_STRIP"; then
6908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_ac_ct_STRIP="strip"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6928if test -n "$ac_ct_STRIP"; then
6929 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6930echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6931else
6932 { echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6; }
6934fi
6935
6936 if test "x$ac_ct_STRIP" = x; then
6937 STRIP=":"
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940yes:)
6941{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942whose name does not start with the host triplet. If you think this
6943configuration is useful to you, please write to autoconf@gnu.org." >&5
6944echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945whose name does not start with the host triplet. If you think this
6946configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947ac_tool_warned=yes ;;
6948esac
6949 STRIP=$ac_ct_STRIP
6950 fi
6951else
6952 STRIP="$ac_cv_prog_STRIP"
6953fi
6954
6955
6956old_CC="$CC"
6957old_CFLAGS="$CFLAGS"
6958
6959# Set sane defaults for various variables
6960test -z "$AR" && AR=ar
6961test -z "$AR_FLAGS" && AR_FLAGS=cru
6962test -z "$AS" && AS=as
6963test -z "$CC" && CC=cc
6964test -z "$LTCC" && LTCC=$CC
6965test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6966test -z "$DLLTOOL" && DLLTOOL=dlltool
6967test -z "$LD" && LD=ld
6968test -z "$LN_S" && LN_S="ln -s"
6969test -z "$MAGIC_CMD" && MAGIC_CMD=file
6970test -z "$NM" && NM=nm
6971test -z "$SED" && SED=sed
6972test -z "$OBJDUMP" && OBJDUMP=objdump
6973test -z "$RANLIB" && RANLIB=:
6974test -z "$STRIP" && STRIP=:
6975test -z "$ac_objext" && ac_objext=o
6976
6977# Determine commands to create old-style static archives.
6978old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6979old_postinstall_cmds='chmod 644 $oldlib'
6980old_postuninstall_cmds=
6981
6982if test -n "$RANLIB"; then
6983 case $host_os in
6984 openbsd*)
6985 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6986 ;;
6987 *)
6988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6989 ;;
6990 esac
6991 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6992fi
6993
6994for cc_temp in $compiler""; do
6995 case $cc_temp in
6996 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6997 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6998 \-*) ;;
6999 *) break;;
7000 esac
7001done
7002cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7003
7004
7005# Only perform the check for file, if the check method requires it
7006case $deplibs_check_method in
7007file_magic*)
7008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7009 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7010echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7011if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013else
7014 case $MAGIC_CMD in
7015[\\/*] | ?:[\\/]*)
7016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7017 ;;
7018*)
7019 lt_save_MAGIC_CMD="$MAGIC_CMD"
7020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7022 for ac_dir in $ac_dummy; do
7023 IFS="$lt_save_ifs"
7024 test -z "$ac_dir" && ac_dir=.
7025 if test -f $ac_dir/${ac_tool_prefix}file; then
7026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7027 if test -n "$file_magic_test_file"; then
7028 case $deplibs_check_method in
7029 "file_magic "*)
7030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7033 $EGREP "$file_magic_regex" > /dev/null; then
7034 :
7035 else
7036 cat <<EOF 1>&2
7037
7038*** Warning: the command libtool uses to detect shared libraries,
7039*** $file_magic_cmd, produces output that libtool cannot recognize.
7040*** The result is that libtool may fail to recognize shared libraries
7041*** as such. This will affect the creation of libtool libraries that
7042*** depend on shared libraries, but programs linked with such libtool
7043*** libraries will work regardless of this problem. Nevertheless, you
7044*** may want to report the problem to your system manager and/or to
7045*** bug-libtool@gnu.org
7046
7047EOF
7048 fi ;;
7049 esac
7050 fi
7051 break
7052 fi
7053 done
7054 IFS="$lt_save_ifs"
7055 MAGIC_CMD="$lt_save_MAGIC_CMD"
7056 ;;
7057esac
7058fi
7059
7060MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7061if test -n "$MAGIC_CMD"; then
7062 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7063echo "${ECHO_T}$MAGIC_CMD" >&6; }
7064else
7065 { echo "$as_me:$LINENO: result: no" >&5
7066echo "${ECHO_T}no" >&6; }
7067fi
7068
7069if test -z "$lt_cv_path_MAGIC_CMD"; then
7070 if test -n "$ac_tool_prefix"; then
7071 { echo "$as_me:$LINENO: checking for file" >&5
7072echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7073if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 case $MAGIC_CMD in
7077[\\/*] | ?:[\\/]*)
7078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7079 ;;
7080*)
7081 lt_save_MAGIC_CMD="$MAGIC_CMD"
7082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7083 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7084 for ac_dir in $ac_dummy; do
7085 IFS="$lt_save_ifs"
7086 test -z "$ac_dir" && ac_dir=.
7087 if test -f $ac_dir/file; then
7088 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7089 if test -n "$file_magic_test_file"; then
7090 case $deplibs_check_method in
7091 "file_magic "*)
7092 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7095 $EGREP "$file_magic_regex" > /dev/null; then
7096 :
7097 else
7098 cat <<EOF 1>&2
7099
7100*** Warning: the command libtool uses to detect shared libraries,
7101*** $file_magic_cmd, produces output that libtool cannot recognize.
7102*** The result is that libtool may fail to recognize shared libraries
7103*** as such. This will affect the creation of libtool libraries that
7104*** depend on shared libraries, but programs linked with such libtool
7105*** libraries will work regardless of this problem. Nevertheless, you
7106*** may want to report the problem to your system manager and/or to
7107*** bug-libtool@gnu.org
7108
7109EOF
7110 fi ;;
7111 esac
7112 fi
7113 break
7114 fi
7115 done
7116 IFS="$lt_save_ifs"
7117 MAGIC_CMD="$lt_save_MAGIC_CMD"
7118 ;;
7119esac
7120fi
7121
7122MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7123if test -n "$MAGIC_CMD"; then
7124 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7125echo "${ECHO_T}$MAGIC_CMD" >&6; }
7126else
7127 { echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6; }
7129fi
7130
7131 else
7132 MAGIC_CMD=:
7133 fi
7134fi
7135
7136 fi
7137 ;;
7138esac
7139
7140
7141 case $host_os in
7142 rhapsody* | darwin*)
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7145set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151 if test -n "$DSYMUTIL"; then
7152 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7164 fi
7165done
7166done
7167IFS=$as_save_IFS
7168
7169fi
7170fi
7171DSYMUTIL=$ac_cv_prog_DSYMUTIL
7172if test -n "$DSYMUTIL"; then
7173 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7174echo "${ECHO_T}$DSYMUTIL" >&6; }
7175else
7176 { echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6; }
7178fi
7179
7180
7181fi
7182if test -z "$ac_cv_prog_DSYMUTIL"; then
7183 ac_ct_DSYMUTIL=$DSYMUTIL
7184 # Extract the first word of "dsymutil", so it can be a program name with args.
7185set dummy dsymutil; ac_word=$2
7186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191 if test -n "$ac_ct_DSYMUTIL"; then
7192 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7204 fi
7205done
7206done
7207IFS=$as_save_IFS
7208
7209fi
7210fi
7211ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7212if test -n "$ac_ct_DSYMUTIL"; then
7213 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7214echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7215else
7216 { echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6; }
7218fi
7219
7220 if test "x$ac_ct_DSYMUTIL" = x; then
7221 DSYMUTIL=":"
7222 else
7223 case $cross_compiling:$ac_tool_warned in
7224yes:)
7225{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7226whose name does not start with the host triplet. If you think this
7227configuration is useful to you, please write to autoconf@gnu.org." >&5
7228echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7229whose name does not start with the host triplet. If you think this
7230configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7231ac_tool_warned=yes ;;
7232esac
7233 DSYMUTIL=$ac_ct_DSYMUTIL
7234 fi
7235else
7236 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7237fi
7238
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7241set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244if test "${ac_cv_prog_NMEDIT+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 if test -n "$NMEDIT"; then
7248 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7249else
7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261done
7262done
7263IFS=$as_save_IFS
7264
7265fi
7266fi
7267NMEDIT=$ac_cv_prog_NMEDIT
7268if test -n "$NMEDIT"; then
7269 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7270echo "${ECHO_T}$NMEDIT" >&6; }
7271else
7272 { echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6; }
7274fi
7275
7276
7277fi
7278if test -z "$ac_cv_prog_NMEDIT"; then
7279 ac_ct_NMEDIT=$NMEDIT
7280 # Extract the first word of "nmedit", so it can be a program name with args.
7281set dummy nmedit; ac_word=$2
7282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286else
7287 if test -n "$ac_ct_NMEDIT"; then
7288 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7289else
7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301done
7302done
7303IFS=$as_save_IFS
7304
7305fi
7306fi
7307ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7308if test -n "$ac_ct_NMEDIT"; then
7309 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7310echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7311else
7312 { echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6; }
7314fi
7315
7316 if test "x$ac_ct_NMEDIT" = x; then
7317 NMEDIT=":"
7318 else
7319 case $cross_compiling:$ac_tool_warned in
7320yes:)
7321{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7322whose name does not start with the host triplet. If you think this
7323configuration is useful to you, please write to autoconf@gnu.org." >&5
7324echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7325whose name does not start with the host triplet. If you think this
7326configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7327ac_tool_warned=yes ;;
7328esac
7329 NMEDIT=$ac_ct_NMEDIT
7330 fi
7331else
7332 NMEDIT="$ac_cv_prog_NMEDIT"
7333fi
7334
7335
7336 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7337echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7338if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341 lt_cv_apple_cc_single_mod=no
7342 if test -z "${LT_MULTI_MODULE}"; then
7343 # By default we will add the -single_module flag. You can override
7344 # by either setting the environment variable LT_MULTI_MODULE
7345 # non-empty at configure time, or by adding -multi_module to the
7346 # link flags.
7347 echo "int foo(void){return 1;}" > conftest.c
7348 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7349 -dynamiclib ${wl}-single_module conftest.c
7350 if test -f libconftest.dylib; then
7351 lt_cv_apple_cc_single_mod=yes
7352 rm -rf libconftest.dylib*
7353 fi
7354 rm conftest.c
7355 fi
7356fi
7357{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7358echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7359 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7360echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7361if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364 lt_cv_ld_exported_symbols_list=no
7365 save_LDFLAGS=$LDFLAGS
7366 echo "_main" > conftest.sym
7367 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7368 cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h. */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h. */
7374
7375int
7376main ()
7377{
7378
7379 ;
7380 return 0;
7381}
7382_ACEOF
7383rm -f conftest.$ac_objext conftest$ac_exeext
7384if { (ac_try="$ac_link"
7385case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7388esac
7389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_link") 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest$ac_exeext &&
7400 $as_test_x conftest$ac_exeext; then
7401 lt_cv_ld_exported_symbols_list=yes
7402else
7403 echo "$as_me: failed program was:" >&5
7404sed 's/^/| /' conftest.$ac_ext >&5
7405
7406 lt_cv_ld_exported_symbols_list=no
7407fi
7408
7409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7410 conftest$ac_exeext conftest.$ac_ext
7411 LDFLAGS="$save_LDFLAGS"
7412
7413fi
7414{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7415echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7416 case $host_os in
7417 rhapsody* | darwin1.[0123])
7418 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7419 darwin1.*)
7420 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7421 darwin*)
7422 # if running on 10.5 or later, the deployment target defaults
7423 # to the OS version, if on x86, and 10.4, the deployment
7424 # target defaults to 10.4. Don't you love it?
7425 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7426 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7428 10.[012]*)
7429 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7430 10.*)
7431 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7432 esac
7433 ;;
7434 esac
7435 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7436 _lt_dar_single_mod='$single_module'
7437 fi
7438 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7439 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7440 else
7441 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7442 fi
7443 if test "$DSYMUTIL" != ":"; then
7444 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7445 else
7446 _lt_dsymutil=
7447 fi
7448 ;;
7449 esac
7450
7451
7452enable_dlopen=no
7453enable_win32_dll=no
7454
7455# Check whether --enable-libtool-lock was given.
7456if test "${enable_libtool_lock+set}" = set; then
7457 enableval=$enable_libtool_lock;
7458fi
7459
7460test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7461
7462
7463# Check whether --with-pic was given.
7464if test "${with_pic+set}" = set; then
7465 withval=$with_pic; pic_mode="$withval"
7466else
7467 pic_mode=default
7468fi
7469
7470test -z "$pic_mode" && pic_mode=default
7471
7472# Use C for the default configuration in the libtool script
7473tagname=
7474lt_save_CC="$CC"
7475ac_ext=c
7476ac_cpp='$CPP $CPPFLAGS'
7477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7479ac_compiler_gnu=$ac_cv_c_compiler_gnu
7480
7481
7482# Source file extension for C test sources.
7483ac_ext=c
7484
7485# Object file extension for compiled C test sources.
7486objext=o
7487objext=$objext
7488
7489# Code to be used in simple compile tests
7490lt_simple_compile_test_code="int some_variable = 0;"
7491
7492# Code to be used in simple link tests
7493lt_simple_link_test_code='int main(){return(0);}'
7494
7495
7496# If no C compiler was specified, use CC.
7497LTCC=${LTCC-"$CC"}
7498
7499# If no C compiler flags were specified, use CFLAGS.
7500LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7501
7502# Allow CC to be a program name with arguments.
7503compiler=$CC
7504
7505
7506# save warnings/boilerplate of simple test code
7507ac_outfile=conftest.$ac_objext
7508echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7509eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7510_lt_compiler_boilerplate=`cat conftest.err`
7511$rm conftest*
7512
7513ac_outfile=conftest.$ac_objext
7514echo "$lt_simple_link_test_code" >conftest.$ac_ext
7515eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7516_lt_linker_boilerplate=`cat conftest.err`
7517$rm -r conftest*
7518
7519
7520
7521lt_prog_compiler_no_builtin_flag=
7522
7523if test "$GCC" = yes; then
7524 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7525
7526
7527{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7528echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7529if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532 lt_cv_prog_compiler_rtti_exceptions=no
7533 ac_outfile=conftest.$ac_objext
7534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7535 lt_compiler_flag="-fno-rtti -fno-exceptions"
7536 # Insert the option either (1) after the last *FLAGS variable, or
7537 # (2) before a word containing "conftest.", or (3) at the end.
7538 # Note that $ac_compile itself does not contain backslashes and begins
7539 # with a dollar sign (not a hyphen), so the echo should work correctly.
7540 # The option is referenced via a variable to avoid confusing sed.
7541 lt_compile=`echo "$ac_compile" | $SED \
7542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7544 -e 's:$: $lt_compiler_flag:'`
7545 (eval echo "\"\$as_me:7545: $lt_compile\"" >&5)
7546 (eval "$lt_compile" 2>conftest.err)
7547 ac_status=$?
7548 cat conftest.err >&5
7549 echo "$as_me:7549: \$? = $ac_status" >&5
7550 if (exit $ac_status) && test -s "$ac_outfile"; then
7551 # The compiler can only warn and ignore the option if not recognized
7552 # So say no if there are warnings other than the usual output.
7553 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7555 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7556 lt_cv_prog_compiler_rtti_exceptions=yes
7557 fi
7558 fi
7559 $rm conftest*
7560
7561fi
7562{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7563echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7564
7565if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7566 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7567else
7568 :
7569fi
7570
7571fi
7572
7573lt_prog_compiler_wl=
7574lt_prog_compiler_pic=
7575lt_prog_compiler_static=
7576
7577{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7578echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7579
7580 if test "$GCC" = yes; then
7581 lt_prog_compiler_wl='-Wl,'
7582 lt_prog_compiler_static='-static'
7583
7584 case $host_os in
7585 aix*)
7586 # All AIX code is PIC.
7587 if test "$host_cpu" = ia64; then
7588 # AIX 5 now supports IA64 processor
7589 lt_prog_compiler_static='-Bstatic'
7590 fi
7591 ;;
7592
7593 amigaos*)
7594 # FIXME: we need at least 68020 code to build shared libraries, but
7595 # adding the `-m68020' flag to GCC prevents building anything better,
7596 # like `-m68040'.
7597 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7598 ;;
7599
7600 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7601 # PIC is the default for these OSes.
7602 ;;
7603
7604 mingw* | cygwin* | pw32* | os2*)
7605 # This hack is so that the source file can tell whether it is being
7606 # built for inclusion in a dll (and should export symbols for example).
7607 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7608 # (--disable-auto-import) libraries
7609 lt_prog_compiler_pic='-DDLL_EXPORT'
7610 ;;
7611
7612 darwin* | rhapsody*)
7613 # PIC is the default on this platform
7614 # Common symbols not allowed in MH_DYLIB files
7615 lt_prog_compiler_pic='-fno-common'
7616 ;;
7617
7618 interix[3-9]*)
7619 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7620 # Instead, we relocate shared libraries at runtime.
7621 ;;
7622
7623 msdosdjgpp*)
7624 # Just because we use GCC doesn't mean we suddenly get shared libraries
7625 # on systems that don't support them.
7626 lt_prog_compiler_can_build_shared=no
7627 enable_shared=no
7628 ;;
7629
7630 sysv4*MP*)
7631 if test -d /usr/nec; then
7632 lt_prog_compiler_pic=-Kconform_pic
7633 fi
7634 ;;
7635
7636 hpux*)
7637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7638 # not for PA HP-UX.
7639 case $host_cpu in
7640 hppa*64*|ia64*)
7641 # +Z the default
7642 ;;
7643 *)
7644 lt_prog_compiler_pic='-fPIC'
7645 ;;
7646 esac
7647 ;;
7648
7649 *)
7650 lt_prog_compiler_pic='-fPIC'
7651 ;;
7652 esac
7653 else
7654 # PORTME Check for flag to pass linker flags through the system compiler.
7655 case $host_os in
7656 aix*)
7657 lt_prog_compiler_wl='-Wl,'
7658 if test "$host_cpu" = ia64; then
7659 # AIX 5 now supports IA64 processor
7660 lt_prog_compiler_static='-Bstatic'
7661 else
7662 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7663 fi
7664 ;;
7665 darwin*)
7666 # PIC is the default on this platform
7667 # Common symbols not allowed in MH_DYLIB files
7668 case $cc_basename in
7669 xlc*)
7670 lt_prog_compiler_pic='-qnocommon'
7671 lt_prog_compiler_wl='-Wl,'
7672 ;;
7673 esac
7674 ;;
7675
7676 mingw* | cygwin* | pw32* | os2*)
7677 # This hack is so that the source file can tell whether it is being
7678 # built for inclusion in a dll (and should export symbols for example).
7679 lt_prog_compiler_pic='-DDLL_EXPORT'
7680 ;;
7681
7682 hpux9* | hpux10* | hpux11*)
7683 lt_prog_compiler_wl='-Wl,'
7684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7685 # not for PA HP-UX.
7686 case $host_cpu in
7687 hppa*64*|ia64*)
7688 # +Z the default
7689 ;;
7690 *)
7691 lt_prog_compiler_pic='+Z'
7692 ;;
7693 esac
7694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7695 lt_prog_compiler_static='${wl}-a ${wl}archive'
7696 ;;
7697
7698 irix5* | irix6* | nonstopux*)
7699 lt_prog_compiler_wl='-Wl,'
7700 # PIC (with -KPIC) is the default.
7701 lt_prog_compiler_static='-non_shared'
7702 ;;
7703
7704 newsos6)
7705 lt_prog_compiler_pic='-KPIC'
7706 lt_prog_compiler_static='-Bstatic'
7707 ;;
7708
7709 linux* | k*bsd*-gnu)
7710 case $cc_basename in
7711 icc* | ecc*)
7712 lt_prog_compiler_wl='-Wl,'
7713 lt_prog_compiler_pic='-KPIC'
7714 lt_prog_compiler_static='-static'
7715 ;;
7716 pgcc* | pgf77* | pgf90* | pgf95*)
7717 # Portland Group compilers (*not* the Pentium gcc compiler,
7718 # which looks to be a dead project)
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_pic='-fpic'
7721 lt_prog_compiler_static='-Bstatic'
7722 ;;
7723 ccc*)
7724 lt_prog_compiler_wl='-Wl,'
7725 # All Alpha code is PIC.
7726 lt_prog_compiler_static='-non_shared'
7727 ;;
7728 *)
7729 case `$CC -V 2>&1 | sed 5q` in
7730 *Sun\ C*)
7731 # Sun C 5.9
7732 lt_prog_compiler_pic='-KPIC'
7733 lt_prog_compiler_static='-Bstatic'
7734 lt_prog_compiler_wl='-Wl,'
7735 ;;
7736 *Sun\ F*)
7737 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7738 lt_prog_compiler_pic='-KPIC'
7739 lt_prog_compiler_static='-Bstatic'
7740 lt_prog_compiler_wl=''
7741 ;;
7742 esac
7743 ;;
7744 esac
7745 ;;
7746
7747 osf3* | osf4* | osf5*)
7748 lt_prog_compiler_wl='-Wl,'
7749 # All OSF/1 code is PIC.
7750 lt_prog_compiler_static='-non_shared'
7751 ;;
7752
7753 rdos*)
7754 lt_prog_compiler_static='-non_shared'
7755 ;;
7756
7757 solaris*)
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-Bstatic'
7760 case $cc_basename in
7761 f77* | f90* | f95*)
7762 lt_prog_compiler_wl='-Qoption ld ';;
7763 *)
7764 lt_prog_compiler_wl='-Wl,';;
7765 esac
7766 ;;
7767
7768 sunos4*)
7769 lt_prog_compiler_wl='-Qoption ld '
7770 lt_prog_compiler_pic='-PIC'
7771 lt_prog_compiler_static='-Bstatic'
7772 ;;
7773
7774 sysv4 | sysv4.2uw2* | sysv4.3*)
7775 lt_prog_compiler_wl='-Wl,'
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7778 ;;
7779
7780 sysv4*MP*)
7781 if test -d /usr/nec ;then
7782 lt_prog_compiler_pic='-Kconform_pic'
7783 lt_prog_compiler_static='-Bstatic'
7784 fi
7785 ;;
7786
7787 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_pic='-KPIC'
7790 lt_prog_compiler_static='-Bstatic'
7791 ;;
7792
7793 unicos*)
7794 lt_prog_compiler_wl='-Wl,'
7795 lt_prog_compiler_can_build_shared=no
7796 ;;
7797
7798 uts4*)
7799 lt_prog_compiler_pic='-pic'
7800 lt_prog_compiler_static='-Bstatic'
7801 ;;
7802
7803 *)
7804 lt_prog_compiler_can_build_shared=no
7805 ;;
7806 esac
7807 fi
7808
7809{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7810echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7811
7812#
7813# Check to make sure the PIC flag actually works.
7814#
7815if test -n "$lt_prog_compiler_pic"; then
7816
7817{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7818echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7819if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822 lt_cv_prog_compiler_pic_works=no
7823 ac_outfile=conftest.$ac_objext
7824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7825 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7826 # Insert the option either (1) after the last *FLAGS variable, or
7827 # (2) before a word containing "conftest.", or (3) at the end.
7828 # Note that $ac_compile itself does not contain backslashes and begins
7829 # with a dollar sign (not a hyphen), so the echo should work correctly.
7830 # The option is referenced via a variable to avoid confusing sed.
7831 lt_compile=`echo "$ac_compile" | $SED \
7832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7834 -e 's:$: $lt_compiler_flag:'`
7835 (eval echo "\"\$as_me:7835: $lt_compile\"" >&5)
7836 (eval "$lt_compile" 2>conftest.err)
7837 ac_status=$?
7838 cat conftest.err >&5
7839 echo "$as_me:7839: \$? = $ac_status" >&5
7840 if (exit $ac_status) && test -s "$ac_outfile"; then
7841 # The compiler can only warn and ignore the option if not recognized
7842 # So say no if there are warnings other than the usual output.
7843 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7845 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7846 lt_cv_prog_compiler_pic_works=yes
7847 fi
7848 fi
7849 $rm conftest*
7850
7851fi
7852{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7853echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7854
7855if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7856 case $lt_prog_compiler_pic in
7857 "" | " "*) ;;
7858 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7859 esac
7860else
7861 lt_prog_compiler_pic=
7862 lt_prog_compiler_can_build_shared=no
7863fi
7864
7865fi
7866case $host_os in
7867 # For platforms which do not support PIC, -DPIC is meaningless:
7868 *djgpp*)
7869 lt_prog_compiler_pic=
7870 ;;
7871 *)
7872 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7873 ;;
7874esac
7875
7876#
7877# Check to make sure the static flag actually works.
7878#
7879wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7880{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7881echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7882if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884else
7885 lt_cv_prog_compiler_static_works=no
7886 save_LDFLAGS="$LDFLAGS"
7887 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7888 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7889 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7890 # The linker can only warn and ignore the option if not recognized
7891 # So say no if there are warnings
7892 if test -s conftest.err; then
7893 # Append any errors to the config.log.
7894 cat conftest.err 1>&5
7895 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7897 if diff conftest.exp conftest.er2 >/dev/null; then
7898 lt_cv_prog_compiler_static_works=yes
7899 fi
7900 else
7901 lt_cv_prog_compiler_static_works=yes
7902 fi
7903 fi
7904 $rm -r conftest*
7905 LDFLAGS="$save_LDFLAGS"
7906
7907fi
7908{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7909echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7910
7911if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7912 :
7913else
7914 lt_prog_compiler_static=
7915fi
7916
7917
7918{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7919echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7920if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922else
7923 lt_cv_prog_compiler_c_o=no
7924 $rm -r conftest 2>/dev/null
7925 mkdir conftest
7926 cd conftest
7927 mkdir out
7928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7929
7930 lt_compiler_flag="-o out/conftest2.$ac_objext"
7931 # Insert the option either (1) after the last *FLAGS variable, or
7932 # (2) before a word containing "conftest.", or (3) at the end.
7933 # Note that $ac_compile itself does not contain backslashes and begins
7934 # with a dollar sign (not a hyphen), so the echo should work correctly.
7935 lt_compile=`echo "$ac_compile" | $SED \
7936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7938 -e 's:$: $lt_compiler_flag:'`
7939 (eval echo "\"\$as_me:7939: $lt_compile\"" >&5)
7940 (eval "$lt_compile" 2>out/conftest.err)
7941 ac_status=$?
7942 cat out/conftest.err >&5
7943 echo "$as_me:7943: \$? = $ac_status" >&5
7944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7945 then
7946 # The compiler can only warn and ignore the option if not recognized
7947 # So say no if there are warnings
7948 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7951 lt_cv_prog_compiler_c_o=yes
7952 fi
7953 fi
7954 chmod u+w . 2>&5
7955 $rm conftest*
7956 # SGI C++ compiler will create directory out/ii_files/ for
7957 # template instantiation
7958 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7959 $rm out/* && rmdir out
7960 cd ..
7961 rmdir conftest
7962 $rm conftest*
7963
7964fi
7965{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7966echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7967
7968
7969hard_links="nottested"
7970if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7971 # do not overwrite the value of need_locks provided by the user
7972 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7973echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7974 hard_links=yes
7975 $rm conftest*
7976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7977 touch conftest.a
7978 ln conftest.a conftest.b 2>&5 || hard_links=no
7979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7980 { echo "$as_me:$LINENO: result: $hard_links" >&5
7981echo "${ECHO_T}$hard_links" >&6; }
7982 if test "$hard_links" = no; then
7983 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7984echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7985 need_locks=warn
7986 fi
7987else
7988 need_locks=no
7989fi
7990
7991{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7992echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7993
7994 runpath_var=
7995 allow_undefined_flag=
7996 enable_shared_with_static_runtimes=no
7997 archive_cmds=
7998 archive_expsym_cmds=
7999 old_archive_From_new_cmds=
8000 old_archive_from_expsyms_cmds=
8001 export_dynamic_flag_spec=
8002 whole_archive_flag_spec=
8003 thread_safe_flag_spec=
8004 hardcode_libdir_flag_spec=
8005 hardcode_libdir_flag_spec_ld=
8006 hardcode_libdir_separator=
8007 hardcode_direct=no
8008 hardcode_minus_L=no
8009 hardcode_shlibpath_var=unsupported
8010 link_all_deplibs=unknown
8011 hardcode_automatic=no
8012 module_cmds=
8013 module_expsym_cmds=
8014 always_export_symbols=no
8015 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8016 # include_expsyms should be a list of space-separated symbols to be *always*
8017 # included in the symbol list
8018 include_expsyms=
8019 # exclude_expsyms can be an extended regexp of symbols to exclude
8020 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8021 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8022 # as well as any symbol that contains `d'.
8023 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8024 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8025 # platforms (ab)use it in PIC code, but their linkers get confused if
8026 # the symbol is explicitly referenced. Since portable code cannot
8027 # rely on this symbol name, it's probably fine to never include it in
8028 # preloaded symbol tables.
8029 # Exclude shared library initialization/finalization symbols.
8030 extract_expsyms_cmds=
8031 # Just being paranoid about ensuring that cc_basename is set.
8032 for cc_temp in $compiler""; do
8033 case $cc_temp in
8034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8036 \-*) ;;
8037 *) break;;
8038 esac
8039done
8040cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8041
8042 case $host_os in
8043 cygwin* | mingw* | pw32*)
8044 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8045 # When not using gcc, we currently assume that we are using
8046 # Microsoft Visual C++.
8047 if test "$GCC" != yes; then
8048 with_gnu_ld=no
8049 fi
8050 ;;
8051 interix*)
8052 # we just hope/assume this is gcc and not c89 (= MSVC++)
8053 with_gnu_ld=yes
8054 ;;
8055 openbsd*)
8056 with_gnu_ld=no
8057 ;;
8058 esac
8059
8060 ld_shlibs=yes
8061 if test "$with_gnu_ld" = yes; then
8062 # If archive_cmds runs LD, not CC, wlarc should be empty
8063 wlarc='${wl}'
8064
8065 # Set some defaults for GNU ld with shared library support. These
8066 # are reset later if shared libraries are not supported. Putting them
8067 # here allows them to be overridden if necessary.
8068 runpath_var=LD_RUN_PATH
8069 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8070 export_dynamic_flag_spec='${wl}--export-dynamic'
8071 # ancient GNU ld didn't support --whole-archive et. al.
8072 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8073 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8074 else
8075 whole_archive_flag_spec=
8076 fi
8077 supports_anon_versioning=no
8078 case `$LD -v 2>/dev/null` in
8079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8082 *\ 2.11.*) ;; # other 2.11 versions
8083 *) supports_anon_versioning=yes ;;
8084 esac
8085
8086 # See if GNU ld supports shared libraries.
8087 case $host_os in
8088 aix[3-9]*)
8089 # On AIX/PPC, the GNU linker is very broken
8090 if test "$host_cpu" != ia64; then
8091 ld_shlibs=no
8092 cat <<EOF 1>&2
8093
8094*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8095*** to be unable to reliably create shared libraries on AIX.
8096*** Therefore, libtool is disabling shared libraries support. If you
8097*** really care for shared libraries, you may want to modify your PATH
8098*** so that a non-GNU linker is found, and then restart.
8099
8100EOF
8101 fi
8102 ;;
8103
8104 amigaos*)
8105 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)'
8106 hardcode_libdir_flag_spec='-L$libdir'
8107 hardcode_minus_L=yes
8108
8109 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8110 # that the semantics of dynamic libraries on AmigaOS, at least up
8111 # to version 4, is to share data among multiple programs linked
8112 # with the same dynamic library. Since this doesn't match the
8113 # behavior of shared libraries on other platforms, we can't use
8114 # them.
8115 ld_shlibs=no
8116 ;;
8117
8118 beos*)
8119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8120 allow_undefined_flag=unsupported
8121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8122 # support --undefined. This deserves some investigation. FIXME
8123 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8124 else
8125 ld_shlibs=no
8126 fi
8127 ;;
8128
8129 cygwin* | mingw* | pw32*)
8130 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8131 # as there is no search path for DLLs.
8132 hardcode_libdir_flag_spec='-L$libdir'
8133 allow_undefined_flag=unsupported
8134 always_export_symbols=no
8135 enable_shared_with_static_runtimes=yes
8136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8137
8138 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8140 # If the export-symbols file already is a .def file (1st line
8141 # is EXPORTS), use it as is; otherwise, prepend...
8142 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8143 cp $export_symbols $output_objdir/$soname.def;
8144 else
8145 echo EXPORTS > $output_objdir/$soname.def;
8146 cat $export_symbols >> $output_objdir/$soname.def;
8147 fi~
8148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8149 else
8150 ld_shlibs=no
8151 fi
8152 ;;
8153
8154 interix[3-9]*)
8155 hardcode_direct=no
8156 hardcode_shlibpath_var=no
8157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8158 export_dynamic_flag_spec='${wl}-E'
8159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8160 # Instead, shared libraries are loaded at an image base (0x10000000 by
8161 # default) and relocated if they conflict, which is a slow very memory
8162 # consuming and fragmenting process. To avoid this, we pick a random,
8163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8164 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8166 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'
8167 ;;
8168
8169 gnu* | linux* | k*bsd*-gnu)
8170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8171 tmp_addflag=
8172 case $cc_basename,$host_cpu in
8173 pgcc*) # Portland Group C compiler
8174 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'
8175 tmp_addflag=' $pic_flag'
8176 ;;
8177 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8178 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'
8179 tmp_addflag=' $pic_flag -Mnomain' ;;
8180 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8181 tmp_addflag=' -i_dynamic' ;;
8182 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8183 tmp_addflag=' -i_dynamic -nofor_main' ;;
8184 ifc* | ifort*) # Intel Fortran compiler
8185 tmp_addflag=' -nofor_main' ;;
8186 esac
8187 case `$CC -V 2>&1 | sed 5q` in
8188 *Sun\ C*) # Sun C 5.9
8189 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'
8190 tmp_sharedflag='-G' ;;
8191 *Sun\ F*) # Sun Fortran 8.3
8192 tmp_sharedflag='-G' ;;
8193 *)
8194 tmp_sharedflag='-shared' ;;
8195 esac
8196 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8197
8198 if test $supports_anon_versioning = yes; then
8199 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8200 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8201 $echo "local: *; };" >> $output_objdir/$libname.ver~
8202 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8203 fi
8204 link_all_deplibs=no
8205 else
8206 ld_shlibs=no
8207 fi
8208 ;;
8209
8210 netbsd* | netbsdelf*-gnu)
8211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8212 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8213 wlarc=
8214 else
8215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8217 fi
8218 ;;
8219
8220 solaris*)
8221 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8222 ld_shlibs=no
8223 cat <<EOF 1>&2
8224
8225*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8226*** create shared libraries on Solaris systems. Therefore, libtool
8227*** is disabling shared libraries support. We urge you to upgrade GNU
8228*** binutils to release 2.9.1 or newer. Another option is to modify
8229*** your PATH or compiler configuration so that the native linker is
8230*** used, and then restart.
8231
8232EOF
8233 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8236 else
8237 ld_shlibs=no
8238 fi
8239 ;;
8240
8241 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8242 case `$LD -v 2>&1` in
8243 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8244 ld_shlibs=no
8245 cat <<_LT_EOF 1>&2
8246
8247*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8248*** reliably create shared libraries on SCO systems. Therefore, libtool
8249*** is disabling shared libraries support. We urge you to upgrade GNU
8250*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8251*** your PATH or compiler configuration so that the native linker is
8252*** used, and then restart.
8253
8254_LT_EOF
8255 ;;
8256 *)
8257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8260 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8261 else
8262 ld_shlibs=no
8263 fi
8264 ;;
8265 esac
8266 ;;
8267
8268 sunos4*)
8269 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8270 wlarc=
8271 hardcode_direct=yes
8272 hardcode_shlibpath_var=no
8273 ;;
8274
8275 *)
8276 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8279 else
8280 ld_shlibs=no
8281 fi
8282 ;;
8283 esac
8284
8285 if test "$ld_shlibs" = no; then
8286 runpath_var=
8287 hardcode_libdir_flag_spec=
8288 export_dynamic_flag_spec=
8289 whole_archive_flag_spec=
8290 fi
8291 else
8292 # PORTME fill in a description of your system's linker (not GNU ld)
8293 case $host_os in
8294 aix3*)
8295 allow_undefined_flag=unsupported
8296 always_export_symbols=yes
8297 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'
8298 # Note: this linker hardcodes the directories in LIBPATH if there
8299 # are no directories specified by -L.
8300 hardcode_minus_L=yes
8301 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8302 # Neither direct hardcoding nor static linking is supported with a
8303 # broken collect2.
8304 hardcode_direct=unsupported
8305 fi
8306 ;;
8307
8308 aix[4-9]*)
8309 if test "$host_cpu" = ia64; then
8310 # On IA64, the linker does run time linking by default, so we don't
8311 # have to do anything special.
8312 aix_use_runtimelinking=no
8313 exp_sym_flag='-Bexport'
8314 no_entry_flag=""
8315 else
8316 # If we're using GNU nm, then we don't want the "-C" option.
8317 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8318 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8319 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'
8320 else
8321 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'
8322 fi
8323 aix_use_runtimelinking=no
8324
8325 # Test if we are trying to use run time linking or normal
8326 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8327 # need to do runtime linking.
8328 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8329 for ld_flag in $LDFLAGS; do
8330 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8331 aix_use_runtimelinking=yes
8332 break
8333 fi
8334 done
8335 ;;
8336 esac
8337
8338 exp_sym_flag='-bexport'
8339 no_entry_flag='-bnoentry'
8340 fi
8341
8342 # When large executables or shared objects are built, AIX ld can
8343 # have problems creating the table of contents. If linking a library
8344 # or program results in "error TOC overflow" add -mminimal-toc to
8345 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8346 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8347
8348 archive_cmds=''
8349 hardcode_direct=yes
8350 hardcode_libdir_separator=':'
8351 link_all_deplibs=yes
8352
8353 if test "$GCC" = yes; then
8354 case $host_os in aix4.[012]|aix4.[012].*)
8355 # We only want to do this on AIX 4.2 and lower, the check
8356 # below for broken collect2 doesn't work under 4.3+
8357 collect2name=`${CC} -print-prog-name=collect2`
8358 if test -f "$collect2name" && \
8359 strings "$collect2name" | grep resolve_lib_name >/dev/null
8360 then
8361 # We have reworked collect2
8362 :
8363 else
8364 # We have old collect2
8365 hardcode_direct=unsupported
8366 # It fails to find uninstalled libraries when the uninstalled
8367 # path is not listed in the libpath. Setting hardcode_minus_L
8368 # to unsupported forces relinking
8369 hardcode_minus_L=yes
8370 hardcode_libdir_flag_spec='-L$libdir'
8371 hardcode_libdir_separator=
8372 fi
8373 ;;
8374 esac
8375 shared_flag='-shared'
8376 if test "$aix_use_runtimelinking" = yes; then
8377 shared_flag="$shared_flag "'${wl}-G'
8378 fi
8379 else
8380 # not using gcc
8381 if test "$host_cpu" = ia64; then
8382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8383 # chokes on -Wl,-G. The following line is correct:
8384 shared_flag='-G'
8385 else
8386 if test "$aix_use_runtimelinking" = yes; then
8387 shared_flag='${wl}-G'
8388 else
8389 shared_flag='${wl}-bM:SRE'
8390 fi
8391 fi
8392 fi
8393
8394 # It seems that -bexpall does not export symbols beginning with
8395 # underscore (_), so it is better to generate a list of symbols to export.
8396 always_export_symbols=yes
8397 if test "$aix_use_runtimelinking" = yes; then
8398 # Warning - without using the other runtime loading flags (-brtl),
8399 # -berok will link without error, but may produce a broken library.
8400 allow_undefined_flag='-berok'
8401 # Determine the default libpath from the value encoded in an empty executable.
8402 cat >conftest.$ac_ext <<_ACEOF
8403/* confdefs.h. */
8404_ACEOF
8405cat confdefs.h >>conftest.$ac_ext
8406cat >>conftest.$ac_ext <<_ACEOF
8407/* end confdefs.h. */
8408
8409int
8410main ()
8411{
8412
8413 ;
8414 return 0;
8415}
8416_ACEOF
8417rm -f conftest.$ac_objext conftest$ac_exeext
8418if { (ac_try="$ac_link"
8419case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422esac
8423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_link") 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && {
8431 test -z "$ac_c_werror_flag" ||
8432 test ! -s conftest.err
8433 } && test -s conftest$ac_exeext &&
8434 $as_test_x conftest$ac_exeext; then
8435
8436lt_aix_libpath_sed='
8437 /Import File Strings/,/^$/ {
8438 /^0/ {
8439 s/^0 *\(.*\)$/\1/
8440 p
8441 }
8442 }'
8443aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8444# Check for a 64-bit object if we didn't find anything.
8445if test -z "$aix_libpath"; then
8446 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8447fi
8448else
8449 echo "$as_me: failed program was:" >&5
8450sed 's/^/| /' conftest.$ac_ext >&5
8451
8452
8453fi
8454
8455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8456 conftest$ac_exeext conftest.$ac_ext
8457if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8458
8459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8460 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"
8461 else
8462 if test "$host_cpu" = ia64; then
8463 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8464 allow_undefined_flag="-z nodefs"
8465 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"
8466 else
8467 # Determine the default libpath from the value encoded in an empty executable.
8468 cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
8474
8475int
8476main ()
8477{
8478
8479 ;
8480 return 0;
8481}
8482_ACEOF
8483rm -f conftest.$ac_objext conftest$ac_exeext
8484if { (ac_try="$ac_link"
8485case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488esac
8489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest$ac_exeext &&
8500 $as_test_x conftest$ac_exeext; then
8501
8502lt_aix_libpath_sed='
8503 /Import File Strings/,/^$/ {
8504 /^0/ {
8505 s/^0 *\(.*\)$/\1/
8506 p
8507 }
8508 }'
8509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510# Check for a 64-bit object if we didn't find anything.
8511if test -z "$aix_libpath"; then
8512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8513fi
8514else
8515 echo "$as_me: failed program was:" >&5
8516sed 's/^/| /' conftest.$ac_ext >&5
8517
8518
8519fi
8520
8521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8522 conftest$ac_exeext conftest.$ac_ext
8523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8524
8525 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8526 # Warning - without using the other run time loading flags,
8527 # -berok will link without error, but may produce a broken library.
8528 no_undefined_flag=' ${wl}-bernotok'
8529 allow_undefined_flag=' ${wl}-berok'
8530 # Exported symbols can be pulled into shared objects from archives
8531 whole_archive_flag_spec='$convenience'
8532 archive_cmds_need_lc=yes
8533 # This is similar to how AIX traditionally builds its shared libraries.
8534 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'
8535 fi
8536 fi
8537 ;;
8538
8539 amigaos*)
8540 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)'
8541 hardcode_libdir_flag_spec='-L$libdir'
8542 hardcode_minus_L=yes
8543 # see comment about different semantics on the GNU ld section
8544 ld_shlibs=no
8545 ;;
8546
8547 bsdi[45]*)
8548 export_dynamic_flag_spec=-rdynamic
8549 ;;
8550
8551 cygwin* | mingw* | pw32*)
8552 # When not using gcc, we currently assume that we are using
8553 # Microsoft Visual C++.
8554 # hardcode_libdir_flag_spec is actually meaningless, as there is
8555 # no search path for DLLs.
8556 hardcode_libdir_flag_spec=' '
8557 allow_undefined_flag=unsupported
8558 # Tell ltmain to make .lib files, not .a files.
8559 libext=lib
8560 # Tell ltmain to make .dll files, not .so files.
8561 shrext_cmds=".dll"
8562 # FIXME: Setting linknames here is a bad hack.
8563 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8564 # The linker will automatically build a .lib file if we build a DLL.
8565 old_archive_From_new_cmds='true'
8566 # FIXME: Should let the user specify the lib program.
8567 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8568 fix_srcfile_path='`cygpath -w "$srcfile"`'
8569 enable_shared_with_static_runtimes=yes
8570 ;;
8571
8572 darwin* | rhapsody*)
8573 case $host_os in
8574 rhapsody* | darwin1.[012])
8575 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8576 ;;
8577 *) # Darwin 1.3 on
8578 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8579 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8580 else
8581 case ${MACOSX_DEPLOYMENT_TARGET} in
8582 10.[012])
8583 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8584 ;;
8585 10.*)
8586 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8587 ;;
8588 esac
8589 fi
8590 ;;
8591 esac
8592 archive_cmds_need_lc=no
8593 hardcode_direct=no
8594 hardcode_automatic=yes
8595 hardcode_shlibpath_var=unsupported
8596 whole_archive_flag_spec=''
8597 link_all_deplibs=yes
8598 if test "$GCC" = yes ; then
8599 output_verbose_link_cmd='echo'
8600 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8601 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8602 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}"
8603 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}"
8604 else
8605 case $cc_basename in
8606 xlc*)
8607 output_verbose_link_cmd='echo'
8608 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8609 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8610 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8611 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}'
8612 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}'
8613 ;;
8614 *)
8615 ld_shlibs=no
8616 ;;
8617 esac
8618 fi
8619 ;;
8620
8621 dgux*)
8622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8623 hardcode_libdir_flag_spec='-L$libdir'
8624 hardcode_shlibpath_var=no
8625 ;;
8626
8627 freebsd1*)
8628 ld_shlibs=no
8629 ;;
8630
8631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8632 # support. Future versions do this automatically, but an explicit c++rt0.o
8633 # does not break anything, and helps significantly (at the cost of a little
8634 # extra space).
8635 freebsd2.2*)
8636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8637 hardcode_libdir_flag_spec='-R$libdir'
8638 hardcode_direct=yes
8639 hardcode_shlibpath_var=no
8640 ;;
8641
8642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8643 freebsd2*)
8644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8645 hardcode_direct=yes
8646 hardcode_minus_L=yes
8647 hardcode_shlibpath_var=no
8648 ;;
8649
8650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8651 freebsd* | dragonfly*)
8652 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8653 hardcode_libdir_flag_spec='-R$libdir'
8654 hardcode_direct=yes
8655 hardcode_shlibpath_var=no
8656 ;;
8657
8658 hpux9*)
8659 if test "$GCC" = yes; then
8660 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'
8661 else
8662 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'
8663 fi
8664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8665 hardcode_libdir_separator=:
8666 hardcode_direct=yes
8667
8668 # hardcode_minus_L: Not really in the search PATH,
8669 # but as the default location of the library.
8670 hardcode_minus_L=yes
8671 export_dynamic_flag_spec='${wl}-E'
8672 ;;
8673
8674 hpux10*)
8675 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8676 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8677 else
8678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8679 fi
8680 if test "$with_gnu_ld" = no; then
8681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8682 hardcode_libdir_separator=:
8683
8684 hardcode_direct=yes
8685 export_dynamic_flag_spec='${wl}-E'
8686
8687 # hardcode_minus_L: Not really in the search PATH,
8688 # but as the default location of the library.
8689 hardcode_minus_L=yes
8690 fi
8691 ;;
8692
8693 hpux11*)
8694 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8695 case $host_cpu in
8696 hppa*64*)
8697 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698 ;;
8699 ia64*)
8700 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8701 ;;
8702 *)
8703 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8704 ;;
8705 esac
8706 else
8707 case $host_cpu in
8708 hppa*64*)
8709 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 ;;
8711 ia64*)
8712 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8713 ;;
8714 *)
8715 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8716 ;;
8717 esac
8718 fi
8719 if test "$with_gnu_ld" = no; then
8720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8721 hardcode_libdir_separator=:
8722
8723 case $host_cpu in
8724 hppa*64*|ia64*)
8725 hardcode_libdir_flag_spec_ld='+b $libdir'
8726 hardcode_direct=no
8727 hardcode_shlibpath_var=no
8728 ;;
8729 *)
8730 hardcode_direct=yes
8731 export_dynamic_flag_spec='${wl}-E'
8732
8733 # hardcode_minus_L: Not really in the search PATH,
8734 # but as the default location of the library.
8735 hardcode_minus_L=yes
8736 ;;
8737 esac
8738 fi
8739 ;;
8740
8741 irix5* | irix6* | nonstopux*)
8742 if test "$GCC" = yes; then
8743 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'
8744 else
8745 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'
8746 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8747 fi
8748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749 hardcode_libdir_separator=:
8750 link_all_deplibs=yes
8751 ;;
8752
8753 netbsd* | netbsdelf*-gnu)
8754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8756 else
8757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8758 fi
8759 hardcode_libdir_flag_spec='-R$libdir'
8760 hardcode_direct=yes
8761 hardcode_shlibpath_var=no
8762 ;;
8763
8764 newsos6)
8765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_direct=yes
8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768 hardcode_libdir_separator=:
8769 hardcode_shlibpath_var=no
8770 ;;
8771
8772 openbsd*)
8773 if test -f /usr/libexec/ld.so; then
8774 hardcode_direct=yes
8775 hardcode_shlibpath_var=no
8776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8778 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8780 export_dynamic_flag_spec='${wl}-E'
8781 else
8782 case $host_os in
8783 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8785 hardcode_libdir_flag_spec='-R$libdir'
8786 ;;
8787 *)
8788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8790 ;;
8791 esac
8792 fi
8793 else
8794 ld_shlibs=no
8795 fi
8796 ;;
8797
8798 os2*)
8799 hardcode_libdir_flag_spec='-L$libdir'
8800 hardcode_minus_L=yes
8801 allow_undefined_flag=unsupported
8802 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'
8803 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8804 ;;
8805
8806 osf3*)
8807 if test "$GCC" = yes; then
8808 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8809 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'
8810 else
8811 allow_undefined_flag=' -expect_unresolved \*'
8812 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'
8813 fi
8814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815 hardcode_libdir_separator=:
8816 ;;
8817
8818 osf4* | osf5*) # as osf3* with the addition of -msym flag
8819 if test "$GCC" = yes; then
8820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8821 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'
8822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8823 else
8824 allow_undefined_flag=' -expect_unresolved \*'
8825 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'
8826 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8827 $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'
8828
8829 # Both c and cxx compiler support -rpath directly
8830 hardcode_libdir_flag_spec='-rpath $libdir'
8831 fi
8832 hardcode_libdir_separator=:
8833 ;;
8834
8835 solaris*)
8836 no_undefined_flag=' -z text'
8837 if test "$GCC" = yes; then
8838 wlarc='${wl}'
8839 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8841 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8842 else
8843 wlarc=''
8844 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8847 fi
8848 hardcode_libdir_flag_spec='-R$libdir'
8849 hardcode_shlibpath_var=no
8850 case $host_os in
8851 solaris2.[0-5] | solaris2.[0-5].*) ;;
8852 *)
8853 # The compiler driver will combine and reorder linker options,
8854 # but understands `-z linker_flag'. GCC discards it without `$wl',
8855 # but is careful enough not to reorder.
8856 # Supported since Solaris 2.6 (maybe 2.5.1?)
8857 if test "$GCC" = yes; then
8858 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8859 else
8860 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8861 fi
8862 ;;
8863 esac
8864 link_all_deplibs=yes
8865 ;;
8866
8867 sunos4*)
8868 if test "x$host_vendor" = xsequent; then
8869 # Use $CC to link under sequent, because it throws in some extra .o
8870 # files that make .init and .fini sections work.
8871 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8872 else
8873 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8874 fi
8875 hardcode_libdir_flag_spec='-L$libdir'
8876 hardcode_direct=yes
8877 hardcode_minus_L=yes
8878 hardcode_shlibpath_var=no
8879 ;;
8880
8881 sysv4)
8882 case $host_vendor in
8883 sni)
8884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885 hardcode_direct=yes # is this really true???
8886 ;;
8887 siemens)
8888 ## LD is ld it makes a PLAMLIB
8889 ## CC just makes a GrossModule.
8890 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8891 reload_cmds='$CC -r -o $output$reload_objs'
8892 hardcode_direct=no
8893 ;;
8894 motorola)
8895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8897 ;;
8898 esac
8899 runpath_var='LD_RUN_PATH'
8900 hardcode_shlibpath_var=no
8901 ;;
8902
8903 sysv4.3*)
8904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_shlibpath_var=no
8906 export_dynamic_flag_spec='-Bexport'
8907 ;;
8908
8909 sysv4*MP*)
8910 if test -d /usr/nec; then
8911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912 hardcode_shlibpath_var=no
8913 runpath_var=LD_RUN_PATH
8914 hardcode_runpath_var=yes
8915 ld_shlibs=yes
8916 fi
8917 ;;
8918
8919 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8920 no_undefined_flag='${wl}-z,text'
8921 archive_cmds_need_lc=no
8922 hardcode_shlibpath_var=no
8923 runpath_var='LD_RUN_PATH'
8924
8925 if test "$GCC" = yes; then
8926 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8928 else
8929 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8931 fi
8932 ;;
8933
8934 sysv5* | sco3.2v5* | sco5v6*)
8935 # Note: We can NOT use -z defs as we might desire, because we do not
8936 # link with -lc, and that would cause any symbols used from libc to
8937 # always be unresolved, which means just about no library would
8938 # ever link correctly. If we're not using GNU ld we use -z text
8939 # though, which does catch some bad symbols but isn't as heavy-handed
8940 # as -z defs.
8941 no_undefined_flag='${wl}-z,text'
8942 allow_undefined_flag='${wl}-z,nodefs'
8943 archive_cmds_need_lc=no
8944 hardcode_shlibpath_var=no
8945 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8946 hardcode_libdir_separator=':'
8947 link_all_deplibs=yes
8948 export_dynamic_flag_spec='${wl}-Bexport'
8949 runpath_var='LD_RUN_PATH'
8950
8951 if test "$GCC" = yes; then
8952 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8954 else
8955 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957 fi
8958 ;;
8959
8960 uts4*)
8961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962 hardcode_libdir_flag_spec='-L$libdir'
8963 hardcode_shlibpath_var=no
8964 ;;
8965
8966 *)
8967 ld_shlibs=no
8968 ;;
8969 esac
8970 fi
8971
8972{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8973echo "${ECHO_T}$ld_shlibs" >&6; }
8974test "$ld_shlibs" = no && can_build_shared=no
8975
8976#
8977# Do we need to explicitly link libc?
8978#
8979case "x$archive_cmds_need_lc" in
8980x|xyes)
8981 # Assume -lc should be added
8982 archive_cmds_need_lc=yes
8983
8984 if test "$enable_shared" = yes && test "$GCC" = yes; then
8985 case $archive_cmds in
8986 *'~'*)
8987 # FIXME: we may have to deal with multi-command sequences.
8988 ;;
8989 '$CC '*)
8990 # Test whether the compiler implicitly links with -lc since on some
8991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8992 # to ld, don't add -lc before -lgcc.
8993 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8994echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8995 $rm conftest*
8996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8997
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } 2>conftest.err; then
9003 soname=conftest
9004 lib=conftest
9005 libobjs=conftest.$ac_objext
9006 deplibs=
9007 wl=$lt_prog_compiler_wl
9008 pic_flag=$lt_prog_compiler_pic
9009 compiler_flags=-v
9010 linker_flags=-v
9011 verstring=
9012 output_objdir=.
9013 libname=conftest
9014 lt_save_allow_undefined_flag=$allow_undefined_flag
9015 allow_undefined_flag=
9016 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9017 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }
9021 then
9022 archive_cmds_need_lc=no
9023 else
9024 archive_cmds_need_lc=yes
9025 fi
9026 allow_undefined_flag=$lt_save_allow_undefined_flag
9027 else
9028 cat conftest.err 1>&5
9029 fi
9030 $rm conftest*
9031 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9032echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9033 ;;
9034 esac
9035 fi
9036 ;;
9037esac
9038
9039{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9040echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9041library_names_spec=
9042libname_spec='lib$name'
9043soname_spec=
9044shrext_cmds=".so"
9045postinstall_cmds=
9046postuninstall_cmds=
9047finish_cmds=
9048finish_eval=
9049shlibpath_var=
9050shlibpath_overrides_runpath=unknown
9051version_type=none
9052dynamic_linker="$host_os ld.so"
9053sys_lib_dlsearch_path_spec="/lib /usr/lib"
9054
9055if test "$GCC" = yes; then
9056 case $host_os in
9057 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9058 *) lt_awk_arg="/^libraries:/" ;;
9059 esac
9060 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9061 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9062 # if the path contains ";" then we assume it to be the separator
9063 # otherwise default to the standard path separator (i.e. ":") - it is
9064 # assumed that no part of a normal pathname contains ";" but that should
9065 # okay in the real world where ";" in dirpaths is itself problematic.
9066 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9067 else
9068 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9069 fi
9070 # Ok, now we have the path, separated by spaces, we can step through it
9071 # and add multilib dir if necessary.
9072 lt_tmp_lt_search_path_spec=
9073 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9074 for lt_sys_path in $lt_search_path_spec; do
9075 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9076 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9077 else
9078 test -d "$lt_sys_path" && \
9079 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9080 fi
9081 done
9082 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9083BEGIN {RS=" "; FS="/|\n";} {
9084 lt_foo="";
9085 lt_count=0;
9086 for (lt_i = NF; lt_i > 0; lt_i--) {
9087 if ($lt_i != "" && $lt_i != ".") {
9088 if ($lt_i == "..") {
9089 lt_count++;
9090 } else {
9091 if (lt_count == 0) {
9092 lt_foo="/" $lt_i lt_foo;
9093 } else {
9094 lt_count--;
9095 }
9096 }
9097 }
9098 }
9099 if (lt_foo != "") { lt_freq[lt_foo]++; }
9100 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9101}'`
9102 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9103else
9104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9105fi
9106need_lib_prefix=unknown
9107hardcode_into_libs=no
9108
9109# when you set need_version to no, make sure it does not cause -set_version
9110# flags to be left without arguments
9111need_version=unknown
9112
9113case $host_os in
9114aix3*)
9115 version_type=linux
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9117 shlibpath_var=LIBPATH
9118
9119 # AIX 3 has no versioning support, so we append a major version to the name.
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 ;;
9122
9123aix[4-9]*)
9124 version_type=linux
9125 need_lib_prefix=no
9126 need_version=no
9127 hardcode_into_libs=yes
9128 if test "$host_cpu" = ia64; then
9129 # AIX 5 supports IA64
9130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 else
9133 # With GCC up to 2.95.x, collect2 would create an import file
9134 # for dependence libraries. The import file would start with
9135 # the line `#! .'. This would cause the generated library to
9136 # depend on `.', always an invalid library. This was fixed in
9137 # development snapshots of GCC prior to 3.0.
9138 case $host_os in
9139 aix4 | aix4.[01] | aix4.[01].*)
9140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9141 echo ' yes '
9142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9143 :
9144 else
9145 can_build_shared=no
9146 fi
9147 ;;
9148 esac
9149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9150 # soname into executable. Probably we can add versioning support to
9151 # collect2, so additional links can be useful in future.
9152 if test "$aix_use_runtimelinking" = yes; then
9153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9154 # instead of lib<name>.a to let people know that these are not
9155 # typical AIX shared libraries.
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 else
9158 # We preserve .a as extension for shared libraries through AIX4.2
9159 # and later when we are not doing run time linking.
9160 library_names_spec='${libname}${release}.a $libname.a'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 fi
9163 shlibpath_var=LIBPATH
9164 fi
9165 ;;
9166
9167amigaos*)
9168 library_names_spec='$libname.ixlibrary $libname.a'
9169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9170 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'
9171 ;;
9172
9173beos*)
9174 library_names_spec='${libname}${shared_ext}'
9175 dynamic_linker="$host_os ld.so"
9176 shlibpath_var=LIBRARY_PATH
9177 ;;
9178
9179bsdi[45]*)
9180 version_type=linux
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9188 # the default ld.so.conf also contains /usr/contrib/lib and
9189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9190 # libtool to hard-code these into programs
9191 ;;
9192
9193cygwin* | mingw* | pw32*)
9194 version_type=windows
9195 shrext_cmds=".dll"
9196 need_version=no
9197 need_lib_prefix=no
9198
9199 case $GCC,$host_os in
9200 yes,cygwin* | yes,mingw* | yes,pw32*)
9201 library_names_spec='$libname.dll.a'
9202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9203 postinstall_cmds='base_file=`basename \${file}`~
9204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9205 dldir=$destdir/`dirname \$dlpath`~
9206 test -d \$dldir || mkdir -p \$dldir~
9207 $install_prog $dir/$dlname \$dldir/$dlname~
9208 chmod a+x \$dldir/$dlname'
9209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9210 dlpath=$dir/\$dldll~
9211 $rm \$dlpath'
9212 shlibpath_overrides_runpath=yes
9213
9214 case $host_os in
9215 cygwin*)
9216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9219 ;;
9220 mingw*)
9221 # MinGW DLLs use traditional 'lib' prefix
9222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9224 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9225 # It is most probably a Windows format PATH printed by
9226 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9227 # path with ; separators, and with drive letters. We can handle the
9228 # drive letters (cygwin fileutils understands them), so leave them,
9229 # especially as we might pass files found there to a mingw objdump,
9230 # which wouldn't understand a cygwinified path. Ahh.
9231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9232 else
9233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9234 fi
9235 ;;
9236 pw32*)
9237 # pw32 DLLs use 'pw' prefix rather than 'lib'
9238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9239 ;;
9240 esac
9241 ;;
9242
9243 *)
9244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9245 ;;
9246 esac
9247 dynamic_linker='Win32 ld.exe'
9248 # FIXME: first we should search . and the directory the executable is in
9249 shlibpath_var=PATH
9250 ;;
9251
9252darwin* | rhapsody*)
9253 dynamic_linker="$host_os dyld"
9254 version_type=darwin
9255 need_lib_prefix=no
9256 need_version=no
9257 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9258 soname_spec='${libname}${release}${major}$shared_ext'
9259 shlibpath_overrides_runpath=yes
9260 shlibpath_var=DYLD_LIBRARY_PATH
9261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9262
9263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9265 ;;
9266
9267dgux*)
9268 version_type=linux
9269 need_lib_prefix=no
9270 need_version=no
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 ;;
9275
9276freebsd1*)
9277 dynamic_linker=no
9278 ;;
9279
9280freebsd* | dragonfly*)
9281 # DragonFly does not have aout. When/if they implement a new
9282 # versioning mechanism, adjust this.
9283 if test -x /usr/bin/objformat; then
9284 objformat=`/usr/bin/objformat`
9285 else
9286 case $host_os in
9287 freebsd[123]*) objformat=aout ;;
9288 *) objformat=elf ;;
9289 esac
9290 fi
9291 version_type=freebsd-$objformat
9292 case $version_type in
9293 freebsd-elf*)
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9295 need_version=no
9296 need_lib_prefix=no
9297 ;;
9298 freebsd-*)
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9300 need_version=yes
9301 ;;
9302 esac
9303 shlibpath_var=LD_LIBRARY_PATH
9304 case $host_os in
9305 freebsd2*)
9306 shlibpath_overrides_runpath=yes
9307 ;;
9308 freebsd3.[01]* | freebsdelf3.[01]*)
9309 shlibpath_overrides_runpath=yes
9310 hardcode_into_libs=yes
9311 ;;
9312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9314 shlibpath_overrides_runpath=no
9315 hardcode_into_libs=yes
9316 ;;
9317 *) # from 4.6 on, and DragonFly
9318 shlibpath_overrides_runpath=yes
9319 hardcode_into_libs=yes
9320 ;;
9321 esac
9322 ;;
9323
9324gnu*)
9325 version_type=linux
9326 need_lib_prefix=no
9327 need_version=no
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 hardcode_into_libs=yes
9332 ;;
9333
9334hpux9* | hpux10* | hpux11*)
9335 # Give a soname corresponding to the major version so that dld.sl refuses to
9336 # link against other versions.
9337 version_type=sunos
9338 need_lib_prefix=no
9339 need_version=no
9340 case $host_cpu in
9341 ia64*)
9342 shrext_cmds='.so'
9343 hardcode_into_libs=yes
9344 dynamic_linker="$host_os dld.so"
9345 shlibpath_var=LD_LIBRARY_PATH
9346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 if test "X$HPUX_IA64_MODE" = X32; then
9350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9351 else
9352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9353 fi
9354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9355 ;;
9356 hppa*64*)
9357 shrext_cmds='.sl'
9358 hardcode_into_libs=yes
9359 dynamic_linker="$host_os dld.sl"
9360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9366 ;;
9367 *)
9368 shrext_cmds='.sl'
9369 dynamic_linker="$host_os dld.sl"
9370 shlibpath_var=SHLIB_PATH
9371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 ;;
9375 esac
9376 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9377 postinstall_cmds='chmod 555 $lib'
9378 ;;
9379
9380interix[3-9]*)
9381 version_type=linux
9382 need_lib_prefix=no
9383 need_version=no
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=no
9389 hardcode_into_libs=yes
9390 ;;
9391
9392irix5* | irix6* | nonstopux*)
9393 case $host_os in
9394 nonstopux*) version_type=nonstopux ;;
9395 *)
9396 if test "$lt_cv_prog_gnu_ld" = yes; then
9397 version_type=linux
9398 else
9399 version_type=irix
9400 fi ;;
9401 esac
9402 need_lib_prefix=no
9403 need_version=no
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9406 case $host_os in
9407 irix5* | nonstopux*)
9408 libsuff= shlibsuff=
9409 ;;
9410 *)
9411 case $LD in # libtool.m4 will add one of these switches to LD
9412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9413 libsuff= shlibsuff= libmagic=32-bit;;
9414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9415 libsuff=32 shlibsuff=N32 libmagic=N32;;
9416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9418 *) libsuff= shlibsuff= libmagic=never-match;;
9419 esac
9420 ;;
9421 esac
9422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9423 shlibpath_overrides_runpath=no
9424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9426 hardcode_into_libs=yes
9427 ;;
9428
9429# No shared lib support for Linux oldld, aout, or coff.
9430linux*oldld* | linux*aout* | linux*coff*)
9431 dynamic_linker=no
9432 ;;
9433
9434# This must be Linux ELF.
9435linux* | k*bsd*-gnu)
9436 version_type=linux
9437 need_lib_prefix=no
9438 need_version=no
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 shlibpath_overrides_runpath=no
9444 # This implies no fast_install, which is unacceptable.
9445 # Some rework will be needed to allow for fast_install
9446 # before this can be enabled.
9447 hardcode_into_libs=yes
9448
9449 # Append ld.so.conf contents to the search path
9450 if test -f /etc/ld.so.conf; then
9451 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' ' '`
9452 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9453 fi
9454
9455 # We used to test for /lib/ld.so.1 and disable shared libraries on
9456 # powerpc, because MkLinux only supported shared libraries with the
9457 # GNU dynamic linker. Since this was broken with cross compilers,
9458 # most powerpc-linux boxes support dynamic linking these days and
9459 # people can always --disable-shared, the test was removed, and we
9460 # assume the GNU/Linux dynamic linker is in use.
9461 dynamic_linker='GNU/Linux ld.so'
9462 ;;
9463
9464netbsdelf*-gnu)
9465 version_type=linux
9466 need_lib_prefix=no
9467 need_version=no
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9469 soname_spec='${libname}${release}${shared_ext}$major'
9470 shlibpath_var=LD_LIBRARY_PATH
9471 shlibpath_overrides_runpath=no
9472 hardcode_into_libs=yes
9473 dynamic_linker='NetBSD ld.elf_so'
9474 ;;
9475
9476netbsd*)
9477 version_type=sunos
9478 need_lib_prefix=no
9479 need_version=no
9480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9483 dynamic_linker='NetBSD (a.out) ld.so'
9484 else
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 dynamic_linker='NetBSD ld.elf_so'
9488 fi
9489 shlibpath_var=LD_LIBRARY_PATH
9490 shlibpath_overrides_runpath=yes
9491 hardcode_into_libs=yes
9492 ;;
9493
9494newsos6)
9495 version_type=linux
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 shlibpath_overrides_runpath=yes
9499 ;;
9500
9501nto-qnx*)
9502 version_type=linux
9503 need_lib_prefix=no
9504 need_version=no
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506 soname_spec='${libname}${release}${shared_ext}$major'
9507 shlibpath_var=LD_LIBRARY_PATH
9508 shlibpath_overrides_runpath=yes
9509 ;;
9510
9511openbsd*)
9512 version_type=sunos
9513 sys_lib_dlsearch_path_spec="/usr/lib"
9514 need_lib_prefix=no
9515 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9516 case $host_os in
9517 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9518 *) need_version=no ;;
9519 esac
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9522 shlibpath_var=LD_LIBRARY_PATH
9523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9524 case $host_os in
9525 openbsd2.[89] | openbsd2.[89].*)
9526 shlibpath_overrides_runpath=no
9527 ;;
9528 *)
9529 shlibpath_overrides_runpath=yes
9530 ;;
9531 esac
9532 else
9533 shlibpath_overrides_runpath=yes
9534 fi
9535 ;;
9536
9537os2*)
9538 libname_spec='$name'
9539 shrext_cmds=".dll"
9540 need_lib_prefix=no
9541 library_names_spec='$libname${shared_ext} $libname.a'
9542 dynamic_linker='OS/2 ld.exe'
9543 shlibpath_var=LIBPATH
9544 ;;
9545
9546osf3* | osf4* | osf5*)
9547 version_type=osf
9548 need_lib_prefix=no
9549 need_version=no
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9554 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9555 ;;
9556
9557rdos*)
9558 dynamic_linker=no
9559 ;;
9560
9561solaris*)
9562 version_type=linux
9563 need_lib_prefix=no
9564 need_version=no
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 shlibpath_overrides_runpath=yes
9569 hardcode_into_libs=yes
9570 # ldd complains unless libraries are executable
9571 postinstall_cmds='chmod +x $lib'
9572 ;;
9573
9574sunos4*)
9575 version_type=sunos
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 shlibpath_overrides_runpath=yes
9580 if test "$with_gnu_ld" = yes; then
9581 need_lib_prefix=no
9582 fi
9583 need_version=yes
9584 ;;
9585
9586sysv4 | sysv4.3*)
9587 version_type=linux
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 case $host_vendor in
9592 sni)
9593 shlibpath_overrides_runpath=no
9594 need_lib_prefix=no
9595 export_dynamic_flag_spec='${wl}-Blargedynsym'
9596 runpath_var=LD_RUN_PATH
9597 ;;
9598 siemens)
9599 need_lib_prefix=no
9600 ;;
9601 motorola)
9602 need_lib_prefix=no
9603 need_version=no
9604 shlibpath_overrides_runpath=no
9605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9606 ;;
9607 esac
9608 ;;
9609
9610sysv4*MP*)
9611 if test -d /usr/nec ;then
9612 version_type=linux
9613 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9614 soname_spec='$libname${shared_ext}.$major'
9615 shlibpath_var=LD_LIBRARY_PATH
9616 fi
9617 ;;
9618
9619sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9620 version_type=freebsd-elf
9621 need_lib_prefix=no
9622 need_version=no
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 hardcode_into_libs=yes
9627 if test "$with_gnu_ld" = yes; then
9628 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9629 shlibpath_overrides_runpath=no
9630 else
9631 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9632 shlibpath_overrides_runpath=yes
9633 case $host_os in
9634 sco3.2v5*)
9635 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9636 ;;
9637 esac
9638 fi
9639 sys_lib_dlsearch_path_spec='/usr/lib'
9640 ;;
9641
9642uts4*)
9643 version_type=linux
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 shlibpath_var=LD_LIBRARY_PATH
9647 ;;
9648
9649*)
9650 dynamic_linker=no
9651 ;;
9652esac
9653{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9654echo "${ECHO_T}$dynamic_linker" >&6; }
9655test "$dynamic_linker" = no && can_build_shared=no
9656
9657if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659else
9660 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9661fi
9662
9663sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9664if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666else
9667 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9668fi
9669
9670sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9671
9672variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9673if test "$GCC" = yes; then
9674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9675fi
9676
9677{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9678echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9679hardcode_action=
9680if test -n "$hardcode_libdir_flag_spec" || \
9681 test -n "$runpath_var" || \
9682 test "X$hardcode_automatic" = "Xyes" ; then
9683
9684 # We can hardcode non-existant directories.
9685 if test "$hardcode_direct" != no &&
9686 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9687 # have to relink, otherwise we might link with an installed library
9688 # when we should be linking with a yet-to-be-installed one
9689 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9690 test "$hardcode_minus_L" != no; then
9691 # Linking always hardcodes the temporary library directory.
9692 hardcode_action=relink
9693 else
9694 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9695 hardcode_action=immediate
9696 fi
9697else
9698 # We cannot hardcode anything, or else we can only hardcode existing
9699 # directories.
9700 hardcode_action=unsupported
9701fi
9702{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9703echo "${ECHO_T}$hardcode_action" >&6; }
9704
9705if test "$hardcode_action" = relink; then
9706 # Fast installation is not supported
9707 enable_fast_install=no
9708elif test "$shlibpath_overrides_runpath" = yes ||
9709 test "$enable_shared" = no; then
9710 # Fast installation is not necessary
9711 enable_fast_install=needless
9712fi
9713
9714striplib=
9715old_striplib=
9716{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9717echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9718if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9719 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9720 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9721 { echo "$as_me:$LINENO: result: yes" >&5
9722echo "${ECHO_T}yes" >&6; }
9723else
9724# FIXME - insert some real tests, host_os isn't really good enough
9725 case $host_os in
9726 darwin*)
9727 if test -n "$STRIP" ; then
9728 striplib="$STRIP -x"
9729 old_striplib="$STRIP -S"
9730 { echo "$as_me:$LINENO: result: yes" >&5
9731echo "${ECHO_T}yes" >&6; }
9732 else
9733 { echo "$as_me:$LINENO: result: no" >&5
9734echo "${ECHO_T}no" >&6; }
9735fi
9736 ;;
9737 *)
9738 { echo "$as_me:$LINENO: result: no" >&5
9739echo "${ECHO_T}no" >&6; }
9740 ;;
9741 esac
9742fi
9743
9744if test "x$enable_dlopen" != xyes; then
9745 enable_dlopen=unknown
9746 enable_dlopen_self=unknown
9747 enable_dlopen_self_static=unknown
9748else
9749 lt_cv_dlopen=no
9750 lt_cv_dlopen_libs=
9751
9752 case $host_os in
9753 beos*)
9754 lt_cv_dlopen="load_add_on"
9755 lt_cv_dlopen_libs=
9756 lt_cv_dlopen_self=yes
9757 ;;
9758
9759 mingw* | pw32*)
9760 lt_cv_dlopen="LoadLibrary"
9761 lt_cv_dlopen_libs=
9762 ;;
9763
9764 cygwin*)
9765 lt_cv_dlopen="dlopen"
9766 lt_cv_dlopen_libs=
9767 ;;
9768
9769 darwin*)
9770 # if libdl is installed we need to link against it
9771 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9772echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9773if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9775else
9776 ac_check_lib_save_LIBS=$LIBS
9777LIBS="-ldl $LIBS"
9778cat >conftest.$ac_ext <<_ACEOF
9779/* confdefs.h. */
9780_ACEOF
9781cat confdefs.h >>conftest.$ac_ext
9782cat >>conftest.$ac_ext <<_ACEOF
9783/* end confdefs.h. */
9784
9785/* Override any GCC internal prototype to avoid an error.
9786 Use char because int might match the return type of a GCC
9787 builtin and then its argument prototype would still apply. */
9788#ifdef __cplusplus
9789extern "C"
9790#endif
9791char dlopen ();
9792int
9793main ()
9794{
9795return dlopen ();
9796 ;
9797 return 0;
9798}
9799_ACEOF
9800rm -f conftest.$ac_objext conftest$ac_exeext
9801if { (ac_try="$ac_link"
9802case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9805esac
9806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_link") 2>conftest.er1
9808 ac_status=$?
9809 grep -v '^ *+' conftest.er1 >conftest.err
9810 rm -f conftest.er1
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } && {
9814 test -z "$ac_c_werror_flag" ||
9815 test ! -s conftest.err
9816 } && test -s conftest$ac_exeext &&
9817 $as_test_x conftest$ac_exeext; then
9818 ac_cv_lib_dl_dlopen=yes
9819else
9820 echo "$as_me: failed program was:" >&5
9821sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 ac_cv_lib_dl_dlopen=no
9824fi
9825
9826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9827 conftest$ac_exeext conftest.$ac_ext
9828LIBS=$ac_check_lib_save_LIBS
9829fi
9830{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9831echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9832if test $ac_cv_lib_dl_dlopen = yes; then
9833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9834else
9835
9836 lt_cv_dlopen="dyld"
9837 lt_cv_dlopen_libs=
9838 lt_cv_dlopen_self=yes
9839
9840fi
9841
9842 ;;
9843
9844 *)
9845 { echo "$as_me:$LINENO: checking for shl_load" >&5
9846echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9847if test "${ac_cv_func_shl_load+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849else
9850 cat >conftest.$ac_ext <<_ACEOF
9851/* confdefs.h. */
9852_ACEOF
9853cat confdefs.h >>conftest.$ac_ext
9854cat >>conftest.$ac_ext <<_ACEOF
9855/* end confdefs.h. */
9856/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9858#define shl_load innocuous_shl_load
9859
9860/* System header to define __stub macros and hopefully few prototypes,
9861 which can conflict with char shl_load (); below.
9862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863 <limits.h> exists even on freestanding compilers. */
9864
9865#ifdef __STDC__
9866# include <limits.h>
9867#else
9868# include <assert.h>
9869#endif
9870
9871#undef shl_load
9872
9873/* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9876#ifdef __cplusplus
9877extern "C"
9878#endif
9879char shl_load ();
9880/* The GNU C library defines this for functions which it implements
9881 to always fail with ENOSYS. Some functions are actually named
9882 something starting with __ and the normal name is an alias. */
9883#if defined __stub_shl_load || defined __stub___shl_load
9884choke me
9885#endif
9886
9887int
9888main ()
9889{
9890return shl_load ();
9891 ;
9892 return 0;
9893}
9894_ACEOF
9895rm -f conftest.$ac_objext conftest$ac_exeext
9896if { (ac_try="$ac_link"
9897case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900esac
9901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest$ac_exeext &&
9912 $as_test_x conftest$ac_exeext; then
9913 ac_cv_func_shl_load=yes
9914else
9915 echo "$as_me: failed program was:" >&5
9916sed 's/^/| /' conftest.$ac_ext >&5
9917
9918 ac_cv_func_shl_load=no
9919fi
9920
9921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9922 conftest$ac_exeext conftest.$ac_ext
9923fi
9924{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9925echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9926if test $ac_cv_func_shl_load = yes; then
9927 lt_cv_dlopen="shl_load"
9928else
9929 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9930echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9931if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934 ac_check_lib_save_LIBS=$LIBS
9935LIBS="-ldld $LIBS"
9936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h. */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
9941/* end confdefs.h. */
9942
9943/* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9946#ifdef __cplusplus
9947extern "C"
9948#endif
9949char shl_load ();
9950int
9951main ()
9952{
9953return shl_load ();
9954 ;
9955 return 0;
9956}
9957_ACEOF
9958rm -f conftest.$ac_objext conftest$ac_exeext
9959if { (ac_try="$ac_link"
9960case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963esac
9964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_link") 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } && {
9972 test -z "$ac_c_werror_flag" ||
9973 test ! -s conftest.err
9974 } && test -s conftest$ac_exeext &&
9975 $as_test_x conftest$ac_exeext; then
9976 ac_cv_lib_dld_shl_load=yes
9977else
9978 echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981 ac_cv_lib_dld_shl_load=no
9982fi
9983
9984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9985 conftest$ac_exeext conftest.$ac_ext
9986LIBS=$ac_check_lib_save_LIBS
9987fi
9988{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9989echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9990if test $ac_cv_lib_dld_shl_load = yes; then
9991 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9992else
9993 { echo "$as_me:$LINENO: checking for dlopen" >&5
9994echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9995if test "${ac_cv_func_dlopen+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997else
9998 cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h. */
10004/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10006#define dlopen innocuous_dlopen
10007
10008/* System header to define __stub macros and hopefully few prototypes,
10009 which can conflict with char dlopen (); below.
10010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10011 <limits.h> exists even on freestanding compilers. */
10012
10013#ifdef __STDC__
10014# include <limits.h>
10015#else
10016# include <assert.h>
10017#endif
10018
10019#undef dlopen
10020
10021/* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10024#ifdef __cplusplus
10025extern "C"
10026#endif
10027char dlopen ();
10028/* The GNU C library defines this for functions which it implements
10029 to always fail with ENOSYS. Some functions are actually named
10030 something starting with __ and the normal name is an alias. */
10031#if defined __stub_dlopen || defined __stub___dlopen
10032choke me
10033#endif
10034
10035int
10036main ()
10037{
10038return dlopen ();
10039 ;
10040 return 0;
10041}
10042_ACEOF
10043rm -f conftest.$ac_objext conftest$ac_exeext
10044if { (ac_try="$ac_link"
10045case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_c_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest$ac_exeext &&
10060 $as_test_x conftest$ac_exeext; then
10061 ac_cv_func_dlopen=yes
10062else
10063 echo "$as_me: failed program was:" >&5
10064sed 's/^/| /' conftest.$ac_ext >&5
10065
10066 ac_cv_func_dlopen=no
10067fi
10068
10069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10070 conftest$ac_exeext conftest.$ac_ext
10071fi
10072{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10073echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10074if test $ac_cv_func_dlopen = yes; then
10075 lt_cv_dlopen="dlopen"
10076else
10077 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10078echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10079if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081else
10082 ac_check_lib_save_LIBS=$LIBS
10083LIBS="-ldl $LIBS"
10084cat >conftest.$ac_ext <<_ACEOF
10085/* confdefs.h. */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h. */
10090
10091/* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10094#ifdef __cplusplus
10095extern "C"
10096#endif
10097char dlopen ();
10098int
10099main ()
10100{
10101return dlopen ();
10102 ;
10103 return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
10107if { (ac_try="$ac_link"
10108case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111esac
10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>conftest.er1
10114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } && {
10120 test -z "$ac_c_werror_flag" ||
10121 test ! -s conftest.err
10122 } && test -s conftest$ac_exeext &&
10123 $as_test_x conftest$ac_exeext; then
10124 ac_cv_lib_dl_dlopen=yes
10125else
10126 echo "$as_me: failed program was:" >&5
10127sed 's/^/| /' conftest.$ac_ext >&5
10128
10129 ac_cv_lib_dl_dlopen=no
10130fi
10131
10132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10133 conftest$ac_exeext conftest.$ac_ext
10134LIBS=$ac_check_lib_save_LIBS
10135fi
10136{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10137echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10138if test $ac_cv_lib_dl_dlopen = yes; then
10139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10140else
10141 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10142echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10143if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145else
10146 ac_check_lib_save_LIBS=$LIBS
10147LIBS="-lsvld $LIBS"
10148cat >conftest.$ac_ext <<_ACEOF
10149/* confdefs.h. */
10150_ACEOF
10151cat confdefs.h >>conftest.$ac_ext
10152cat >>conftest.$ac_ext <<_ACEOF
10153/* end confdefs.h. */
10154
10155/* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10158#ifdef __cplusplus
10159extern "C"
10160#endif
10161char dlopen ();
10162int
10163main ()
10164{
10165return dlopen ();
10166 ;
10167 return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext conftest$ac_exeext
10171if { (ac_try="$ac_link"
10172case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10175esac
10176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_link") 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && {
10184 test -z "$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 } && test -s conftest$ac_exeext &&
10187 $as_test_x conftest$ac_exeext; then
10188 ac_cv_lib_svld_dlopen=yes
10189else
10190 echo "$as_me: failed program was:" >&5
10191sed 's/^/| /' conftest.$ac_ext >&5
10192
10193 ac_cv_lib_svld_dlopen=no
10194fi
10195
10196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10197 conftest$ac_exeext conftest.$ac_ext
10198LIBS=$ac_check_lib_save_LIBS
10199fi
10200{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10201echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10202if test $ac_cv_lib_svld_dlopen = yes; then
10203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10204else
10205 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10206echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10207if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10209else
10210 ac_check_lib_save_LIBS=$LIBS
10211LIBS="-ldld $LIBS"
10212cat >conftest.$ac_ext <<_ACEOF
10213/* confdefs.h. */
10214_ACEOF
10215cat confdefs.h >>conftest.$ac_ext
10216cat >>conftest.$ac_ext <<_ACEOF
10217/* end confdefs.h. */
10218
10219/* Override any GCC internal prototype to avoid an error.
10220 Use char because int might match the return type of a GCC
10221 builtin and then its argument prototype would still apply. */
10222#ifdef __cplusplus
10223extern "C"
10224#endif
10225char dld_link ();
10226int
10227main ()
10228{
10229return dld_link ();
10230 ;
10231 return 0;
10232}
10233_ACEOF
10234rm -f conftest.$ac_objext conftest$ac_exeext
10235if { (ac_try="$ac_link"
10236case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10239esac
10240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_link") 2>conftest.er1
10242 ac_status=$?
10243 grep -v '^ *+' conftest.er1 >conftest.err
10244 rm -f conftest.er1
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest$ac_exeext &&
10251 $as_test_x conftest$ac_exeext; then
10252 ac_cv_lib_dld_dld_link=yes
10253else
10254 echo "$as_me: failed program was:" >&5
10255sed 's/^/| /' conftest.$ac_ext >&5
10256
10257 ac_cv_lib_dld_dld_link=no
10258fi
10259
10260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10261 conftest$ac_exeext conftest.$ac_ext
10262LIBS=$ac_check_lib_save_LIBS
10263fi
10264{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10265echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10266if test $ac_cv_lib_dld_dld_link = yes; then
10267 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10268fi
10269
10270
10271fi
10272
10273
10274fi
10275
10276
10277fi
10278
10279
10280fi
10281
10282
10283fi
10284
10285 ;;
10286 esac
10287
10288 if test "x$lt_cv_dlopen" != xno; then
10289 enable_dlopen=yes
10290 else
10291 enable_dlopen=no
10292 fi
10293
10294 case $lt_cv_dlopen in
10295 dlopen)
10296 save_CPPFLAGS="$CPPFLAGS"
10297 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10298
10299 save_LDFLAGS="$LDFLAGS"
10300 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10301
10302 save_LIBS="$LIBS"
10303 LIBS="$lt_cv_dlopen_libs $LIBS"
10304
10305 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10306echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10307if test "${lt_cv_dlopen_self+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310 if test "$cross_compiling" = yes; then :
10311 lt_cv_dlopen_self=cross
10312else
10313 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10314 lt_status=$lt_dlunknown
10315 cat > conftest.$ac_ext <<EOF
10316#line 10316 "configure"
10317#include "confdefs.h"
10318
10319#if HAVE_DLFCN_H
10320#include <dlfcn.h>
10321#endif
10322
10323#include <stdio.h>
10324
10325#ifdef RTLD_GLOBAL
10326# define LT_DLGLOBAL RTLD_GLOBAL
10327#else
10328# ifdef DL_GLOBAL
10329# define LT_DLGLOBAL DL_GLOBAL
10330# else
10331# define LT_DLGLOBAL 0
10332# endif
10333#endif
10334
10335/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10336 find out it does not work in some platform. */
10337#ifndef LT_DLLAZY_OR_NOW
10338# ifdef RTLD_LAZY
10339# define LT_DLLAZY_OR_NOW RTLD_LAZY
10340# else
10341# ifdef DL_LAZY
10342# define LT_DLLAZY_OR_NOW DL_LAZY
10343# else
10344# ifdef RTLD_NOW
10345# define LT_DLLAZY_OR_NOW RTLD_NOW
10346# else
10347# ifdef DL_NOW
10348# define LT_DLLAZY_OR_NOW DL_NOW
10349# else
10350# define LT_DLLAZY_OR_NOW 0
10351# endif
10352# endif
10353# endif
10354# endif
10355#endif
10356
10357#ifdef __cplusplus
10358extern "C" void exit (int);
10359#endif
10360
10361void fnord() { int i=42;}
10362int main ()
10363{
10364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10365 int status = $lt_dlunknown;
10366
10367 if (self)
10368 {
10369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10370 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10371 /* dlclose (self); */
10372 }
10373 else
10374 puts (dlerror ());
10375
10376 exit (status);
10377}
10378EOF
10379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380 (eval $ac_link) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10384 (./conftest; exit; ) >&5 2>/dev/null
10385 lt_status=$?
10386 case x$lt_status in
10387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10389 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10390 esac
10391 else :
10392 # compilation failed
10393 lt_cv_dlopen_self=no
10394 fi
10395fi
10396rm -fr conftest*
10397
10398
10399fi
10400{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10401echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10402
10403 if test "x$lt_cv_dlopen_self" = xyes; then
10404 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10405 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10406echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10407if test "${lt_cv_dlopen_self_static+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10409else
10410 if test "$cross_compiling" = yes; then :
10411 lt_cv_dlopen_self_static=cross
10412else
10413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10414 lt_status=$lt_dlunknown
10415 cat > conftest.$ac_ext <<EOF
10416#line 10416 "configure"
10417#include "confdefs.h"
10418
10419#if HAVE_DLFCN_H
10420#include <dlfcn.h>
10421#endif
10422
10423#include <stdio.h>
10424
10425#ifdef RTLD_GLOBAL
10426# define LT_DLGLOBAL RTLD_GLOBAL
10427#else
10428# ifdef DL_GLOBAL
10429# define LT_DLGLOBAL DL_GLOBAL
10430# else
10431# define LT_DLGLOBAL 0
10432# endif
10433#endif
10434
10435/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10436 find out it does not work in some platform. */
10437#ifndef LT_DLLAZY_OR_NOW
10438# ifdef RTLD_LAZY
10439# define LT_DLLAZY_OR_NOW RTLD_LAZY
10440# else
10441# ifdef DL_LAZY
10442# define LT_DLLAZY_OR_NOW DL_LAZY
10443# else
10444# ifdef RTLD_NOW
10445# define LT_DLLAZY_OR_NOW RTLD_NOW
10446# else
10447# ifdef DL_NOW
10448# define LT_DLLAZY_OR_NOW DL_NOW
10449# else
10450# define LT_DLLAZY_OR_NOW 0
10451# endif
10452# endif
10453# endif
10454# endif
10455#endif
10456
10457#ifdef __cplusplus
10458extern "C" void exit (int);
10459#endif
10460
10461void fnord() { int i=42;}
10462int main ()
10463{
10464 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10465 int status = $lt_dlunknown;
10466
10467 if (self)
10468 {
10469 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10470 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10471 /* dlclose (self); */
10472 }
10473 else
10474 puts (dlerror ());
10475
10476 exit (status);
10477}
10478EOF
10479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10480 (eval $ac_link) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10484 (./conftest; exit; ) >&5 2>/dev/null
10485 lt_status=$?
10486 case x$lt_status in
10487 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10488 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10489 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10490 esac
10491 else :
10492 # compilation failed
10493 lt_cv_dlopen_self_static=no
10494 fi
10495fi
10496rm -fr conftest*
10497
10498
10499fi
10500{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10501echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10502 fi
10503
10504 CPPFLAGS="$save_CPPFLAGS"
10505 LDFLAGS="$save_LDFLAGS"
10506 LIBS="$save_LIBS"
10507 ;;
10508 esac
10509
10510 case $lt_cv_dlopen_self in
10511 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10512 *) enable_dlopen_self=unknown ;;
10513 esac
10514
10515 case $lt_cv_dlopen_self_static in
10516 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10517 *) enable_dlopen_self_static=unknown ;;
10518 esac
10519fi
10520
10521
10522# Report which library types will actually be built
10523{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10524echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10525{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10526echo "${ECHO_T}$can_build_shared" >&6; }
10527
10528{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10529echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10530test "$can_build_shared" = "no" && enable_shared=no
10531
10532# On AIX, shared libraries and static libraries use the same namespace, and
10533# are all built from PIC.
10534case $host_os in
10535aix3*)
10536 test "$enable_shared" = yes && enable_static=no
10537 if test -n "$RANLIB"; then
10538 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10539 postinstall_cmds='$RANLIB $lib'
10540 fi
10541 ;;
10542
10543aix[4-9]*)
10544 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10545 test "$enable_shared" = yes && enable_static=no
10546 fi
10547 ;;
10548esac
10549{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10550echo "${ECHO_T}$enable_shared" >&6; }
10551
10552{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10553echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10554# Make sure either enable_shared or enable_static is yes.
10555test "$enable_shared" = yes || enable_static=yes
10556{ echo "$as_me:$LINENO: result: $enable_static" >&5
10557echo "${ECHO_T}$enable_static" >&6; }
10558
10559# The else clause should only fire when bootstrapping the
10560# libtool distribution, otherwise you forgot to ship ltmain.sh
10561# with your package, and you will get complaints that there are
10562# no rules to generate ltmain.sh.
10563if test -f "$ltmain"; then
10564 # See if we are running on zsh, and set the options which allow our commands through
10565 # without removal of \ escapes.
10566 if test -n "${ZSH_VERSION+set}" ; then
10567 setopt NO_GLOB_SUBST
10568 fi
10569 # Now quote all the things that may contain metacharacters while being
10570 # careful not to overquote the AC_SUBSTed values. We take copies of the
10571 # variables and quote the copies for generation of the libtool script.
10572 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10573 SED SHELL STRIP \
10574 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10575 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10576 deplibs_check_method reload_flag reload_cmds need_locks \
10577 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10578 lt_cv_sys_global_symbol_to_c_name_address \
10579 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10580 old_postinstall_cmds old_postuninstall_cmds \
10581 compiler \
10582 CC \
10583 LD \
10584 lt_prog_compiler_wl \
10585 lt_prog_compiler_pic \
10586 lt_prog_compiler_static \
10587 lt_prog_compiler_no_builtin_flag \
10588 export_dynamic_flag_spec \
10589 thread_safe_flag_spec \
10590 whole_archive_flag_spec \
10591 enable_shared_with_static_runtimes \
10592 old_archive_cmds \
10593 old_archive_from_new_cmds \
10594 predep_objects \
10595 postdep_objects \
10596 predeps \
10597 postdeps \
10598 compiler_lib_search_path \
10599 compiler_lib_search_dirs \
10600 archive_cmds \
10601 archive_expsym_cmds \
10602 postinstall_cmds \
10603 postuninstall_cmds \
10604 old_archive_from_expsyms_cmds \
10605 allow_undefined_flag \
10606 no_undefined_flag \
10607 export_symbols_cmds \
10608 hardcode_libdir_flag_spec \
10609 hardcode_libdir_flag_spec_ld \
10610 hardcode_libdir_separator \
10611 hardcode_automatic \
10612 module_cmds \
10613 module_expsym_cmds \
10614 lt_cv_prog_compiler_c_o \
10615 fix_srcfile_path \
10616 exclude_expsyms \
10617 include_expsyms; do
10618
10619 case $var in
10620 old_archive_cmds | \
10621 old_archive_from_new_cmds | \
10622 archive_cmds | \
10623 archive_expsym_cmds | \
10624 module_cmds | \
10625 module_expsym_cmds | \
10626 old_archive_from_expsyms_cmds | \
10627 export_symbols_cmds | \
10628 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10629 postinstall_cmds | postuninstall_cmds | \
10630 old_postinstall_cmds | old_postuninstall_cmds | \
10631 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10632 # Double-quote double-evaled strings.
10633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10634 ;;
10635 *)
10636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10637 ;;
10638 esac
10639 done
10640
10641 case $lt_echo in
10642 *'\$0 --fallback-echo"')
10643 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10644 ;;
10645 esac
10646
10647cfgfile="${ofile}T"
10648 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10649 $rm -f "$cfgfile"
10650 { echo "$as_me:$LINENO: creating $ofile" >&5
10651echo "$as_me: creating $ofile" >&6;}
10652
10653 cat <<__EOF__ >> "$cfgfile"
10654#! $SHELL
10655
10656# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10657# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10658# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10659#
10660# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10661# Free Software Foundation, Inc.
10662#
10663# This file is part of GNU Libtool:
10664# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10665#
10666# This program is free software; you can redistribute it and/or modify
10667# it under the terms of the GNU General Public License as published by
10668# the Free Software Foundation; either version 2 of the License, or
10669# (at your option) any later version.
10670#
10671# This program is distributed in the hope that it will be useful, but
10672# WITHOUT ANY WARRANTY; without even the implied warranty of
10673# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10674# General Public License for more details.
10675#
10676# You should have received a copy of the GNU General Public License
10677# along with this program; if not, write to the Free Software
10678# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10679#
10680# As a special exception to the GNU General Public License, if you
10681# distribute this file as part of a program that contains a
10682# configuration script generated by Autoconf, you may include it under
10683# the same distribution terms that you use for the rest of that program.
10684
10685# A sed program that does not truncate output.
10686SED=$lt_SED
10687
10688# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10689Xsed="$SED -e 1s/^X//"
10690
10691# The HP-UX ksh and POSIX shell print the target directory to stdout
10692# if CDPATH is set.
10693(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10694
10695# The names of the tagged configurations supported by this script.
10696available_tags=
10697
10698# ### BEGIN LIBTOOL CONFIG
10699
10700# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10701
10702# Shell to use when invoking shell scripts.
10703SHELL=$lt_SHELL
10704
10705# Whether or not to build shared libraries.
10706build_libtool_libs=$enable_shared
10707
10708# Whether or not to build static libraries.
10709build_old_libs=$enable_static
10710
10711# Whether or not to add -lc for building shared libraries.
10712build_libtool_need_lc=$archive_cmds_need_lc
10713
10714# Whether or not to disallow shared libs when runtime libs are static
10715allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10716
10717# Whether or not to optimize for fast installation.
10718fast_install=$enable_fast_install
10719
10720# The host system.
10721host_alias=$host_alias
10722host=$host
10723host_os=$host_os
10724
10725# The build system.
10726build_alias=$build_alias
10727build=$build
10728build_os=$build_os
10729
10730# An echo program that does not interpret backslashes.
10731echo=$lt_echo
10732
10733# The archiver.
10734AR=$lt_AR
10735AR_FLAGS=$lt_AR_FLAGS
10736
10737# A C compiler.
10738LTCC=$lt_LTCC
10739
10740# LTCC compiler flags.
10741LTCFLAGS=$lt_LTCFLAGS
10742
10743# A language-specific compiler.
10744CC=$lt_compiler
10745
10746# Is the compiler the GNU C compiler?
10747with_gcc=$GCC
10748
10749# An ERE matcher.
10750EGREP=$lt_EGREP
10751
10752# The linker used to build libraries.
10753LD=$lt_LD
10754
10755# Whether we need hard or soft links.
10756LN_S=$lt_LN_S
10757
10758# A BSD-compatible nm program.
10759NM=$lt_NM
10760
10761# A symbol stripping program
10762STRIP=$lt_STRIP
10763
10764# Used to examine libraries when file_magic_cmd begins "file"
10765MAGIC_CMD=$MAGIC_CMD
10766
10767# Used on cygwin: DLL creation program.
10768DLLTOOL="$DLLTOOL"
10769
10770# Used on cygwin: object dumper.
10771OBJDUMP="$OBJDUMP"
10772
10773# Used on cygwin: assembler.
10774AS="$AS"
10775
10776# The name of the directory that contains temporary libtool files.
10777objdir=$objdir
10778
10779# How to create reloadable object files.
10780reload_flag=$lt_reload_flag
10781reload_cmds=$lt_reload_cmds
10782
10783# How to pass a linker flag through the compiler.
10784wl=$lt_lt_prog_compiler_wl
10785
10786# Object file suffix (normally "o").
10787objext="$ac_objext"
10788
10789# Old archive suffix (normally "a").
10790libext="$libext"
10791
10792# Shared library suffix (normally ".so").
10793shrext_cmds='$shrext_cmds'
10794
10795# Executable file suffix (normally "").
10796exeext="$exeext"
10797
10798# Additional compiler flags for building library objects.
10799pic_flag=$lt_lt_prog_compiler_pic
10800pic_mode=$pic_mode
10801
10802# What is the maximum length of a command?
10803max_cmd_len=$lt_cv_sys_max_cmd_len
10804
10805# Does compiler simultaneously support -c and -o options?
10806compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10807
10808# Must we lock files when doing compilation?
10809need_locks=$lt_need_locks
10810
10811# Do we need the lib prefix for modules?
10812need_lib_prefix=$need_lib_prefix
10813
10814# Do we need a version for libraries?
10815need_version=$need_version
10816
10817# Whether dlopen is supported.
10818dlopen_support=$enable_dlopen
10819
10820# Whether dlopen of programs is supported.
10821dlopen_self=$enable_dlopen_self
10822
10823# Whether dlopen of statically linked programs is supported.
10824dlopen_self_static=$enable_dlopen_self_static
10825
10826# Compiler flag to prevent dynamic linking.
10827link_static_flag=$lt_lt_prog_compiler_static
10828
10829# Compiler flag to turn off builtin functions.
10830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10831
10832# Compiler flag to allow reflexive dlopens.
10833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10834
10835# Compiler flag to generate shared objects directly from archives.
10836whole_archive_flag_spec=$lt_whole_archive_flag_spec
10837
10838# Compiler flag to generate thread-safe objects.
10839thread_safe_flag_spec=$lt_thread_safe_flag_spec
10840
10841# Library versioning type.
10842version_type=$version_type
10843
10844# Format of library name prefix.
10845libname_spec=$lt_libname_spec
10846
10847# List of archive names. First name is the real one, the rest are links.
10848# The last name is the one that the linker finds with -lNAME.
10849library_names_spec=$lt_library_names_spec
10850
10851# The coded name of the library, if different from the real name.
10852soname_spec=$lt_soname_spec
10853
10854# Commands used to build and install an old-style archive.
10855RANLIB=$lt_RANLIB
10856old_archive_cmds=$lt_old_archive_cmds
10857old_postinstall_cmds=$lt_old_postinstall_cmds
10858old_postuninstall_cmds=$lt_old_postuninstall_cmds
10859
10860# Create an old-style archive from a shared archive.
10861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10862
10863# Create a temporary old-style archive to link instead of a shared archive.
10864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10865
10866# Commands used to build and install a shared archive.
10867archive_cmds=$lt_archive_cmds
10868archive_expsym_cmds=$lt_archive_expsym_cmds
10869postinstall_cmds=$lt_postinstall_cmds
10870postuninstall_cmds=$lt_postuninstall_cmds
10871
10872# Commands used to build a loadable module (assumed same as above if empty)
10873module_cmds=$lt_module_cmds
10874module_expsym_cmds=$lt_module_expsym_cmds
10875
10876# Commands to strip libraries.
10877old_striplib=$lt_old_striplib
10878striplib=$lt_striplib
10879
10880# Dependencies to place before the objects being linked to create a
10881# shared library.
10882predep_objects=$lt_predep_objects
10883
10884# Dependencies to place after the objects being linked to create a
10885# shared library.
10886postdep_objects=$lt_postdep_objects
10887
10888# Dependencies to place before the objects being linked to create a
10889# shared library.
10890predeps=$lt_predeps
10891
10892# Dependencies to place after the objects being linked to create a
10893# shared library.
10894postdeps=$lt_postdeps
10895
10896# The directories searched by this compiler when creating a shared
10897# library
10898compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10899
10900# The library search path used internally by the compiler when linking
10901# a shared library.
10902compiler_lib_search_path=$lt_compiler_lib_search_path
10903
10904# Method to check whether dependent libraries are shared objects.
10905deplibs_check_method=$lt_deplibs_check_method
10906
10907# Command to use when deplibs_check_method == file_magic.
10908file_magic_cmd=$lt_file_magic_cmd
10909
10910# Flag that allows shared libraries with undefined symbols to be built.
10911allow_undefined_flag=$lt_allow_undefined_flag
10912
10913# Flag that forces no undefined symbols.
10914no_undefined_flag=$lt_no_undefined_flag
10915
10916# Commands used to finish a libtool library installation in a directory.
10917finish_cmds=$lt_finish_cmds
10918
10919# Same as above, but a single script fragment to be evaled but not shown.
10920finish_eval=$lt_finish_eval
10921
10922# Take the output of nm and produce a listing of raw symbols and C names.
10923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10924
10925# Transform the output of nm in a proper C declaration
10926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10927
10928# Transform the output of nm in a C name address pair
10929global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10930
10931# This is the shared library runtime path variable.
10932runpath_var=$runpath_var
10933
10934# This is the shared library path variable.
10935shlibpath_var=$shlibpath_var
10936
10937# Is shlibpath searched before the hard-coded library search path?
10938shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10939
10940# How to hardcode a shared library path into an executable.
10941hardcode_action=$hardcode_action
10942
10943# Whether we should hardcode library paths into libraries.
10944hardcode_into_libs=$hardcode_into_libs
10945
10946# Flag to hardcode \$libdir into a binary during linking.
10947# This must work even if \$libdir does not exist.
10948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10949
10950# If ld is used when linking, flag to hardcode \$libdir into
10951# a binary during linking. This must work even if \$libdir does
10952# not exist.
10953hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10954
10955# Whether we need a single -rpath flag with a separated argument.
10956hardcode_libdir_separator=$lt_hardcode_libdir_separator
10957
10958# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10959# resulting binary.
10960hardcode_direct=$hardcode_direct
10961
10962# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10963# resulting binary.
10964hardcode_minus_L=$hardcode_minus_L
10965
10966# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10967# the resulting binary.
10968hardcode_shlibpath_var=$hardcode_shlibpath_var
10969
10970# Set to yes if building a shared library automatically hardcodes DIR into the library
10971# and all subsequent libraries and executables linked against it.
10972hardcode_automatic=$hardcode_automatic
10973
10974# Variables whose values should be saved in libtool wrapper scripts and
10975# restored at relink time.
10976variables_saved_for_relink="$variables_saved_for_relink"
10977
10978# Whether libtool must link a program against all its dependency libraries.
10979link_all_deplibs=$link_all_deplibs
10980
10981# Compile-time system search path for libraries
10982sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10983
10984# Run-time system search path for libraries
10985sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10986
10987# Fix the shell variable \$srcfile for the compiler.
10988fix_srcfile_path=$lt_fix_srcfile_path
10989
10990# Set to yes if exported symbols are required.
10991always_export_symbols=$always_export_symbols
10992
10993# The commands to list exported symbols.
10994export_symbols_cmds=$lt_export_symbols_cmds
10995
10996# The commands to extract the exported symbol list from a shared archive.
10997extract_expsyms_cmds=$lt_extract_expsyms_cmds
10998
10999# Symbols that should not be listed in the preloaded symbols.
11000exclude_expsyms=$lt_exclude_expsyms
11001
11002# Symbols that must always be exported.
11003include_expsyms=$lt_include_expsyms
11004
11005# ### END LIBTOOL CONFIG
11006
11007__EOF__
11008
11009
11010 case $host_os in
11011 aix3*)
11012 cat <<\EOF >> "$cfgfile"
11013
11014# AIX sometimes has problems with the GCC collect2 program. For some
11015# reason, if we set the COLLECT_NAMES environment variable, the problems
11016# vanish in a puff of smoke.
11017if test "X${COLLECT_NAMES+set}" != Xset; then
11018 COLLECT_NAMES=
11019 export COLLECT_NAMES
11020fi
11021EOF
11022 ;;
11023 esac
11024
11025 # We use sed instead of cat because bash on DJGPP gets confused if
11026 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11027 # text mode, it properly converts lines to CR/LF. This bash problem
11028 # is reportedly fixed, but why not run on old versions too?
11029 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11030
11031 mv -f "$cfgfile" "$ofile" || \
11032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11033 chmod +x "$ofile"
11034
11035else
11036 # If there is no Makefile yet, we rely on a make rule to execute
11037 # `config.status --recheck' to rerun these tests and create the
11038 # libtool script then.
11039 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11040 if test -f "$ltmain_in"; then
11041 test -f Makefile && make "$ltmain"
11042 fi
11043fi
11044
11045
11046ac_ext=c
11047ac_cpp='$CPP $CPPFLAGS'
11048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11050ac_compiler_gnu=$ac_cv_c_compiler_gnu
11051
11052CC="$lt_save_CC"
11053
11054
11055# Check whether --with-tags was given.
11056if test "${with_tags+set}" = set; then
11057 withval=$with_tags; tagnames="$withval"
11058fi
11059
11060
11061if test -f "$ltmain" && test -n "$tagnames"; then
11062 if test ! -f "${ofile}"; then
11063 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11064echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11065 fi
11066
11067 if test -z "$LTCC"; then
11068 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11069 if test -z "$LTCC"; then
11070 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11071echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11072 else
11073 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11074echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11075 fi
11076 fi
11077 if test -z "$LTCFLAGS"; then
11078 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11079 fi
11080
11081 # Extract list of available tagged configurations in $ofile.
11082 # Note that this assumes the entire list is on one line.
11083 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11084
11085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11086 for tagname in $tagnames; do
11087 IFS="$lt_save_ifs"
11088 # Check whether tagname contains only valid characters
11089 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11090 "") ;;
11091 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11092echo "$as_me: error: invalid tag name: $tagname" >&2;}
11093 { (exit 1); exit 1; }; }
11094 ;;
11095 esac
11096
11097 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11098 then
11099 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11100echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11101 { (exit 1); exit 1; }; }
11102 fi
11103
11104 # Update the list of available tags.
11105 if test -n "$tagname"; then
11106 echo appending configuration tag \"$tagname\" to $ofile
11107
11108 case $tagname in
11109 CXX)
11110 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11111 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11112 (test "X$CXX" != "Xg++"))) ; then
11113 ac_ext=cpp
11114ac_cpp='$CXXCPP $CPPFLAGS'
11115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11118
11119
11120
11121
11122archive_cmds_need_lc_CXX=no
11123allow_undefined_flag_CXX=
11124always_export_symbols_CXX=no
11125archive_expsym_cmds_CXX=
11126export_dynamic_flag_spec_CXX=
11127hardcode_direct_CXX=no
11128hardcode_libdir_flag_spec_CXX=
11129hardcode_libdir_flag_spec_ld_CXX=
11130hardcode_libdir_separator_CXX=
11131hardcode_minus_L_CXX=no
11132hardcode_shlibpath_var_CXX=unsupported
11133hardcode_automatic_CXX=no
11134module_cmds_CXX=
11135module_expsym_cmds_CXX=
11136link_all_deplibs_CXX=unknown
11137old_archive_cmds_CXX=$old_archive_cmds
11138no_undefined_flag_CXX=
11139whole_archive_flag_spec_CXX=
11140enable_shared_with_static_runtimes_CXX=no
11141
11142# Dependencies to place before and after the object being linked:
11143predep_objects_CXX=
11144postdep_objects_CXX=
11145predeps_CXX=
11146postdeps_CXX=
11147compiler_lib_search_path_CXX=
11148compiler_lib_search_dirs_CXX=
11149
11150# Source file extension for C++ test sources.
11151ac_ext=cpp
11152
11153# Object file extension for compiled C++ test sources.
11154objext=o
11155objext_CXX=$objext
11156
11157# Code to be used in simple compile tests
11158lt_simple_compile_test_code="int some_variable = 0;"
11159
11160# Code to be used in simple link tests
11161lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11162
11163# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11164
11165# If no C compiler was specified, use CC.
11166LTCC=${LTCC-"$CC"}
11167
11168# If no C compiler flags were specified, use CFLAGS.
11169LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11170
11171# Allow CC to be a program name with arguments.
11172compiler=$CC
11173
11174
11175# save warnings/boilerplate of simple test code
11176ac_outfile=conftest.$ac_objext
11177echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11178eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11179_lt_compiler_boilerplate=`cat conftest.err`
11180$rm conftest*
11181
11182ac_outfile=conftest.$ac_objext
11183echo "$lt_simple_link_test_code" >conftest.$ac_ext
11184eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11185_lt_linker_boilerplate=`cat conftest.err`
11186$rm -r conftest*
11187
11188
11189# Allow CC to be a program name with arguments.
11190lt_save_CC=$CC
11191lt_save_LD=$LD
11192lt_save_GCC=$GCC
11193GCC=$GXX
11194lt_save_with_gnu_ld=$with_gnu_ld
11195lt_save_path_LD=$lt_cv_path_LD
11196if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11197 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11198else
11199 $as_unset lt_cv_prog_gnu_ld
11200fi
11201if test -n "${lt_cv_path_LDCXX+set}"; then
11202 lt_cv_path_LD=$lt_cv_path_LDCXX
11203else
11204 $as_unset lt_cv_path_LD
11205fi
11206test -z "${LDCXX+set}" || LD=$LDCXX
11207CC=${CXX-"c++"}
11208compiler=$CC
11209compiler_CXX=$CC
11210for cc_temp in $compiler""; do
11211 case $cc_temp in
11212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11214 \-*) ;;
11215 *) break;;
11216 esac
11217done
11218cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11219
11220
11221# We don't want -fno-exception wen compiling C++ code, so set the
11222# no_builtin_flag separately
11223if test "$GXX" = yes; then
11224 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11225else
11226 lt_prog_compiler_no_builtin_flag_CXX=
11227fi
11228
11229if test "$GXX" = yes; then
11230 # Set up default GNU C++ configuration
11231
11232
11233# Check whether --with-gnu-ld was given.
11234if test "${with_gnu_ld+set}" = set; then
11235 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11236else
11237 with_gnu_ld=no
11238fi
11239
11240ac_prog=ld
11241if test "$GCC" = yes; then
11242 # Check if gcc -print-prog-name=ld gives a path.
11243 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11244echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11245 case $host in
11246 *-*-mingw*)
11247 # gcc leaves a trailing carriage return which upsets mingw
11248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11249 *)
11250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11251 esac
11252 case $ac_prog in
11253 # Accept absolute paths.
11254 [\\/]* | ?:[\\/]*)
11255 re_direlt='/[^/][^/]*/\.\./'
11256 # Canonicalize the pathname of ld
11257 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11258 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11259 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11260 done
11261 test -z "$LD" && LD="$ac_prog"
11262 ;;
11263 "")
11264 # If it fails, then pretend we aren't using GCC.
11265 ac_prog=ld
11266 ;;
11267 *)
11268 # If it is relative, then search for the first ld in PATH.
11269 with_gnu_ld=unknown
11270 ;;
11271 esac
11272elif test "$with_gnu_ld" = yes; then
11273 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11274echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11275else
11276 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11277echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11278fi
11279if test "${lt_cv_path_LD+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282 if test -z "$LD"; then
11283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11284 for ac_dir in $PATH; do
11285 IFS="$lt_save_ifs"
11286 test -z "$ac_dir" && ac_dir=.
11287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11288 lt_cv_path_LD="$ac_dir/$ac_prog"
11289 # Check to see if the program is GNU ld. I'd rather use --version,
11290 # but apparently some variants of GNU ld only accept -v.
11291 # Break only if it was the GNU/non-GNU ld that we prefer.
11292 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11293 *GNU* | *'with BFD'*)
11294 test "$with_gnu_ld" != no && break
11295 ;;
11296 *)
11297 test "$with_gnu_ld" != yes && break
11298 ;;
11299 esac
11300 fi
11301 done
11302 IFS="$lt_save_ifs"
11303else
11304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11305fi
11306fi
11307
11308LD="$lt_cv_path_LD"
11309if test -n "$LD"; then
11310 { echo "$as_me:$LINENO: result: $LD" >&5
11311echo "${ECHO_T}$LD" >&6; }
11312else
11313 { echo "$as_me:$LINENO: result: no" >&5
11314echo "${ECHO_T}no" >&6; }
11315fi
11316test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11317echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11318 { (exit 1); exit 1; }; }
11319{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11320echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11321if test "${lt_cv_prog_gnu_ld+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323else
11324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11325case `$LD -v 2>&1 </dev/null` in
11326*GNU* | *'with BFD'*)
11327 lt_cv_prog_gnu_ld=yes
11328 ;;
11329*)
11330 lt_cv_prog_gnu_ld=no
11331 ;;
11332esac
11333fi
11334{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11335echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11336with_gnu_ld=$lt_cv_prog_gnu_ld
11337
11338
11339
11340 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11341 # archiving commands below assume that GNU ld is being used.
11342 if test "$with_gnu_ld" = yes; then
11343 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11344 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'
11345
11346 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11347 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11348
11349 # If archive_cmds runs LD, not CC, wlarc should be empty
11350 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11351 # investigate it a little bit more. (MM)
11352 wlarc='${wl}'
11353
11354 # ancient GNU ld didn't support --whole-archive et. al.
11355 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11356 grep 'no-whole-archive' > /dev/null; then
11357 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11358 else
11359 whole_archive_flag_spec_CXX=
11360 fi
11361 else
11362 with_gnu_ld=no
11363 wlarc=
11364
11365 # A generic and very simple default shared library creation
11366 # command for GNU C++ for the case where it uses the native
11367 # linker, instead of GNU ld. If possible, this setting should
11368 # overridden to take advantage of the native linker features on
11369 # the platform it is being used on.
11370 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11371 fi
11372
11373 # Commands to make compiler produce verbose output that lists
11374 # what "hidden" libraries, object files and flags are used when
11375 # linking a shared library.
11376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11377
11378else
11379 GXX=no
11380 with_gnu_ld=no
11381 wlarc=
11382fi
11383
11384# PORTME: fill in a description of your system's C++ link characteristics
11385{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11386echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11387ld_shlibs_CXX=yes
11388case $host_os in
11389 aix3*)
11390 # FIXME: insert proper C++ library support
11391 ld_shlibs_CXX=no
11392 ;;
11393 aix[4-9]*)
11394 if test "$host_cpu" = ia64; then
11395 # On IA64, the linker does run time linking by default, so we don't
11396 # have to do anything special.
11397 aix_use_runtimelinking=no
11398 exp_sym_flag='-Bexport'
11399 no_entry_flag=""
11400 else
11401 aix_use_runtimelinking=no
11402
11403 # Test if we are trying to use run time linking or normal
11404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11405 # need to do runtime linking.
11406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11407 for ld_flag in $LDFLAGS; do
11408 case $ld_flag in
11409 *-brtl*)
11410 aix_use_runtimelinking=yes
11411 break
11412 ;;
11413 esac
11414 done
11415 ;;
11416 esac
11417
11418 exp_sym_flag='-bexport'
11419 no_entry_flag='-bnoentry'
11420 fi
11421
11422 # When large executables or shared objects are built, AIX ld can
11423 # have problems creating the table of contents. If linking a library
11424 # or program results in "error TOC overflow" add -mminimal-toc to
11425 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11426 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11427
11428 archive_cmds_CXX=''
11429 hardcode_direct_CXX=yes
11430 hardcode_libdir_separator_CXX=':'
11431 link_all_deplibs_CXX=yes
11432
11433 if test "$GXX" = yes; then
11434 case $host_os in aix4.[012]|aix4.[012].*)
11435 # We only want to do this on AIX 4.2 and lower, the check
11436 # below for broken collect2 doesn't work under 4.3+
11437 collect2name=`${CC} -print-prog-name=collect2`
11438 if test -f "$collect2name" && \
11439 strings "$collect2name" | grep resolve_lib_name >/dev/null
11440 then
11441 # We have reworked collect2
11442 :
11443 else
11444 # We have old collect2
11445 hardcode_direct_CXX=unsupported
11446 # It fails to find uninstalled libraries when the uninstalled
11447 # path is not listed in the libpath. Setting hardcode_minus_L
11448 # to unsupported forces relinking
11449 hardcode_minus_L_CXX=yes
11450 hardcode_libdir_flag_spec_CXX='-L$libdir'
11451 hardcode_libdir_separator_CXX=
11452 fi
11453 ;;
11454 esac
11455 shared_flag='-shared'
11456 if test "$aix_use_runtimelinking" = yes; then
11457 shared_flag="$shared_flag "'${wl}-G'
11458 fi
11459 else
11460 # not using gcc
11461 if test "$host_cpu" = ia64; then
11462 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11463 # chokes on -Wl,-G. The following line is correct:
11464 shared_flag='-G'
11465 else
11466 if test "$aix_use_runtimelinking" = yes; then
11467 shared_flag='${wl}-G'
11468 else
11469 shared_flag='${wl}-bM:SRE'
11470 fi
11471 fi
11472 fi
11473
11474 # It seems that -bexpall does not export symbols beginning with
11475 # underscore (_), so it is better to generate a list of symbols to export.
11476 always_export_symbols_CXX=yes
11477 if test "$aix_use_runtimelinking" = yes; then
11478 # Warning - without using the other runtime loading flags (-brtl),
11479 # -berok will link without error, but may produce a broken library.
11480 allow_undefined_flag_CXX='-berok'
11481 # Determine the default libpath from the value encoded in an empty executable.
11482 cat >conftest.$ac_ext <<_ACEOF
11483/* confdefs.h. */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h. */
11488
11489int
11490main ()
11491{
11492
11493 ;
11494 return 0;
11495}
11496_ACEOF
11497rm -f conftest.$ac_objext conftest$ac_exeext
11498if { (ac_try="$ac_link"
11499case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11502esac
11503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_link") 2>conftest.er1
11505 ac_status=$?
11506 grep -v '^ *+' conftest.er1 >conftest.err
11507 rm -f conftest.er1
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_cxx_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest$ac_exeext &&
11514 $as_test_x conftest$ac_exeext; then
11515
11516lt_aix_libpath_sed='
11517 /Import File Strings/,/^$/ {
11518 /^0/ {
11519 s/^0 *\(.*\)$/\1/
11520 p
11521 }
11522 }'
11523aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11524# Check for a 64-bit object if we didn't find anything.
11525if test -z "$aix_libpath"; then
11526 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11527fi
11528else
11529 echo "$as_me: failed program was:" >&5
11530sed 's/^/| /' conftest.$ac_ext >&5
11531
11532
11533fi
11534
11535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11536 conftest$ac_exeext conftest.$ac_ext
11537if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11538
11539 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11540
11541 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"
11542 else
11543 if test "$host_cpu" = ia64; then
11544 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11545 allow_undefined_flag_CXX="-z nodefs"
11546 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"
11547 else
11548 # Determine the default libpath from the value encoded in an empty executable.
11549 cat >conftest.$ac_ext <<_ACEOF
11550/* confdefs.h. */
11551_ACEOF
11552cat confdefs.h >>conftest.$ac_ext
11553cat >>conftest.$ac_ext <<_ACEOF
11554/* end confdefs.h. */
11555
11556int
11557main ()
11558{
11559
11560 ;
11561 return 0;
11562}
11563_ACEOF
11564rm -f conftest.$ac_objext conftest$ac_exeext
11565if { (ac_try="$ac_link"
11566case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569esac
11570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_link") 2>conftest.er1
11572 ac_status=$?
11573 grep -v '^ *+' conftest.er1 >conftest.err
11574 rm -f conftest.er1
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_cxx_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest$ac_exeext &&
11581 $as_test_x conftest$ac_exeext; then
11582
11583lt_aix_libpath_sed='
11584 /Import File Strings/,/^$/ {
11585 /^0/ {
11586 s/^0 *\(.*\)$/\1/
11587 p
11588 }
11589 }'
11590aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11591# Check for a 64-bit object if we didn't find anything.
11592if test -z "$aix_libpath"; then
11593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11594fi
11595else
11596 echo "$as_me: failed program was:" >&5
11597sed 's/^/| /' conftest.$ac_ext >&5
11598
11599
11600fi
11601
11602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11603 conftest$ac_exeext conftest.$ac_ext
11604if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11605
11606 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11607 # Warning - without using the other run time loading flags,
11608 # -berok will link without error, but may produce a broken library.
11609 no_undefined_flag_CXX=' ${wl}-bernotok'
11610 allow_undefined_flag_CXX=' ${wl}-berok'
11611 # Exported symbols can be pulled into shared objects from archives
11612 whole_archive_flag_spec_CXX='$convenience'
11613 archive_cmds_need_lc_CXX=yes
11614 # This is similar to how AIX traditionally builds its shared libraries.
11615 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'
11616 fi
11617 fi
11618 ;;
11619
11620 beos*)
11621 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11622 allow_undefined_flag_CXX=unsupported
11623 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11624 # support --undefined. This deserves some investigation. FIXME
11625 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11626 else
11627 ld_shlibs_CXX=no
11628 fi
11629 ;;
11630
11631 chorus*)
11632 case $cc_basename in
11633 *)
11634 # FIXME: insert proper C++ library support
11635 ld_shlibs_CXX=no
11636 ;;
11637 esac
11638 ;;
11639
11640 cygwin* | mingw* | pw32*)
11641 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11642 # as there is no search path for DLLs.
11643 hardcode_libdir_flag_spec_CXX='-L$libdir'
11644 allow_undefined_flag_CXX=unsupported
11645 always_export_symbols_CXX=no
11646 enable_shared_with_static_runtimes_CXX=yes
11647
11648 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11649 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'
11650 # If the export-symbols file already is a .def file (1st line
11651 # is EXPORTS), use it as is; otherwise, prepend...
11652 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11653 cp $export_symbols $output_objdir/$soname.def;
11654 else
11655 echo EXPORTS > $output_objdir/$soname.def;
11656 cat $export_symbols >> $output_objdir/$soname.def;
11657 fi~
11658 $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'
11659 else
11660 ld_shlibs_CXX=no
11661 fi
11662 ;;
11663 darwin* | rhapsody*)
11664 archive_cmds_need_lc_CXX=no
11665 hardcode_direct_CXX=no
11666 hardcode_automatic_CXX=yes
11667 hardcode_shlibpath_var_CXX=unsupported
11668 whole_archive_flag_spec_CXX=''
11669 link_all_deplibs_CXX=yes
11670 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11671 if test "$GXX" = yes ; then
11672 output_verbose_link_cmd='echo'
11673 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}"
11674 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11675 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}"
11676 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}"
11677 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11678 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}"
11679 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}"
11680 fi
11681 else
11682 case $cc_basename in
11683 xlc*)
11684 output_verbose_link_cmd='echo'
11685 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'
11686 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11687 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11688 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}'
11689 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}'
11690 ;;
11691 *)
11692 ld_shlibs_CXX=no
11693 ;;
11694 esac
11695 fi
11696 ;;
11697
11698 dgux*)
11699 case $cc_basename in
11700 ec++*)
11701 # FIXME: insert proper C++ library support
11702 ld_shlibs_CXX=no
11703 ;;
11704 ghcx*)
11705 # Green Hills C++ Compiler
11706 # FIXME: insert proper C++ library support
11707 ld_shlibs_CXX=no
11708 ;;
11709 *)
11710 # FIXME: insert proper C++ library support
11711 ld_shlibs_CXX=no
11712 ;;
11713 esac
11714 ;;
11715 freebsd[12]*)
11716 # C++ shared libraries reported to be fairly broken before switch to ELF
11717 ld_shlibs_CXX=no
11718 ;;
11719 freebsd-elf*)
11720 archive_cmds_need_lc_CXX=no
11721 ;;
11722 freebsd* | dragonfly*)
11723 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11724 # conventions
11725 ld_shlibs_CXX=yes
11726 ;;
11727 gnu*)
11728 ;;
11729 hpux9*)
11730 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11731 hardcode_libdir_separator_CXX=:
11732 export_dynamic_flag_spec_CXX='${wl}-E'
11733 hardcode_direct_CXX=yes
11734 hardcode_minus_L_CXX=yes # Not in the search PATH,
11735 # but as the default
11736 # location of the library.
11737
11738 case $cc_basename in
11739 CC*)
11740 # FIXME: insert proper C++ library support
11741 ld_shlibs_CXX=no
11742 ;;
11743 aCC*)
11744 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'
11745 # Commands to make compiler produce verbose output that lists
11746 # what "hidden" libraries, object files and flags are used when
11747 # linking a shared library.
11748 #
11749 # There doesn't appear to be a way to prevent this compiler from
11750 # explicitly linking system object files so we need to strip them
11751 # from the output so that they don't get included in the library
11752 # dependencies.
11753 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'
11754 ;;
11755 *)
11756 if test "$GXX" = yes; then
11757 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'
11758 else
11759 # FIXME: insert proper C++ library support
11760 ld_shlibs_CXX=no
11761 fi
11762 ;;
11763 esac
11764 ;;
11765 hpux10*|hpux11*)
11766 if test $with_gnu_ld = no; then
11767 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11768 hardcode_libdir_separator_CXX=:
11769
11770 case $host_cpu in
11771 hppa*64*|ia64*) ;;
11772 *)
11773 export_dynamic_flag_spec_CXX='${wl}-E'
11774 ;;
11775 esac
11776 fi
11777 case $host_cpu in
11778 hppa*64*|ia64*)
11779 hardcode_direct_CXX=no
11780 hardcode_shlibpath_var_CXX=no
11781 ;;
11782 *)
11783 hardcode_direct_CXX=yes
11784 hardcode_minus_L_CXX=yes # Not in the search PATH,
11785 # but as the default
11786 # location of the library.
11787 ;;
11788 esac
11789
11790 case $cc_basename in
11791 CC*)
11792 # FIXME: insert proper C++ library support
11793 ld_shlibs_CXX=no
11794 ;;
11795 aCC*)
11796 case $host_cpu in
11797 hppa*64*)
11798 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11799 ;;
11800 ia64*)
11801 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11802 ;;
11803 *)
11804 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11805 ;;
11806 esac
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 -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'
11816 ;;
11817 *)
11818 if test "$GXX" = yes; then
11819 if test $with_gnu_ld = no; then
11820 case $host_cpu in
11821 hppa*64*)
11822 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11823 ;;
11824 ia64*)
11825 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11826 ;;
11827 *)
11828 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'
11829 ;;
11830 esac
11831 fi
11832 else
11833 # FIXME: insert proper C++ library support
11834 ld_shlibs_CXX=no
11835 fi
11836 ;;
11837 esac
11838 ;;
11839 interix[3-9]*)
11840 hardcode_direct_CXX=no
11841 hardcode_shlibpath_var_CXX=no
11842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11843 export_dynamic_flag_spec_CXX='${wl}-E'
11844 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11845 # Instead, shared libraries are loaded at an image base (0x10000000 by
11846 # default) and relocated if they conflict, which is a slow very memory
11847 # consuming and fragmenting process. To avoid this, we pick a random,
11848 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11849 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11850 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'
11851 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'
11852 ;;
11853 irix5* | irix6*)
11854 case $cc_basename in
11855 CC*)
11856 # SGI C++
11857 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'
11858
11859 # Archives containing C++ object files must be created using
11860 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11861 # necessary to make sure instantiated templates are included
11862 # in the archive.
11863 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11864 ;;
11865 *)
11866 if test "$GXX" = yes; then
11867 if test "$with_gnu_ld" = no; then
11868 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'
11869 else
11870 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'
11871 fi
11872 fi
11873 link_all_deplibs_CXX=yes
11874 ;;
11875 esac
11876 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11877 hardcode_libdir_separator_CXX=:
11878 ;;
11879 linux* | k*bsd*-gnu)
11880 case $cc_basename in
11881 KCC*)
11882 # Kuck and Associates, Inc. (KAI) C++ Compiler
11883
11884 # KCC will only create a shared library if the output file
11885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11886 # to its proper name (with version) after linking.
11887 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'
11888 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'
11889 # Commands to make compiler produce verbose output that lists
11890 # what "hidden" libraries, object files and flags are used when
11891 # linking a shared library.
11892 #
11893 # There doesn't appear to be a way to prevent this compiler from
11894 # explicitly linking system object files so we need to strip them
11895 # from the output so that they don't get included in the library
11896 # dependencies.
11897 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'
11898
11899 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11900 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11901
11902 # Archives containing C++ object files must be created using
11903 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11904 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11905 ;;
11906 icpc*)
11907 # Intel C++
11908 with_gnu_ld=yes
11909 # version 8.0 and above of icpc choke on multiply defined symbols
11910 # if we add $predep_objects and $postdep_objects, however 7.1 and
11911 # earlier do not add the objects themselves.
11912 case `$CC -V 2>&1` in
11913 *"Version 7."*)
11914 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11915 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'
11916 ;;
11917 *) # Version 8.0 or newer
11918 tmp_idyn=
11919 case $host_cpu in
11920 ia64*) tmp_idyn=' -i_dynamic';;
11921 esac
11922 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11923 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'
11924 ;;
11925 esac
11926 archive_cmds_need_lc_CXX=no
11927 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11928 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11929 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11930 ;;
11931 pgCC* | pgcpp*)
11932 # Portland Group C++ compiler
11933 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11934 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'
11935
11936 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11937 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11938 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'
11939 ;;
11940 cxx*)
11941 # Compaq C++
11942 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11943 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'
11944
11945 runpath_var=LD_RUN_PATH
11946 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11947 hardcode_libdir_separator_CXX=:
11948
11949 # Commands to make compiler produce verbose output that lists
11950 # what "hidden" libraries, object files and flags are used when
11951 # linking a shared library.
11952 #
11953 # There doesn't appear to be a way to prevent this compiler from
11954 # explicitly linking system object files so we need to strip them
11955 # from the output so that they don't get included in the library
11956 # dependencies.
11957 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'
11958 ;;
11959 *)
11960 case `$CC -V 2>&1 | sed 5q` in
11961 *Sun\ C*)
11962 # Sun C++ 5.9
11963 no_undefined_flag_CXX=' -zdefs'
11964 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11965 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'
11966 hardcode_libdir_flag_spec_CXX='-R$libdir'
11967 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'
11968
11969 # Not sure whether something based on
11970 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11971 # would be better.
11972 output_verbose_link_cmd='echo'
11973
11974 # Archives containing C++ object files must be created using
11975 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11976 # necessary to make sure instantiated templates are included
11977 # in the archive.
11978 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11979 ;;
11980 esac
11981 ;;
11982 esac
11983 ;;
11984 lynxos*)
11985 # FIXME: insert proper C++ library support
11986 ld_shlibs_CXX=no
11987 ;;
11988 m88k*)
11989 # FIXME: insert proper C++ library support
11990 ld_shlibs_CXX=no
11991 ;;
11992 mvs*)
11993 case $cc_basename in
11994 cxx*)
11995 # FIXME: insert proper C++ library support
11996 ld_shlibs_CXX=no
11997 ;;
11998 *)
11999 # FIXME: insert proper C++ library support
12000 ld_shlibs_CXX=no
12001 ;;
12002 esac
12003 ;;
12004 netbsd* | netbsdelf*-gnu)
12005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12006 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12007 wlarc=
12008 hardcode_libdir_flag_spec_CXX='-R$libdir'
12009 hardcode_direct_CXX=yes
12010 hardcode_shlibpath_var_CXX=no
12011 fi
12012 # Workaround some broken pre-1.5 toolchains
12013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12014 ;;
12015 openbsd2*)
12016 # C++ shared libraries are fairly broken
12017 ld_shlibs_CXX=no
12018 ;;
12019 openbsd*)
12020 if test -f /usr/libexec/ld.so; then
12021 hardcode_direct_CXX=yes
12022 hardcode_shlibpath_var_CXX=no
12023 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12024 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12026 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12027 export_dynamic_flag_spec_CXX='${wl}-E'
12028 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12029 fi
12030 output_verbose_link_cmd='echo'
12031 else
12032 ld_shlibs_CXX=no
12033 fi
12034 ;;
12035 osf3*)
12036 case $cc_basename in
12037 KCC*)
12038 # Kuck and Associates, Inc. (KAI) C++ Compiler
12039
12040 # KCC will only create a shared library if the output file
12041 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12042 # to its proper name (with version) after linking.
12043 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'
12044
12045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12046 hardcode_libdir_separator_CXX=:
12047
12048 # Archives containing C++ object files must be created using
12049 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12050 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12051
12052 ;;
12053 RCC*)
12054 # Rational C++ 2.4.1
12055 # FIXME: insert proper C++ library support
12056 ld_shlibs_CXX=no
12057 ;;
12058 cxx*)
12059 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12060 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'
12061
12062 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12063 hardcode_libdir_separator_CXX=:
12064
12065 # Commands to make compiler produce verbose output that lists
12066 # what "hidden" libraries, object files and flags are used when
12067 # linking a shared library.
12068 #
12069 # There doesn't appear to be a way to prevent this compiler from
12070 # explicitly linking system object files so we need to strip them
12071 # from the output so that they don't get included in the library
12072 # dependencies.
12073 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'
12074 ;;
12075 *)
12076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12077 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12078 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'
12079
12080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12081 hardcode_libdir_separator_CXX=:
12082
12083 # Commands to make compiler produce verbose output that lists
12084 # what "hidden" libraries, object files and flags are used when
12085 # linking a shared library.
12086 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12087
12088 else
12089 # FIXME: insert proper C++ library support
12090 ld_shlibs_CXX=no
12091 fi
12092 ;;
12093 esac
12094 ;;
12095 osf4* | osf5*)
12096 case $cc_basename in
12097 KCC*)
12098 # Kuck and Associates, Inc. (KAI) C++ Compiler
12099
12100 # KCC will only create a shared library if the output file
12101 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12102 # to its proper name (with version) after linking.
12103 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'
12104
12105 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12106 hardcode_libdir_separator_CXX=:
12107
12108 # Archives containing C++ object files must be created using
12109 # the KAI C++ compiler.
12110 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12111 ;;
12112 RCC*)
12113 # Rational C++ 2.4.1
12114 # FIXME: insert proper C++ library support
12115 ld_shlibs_CXX=no
12116 ;;
12117 cxx*)
12118 allow_undefined_flag_CXX=' -expect_unresolved \*'
12119 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'
12120 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12121 echo "-hidden">> $lib.exp~
12122 $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~
12123 $rm $lib.exp'
12124
12125 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12126 hardcode_libdir_separator_CXX=:
12127
12128 # Commands to make compiler produce verbose output that lists
12129 # what "hidden" libraries, object files and flags are used when
12130 # linking a shared library.
12131 #
12132 # There doesn't appear to be a way to prevent this compiler from
12133 # explicitly linking system object files so we need to strip them
12134 # from the output so that they don't get included in the library
12135 # dependencies.
12136 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'
12137 ;;
12138 *)
12139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12140 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12141 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'
12142
12143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12144 hardcode_libdir_separator_CXX=:
12145
12146 # Commands to make compiler produce verbose output that lists
12147 # what "hidden" libraries, object files and flags are used when
12148 # linking a shared library.
12149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12150
12151 else
12152 # FIXME: insert proper C++ library support
12153 ld_shlibs_CXX=no
12154 fi
12155 ;;
12156 esac
12157 ;;
12158 psos*)
12159 # FIXME: insert proper C++ library support
12160 ld_shlibs_CXX=no
12161 ;;
12162 sunos4*)
12163 case $cc_basename in
12164 CC*)
12165 # Sun C++ 4.x
12166 # FIXME: insert proper C++ library support
12167 ld_shlibs_CXX=no
12168 ;;
12169 lcc*)
12170 # Lucid
12171 # FIXME: insert proper C++ library support
12172 ld_shlibs_CXX=no
12173 ;;
12174 *)
12175 # FIXME: insert proper C++ library support
12176 ld_shlibs_CXX=no
12177 ;;
12178 esac
12179 ;;
12180 solaris*)
12181 case $cc_basename in
12182 CC*)
12183 # Sun C++ 4.2, 5.x and Centerline C++
12184 archive_cmds_need_lc_CXX=yes
12185 no_undefined_flag_CXX=' -zdefs'
12186 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12187 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12188 $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'
12189
12190 hardcode_libdir_flag_spec_CXX='-R$libdir'
12191 hardcode_shlibpath_var_CXX=no
12192 case $host_os in
12193 solaris2.[0-5] | solaris2.[0-5].*) ;;
12194 *)
12195 # The compiler driver will combine and reorder linker options,
12196 # but understands `-z linker_flag'.
12197 # Supported since Solaris 2.6 (maybe 2.5.1?)
12198 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12199 ;;
12200 esac
12201 link_all_deplibs_CXX=yes
12202
12203 output_verbose_link_cmd='echo'
12204
12205 # Archives containing C++ object files must be created using
12206 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12207 # necessary to make sure instantiated templates are included
12208 # in the archive.
12209 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12210 ;;
12211 gcx*)
12212 # Green Hills C++ Compiler
12213 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12214
12215 # The C++ compiler must be used to create the archive.
12216 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12217 ;;
12218 *)
12219 # GNU C++ compiler with Solaris linker
12220 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12221 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12222 if $CC --version | grep -v '^2\.7' > /dev/null; then
12223 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12224 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12225 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12226
12227 # Commands to make compiler produce verbose output that lists
12228 # what "hidden" libraries, object files and flags are used when
12229 # linking a shared library.
12230 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12231 else
12232 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12233 # platform.
12234 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12235 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12236 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12237
12238 # Commands to make compiler produce verbose output that lists
12239 # what "hidden" libraries, object files and flags are used when
12240 # linking a shared library.
12241 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12242 fi
12243
12244 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12245 case $host_os in
12246 solaris2.[0-5] | solaris2.[0-5].*) ;;
12247 *)
12248 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12249 ;;
12250 esac
12251 fi
12252 ;;
12253 esac
12254 ;;
12255 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12256 no_undefined_flag_CXX='${wl}-z,text'
12257 archive_cmds_need_lc_CXX=no
12258 hardcode_shlibpath_var_CXX=no
12259 runpath_var='LD_RUN_PATH'
12260
12261 case $cc_basename in
12262 CC*)
12263 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12264 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12265 ;;
12266 *)
12267 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12268 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12269 ;;
12270 esac
12271 ;;
12272 sysv5* | sco3.2v5* | sco5v6*)
12273 # Note: We can NOT use -z defs as we might desire, because we do not
12274 # link with -lc, and that would cause any symbols used from libc to
12275 # always be unresolved, which means just about no library would
12276 # ever link correctly. If we're not using GNU ld we use -z text
12277 # though, which does catch some bad symbols but isn't as heavy-handed
12278 # as -z defs.
12279 # For security reasons, it is highly recommended that you always
12280 # use absolute paths for naming shared libraries, and exclude the
12281 # DT_RUNPATH tag from executables and libraries. But doing so
12282 # requires that you compile everything twice, which is a pain.
12283 # So that behaviour is only enabled if SCOABSPATH is set to a
12284 # non-empty value in the environment. Most likely only useful for
12285 # creating official distributions of packages.
12286 # This is a hack until libtool officially supports absolute path
12287 # names for shared libraries.
12288 no_undefined_flag_CXX='${wl}-z,text'
12289 allow_undefined_flag_CXX='${wl}-z,nodefs'
12290 archive_cmds_need_lc_CXX=no
12291 hardcode_shlibpath_var_CXX=no
12292 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12293 hardcode_libdir_separator_CXX=':'
12294 link_all_deplibs_CXX=yes
12295 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12296 runpath_var='LD_RUN_PATH'
12297
12298 case $cc_basename in
12299 CC*)
12300 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12301 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12302 ;;
12303 *)
12304 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12305 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12306 ;;
12307 esac
12308 ;;
12309 tandem*)
12310 case $cc_basename in
12311 NCC*)
12312 # NonStop-UX NCC 3.20
12313 # FIXME: insert proper C++ library support
12314 ld_shlibs_CXX=no
12315 ;;
12316 *)
12317 # FIXME: insert proper C++ library support
12318 ld_shlibs_CXX=no
12319 ;;
12320 esac
12321 ;;
12322 vxworks*)
12323 # FIXME: insert proper C++ library support
12324 ld_shlibs_CXX=no
12325 ;;
12326 *)
12327 # FIXME: insert proper C++ library support
12328 ld_shlibs_CXX=no
12329 ;;
12330esac
12331{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12332echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12333test "$ld_shlibs_CXX" = no && can_build_shared=no
12334
12335GCC_CXX="$GXX"
12336LD_CXX="$LD"
12337
12338cat > conftest.$ac_ext <<EOF
12339class Foo
12340{
12341public:
12342 Foo (void) { a = 0; }
12343private:
12344 int a;
12345};
12346EOF
12347
12348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12349 (eval $ac_compile) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; then
12353 # Parse the compiler output and extract the necessary
12354 # objects, libraries and library flags.
12355
12356 # Sentinel used to keep track of whether or not we are before
12357 # the conftest object file.
12358 pre_test_object_deps_done=no
12359
12360 # The `*' in the case matches for architectures that use `case' in
12361 # $output_verbose_cmd can trigger glob expansion during the loop
12362 # eval without this substitution.
12363 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12364
12365 for p in `eval $output_verbose_link_cmd`; do
12366 case $p in
12367
12368 -L* | -R* | -l*)
12369 # Some compilers place space between "-{L,R}" and the path.
12370 # Remove the space.
12371 if test $p = "-L" \
12372 || test $p = "-R"; then
12373 prev=$p
12374 continue
12375 else
12376 prev=
12377 fi
12378
12379 if test "$pre_test_object_deps_done" = no; then
12380 case $p in
12381 -L* | -R*)
12382 # Internal compiler library paths should come after those
12383 # provided the user. The postdeps already come after the
12384 # user supplied libs so there is no need to process them.
12385 if test -z "$compiler_lib_search_path_CXX"; then
12386 compiler_lib_search_path_CXX="${prev}${p}"
12387 else
12388 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12389 fi
12390 ;;
12391 # The "-l" case would never come before the object being
12392 # linked, so don't bother handling this case.
12393 esac
12394 else
12395 if test -z "$postdeps_CXX"; then
12396 postdeps_CXX="${prev}${p}"
12397 else
12398 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12399 fi
12400 fi
12401 ;;
12402
12403 *.$objext)
12404 # This assumes that the test object file only shows up
12405 # once in the compiler output.
12406 if test "$p" = "conftest.$objext"; then
12407 pre_test_object_deps_done=yes
12408 continue
12409 fi
12410
12411 if test "$pre_test_object_deps_done" = no; then
12412 if test -z "$predep_objects_CXX"; then
12413 predep_objects_CXX="$p"
12414 else
12415 predep_objects_CXX="$predep_objects_CXX $p"
12416 fi
12417 else
12418 if test -z "$postdep_objects_CXX"; then
12419 postdep_objects_CXX="$p"
12420 else
12421 postdep_objects_CXX="$postdep_objects_CXX $p"
12422 fi
12423 fi
12424 ;;
12425
12426 *) ;; # Ignore the rest.
12427
12428 esac
12429 done
12430
12431 # Clean up.
12432 rm -f a.out a.exe
12433else
12434 echo "libtool.m4: error: problem compiling CXX test program"
12435fi
12436
12437$rm -f confest.$objext
12438
12439compiler_lib_search_dirs_CXX=
12440if test -n "$compiler_lib_search_path_CXX"; then
12441 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12442fi
12443
12444# PORTME: override above test on systems where it is broken
12445case $host_os in
12446interix[3-9]*)
12447 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12448 # hack all around it, let's just trust "g++" to DTRT.
12449 predep_objects_CXX=
12450 postdep_objects_CXX=
12451 postdeps_CXX=
12452 ;;
12453
12454linux*)
12455 case `$CC -V 2>&1 | sed 5q` in
12456 *Sun\ C*)
12457 # Sun C++ 5.9
12458 #
12459 # The more standards-conforming stlport4 library is
12460 # incompatible with the Cstd library. Avoid specifying
12461 # it if it's in CXXFLAGS. Ignore libCrun as
12462 # -library=stlport4 depends on it.
12463 case " $CXX $CXXFLAGS " in
12464 *" -library=stlport4 "*)
12465 solaris_use_stlport4=yes
12466 ;;
12467 esac
12468 if test "$solaris_use_stlport4" != yes; then
12469 postdeps_CXX='-library=Cstd -library=Crun'
12470 fi
12471 ;;
12472 esac
12473 ;;
12474
12475solaris*)
12476 case $cc_basename in
12477 CC*)
12478 # The more standards-conforming stlport4 library is
12479 # incompatible with the Cstd library. Avoid specifying
12480 # it if it's in CXXFLAGS. Ignore libCrun as
12481 # -library=stlport4 depends on it.
12482 case " $CXX $CXXFLAGS " in
12483 *" -library=stlport4 "*)
12484 solaris_use_stlport4=yes
12485 ;;
12486 esac
12487
12488 # Adding this requires a known-good setup of shared libraries for
12489 # Sun compiler versions before 5.6, else PIC objects from an old
12490 # archive will be linked into the output, leading to subtle bugs.
12491 if test "$solaris_use_stlport4" != yes; then
12492 postdeps_CXX='-library=Cstd -library=Crun'
12493 fi
12494 ;;
12495 esac
12496 ;;
12497esac
12498
12499case " $postdeps_CXX " in
12500*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12501esac
12502
12503lt_prog_compiler_wl_CXX=
12504lt_prog_compiler_pic_CXX=
12505lt_prog_compiler_static_CXX=
12506
12507{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12508echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12509
12510 # C++ specific cases for pic, static, wl, etc.
12511 if test "$GXX" = yes; then
12512 lt_prog_compiler_wl_CXX='-Wl,'
12513 lt_prog_compiler_static_CXX='-static'
12514
12515 case $host_os in
12516 aix*)
12517 # All AIX code is PIC.
12518 if test "$host_cpu" = ia64; then
12519 # AIX 5 now supports IA64 processor
12520 lt_prog_compiler_static_CXX='-Bstatic'
12521 fi
12522 ;;
12523 amigaos*)
12524 # FIXME: we need at least 68020 code to build shared libraries, but
12525 # adding the `-m68020' flag to GCC prevents building anything better,
12526 # like `-m68040'.
12527 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12528 ;;
12529 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12530 # PIC is the default for these OSes.
12531 ;;
12532 mingw* | cygwin* | os2* | pw32*)
12533 # This hack is so that the source file can tell whether it is being
12534 # built for inclusion in a dll (and should export symbols for example).
12535 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12536 # (--disable-auto-import) libraries
12537 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12538 ;;
12539 darwin* | rhapsody*)
12540 # PIC is the default on this platform
12541 # Common symbols not allowed in MH_DYLIB files
12542 lt_prog_compiler_pic_CXX='-fno-common'
12543 ;;
12544 *djgpp*)
12545 # DJGPP does not support shared libraries at all
12546 lt_prog_compiler_pic_CXX=
12547 ;;
12548 interix[3-9]*)
12549 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12550 # Instead, we relocate shared libraries at runtime.
12551 ;;
12552 sysv4*MP*)
12553 if test -d /usr/nec; then
12554 lt_prog_compiler_pic_CXX=-Kconform_pic
12555 fi
12556 ;;
12557 hpux*)
12558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12559 # not for PA HP-UX.
12560 case $host_cpu in
12561 hppa*64*|ia64*)
12562 ;;
12563 *)
12564 lt_prog_compiler_pic_CXX='-fPIC'
12565 ;;
12566 esac
12567 ;;
12568 *)
12569 lt_prog_compiler_pic_CXX='-fPIC'
12570 ;;
12571 esac
12572 else
12573 case $host_os in
12574 aix[4-9]*)
12575 # All AIX code is PIC.
12576 if test "$host_cpu" = ia64; then
12577 # AIX 5 now supports IA64 processor
12578 lt_prog_compiler_static_CXX='-Bstatic'
12579 else
12580 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12581 fi
12582 ;;
12583 chorus*)
12584 case $cc_basename in
12585 cxch68*)
12586 # Green Hills C++ Compiler
12587 # _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"
12588 ;;
12589 esac
12590 ;;
12591 darwin*)
12592 # PIC is the default on this platform
12593 # Common symbols not allowed in MH_DYLIB files
12594 case $cc_basename in
12595 xlc*)
12596 lt_prog_compiler_pic_CXX='-qnocommon'
12597 lt_prog_compiler_wl_CXX='-Wl,'
12598 ;;
12599 esac
12600 ;;
12601 dgux*)
12602 case $cc_basename in
12603 ec++*)
12604 lt_prog_compiler_pic_CXX='-KPIC'
12605 ;;
12606 ghcx*)
12607 # Green Hills C++ Compiler
12608 lt_prog_compiler_pic_CXX='-pic'
12609 ;;
12610 *)
12611 ;;
12612 esac
12613 ;;
12614 freebsd* | dragonfly*)
12615 # FreeBSD uses GNU C++
12616 ;;
12617 hpux9* | hpux10* | hpux11*)
12618 case $cc_basename in
12619 CC*)
12620 lt_prog_compiler_wl_CXX='-Wl,'
12621 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12622 if test "$host_cpu" != ia64; then
12623 lt_prog_compiler_pic_CXX='+Z'
12624 fi
12625 ;;
12626 aCC*)
12627 lt_prog_compiler_wl_CXX='-Wl,'
12628 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12629 case $host_cpu in
12630 hppa*64*|ia64*)
12631 # +Z the default
12632 ;;
12633 *)
12634 lt_prog_compiler_pic_CXX='+Z'
12635 ;;
12636 esac
12637 ;;
12638 *)
12639 ;;
12640 esac
12641 ;;
12642 interix*)
12643 # This is c89, which is MS Visual C++ (no shared libs)
12644 # Anyone wants to do a port?
12645 ;;
12646 irix5* | irix6* | nonstopux*)
12647 case $cc_basename in
12648 CC*)
12649 lt_prog_compiler_wl_CXX='-Wl,'
12650 lt_prog_compiler_static_CXX='-non_shared'
12651 # CC pic flag -KPIC is the default.
12652 ;;
12653 *)
12654 ;;
12655 esac
12656 ;;
12657 linux* | k*bsd*-gnu)
12658 case $cc_basename in
12659 KCC*)
12660 # KAI C++ Compiler
12661 lt_prog_compiler_wl_CXX='--backend -Wl,'
12662 lt_prog_compiler_pic_CXX='-fPIC'
12663 ;;
12664 icpc* | ecpc*)
12665 # Intel C++
12666 lt_prog_compiler_wl_CXX='-Wl,'
12667 lt_prog_compiler_pic_CXX='-KPIC'
12668 lt_prog_compiler_static_CXX='-static'
12669 ;;
12670 pgCC* | pgcpp*)
12671 # Portland Group C++ compiler.
12672 lt_prog_compiler_wl_CXX='-Wl,'
12673 lt_prog_compiler_pic_CXX='-fpic'
12674 lt_prog_compiler_static_CXX='-Bstatic'
12675 ;;
12676 cxx*)
12677 # Compaq C++
12678 # Make sure the PIC flag is empty. It appears that all Alpha
12679 # Linux and Compaq Tru64 Unix objects are PIC.
12680 lt_prog_compiler_pic_CXX=
12681 lt_prog_compiler_static_CXX='-non_shared'
12682 ;;
12683 *)
12684 case `$CC -V 2>&1 | sed 5q` in
12685 *Sun\ C*)
12686 # Sun C++ 5.9
12687 lt_prog_compiler_pic_CXX='-KPIC'
12688 lt_prog_compiler_static_CXX='-Bstatic'
12689 lt_prog_compiler_wl_CXX='-Qoption ld '
12690 ;;
12691 esac
12692 ;;
12693 esac
12694 ;;
12695 lynxos*)
12696 ;;
12697 m88k*)
12698 ;;
12699 mvs*)
12700 case $cc_basename in
12701 cxx*)
12702 lt_prog_compiler_pic_CXX='-W c,exportall'
12703 ;;
12704 *)
12705 ;;
12706 esac
12707 ;;
12708 netbsd* | netbsdelf*-gnu)
12709 ;;
12710 osf3* | osf4* | osf5*)
12711 case $cc_basename in
12712 KCC*)
12713 lt_prog_compiler_wl_CXX='--backend -Wl,'
12714 ;;
12715 RCC*)
12716 # Rational C++ 2.4.1
12717 lt_prog_compiler_pic_CXX='-pic'
12718 ;;
12719 cxx*)
12720 # Digital/Compaq C++
12721 lt_prog_compiler_wl_CXX='-Wl,'
12722 # Make sure the PIC flag is empty. It appears that all Alpha
12723 # Linux and Compaq Tru64 Unix objects are PIC.
12724 lt_prog_compiler_pic_CXX=
12725 lt_prog_compiler_static_CXX='-non_shared'
12726 ;;
12727 *)
12728 ;;
12729 esac
12730 ;;
12731 psos*)
12732 ;;
12733 solaris*)
12734 case $cc_basename in
12735 CC*)
12736 # Sun C++ 4.2, 5.x and Centerline C++
12737 lt_prog_compiler_pic_CXX='-KPIC'
12738 lt_prog_compiler_static_CXX='-Bstatic'
12739 lt_prog_compiler_wl_CXX='-Qoption ld '
12740 ;;
12741 gcx*)
12742 # Green Hills C++ Compiler
12743 lt_prog_compiler_pic_CXX='-PIC'
12744 ;;
12745 *)
12746 ;;
12747 esac
12748 ;;
12749 sunos4*)
12750 case $cc_basename in
12751 CC*)
12752 # Sun C++ 4.x
12753 lt_prog_compiler_pic_CXX='-pic'
12754 lt_prog_compiler_static_CXX='-Bstatic'
12755 ;;
12756 lcc*)
12757 # Lucid
12758 lt_prog_compiler_pic_CXX='-pic'
12759 ;;
12760 *)
12761 ;;
12762 esac
12763 ;;
12764 tandem*)
12765 case $cc_basename in
12766 NCC*)
12767 # NonStop-UX NCC 3.20
12768 lt_prog_compiler_pic_CXX='-KPIC'
12769 ;;
12770 *)
12771 ;;
12772 esac
12773 ;;
12774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12775 case $cc_basename in
12776 CC*)
12777 lt_prog_compiler_wl_CXX='-Wl,'
12778 lt_prog_compiler_pic_CXX='-KPIC'
12779 lt_prog_compiler_static_CXX='-Bstatic'
12780 ;;
12781 esac
12782 ;;
12783 vxworks*)
12784 ;;
12785 *)
12786 lt_prog_compiler_can_build_shared_CXX=no
12787 ;;
12788 esac
12789 fi
12790
12791{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12792echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12793
12794#
12795# Check to make sure the PIC flag actually works.
12796#
12797if test -n "$lt_prog_compiler_pic_CXX"; then
12798
12799{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12800echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12801if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12803else
12804 lt_cv_prog_compiler_pic_works_CXX=no
12805 ac_outfile=conftest.$ac_objext
12806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12807 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12808 # Insert the option either (1) after the last *FLAGS variable, or
12809 # (2) before a word containing "conftest.", or (3) at the end.
12810 # Note that $ac_compile itself does not contain backslashes and begins
12811 # with a dollar sign (not a hyphen), so the echo should work correctly.
12812 # The option is referenced via a variable to avoid confusing sed.
12813 lt_compile=`echo "$ac_compile" | $SED \
12814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12816 -e 's:$: $lt_compiler_flag:'`
12817 (eval echo "\"\$as_me:12817: $lt_compile\"" >&5)
12818 (eval "$lt_compile" 2>conftest.err)
12819 ac_status=$?
12820 cat conftest.err >&5
12821 echo "$as_me:12821: \$? = $ac_status" >&5
12822 if (exit $ac_status) && test -s "$ac_outfile"; then
12823 # The compiler can only warn and ignore the option if not recognized
12824 # So say no if there are warnings other than the usual output.
12825 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12828 lt_cv_prog_compiler_pic_works_CXX=yes
12829 fi
12830 fi
12831 $rm conftest*
12832
12833fi
12834{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12835echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12836
12837if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12838 case $lt_prog_compiler_pic_CXX in
12839 "" | " "*) ;;
12840 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12841 esac
12842else
12843 lt_prog_compiler_pic_CXX=
12844 lt_prog_compiler_can_build_shared_CXX=no
12845fi
12846
12847fi
12848case $host_os in
12849 # For platforms which do not support PIC, -DPIC is meaningless:
12850 *djgpp*)
12851 lt_prog_compiler_pic_CXX=
12852 ;;
12853 *)
12854 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12855 ;;
12856esac
12857
12858#
12859# Check to make sure the static flag actually works.
12860#
12861wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12862{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12863echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12864if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866else
12867 lt_cv_prog_compiler_static_works_CXX=no
12868 save_LDFLAGS="$LDFLAGS"
12869 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12870 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12871 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12872 # The linker can only warn and ignore the option if not recognized
12873 # So say no if there are warnings
12874 if test -s conftest.err; then
12875 # Append any errors to the config.log.
12876 cat conftest.err 1>&5
12877 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12879 if diff conftest.exp conftest.er2 >/dev/null; then
12880 lt_cv_prog_compiler_static_works_CXX=yes
12881 fi
12882 else
12883 lt_cv_prog_compiler_static_works_CXX=yes
12884 fi
12885 fi
12886 $rm -r conftest*
12887 LDFLAGS="$save_LDFLAGS"
12888
12889fi
12890{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12891echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12892
12893if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12894 :
12895else
12896 lt_prog_compiler_static_CXX=
12897fi
12898
12899
12900{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12901echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12902if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12904else
12905 lt_cv_prog_compiler_c_o_CXX=no
12906 $rm -r conftest 2>/dev/null
12907 mkdir conftest
12908 cd conftest
12909 mkdir out
12910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12911
12912 lt_compiler_flag="-o out/conftest2.$ac_objext"
12913 # Insert the option either (1) after the last *FLAGS variable, or
12914 # (2) before a word containing "conftest.", or (3) at the end.
12915 # Note that $ac_compile itself does not contain backslashes and begins
12916 # with a dollar sign (not a hyphen), so the echo should work correctly.
12917 lt_compile=`echo "$ac_compile" | $SED \
12918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12920 -e 's:$: $lt_compiler_flag:'`
12921 (eval echo "\"\$as_me:12921: $lt_compile\"" >&5)
12922 (eval "$lt_compile" 2>out/conftest.err)
12923 ac_status=$?
12924 cat out/conftest.err >&5
12925 echo "$as_me:12925: \$? = $ac_status" >&5
12926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12927 then
12928 # The compiler can only warn and ignore the option if not recognized
12929 # So say no if there are warnings
12930 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12933 lt_cv_prog_compiler_c_o_CXX=yes
12934 fi
12935 fi
12936 chmod u+w . 2>&5
12937 $rm conftest*
12938 # SGI C++ compiler will create directory out/ii_files/ for
12939 # template instantiation
12940 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12941 $rm out/* && rmdir out
12942 cd ..
12943 rmdir conftest
12944 $rm conftest*
12945
12946fi
12947{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12948echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12949
12950
12951hard_links="nottested"
12952if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12953 # do not overwrite the value of need_locks provided by the user
12954 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12955echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12956 hard_links=yes
12957 $rm conftest*
12958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12959 touch conftest.a
12960 ln conftest.a conftest.b 2>&5 || hard_links=no
12961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12962 { echo "$as_me:$LINENO: result: $hard_links" >&5
12963echo "${ECHO_T}$hard_links" >&6; }
12964 if test "$hard_links" = no; then
12965 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12966echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12967 need_locks=warn
12968 fi
12969else
12970 need_locks=no
12971fi
12972
12973{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12974echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12975
12976 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12977 case $host_os in
12978 aix[4-9]*)
12979 # If we're using GNU nm, then we don't want the "-C" option.
12980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12981 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12982 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'
12983 else
12984 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'
12985 fi
12986 ;;
12987 pw32*)
12988 export_symbols_cmds_CXX="$ltdll_cmds"
12989 ;;
12990 cygwin* | mingw*)
12991 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'
12992 ;;
12993 linux* | k*bsd*-gnu)
12994 link_all_deplibs_CXX=no
12995 ;;
12996 *)
12997 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12998 ;;
12999 esac
13000 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13001
13002{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13003echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13004test "$ld_shlibs_CXX" = no && can_build_shared=no
13005
13006#
13007# Do we need to explicitly link libc?
13008#
13009case "x$archive_cmds_need_lc_CXX" in
13010x|xyes)
13011 # Assume -lc should be added
13012 archive_cmds_need_lc_CXX=yes
13013
13014 if test "$enable_shared" = yes && test "$GCC" = yes; then
13015 case $archive_cmds_CXX in
13016 *'~'*)
13017 # FIXME: we may have to deal with multi-command sequences.
13018 ;;
13019 '$CC '*)
13020 # Test whether the compiler implicitly links with -lc since on some
13021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13022 # to ld, don't add -lc before -lgcc.
13023 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13024echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13025 $rm conftest*
13026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13027
13028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029 (eval $ac_compile) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } 2>conftest.err; then
13033 soname=conftest
13034 lib=conftest
13035 libobjs=conftest.$ac_objext
13036 deplibs=
13037 wl=$lt_prog_compiler_wl_CXX
13038 pic_flag=$lt_prog_compiler_pic_CXX
13039 compiler_flags=-v
13040 linker_flags=-v
13041 verstring=
13042 output_objdir=.
13043 libname=conftest
13044 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13045 allow_undefined_flag_CXX=
13046 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13047 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }
13051 then
13052 archive_cmds_need_lc_CXX=no
13053 else
13054 archive_cmds_need_lc_CXX=yes
13055 fi
13056 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13057 else
13058 cat conftest.err 1>&5
13059 fi
13060 $rm conftest*
13061 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13062echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13063 ;;
13064 esac
13065 fi
13066 ;;
13067esac
13068
13069{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13070echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13071library_names_spec=
13072libname_spec='lib$name'
13073soname_spec=
13074shrext_cmds=".so"
13075postinstall_cmds=
13076postuninstall_cmds=
13077finish_cmds=
13078finish_eval=
13079shlibpath_var=
13080shlibpath_overrides_runpath=unknown
13081version_type=none
13082dynamic_linker="$host_os ld.so"
13083sys_lib_dlsearch_path_spec="/lib /usr/lib"
13084
13085need_lib_prefix=unknown
13086hardcode_into_libs=no
13087
13088# when you set need_version to no, make sure it does not cause -set_version
13089# flags to be left without arguments
13090need_version=unknown
13091
13092case $host_os in
13093aix3*)
13094 version_type=linux
13095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13096 shlibpath_var=LIBPATH
13097
13098 # AIX 3 has no versioning support, so we append a major version to the name.
13099 soname_spec='${libname}${release}${shared_ext}$major'
13100 ;;
13101
13102aix[4-9]*)
13103 version_type=linux
13104 need_lib_prefix=no
13105 need_version=no
13106 hardcode_into_libs=yes
13107 if test "$host_cpu" = ia64; then
13108 # AIX 5 supports IA64
13109 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13110 shlibpath_var=LD_LIBRARY_PATH
13111 else
13112 # With GCC up to 2.95.x, collect2 would create an import file
13113 # for dependence libraries. The import file would start with
13114 # the line `#! .'. This would cause the generated library to
13115 # depend on `.', always an invalid library. This was fixed in
13116 # development snapshots of GCC prior to 3.0.
13117 case $host_os in
13118 aix4 | aix4.[01] | aix4.[01].*)
13119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13120 echo ' yes '
13121 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13122 :
13123 else
13124 can_build_shared=no
13125 fi
13126 ;;
13127 esac
13128 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13129 # soname into executable. Probably we can add versioning support to
13130 # collect2, so additional links can be useful in future.
13131 if test "$aix_use_runtimelinking" = yes; then
13132 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13133 # instead of lib<name>.a to let people know that these are not
13134 # typical AIX shared libraries.
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13136 else
13137 # We preserve .a as extension for shared libraries through AIX4.2
13138 # and later when we are not doing run time linking.
13139 library_names_spec='${libname}${release}.a $libname.a'
13140 soname_spec='${libname}${release}${shared_ext}$major'
13141 fi
13142 shlibpath_var=LIBPATH
13143 fi
13144 ;;
13145
13146amigaos*)
13147 library_names_spec='$libname.ixlibrary $libname.a'
13148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13149 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'
13150 ;;
13151
13152beos*)
13153 library_names_spec='${libname}${shared_ext}'
13154 dynamic_linker="$host_os ld.so"
13155 shlibpath_var=LIBRARY_PATH
13156 ;;
13157
13158bsdi[45]*)
13159 version_type=linux
13160 need_version=no
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13162 soname_spec='${libname}${release}${shared_ext}$major'
13163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13164 shlibpath_var=LD_LIBRARY_PATH
13165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13167 # the default ld.so.conf also contains /usr/contrib/lib and
13168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13169 # libtool to hard-code these into programs
13170 ;;
13171
13172cygwin* | mingw* | pw32*)
13173 version_type=windows
13174 shrext_cmds=".dll"
13175 need_version=no
13176 need_lib_prefix=no
13177
13178 case $GCC,$host_os in
13179 yes,cygwin* | yes,mingw* | yes,pw32*)
13180 library_names_spec='$libname.dll.a'
13181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13182 postinstall_cmds='base_file=`basename \${file}`~
13183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13184 dldir=$destdir/`dirname \$dlpath`~
13185 test -d \$dldir || mkdir -p \$dldir~
13186 $install_prog $dir/$dlname \$dldir/$dlname~
13187 chmod a+x \$dldir/$dlname'
13188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13189 dlpath=$dir/\$dldll~
13190 $rm \$dlpath'
13191 shlibpath_overrides_runpath=yes
13192
13193 case $host_os in
13194 cygwin*)
13195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13196 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13197 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13198 ;;
13199 mingw*)
13200 # MinGW DLLs use traditional 'lib' prefix
13201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13203 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13204 # It is most probably a Windows format PATH printed by
13205 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13206 # path with ; separators, and with drive letters. We can handle the
13207 # drive letters (cygwin fileutils understands them), so leave them,
13208 # especially as we might pass files found there to a mingw objdump,
13209 # which wouldn't understand a cygwinified path. Ahh.
13210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13211 else
13212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13213 fi
13214 ;;
13215 pw32*)
13216 # pw32 DLLs use 'pw' prefix rather than 'lib'
13217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13218 ;;
13219 esac
13220 ;;
13221
13222 *)
13223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13224 ;;
13225 esac
13226 dynamic_linker='Win32 ld.exe'
13227 # FIXME: first we should search . and the directory the executable is in
13228 shlibpath_var=PATH
13229 ;;
13230
13231darwin* | rhapsody*)
13232 dynamic_linker="$host_os dyld"
13233 version_type=darwin
13234 need_lib_prefix=no
13235 need_version=no
13236 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13237 soname_spec='${libname}${release}${major}$shared_ext'
13238 shlibpath_overrides_runpath=yes
13239 shlibpath_var=DYLD_LIBRARY_PATH
13240 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13241
13242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13243 ;;
13244
13245dgux*)
13246 version_type=linux
13247 need_lib_prefix=no
13248 need_version=no
13249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13250 soname_spec='${libname}${release}${shared_ext}$major'
13251 shlibpath_var=LD_LIBRARY_PATH
13252 ;;
13253
13254freebsd1*)
13255 dynamic_linker=no
13256 ;;
13257
13258freebsd* | dragonfly*)
13259 # DragonFly does not have aout. When/if they implement a new
13260 # versioning mechanism, adjust this.
13261 if test -x /usr/bin/objformat; then
13262 objformat=`/usr/bin/objformat`
13263 else
13264 case $host_os in
13265 freebsd[123]*) objformat=aout ;;
13266 *) objformat=elf ;;
13267 esac
13268 fi
13269 version_type=freebsd-$objformat
13270 case $version_type in
13271 freebsd-elf*)
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13273 need_version=no
13274 need_lib_prefix=no
13275 ;;
13276 freebsd-*)
13277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13278 need_version=yes
13279 ;;
13280 esac
13281 shlibpath_var=LD_LIBRARY_PATH
13282 case $host_os in
13283 freebsd2*)
13284 shlibpath_overrides_runpath=yes
13285 ;;
13286 freebsd3.[01]* | freebsdelf3.[01]*)
13287 shlibpath_overrides_runpath=yes
13288 hardcode_into_libs=yes
13289 ;;
13290 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13291 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13292 shlibpath_overrides_runpath=no
13293 hardcode_into_libs=yes
13294 ;;
13295 *) # from 4.6 on, and DragonFly
13296 shlibpath_overrides_runpath=yes
13297 hardcode_into_libs=yes
13298 ;;
13299 esac
13300 ;;
13301
13302gnu*)
13303 version_type=linux
13304 need_lib_prefix=no
13305 need_version=no
13306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13307 soname_spec='${libname}${release}${shared_ext}$major'
13308 shlibpath_var=LD_LIBRARY_PATH
13309 hardcode_into_libs=yes
13310 ;;
13311
13312hpux9* | hpux10* | hpux11*)
13313 # Give a soname corresponding to the major version so that dld.sl refuses to
13314 # link against other versions.
13315 version_type=sunos
13316 need_lib_prefix=no
13317 need_version=no
13318 case $host_cpu in
13319 ia64*)
13320 shrext_cmds='.so'
13321 hardcode_into_libs=yes
13322 dynamic_linker="$host_os dld.so"
13323 shlibpath_var=LD_LIBRARY_PATH
13324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13326 soname_spec='${libname}${release}${shared_ext}$major'
13327 if test "X$HPUX_IA64_MODE" = X32; then
13328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13329 else
13330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13331 fi
13332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13333 ;;
13334 hppa*64*)
13335 shrext_cmds='.sl'
13336 hardcode_into_libs=yes
13337 dynamic_linker="$host_os dld.sl"
13338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13344 ;;
13345 *)
13346 shrext_cmds='.sl'
13347 dynamic_linker="$host_os dld.sl"
13348 shlibpath_var=SHLIB_PATH
13349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 ;;
13353 esac
13354 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13355 postinstall_cmds='chmod 555 $lib'
13356 ;;
13357
13358interix[3-9]*)
13359 version_type=linux
13360 need_lib_prefix=no
13361 need_version=no
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13363 soname_spec='${libname}${release}${shared_ext}$major'
13364 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13365 shlibpath_var=LD_LIBRARY_PATH
13366 shlibpath_overrides_runpath=no
13367 hardcode_into_libs=yes
13368 ;;
13369
13370irix5* | irix6* | nonstopux*)
13371 case $host_os in
13372 nonstopux*) version_type=nonstopux ;;
13373 *)
13374 if test "$lt_cv_prog_gnu_ld" = yes; then
13375 version_type=linux
13376 else
13377 version_type=irix
13378 fi ;;
13379 esac
13380 need_lib_prefix=no
13381 need_version=no
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13384 case $host_os in
13385 irix5* | nonstopux*)
13386 libsuff= shlibsuff=
13387 ;;
13388 *)
13389 case $LD in # libtool.m4 will add one of these switches to LD
13390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13391 libsuff= shlibsuff= libmagic=32-bit;;
13392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13393 libsuff=32 shlibsuff=N32 libmagic=N32;;
13394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13396 *) libsuff= shlibsuff= libmagic=never-match;;
13397 esac
13398 ;;
13399 esac
13400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13401 shlibpath_overrides_runpath=no
13402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13404 hardcode_into_libs=yes
13405 ;;
13406
13407# No shared lib support for Linux oldld, aout, or coff.
13408linux*oldld* | linux*aout* | linux*coff*)
13409 dynamic_linker=no
13410 ;;
13411
13412# This must be Linux ELF.
13413linux* | k*bsd*-gnu)
13414 version_type=linux
13415 need_lib_prefix=no
13416 need_version=no
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418 soname_spec='${libname}${release}${shared_ext}$major'
13419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=no
13422 # This implies no fast_install, which is unacceptable.
13423 # Some rework will be needed to allow for fast_install
13424 # before this can be enabled.
13425 hardcode_into_libs=yes
13426
13427 # Append ld.so.conf contents to the search path
13428 if test -f /etc/ld.so.conf; then
13429 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' ' '`
13430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13431 fi
13432
13433 # We used to test for /lib/ld.so.1 and disable shared libraries on
13434 # powerpc, because MkLinux only supported shared libraries with the
13435 # GNU dynamic linker. Since this was broken with cross compilers,
13436 # most powerpc-linux boxes support dynamic linking these days and
13437 # people can always --disable-shared, the test was removed, and we
13438 # assume the GNU/Linux dynamic linker is in use.
13439 dynamic_linker='GNU/Linux ld.so'
13440 ;;
13441
13442netbsdelf*-gnu)
13443 version_type=linux
13444 need_lib_prefix=no
13445 need_version=no
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13447 soname_spec='${libname}${release}${shared_ext}$major'
13448 shlibpath_var=LD_LIBRARY_PATH
13449 shlibpath_overrides_runpath=no
13450 hardcode_into_libs=yes
13451 dynamic_linker='NetBSD ld.elf_so'
13452 ;;
13453
13454netbsd*)
13455 version_type=sunos
13456 need_lib_prefix=no
13457 need_version=no
13458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13461 dynamic_linker='NetBSD (a.out) ld.so'
13462 else
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 dynamic_linker='NetBSD ld.elf_so'
13466 fi
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=yes
13469 hardcode_into_libs=yes
13470 ;;
13471
13472newsos6)
13473 version_type=linux
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475 shlibpath_var=LD_LIBRARY_PATH
13476 shlibpath_overrides_runpath=yes
13477 ;;
13478
13479nto-qnx*)
13480 version_type=linux
13481 need_lib_prefix=no
13482 need_version=no
13483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484 soname_spec='${libname}${release}${shared_ext}$major'
13485 shlibpath_var=LD_LIBRARY_PATH
13486 shlibpath_overrides_runpath=yes
13487 ;;
13488
13489openbsd*)
13490 version_type=sunos
13491 sys_lib_dlsearch_path_spec="/usr/lib"
13492 need_lib_prefix=no
13493 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13494 case $host_os in
13495 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13496 *) need_version=no ;;
13497 esac
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13502 case $host_os in
13503 openbsd2.[89] | openbsd2.[89].*)
13504 shlibpath_overrides_runpath=no
13505 ;;
13506 *)
13507 shlibpath_overrides_runpath=yes
13508 ;;
13509 esac
13510 else
13511 shlibpath_overrides_runpath=yes
13512 fi
13513 ;;
13514
13515os2*)
13516 libname_spec='$name'
13517 shrext_cmds=".dll"
13518 need_lib_prefix=no
13519 library_names_spec='$libname${shared_ext} $libname.a'
13520 dynamic_linker='OS/2 ld.exe'
13521 shlibpath_var=LIBPATH
13522 ;;
13523
13524osf3* | osf4* | osf5*)
13525 version_type=osf
13526 need_lib_prefix=no
13527 need_version=no
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 shlibpath_var=LD_LIBRARY_PATH
13531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13532 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13533 ;;
13534
13535rdos*)
13536 dynamic_linker=no
13537 ;;
13538
13539solaris*)
13540 version_type=linux
13541 need_lib_prefix=no
13542 need_version=no
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544 soname_spec='${libname}${release}${shared_ext}$major'
13545 shlibpath_var=LD_LIBRARY_PATH
13546 shlibpath_overrides_runpath=yes
13547 hardcode_into_libs=yes
13548 # ldd complains unless libraries are executable
13549 postinstall_cmds='chmod +x $lib'
13550 ;;
13551
13552sunos4*)
13553 version_type=sunos
13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 shlibpath_overrides_runpath=yes
13558 if test "$with_gnu_ld" = yes; then
13559 need_lib_prefix=no
13560 fi
13561 need_version=yes
13562 ;;
13563
13564sysv4 | sysv4.3*)
13565 version_type=linux
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567 soname_spec='${libname}${release}${shared_ext}$major'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 case $host_vendor in
13570 sni)
13571 shlibpath_overrides_runpath=no
13572 need_lib_prefix=no
13573 export_dynamic_flag_spec='${wl}-Blargedynsym'
13574 runpath_var=LD_RUN_PATH
13575 ;;
13576 siemens)
13577 need_lib_prefix=no
13578 ;;
13579 motorola)
13580 need_lib_prefix=no
13581 need_version=no
13582 shlibpath_overrides_runpath=no
13583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13584 ;;
13585 esac
13586 ;;
13587
13588sysv4*MP*)
13589 if test -d /usr/nec ;then
13590 version_type=linux
13591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13592 soname_spec='$libname${shared_ext}.$major'
13593 shlibpath_var=LD_LIBRARY_PATH
13594 fi
13595 ;;
13596
13597sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13598 version_type=freebsd-elf
13599 need_lib_prefix=no
13600 need_version=no
13601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13602 soname_spec='${libname}${release}${shared_ext}$major'
13603 shlibpath_var=LD_LIBRARY_PATH
13604 hardcode_into_libs=yes
13605 if test "$with_gnu_ld" = yes; then
13606 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13607 shlibpath_overrides_runpath=no
13608 else
13609 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13610 shlibpath_overrides_runpath=yes
13611 case $host_os in
13612 sco3.2v5*)
13613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13614 ;;
13615 esac
13616 fi
13617 sys_lib_dlsearch_path_spec='/usr/lib'
13618 ;;
13619
13620uts4*)
13621 version_type=linux
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623 soname_spec='${libname}${release}${shared_ext}$major'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 ;;
13626
13627*)
13628 dynamic_linker=no
13629 ;;
13630esac
13631{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13632echo "${ECHO_T}$dynamic_linker" >&6; }
13633test "$dynamic_linker" = no && can_build_shared=no
13634
13635if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637else
13638 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13639fi
13640
13641sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13642if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644else
13645 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13646fi
13647
13648sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13649
13650variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13651if test "$GCC" = yes; then
13652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13653fi
13654
13655{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13656echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13657hardcode_action_CXX=
13658if test -n "$hardcode_libdir_flag_spec_CXX" || \
13659 test -n "$runpath_var_CXX" || \
13660 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13661
13662 # We can hardcode non-existant directories.
13663 if test "$hardcode_direct_CXX" != no &&
13664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13665 # have to relink, otherwise we might link with an installed library
13666 # when we should be linking with a yet-to-be-installed one
13667 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13668 test "$hardcode_minus_L_CXX" != no; then
13669 # Linking always hardcodes the temporary library directory.
13670 hardcode_action_CXX=relink
13671 else
13672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13673 hardcode_action_CXX=immediate
13674 fi
13675else
13676 # We cannot hardcode anything, or else we can only hardcode existing
13677 # directories.
13678 hardcode_action_CXX=unsupported
13679fi
13680{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13681echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13682
13683if test "$hardcode_action_CXX" = relink; then
13684 # Fast installation is not supported
13685 enable_fast_install=no
13686elif test "$shlibpath_overrides_runpath" = yes ||
13687 test "$enable_shared" = no; then
13688 # Fast installation is not necessary
13689 enable_fast_install=needless
13690fi
13691
13692
13693# The else clause should only fire when bootstrapping the
13694# libtool distribution, otherwise you forgot to ship ltmain.sh
13695# with your package, and you will get complaints that there are
13696# no rules to generate ltmain.sh.
13697if test -f "$ltmain"; then
13698 # See if we are running on zsh, and set the options which allow our commands through
13699 # without removal of \ escapes.
13700 if test -n "${ZSH_VERSION+set}" ; then
13701 setopt NO_GLOB_SUBST
13702 fi
13703 # Now quote all the things that may contain metacharacters while being
13704 # careful not to overquote the AC_SUBSTed values. We take copies of the
13705 # variables and quote the copies for generation of the libtool script.
13706 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13707 SED SHELL STRIP \
13708 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13709 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13710 deplibs_check_method reload_flag reload_cmds need_locks \
13711 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13712 lt_cv_sys_global_symbol_to_c_name_address \
13713 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13714 old_postinstall_cmds old_postuninstall_cmds \
13715 compiler_CXX \
13716 CC_CXX \
13717 LD_CXX \
13718 lt_prog_compiler_wl_CXX \
13719 lt_prog_compiler_pic_CXX \
13720 lt_prog_compiler_static_CXX \
13721 lt_prog_compiler_no_builtin_flag_CXX \
13722 export_dynamic_flag_spec_CXX \
13723 thread_safe_flag_spec_CXX \
13724 whole_archive_flag_spec_CXX \
13725 enable_shared_with_static_runtimes_CXX \
13726 old_archive_cmds_CXX \
13727 old_archive_from_new_cmds_CXX \
13728 predep_objects_CXX \
13729 postdep_objects_CXX \
13730 predeps_CXX \
13731 postdeps_CXX \
13732 compiler_lib_search_path_CXX \
13733 compiler_lib_search_dirs_CXX \
13734 archive_cmds_CXX \
13735 archive_expsym_cmds_CXX \
13736 postinstall_cmds_CXX \
13737 postuninstall_cmds_CXX \
13738 old_archive_from_expsyms_cmds_CXX \
13739 allow_undefined_flag_CXX \
13740 no_undefined_flag_CXX \
13741 export_symbols_cmds_CXX \
13742 hardcode_libdir_flag_spec_CXX \
13743 hardcode_libdir_flag_spec_ld_CXX \
13744 hardcode_libdir_separator_CXX \
13745 hardcode_automatic_CXX \
13746 module_cmds_CXX \
13747 module_expsym_cmds_CXX \
13748 lt_cv_prog_compiler_c_o_CXX \
13749 fix_srcfile_path_CXX \
13750 exclude_expsyms_CXX \
13751 include_expsyms_CXX; do
13752
13753 case $var in
13754 old_archive_cmds_CXX | \
13755 old_archive_from_new_cmds_CXX | \
13756 archive_cmds_CXX | \
13757 archive_expsym_cmds_CXX | \
13758 module_cmds_CXX | \
13759 module_expsym_cmds_CXX | \
13760 old_archive_from_expsyms_cmds_CXX | \
13761 export_symbols_cmds_CXX | \
13762 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13763 postinstall_cmds | postuninstall_cmds | \
13764 old_postinstall_cmds | old_postuninstall_cmds | \
13765 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13766 # Double-quote double-evaled strings.
13767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13768 ;;
13769 *)
13770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13771 ;;
13772 esac
13773 done
13774
13775 case $lt_echo in
13776 *'\$0 --fallback-echo"')
13777 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13778 ;;
13779 esac
13780
13781cfgfile="$ofile"
13782
13783 cat <<__EOF__ >> "$cfgfile"
13784# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13785
13786# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13787
13788# Shell to use when invoking shell scripts.
13789SHELL=$lt_SHELL
13790
13791# Whether or not to build shared libraries.
13792build_libtool_libs=$enable_shared
13793
13794# Whether or not to build static libraries.
13795build_old_libs=$enable_static
13796
13797# Whether or not to add -lc for building shared libraries.
13798build_libtool_need_lc=$archive_cmds_need_lc_CXX
13799
13800# Whether or not to disallow shared libs when runtime libs are static
13801allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13802
13803# Whether or not to optimize for fast installation.
13804fast_install=$enable_fast_install
13805
13806# The host system.
13807host_alias=$host_alias
13808host=$host
13809host_os=$host_os
13810
13811# The build system.
13812build_alias=$build_alias
13813build=$build
13814build_os=$build_os
13815
13816# An echo program that does not interpret backslashes.
13817echo=$lt_echo
13818
13819# The archiver.
13820AR=$lt_AR
13821AR_FLAGS=$lt_AR_FLAGS
13822
13823# A C compiler.
13824LTCC=$lt_LTCC
13825
13826# LTCC compiler flags.
13827LTCFLAGS=$lt_LTCFLAGS
13828
13829# A language-specific compiler.
13830CC=$lt_compiler_CXX
13831
13832# Is the compiler the GNU C compiler?
13833with_gcc=$GCC_CXX
13834
13835# An ERE matcher.
13836EGREP=$lt_EGREP
13837
13838# The linker used to build libraries.
13839LD=$lt_LD_CXX
13840
13841# Whether we need hard or soft links.
13842LN_S=$lt_LN_S
13843
13844# A BSD-compatible nm program.
13845NM=$lt_NM
13846
13847# A symbol stripping program
13848STRIP=$lt_STRIP
13849
13850# Used to examine libraries when file_magic_cmd begins "file"
13851MAGIC_CMD=$MAGIC_CMD
13852
13853# Used on cygwin: DLL creation program.
13854DLLTOOL="$DLLTOOL"
13855
13856# Used on cygwin: object dumper.
13857OBJDUMP="$OBJDUMP"
13858
13859# Used on cygwin: assembler.
13860AS="$AS"
13861
13862# The name of the directory that contains temporary libtool files.
13863objdir=$objdir
13864
13865# How to create reloadable object files.
13866reload_flag=$lt_reload_flag
13867reload_cmds=$lt_reload_cmds
13868
13869# How to pass a linker flag through the compiler.
13870wl=$lt_lt_prog_compiler_wl_CXX
13871
13872# Object file suffix (normally "o").
13873objext="$ac_objext"
13874
13875# Old archive suffix (normally "a").
13876libext="$libext"
13877
13878# Shared library suffix (normally ".so").
13879shrext_cmds='$shrext_cmds'
13880
13881# Executable file suffix (normally "").
13882exeext="$exeext"
13883
13884# Additional compiler flags for building library objects.
13885pic_flag=$lt_lt_prog_compiler_pic_CXX
13886pic_mode=$pic_mode
13887
13888# What is the maximum length of a command?
13889max_cmd_len=$lt_cv_sys_max_cmd_len
13890
13891# Does compiler simultaneously support -c and -o options?
13892compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13893
13894# Must we lock files when doing compilation?
13895need_locks=$lt_need_locks
13896
13897# Do we need the lib prefix for modules?
13898need_lib_prefix=$need_lib_prefix
13899
13900# Do we need a version for libraries?
13901need_version=$need_version
13902
13903# Whether dlopen is supported.
13904dlopen_support=$enable_dlopen
13905
13906# Whether dlopen of programs is supported.
13907dlopen_self=$enable_dlopen_self
13908
13909# Whether dlopen of statically linked programs is supported.
13910dlopen_self_static=$enable_dlopen_self_static
13911
13912# Compiler flag to prevent dynamic linking.
13913link_static_flag=$lt_lt_prog_compiler_static_CXX
13914
13915# Compiler flag to turn off builtin functions.
13916no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13917
13918# Compiler flag to allow reflexive dlopens.
13919export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13920
13921# Compiler flag to generate shared objects directly from archives.
13922whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13923
13924# Compiler flag to generate thread-safe objects.
13925thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13926
13927# Library versioning type.
13928version_type=$version_type
13929
13930# Format of library name prefix.
13931libname_spec=$lt_libname_spec
13932
13933# List of archive names. First name is the real one, the rest are links.
13934# The last name is the one that the linker finds with -lNAME.
13935library_names_spec=$lt_library_names_spec
13936
13937# The coded name of the library, if different from the real name.
13938soname_spec=$lt_soname_spec
13939
13940# Commands used to build and install an old-style archive.
13941RANLIB=$lt_RANLIB
13942old_archive_cmds=$lt_old_archive_cmds_CXX
13943old_postinstall_cmds=$lt_old_postinstall_cmds
13944old_postuninstall_cmds=$lt_old_postuninstall_cmds
13945
13946# Create an old-style archive from a shared archive.
13947old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13948
13949# Create a temporary old-style archive to link instead of a shared archive.
13950old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13951
13952# Commands used to build and install a shared archive.
13953archive_cmds=$lt_archive_cmds_CXX
13954archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13955postinstall_cmds=$lt_postinstall_cmds
13956postuninstall_cmds=$lt_postuninstall_cmds
13957
13958# Commands used to build a loadable module (assumed same as above if empty)
13959module_cmds=$lt_module_cmds_CXX
13960module_expsym_cmds=$lt_module_expsym_cmds_CXX
13961
13962# Commands to strip libraries.
13963old_striplib=$lt_old_striplib
13964striplib=$lt_striplib
13965
13966# Dependencies to place before the objects being linked to create a
13967# shared library.
13968predep_objects=$lt_predep_objects_CXX
13969
13970# Dependencies to place after the objects being linked to create a
13971# shared library.
13972postdep_objects=$lt_postdep_objects_CXX
13973
13974# Dependencies to place before the objects being linked to create a
13975# shared library.
13976predeps=$lt_predeps_CXX
13977
13978# Dependencies to place after the objects being linked to create a
13979# shared library.
13980postdeps=$lt_postdeps_CXX
13981
13982# The directories searched by this compiler when creating a shared
13983# library
13984compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13985
13986# The library search path used internally by the compiler when linking
13987# a shared library.
13988compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13989
13990# Method to check whether dependent libraries are shared objects.
13991deplibs_check_method=$lt_deplibs_check_method
13992
13993# Command to use when deplibs_check_method == file_magic.
13994file_magic_cmd=$lt_file_magic_cmd
13995
13996# Flag that allows shared libraries with undefined symbols to be built.
13997allow_undefined_flag=$lt_allow_undefined_flag_CXX
13998
13999# Flag that forces no undefined symbols.
14000no_undefined_flag=$lt_no_undefined_flag_CXX
14001
14002# Commands used to finish a libtool library installation in a directory.
14003finish_cmds=$lt_finish_cmds
14004
14005# Same as above, but a single script fragment to be evaled but not shown.
14006finish_eval=$lt_finish_eval
14007
14008# Take the output of nm and produce a listing of raw symbols and C names.
14009global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14010
14011# Transform the output of nm in a proper C declaration
14012global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14013
14014# Transform the output of nm in a C name address pair
14015global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14016
14017# This is the shared library runtime path variable.
14018runpath_var=$runpath_var
14019
14020# This is the shared library path variable.
14021shlibpath_var=$shlibpath_var
14022
14023# Is shlibpath searched before the hard-coded library search path?
14024shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14025
14026# How to hardcode a shared library path into an executable.
14027hardcode_action=$hardcode_action_CXX
14028
14029# Whether we should hardcode library paths into libraries.
14030hardcode_into_libs=$hardcode_into_libs
14031
14032# Flag to hardcode \$libdir into a binary during linking.
14033# This must work even if \$libdir does not exist.
14034hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14035
14036# If ld is used when linking, flag to hardcode \$libdir into
14037# a binary during linking. This must work even if \$libdir does
14038# not exist.
14039hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14040
14041# Whether we need a single -rpath flag with a separated argument.
14042hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14043
14044# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14045# resulting binary.
14046hardcode_direct=$hardcode_direct_CXX
14047
14048# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14049# resulting binary.
14050hardcode_minus_L=$hardcode_minus_L_CXX
14051
14052# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14053# the resulting binary.
14054hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14055
14056# Set to yes if building a shared library automatically hardcodes DIR into the library
14057# and all subsequent libraries and executables linked against it.
14058hardcode_automatic=$hardcode_automatic_CXX
14059
14060# Variables whose values should be saved in libtool wrapper scripts and
14061# restored at relink time.
14062variables_saved_for_relink="$variables_saved_for_relink"
14063
14064# Whether libtool must link a program against all its dependency libraries.
14065link_all_deplibs=$link_all_deplibs_CXX
14066
14067# Compile-time system search path for libraries
14068sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14069
14070# Run-time system search path for libraries
14071sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14072
14073# Fix the shell variable \$srcfile for the compiler.
14074fix_srcfile_path=$lt_fix_srcfile_path
14075
14076# Set to yes if exported symbols are required.
14077always_export_symbols=$always_export_symbols_CXX
14078
14079# The commands to list exported symbols.
14080export_symbols_cmds=$lt_export_symbols_cmds_CXX
14081
14082# The commands to extract the exported symbol list from a shared archive.
14083extract_expsyms_cmds=$lt_extract_expsyms_cmds
14084
14085# Symbols that should not be listed in the preloaded symbols.
14086exclude_expsyms=$lt_exclude_expsyms_CXX
14087
14088# Symbols that must always be exported.
14089include_expsyms=$lt_include_expsyms_CXX
14090
14091# ### END LIBTOOL TAG CONFIG: $tagname
14092
14093__EOF__
14094
14095
14096else
14097 # If there is no Makefile yet, we rely on a make rule to execute
14098 # `config.status --recheck' to rerun these tests and create the
14099 # libtool script then.
14100 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14101 if test -f "$ltmain_in"; then
14102 test -f Makefile && make "$ltmain"
14103 fi
14104fi
14105
14106
14107ac_ext=c
14108ac_cpp='$CPP $CPPFLAGS'
14109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14111ac_compiler_gnu=$ac_cv_c_compiler_gnu
14112
14113CC=$lt_save_CC
14114LDCXX=$LD
14115LD=$lt_save_LD
14116GCC=$lt_save_GCC
14117with_gnu_ldcxx=$with_gnu_ld
14118with_gnu_ld=$lt_save_with_gnu_ld
14119lt_cv_path_LDCXX=$lt_cv_path_LD
14120lt_cv_path_LD=$lt_save_path_LD
14121lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14122lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14123
14124 else
14125 tagname=""
14126 fi
14127 ;;
14128
14129 F77)
14130 if test -n "$F77" && test "X$F77" != "Xno"; then
14131
14132ac_ext=f
14133ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14134ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14135ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14136
14137
14138archive_cmds_need_lc_F77=no
14139allow_undefined_flag_F77=
14140always_export_symbols_F77=no
14141archive_expsym_cmds_F77=
14142export_dynamic_flag_spec_F77=
14143hardcode_direct_F77=no
14144hardcode_libdir_flag_spec_F77=
14145hardcode_libdir_flag_spec_ld_F77=
14146hardcode_libdir_separator_F77=
14147hardcode_minus_L_F77=no
14148hardcode_automatic_F77=no
14149module_cmds_F77=
14150module_expsym_cmds_F77=
14151link_all_deplibs_F77=unknown
14152old_archive_cmds_F77=$old_archive_cmds
14153no_undefined_flag_F77=
14154whole_archive_flag_spec_F77=
14155enable_shared_with_static_runtimes_F77=no
14156
14157# Source file extension for f77 test sources.
14158ac_ext=f
14159
14160# Object file extension for compiled f77 test sources.
14161objext=o
14162objext_F77=$objext
14163
14164# Code to be used in simple compile tests
14165lt_simple_compile_test_code="\
14166 subroutine t
14167 return
14168 end
14169"
14170
14171# Code to be used in simple link tests
14172lt_simple_link_test_code="\
14173 program t
14174 end
14175"
14176
14177# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14178
14179# If no C compiler was specified, use CC.
14180LTCC=${LTCC-"$CC"}
14181
14182# If no C compiler flags were specified, use CFLAGS.
14183LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14184
14185# Allow CC to be a program name with arguments.
14186compiler=$CC
14187
14188
14189# save warnings/boilerplate of simple test code
14190ac_outfile=conftest.$ac_objext
14191echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14192eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193_lt_compiler_boilerplate=`cat conftest.err`
14194$rm conftest*
14195
14196ac_outfile=conftest.$ac_objext
14197echo "$lt_simple_link_test_code" >conftest.$ac_ext
14198eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14199_lt_linker_boilerplate=`cat conftest.err`
14200$rm -r conftest*
14201
14202
14203# Allow CC to be a program name with arguments.
14204lt_save_CC="$CC"
14205CC=${F77-"f77"}
14206compiler=$CC
14207compiler_F77=$CC
14208for cc_temp in $compiler""; do
14209 case $cc_temp in
14210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14212 \-*) ;;
14213 *) break;;
14214 esac
14215done
14216cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14217
14218
14219{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14220echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14221{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14222echo "${ECHO_T}$can_build_shared" >&6; }
14223
14224{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14225echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14226test "$can_build_shared" = "no" && enable_shared=no
14227
14228# On AIX, shared libraries and static libraries use the same namespace, and
14229# are all built from PIC.
14230case $host_os in
14231aix3*)
14232 test "$enable_shared" = yes && enable_static=no
14233 if test -n "$RANLIB"; then
14234 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14235 postinstall_cmds='$RANLIB $lib'
14236 fi
14237 ;;
14238aix[4-9]*)
14239 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14240 test "$enable_shared" = yes && enable_static=no
14241 fi
14242 ;;
14243esac
14244{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14245echo "${ECHO_T}$enable_shared" >&6; }
14246
14247{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14248echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14249# Make sure either enable_shared or enable_static is yes.
14250test "$enable_shared" = yes || enable_static=yes
14251{ echo "$as_me:$LINENO: result: $enable_static" >&5
14252echo "${ECHO_T}$enable_static" >&6; }
14253
14254GCC_F77="$G77"
14255LD_F77="$LD"
14256
14257lt_prog_compiler_wl_F77=
14258lt_prog_compiler_pic_F77=
14259lt_prog_compiler_static_F77=
14260
14261{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14262echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14263
14264 if test "$GCC" = yes; then
14265 lt_prog_compiler_wl_F77='-Wl,'
14266 lt_prog_compiler_static_F77='-static'
14267
14268 case $host_os in
14269 aix*)
14270 # All AIX code is PIC.
14271 if test "$host_cpu" = ia64; then
14272 # AIX 5 now supports IA64 processor
14273 lt_prog_compiler_static_F77='-Bstatic'
14274 fi
14275 ;;
14276
14277 amigaos*)
14278 # FIXME: we need at least 68020 code to build shared libraries, but
14279 # adding the `-m68020' flag to GCC prevents building anything better,
14280 # like `-m68040'.
14281 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14282 ;;
14283
14284 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14285 # PIC is the default for these OSes.
14286 ;;
14287
14288 mingw* | cygwin* | pw32* | os2*)
14289 # This hack is so that the source file can tell whether it is being
14290 # built for inclusion in a dll (and should export symbols for example).
14291 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14292 # (--disable-auto-import) libraries
14293 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14294 ;;
14295
14296 darwin* | rhapsody*)
14297 # PIC is the default on this platform
14298 # Common symbols not allowed in MH_DYLIB files
14299 lt_prog_compiler_pic_F77='-fno-common'
14300 ;;
14301
14302 interix[3-9]*)
14303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14304 # Instead, we relocate shared libraries at runtime.
14305 ;;
14306
14307 msdosdjgpp*)
14308 # Just because we use GCC doesn't mean we suddenly get shared libraries
14309 # on systems that don't support them.
14310 lt_prog_compiler_can_build_shared_F77=no
14311 enable_shared=no
14312 ;;
14313
14314 sysv4*MP*)
14315 if test -d /usr/nec; then
14316 lt_prog_compiler_pic_F77=-Kconform_pic
14317 fi
14318 ;;
14319
14320 hpux*)
14321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14322 # not for PA HP-UX.
14323 case $host_cpu in
14324 hppa*64*|ia64*)
14325 # +Z the default
14326 ;;
14327 *)
14328 lt_prog_compiler_pic_F77='-fPIC'
14329 ;;
14330 esac
14331 ;;
14332
14333 *)
14334 lt_prog_compiler_pic_F77='-fPIC'
14335 ;;
14336 esac
14337 else
14338 # PORTME Check for flag to pass linker flags through the system compiler.
14339 case $host_os in
14340 aix*)
14341 lt_prog_compiler_wl_F77='-Wl,'
14342 if test "$host_cpu" = ia64; then
14343 # AIX 5 now supports IA64 processor
14344 lt_prog_compiler_static_F77='-Bstatic'
14345 else
14346 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14347 fi
14348 ;;
14349 darwin*)
14350 # PIC is the default on this platform
14351 # Common symbols not allowed in MH_DYLIB files
14352 case $cc_basename in
14353 xlc*)
14354 lt_prog_compiler_pic_F77='-qnocommon'
14355 lt_prog_compiler_wl_F77='-Wl,'
14356 ;;
14357 esac
14358 ;;
14359
14360 mingw* | cygwin* | pw32* | os2*)
14361 # This hack is so that the source file can tell whether it is being
14362 # built for inclusion in a dll (and should export symbols for example).
14363 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14364 ;;
14365
14366 hpux9* | hpux10* | hpux11*)
14367 lt_prog_compiler_wl_F77='-Wl,'
14368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14369 # not for PA HP-UX.
14370 case $host_cpu in
14371 hppa*64*|ia64*)
14372 # +Z the default
14373 ;;
14374 *)
14375 lt_prog_compiler_pic_F77='+Z'
14376 ;;
14377 esac
14378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14379 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14380 ;;
14381
14382 irix5* | irix6* | nonstopux*)
14383 lt_prog_compiler_wl_F77='-Wl,'
14384 # PIC (with -KPIC) is the default.
14385 lt_prog_compiler_static_F77='-non_shared'
14386 ;;
14387
14388 newsos6)
14389 lt_prog_compiler_pic_F77='-KPIC'
14390 lt_prog_compiler_static_F77='-Bstatic'
14391 ;;
14392
14393 linux* | k*bsd*-gnu)
14394 case $cc_basename in
14395 icc* | ecc*)
14396 lt_prog_compiler_wl_F77='-Wl,'
14397 lt_prog_compiler_pic_F77='-KPIC'
14398 lt_prog_compiler_static_F77='-static'
14399 ;;
14400 pgcc* | pgf77* | pgf90* | pgf95*)
14401 # Portland Group compilers (*not* the Pentium gcc compiler,
14402 # which looks to be a dead project)
14403 lt_prog_compiler_wl_F77='-Wl,'
14404 lt_prog_compiler_pic_F77='-fpic'
14405 lt_prog_compiler_static_F77='-Bstatic'
14406 ;;
14407 ccc*)
14408 lt_prog_compiler_wl_F77='-Wl,'
14409 # All Alpha code is PIC.
14410 lt_prog_compiler_static_F77='-non_shared'
14411 ;;
14412 *)
14413 case `$CC -V 2>&1 | sed 5q` in
14414 *Sun\ C*)
14415 # Sun C 5.9
14416 lt_prog_compiler_pic_F77='-KPIC'
14417 lt_prog_compiler_static_F77='-Bstatic'
14418 lt_prog_compiler_wl_F77='-Wl,'
14419 ;;
14420 *Sun\ F*)
14421 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14422 lt_prog_compiler_pic_F77='-KPIC'
14423 lt_prog_compiler_static_F77='-Bstatic'
14424 lt_prog_compiler_wl_F77=''
14425 ;;
14426 esac
14427 ;;
14428 esac
14429 ;;
14430
14431 osf3* | osf4* | osf5*)
14432 lt_prog_compiler_wl_F77='-Wl,'
14433 # All OSF/1 code is PIC.
14434 lt_prog_compiler_static_F77='-non_shared'
14435 ;;
14436
14437 rdos*)
14438 lt_prog_compiler_static_F77='-non_shared'
14439 ;;
14440
14441 solaris*)
14442 lt_prog_compiler_pic_F77='-KPIC'
14443 lt_prog_compiler_static_F77='-Bstatic'
14444 case $cc_basename in
14445 f77* | f90* | f95*)
14446 lt_prog_compiler_wl_F77='-Qoption ld ';;
14447 *)
14448 lt_prog_compiler_wl_F77='-Wl,';;
14449 esac
14450 ;;
14451
14452 sunos4*)
14453 lt_prog_compiler_wl_F77='-Qoption ld '
14454 lt_prog_compiler_pic_F77='-PIC'
14455 lt_prog_compiler_static_F77='-Bstatic'
14456 ;;
14457
14458 sysv4 | sysv4.2uw2* | sysv4.3*)
14459 lt_prog_compiler_wl_F77='-Wl,'
14460 lt_prog_compiler_pic_F77='-KPIC'
14461 lt_prog_compiler_static_F77='-Bstatic'
14462 ;;
14463
14464 sysv4*MP*)
14465 if test -d /usr/nec ;then
14466 lt_prog_compiler_pic_F77='-Kconform_pic'
14467 lt_prog_compiler_static_F77='-Bstatic'
14468 fi
14469 ;;
14470
14471 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14472 lt_prog_compiler_wl_F77='-Wl,'
14473 lt_prog_compiler_pic_F77='-KPIC'
14474 lt_prog_compiler_static_F77='-Bstatic'
14475 ;;
14476
14477 unicos*)
14478 lt_prog_compiler_wl_F77='-Wl,'
14479 lt_prog_compiler_can_build_shared_F77=no
14480 ;;
14481
14482 uts4*)
14483 lt_prog_compiler_pic_F77='-pic'
14484 lt_prog_compiler_static_F77='-Bstatic'
14485 ;;
14486
14487 *)
14488 lt_prog_compiler_can_build_shared_F77=no
14489 ;;
14490 esac
14491 fi
14492
14493{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14494echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14495
14496#
14497# Check to make sure the PIC flag actually works.
14498#
14499if test -n "$lt_prog_compiler_pic_F77"; then
14500
14501{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14502echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14503if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505else
14506 lt_cv_prog_compiler_pic_works_F77=no
14507 ac_outfile=conftest.$ac_objext
14508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14509 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14510 # Insert the option either (1) after the last *FLAGS variable, or
14511 # (2) before a word containing "conftest.", or (3) at the end.
14512 # Note that $ac_compile itself does not contain backslashes and begins
14513 # with a dollar sign (not a hyphen), so the echo should work correctly.
14514 # The option is referenced via a variable to avoid confusing sed.
14515 lt_compile=`echo "$ac_compile" | $SED \
14516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14518 -e 's:$: $lt_compiler_flag:'`
14519 (eval echo "\"\$as_me:14519: $lt_compile\"" >&5)
14520 (eval "$lt_compile" 2>conftest.err)
14521 ac_status=$?
14522 cat conftest.err >&5
14523 echo "$as_me:14523: \$? = $ac_status" >&5
14524 if (exit $ac_status) && test -s "$ac_outfile"; then
14525 # The compiler can only warn and ignore the option if not recognized
14526 # So say no if there are warnings other than the usual output.
14527 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14530 lt_cv_prog_compiler_pic_works_F77=yes
14531 fi
14532 fi
14533 $rm conftest*
14534
14535fi
14536{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14537echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14538
14539if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14540 case $lt_prog_compiler_pic_F77 in
14541 "" | " "*) ;;
14542 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14543 esac
14544else
14545 lt_prog_compiler_pic_F77=
14546 lt_prog_compiler_can_build_shared_F77=no
14547fi
14548
14549fi
14550case $host_os in
14551 # For platforms which do not support PIC, -DPIC is meaningless:
14552 *djgpp*)
14553 lt_prog_compiler_pic_F77=
14554 ;;
14555 *)
14556 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14557 ;;
14558esac
14559
14560#
14561# Check to make sure the static flag actually works.
14562#
14563wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14564{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14565echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14566if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14568else
14569 lt_cv_prog_compiler_static_works_F77=no
14570 save_LDFLAGS="$LDFLAGS"
14571 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14572 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14573 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14574 # The linker can only warn and ignore the option if not recognized
14575 # So say no if there are warnings
14576 if test -s conftest.err; then
14577 # Append any errors to the config.log.
14578 cat conftest.err 1>&5
14579 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14581 if diff conftest.exp conftest.er2 >/dev/null; then
14582 lt_cv_prog_compiler_static_works_F77=yes
14583 fi
14584 else
14585 lt_cv_prog_compiler_static_works_F77=yes
14586 fi
14587 fi
14588 $rm -r conftest*
14589 LDFLAGS="$save_LDFLAGS"
14590
14591fi
14592{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14593echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14594
14595if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14596 :
14597else
14598 lt_prog_compiler_static_F77=
14599fi
14600
14601
14602{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14603echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14604if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606else
14607 lt_cv_prog_compiler_c_o_F77=no
14608 $rm -r conftest 2>/dev/null
14609 mkdir conftest
14610 cd conftest
14611 mkdir out
14612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14613
14614 lt_compiler_flag="-o out/conftest2.$ac_objext"
14615 # Insert the option either (1) after the last *FLAGS variable, or
14616 # (2) before a word containing "conftest.", or (3) at the end.
14617 # Note that $ac_compile itself does not contain backslashes and begins
14618 # with a dollar sign (not a hyphen), so the echo should work correctly.
14619 lt_compile=`echo "$ac_compile" | $SED \
14620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14622 -e 's:$: $lt_compiler_flag:'`
14623 (eval echo "\"\$as_me:14623: $lt_compile\"" >&5)
14624 (eval "$lt_compile" 2>out/conftest.err)
14625 ac_status=$?
14626 cat out/conftest.err >&5
14627 echo "$as_me:14627: \$? = $ac_status" >&5
14628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14629 then
14630 # The compiler can only warn and ignore the option if not recognized
14631 # So say no if there are warnings
14632 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14635 lt_cv_prog_compiler_c_o_F77=yes
14636 fi
14637 fi
14638 chmod u+w . 2>&5
14639 $rm conftest*
14640 # SGI C++ compiler will create directory out/ii_files/ for
14641 # template instantiation
14642 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14643 $rm out/* && rmdir out
14644 cd ..
14645 rmdir conftest
14646 $rm conftest*
14647
14648fi
14649{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14650echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14651
14652
14653hard_links="nottested"
14654if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14655 # do not overwrite the value of need_locks provided by the user
14656 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14657echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14658 hard_links=yes
14659 $rm conftest*
14660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14661 touch conftest.a
14662 ln conftest.a conftest.b 2>&5 || hard_links=no
14663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14664 { echo "$as_me:$LINENO: result: $hard_links" >&5
14665echo "${ECHO_T}$hard_links" >&6; }
14666 if test "$hard_links" = no; then
14667 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14668echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14669 need_locks=warn
14670 fi
14671else
14672 need_locks=no
14673fi
14674
14675{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14676echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14677
14678 runpath_var=
14679 allow_undefined_flag_F77=
14680 enable_shared_with_static_runtimes_F77=no
14681 archive_cmds_F77=
14682 archive_expsym_cmds_F77=
14683 old_archive_From_new_cmds_F77=
14684 old_archive_from_expsyms_cmds_F77=
14685 export_dynamic_flag_spec_F77=
14686 whole_archive_flag_spec_F77=
14687 thread_safe_flag_spec_F77=
14688 hardcode_libdir_flag_spec_F77=
14689 hardcode_libdir_flag_spec_ld_F77=
14690 hardcode_libdir_separator_F77=
14691 hardcode_direct_F77=no
14692 hardcode_minus_L_F77=no
14693 hardcode_shlibpath_var_F77=unsupported
14694 link_all_deplibs_F77=unknown
14695 hardcode_automatic_F77=no
14696 module_cmds_F77=
14697 module_expsym_cmds_F77=
14698 always_export_symbols_F77=no
14699 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14700 # include_expsyms should be a list of space-separated symbols to be *always*
14701 # included in the symbol list
14702 include_expsyms_F77=
14703 # exclude_expsyms can be an extended regexp of symbols to exclude
14704 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14705 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14706 # as well as any symbol that contains `d'.
14707 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14708 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14709 # platforms (ab)use it in PIC code, but their linkers get confused if
14710 # the symbol is explicitly referenced. Since portable code cannot
14711 # rely on this symbol name, it's probably fine to never include it in
14712 # preloaded symbol tables.
14713 # Exclude shared library initialization/finalization symbols.
14714 extract_expsyms_cmds=
14715 # Just being paranoid about ensuring that cc_basename is set.
14716 for cc_temp in $compiler""; do
14717 case $cc_temp in
14718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14720 \-*) ;;
14721 *) break;;
14722 esac
14723done
14724cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14725
14726 case $host_os in
14727 cygwin* | mingw* | pw32*)
14728 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14729 # When not using gcc, we currently assume that we are using
14730 # Microsoft Visual C++.
14731 if test "$GCC" != yes; then
14732 with_gnu_ld=no
14733 fi
14734 ;;
14735 interix*)
14736 # we just hope/assume this is gcc and not c89 (= MSVC++)
14737 with_gnu_ld=yes
14738 ;;
14739 openbsd*)
14740 with_gnu_ld=no
14741 ;;
14742 esac
14743
14744 ld_shlibs_F77=yes
14745 if test "$with_gnu_ld" = yes; then
14746 # If archive_cmds runs LD, not CC, wlarc should be empty
14747 wlarc='${wl}'
14748
14749 # Set some defaults for GNU ld with shared library support. These
14750 # are reset later if shared libraries are not supported. Putting them
14751 # here allows them to be overridden if necessary.
14752 runpath_var=LD_RUN_PATH
14753 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14754 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14755 # ancient GNU ld didn't support --whole-archive et. al.
14756 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14757 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14758 else
14759 whole_archive_flag_spec_F77=
14760 fi
14761 supports_anon_versioning=no
14762 case `$LD -v 2>/dev/null` in
14763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14766 *\ 2.11.*) ;; # other 2.11 versions
14767 *) supports_anon_versioning=yes ;;
14768 esac
14769
14770 # See if GNU ld supports shared libraries.
14771 case $host_os in
14772 aix[3-9]*)
14773 # On AIX/PPC, the GNU linker is very broken
14774 if test "$host_cpu" != ia64; then
14775 ld_shlibs_F77=no
14776 cat <<EOF 1>&2
14777
14778*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14779*** to be unable to reliably create shared libraries on AIX.
14780*** Therefore, libtool is disabling shared libraries support. If you
14781*** really care for shared libraries, you may want to modify your PATH
14782*** so that a non-GNU linker is found, and then restart.
14783
14784EOF
14785 fi
14786 ;;
14787
14788 amigaos*)
14789 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)'
14790 hardcode_libdir_flag_spec_F77='-L$libdir'
14791 hardcode_minus_L_F77=yes
14792
14793 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14794 # that the semantics of dynamic libraries on AmigaOS, at least up
14795 # to version 4, is to share data among multiple programs linked
14796 # with the same dynamic library. Since this doesn't match the
14797 # behavior of shared libraries on other platforms, we can't use
14798 # them.
14799 ld_shlibs_F77=no
14800 ;;
14801
14802 beos*)
14803 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14804 allow_undefined_flag_F77=unsupported
14805 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14806 # support --undefined. This deserves some investigation. FIXME
14807 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14808 else
14809 ld_shlibs_F77=no
14810 fi
14811 ;;
14812
14813 cygwin* | mingw* | pw32*)
14814 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14815 # as there is no search path for DLLs.
14816 hardcode_libdir_flag_spec_F77='-L$libdir'
14817 allow_undefined_flag_F77=unsupported
14818 always_export_symbols_F77=no
14819 enable_shared_with_static_runtimes_F77=yes
14820 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14821
14822 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14823 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14824 # If the export-symbols file already is a .def file (1st line
14825 # is EXPORTS), use it as is; otherwise, prepend...
14826 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14827 cp $export_symbols $output_objdir/$soname.def;
14828 else
14829 echo EXPORTS > $output_objdir/$soname.def;
14830 cat $export_symbols >> $output_objdir/$soname.def;
14831 fi~
14832 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14833 else
14834 ld_shlibs_F77=no
14835 fi
14836 ;;
14837
14838 interix[3-9]*)
14839 hardcode_direct_F77=no
14840 hardcode_shlibpath_var_F77=no
14841 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14842 export_dynamic_flag_spec_F77='${wl}-E'
14843 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14844 # Instead, shared libraries are loaded at an image base (0x10000000 by
14845 # default) and relocated if they conflict, which is a slow very memory
14846 # consuming and fragmenting process. To avoid this, we pick a random,
14847 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14848 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14849 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'
14850 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'
14851 ;;
14852
14853 gnu* | linux* | k*bsd*-gnu)
14854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855 tmp_addflag=
14856 case $cc_basename,$host_cpu in
14857 pgcc*) # Portland Group C compiler
14858 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'
14859 tmp_addflag=' $pic_flag'
14860 ;;
14861 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14862 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'
14863 tmp_addflag=' $pic_flag -Mnomain' ;;
14864 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14865 tmp_addflag=' -i_dynamic' ;;
14866 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14867 tmp_addflag=' -i_dynamic -nofor_main' ;;
14868 ifc* | ifort*) # Intel Fortran compiler
14869 tmp_addflag=' -nofor_main' ;;
14870 esac
14871 case `$CC -V 2>&1 | sed 5q` in
14872 *Sun\ C*) # Sun C 5.9
14873 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'
14874 tmp_sharedflag='-G' ;;
14875 *Sun\ F*) # Sun Fortran 8.3
14876 tmp_sharedflag='-G' ;;
14877 *)
14878 tmp_sharedflag='-shared' ;;
14879 esac
14880 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14881
14882 if test $supports_anon_versioning = yes; then
14883 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14885 $echo "local: *; };" >> $output_objdir/$libname.ver~
14886 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14887 fi
14888 link_all_deplibs_F77=no
14889 else
14890 ld_shlibs_F77=no
14891 fi
14892 ;;
14893
14894 netbsd* | netbsdelf*-gnu)
14895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14896 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14897 wlarc=
14898 else
14899 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14900 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14901 fi
14902 ;;
14903
14904 solaris*)
14905 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14906 ld_shlibs_F77=no
14907 cat <<EOF 1>&2
14908
14909*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14910*** create shared libraries on Solaris systems. Therefore, libtool
14911*** is disabling shared libraries support. We urge you to upgrade GNU
14912*** binutils to release 2.9.1 or newer. Another option is to modify
14913*** your PATH or compiler configuration so that the native linker is
14914*** used, and then restart.
14915
14916EOF
14917 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14920 else
14921 ld_shlibs_F77=no
14922 fi
14923 ;;
14924
14925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14926 case `$LD -v 2>&1` in
14927 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14928 ld_shlibs_F77=no
14929 cat <<_LT_EOF 1>&2
14930
14931*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14932*** reliably create shared libraries on SCO systems. Therefore, libtool
14933*** is disabling shared libraries support. We urge you to upgrade GNU
14934*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14935*** your PATH or compiler configuration so that the native linker is
14936*** used, and then restart.
14937
14938_LT_EOF
14939 ;;
14940 *)
14941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14942 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14943 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14944 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14945 else
14946 ld_shlibs_F77=no
14947 fi
14948 ;;
14949 esac
14950 ;;
14951
14952 sunos4*)
14953 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14954 wlarc=
14955 hardcode_direct_F77=yes
14956 hardcode_shlibpath_var_F77=no
14957 ;;
14958
14959 *)
14960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14961 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14962 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14963 else
14964 ld_shlibs_F77=no
14965 fi
14966 ;;
14967 esac
14968
14969 if test "$ld_shlibs_F77" = no; then
14970 runpath_var=
14971 hardcode_libdir_flag_spec_F77=
14972 export_dynamic_flag_spec_F77=
14973 whole_archive_flag_spec_F77=
14974 fi
14975 else
14976 # PORTME fill in a description of your system's linker (not GNU ld)
14977 case $host_os in
14978 aix3*)
14979 allow_undefined_flag_F77=unsupported
14980 always_export_symbols_F77=yes
14981 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'
14982 # Note: this linker hardcodes the directories in LIBPATH if there
14983 # are no directories specified by -L.
14984 hardcode_minus_L_F77=yes
14985 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14986 # Neither direct hardcoding nor static linking is supported with a
14987 # broken collect2.
14988 hardcode_direct_F77=unsupported
14989 fi
14990 ;;
14991
14992 aix[4-9]*)
14993 if test "$host_cpu" = ia64; then
14994 # On IA64, the linker does run time linking by default, so we don't
14995 # have to do anything special.
14996 aix_use_runtimelinking=no
14997 exp_sym_flag='-Bexport'
14998 no_entry_flag=""
14999 else
15000 # If we're using GNU nm, then we don't want the "-C" option.
15001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15002 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15003 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'
15004 else
15005 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'
15006 fi
15007 aix_use_runtimelinking=no
15008
15009 # Test if we are trying to use run time linking or normal
15010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15011 # need to do runtime linking.
15012 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15013 for ld_flag in $LDFLAGS; do
15014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15015 aix_use_runtimelinking=yes
15016 break
15017 fi
15018 done
15019 ;;
15020 esac
15021
15022 exp_sym_flag='-bexport'
15023 no_entry_flag='-bnoentry'
15024 fi
15025
15026 # When large executables or shared objects are built, AIX ld can
15027 # have problems creating the table of contents. If linking a library
15028 # or program results in "error TOC overflow" add -mminimal-toc to
15029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15031
15032 archive_cmds_F77=''
15033 hardcode_direct_F77=yes
15034 hardcode_libdir_separator_F77=':'
15035 link_all_deplibs_F77=yes
15036
15037 if test "$GCC" = yes; then
15038 case $host_os in aix4.[012]|aix4.[012].*)
15039 # We only want to do this on AIX 4.2 and lower, the check
15040 # below for broken collect2 doesn't work under 4.3+
15041 collect2name=`${CC} -print-prog-name=collect2`
15042 if test -f "$collect2name" && \
15043 strings "$collect2name" | grep resolve_lib_name >/dev/null
15044 then
15045 # We have reworked collect2
15046 :
15047 else
15048 # We have old collect2
15049 hardcode_direct_F77=unsupported
15050 # It fails to find uninstalled libraries when the uninstalled
15051 # path is not listed in the libpath. Setting hardcode_minus_L
15052 # to unsupported forces relinking
15053 hardcode_minus_L_F77=yes
15054 hardcode_libdir_flag_spec_F77='-L$libdir'
15055 hardcode_libdir_separator_F77=
15056 fi
15057 ;;
15058 esac
15059 shared_flag='-shared'
15060 if test "$aix_use_runtimelinking" = yes; then
15061 shared_flag="$shared_flag "'${wl}-G'
15062 fi
15063 else
15064 # not using gcc
15065 if test "$host_cpu" = ia64; then
15066 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15067 # chokes on -Wl,-G. The following line is correct:
15068 shared_flag='-G'
15069 else
15070 if test "$aix_use_runtimelinking" = yes; then
15071 shared_flag='${wl}-G'
15072 else
15073 shared_flag='${wl}-bM:SRE'
15074 fi
15075 fi
15076 fi
15077
15078 # It seems that -bexpall does not export symbols beginning with
15079 # underscore (_), so it is better to generate a list of symbols to export.
15080 always_export_symbols_F77=yes
15081 if test "$aix_use_runtimelinking" = yes; then
15082 # Warning - without using the other runtime loading flags (-brtl),
15083 # -berok will link without error, but may produce a broken library.
15084 allow_undefined_flag_F77='-berok'
15085 # Determine the default libpath from the value encoded in an empty executable.
15086 cat >conftest.$ac_ext <<_ACEOF
15087 program main
15088
15089 end
15090_ACEOF
15091rm -f conftest.$ac_objext conftest$ac_exeext
15092if { (ac_try="$ac_link"
15093case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096esac
15097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_link") 2>conftest.er1
15099 ac_status=$?
15100 grep -v '^ *+' conftest.er1 >conftest.err
15101 rm -f conftest.er1
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } && {
15105 test -z "$ac_f77_werror_flag" ||
15106 test ! -s conftest.err
15107 } && test -s conftest$ac_exeext &&
15108 $as_test_x conftest$ac_exeext; then
15109
15110lt_aix_libpath_sed='
15111 /Import File Strings/,/^$/ {
15112 /^0/ {
15113 s/^0 *\(.*\)$/\1/
15114 p
15115 }
15116 }'
15117aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15118# Check for a 64-bit object if we didn't find anything.
15119if test -z "$aix_libpath"; then
15120 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15121fi
15122else
15123 echo "$as_me: failed program was:" >&5
15124sed 's/^/| /' conftest.$ac_ext >&5
15125
15126
15127fi
15128
15129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15130 conftest$ac_exeext conftest.$ac_ext
15131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15132
15133 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15134 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"
15135 else
15136 if test "$host_cpu" = ia64; then
15137 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15138 allow_undefined_flag_F77="-z nodefs"
15139 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"
15140 else
15141 # Determine the default libpath from the value encoded in an empty executable.
15142 cat >conftest.$ac_ext <<_ACEOF
15143 program main
15144
15145 end
15146_ACEOF
15147rm -f conftest.$ac_objext conftest$ac_exeext
15148if { (ac_try="$ac_link"
15149case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152esac
15153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_link") 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_f77_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext &&
15164 $as_test_x conftest$ac_exeext; then
15165
15166lt_aix_libpath_sed='
15167 /Import File Strings/,/^$/ {
15168 /^0/ {
15169 s/^0 *\(.*\)$/\1/
15170 p
15171 }
15172 }'
15173aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15174# Check for a 64-bit object if we didn't find anything.
15175if test -z "$aix_libpath"; then
15176 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15177fi
15178else
15179 echo "$as_me: failed program was:" >&5
15180sed 's/^/| /' conftest.$ac_ext >&5
15181
15182
15183fi
15184
15185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15186 conftest$ac_exeext conftest.$ac_ext
15187if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15188
15189 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15190 # Warning - without using the other run time loading flags,
15191 # -berok will link without error, but may produce a broken library.
15192 no_undefined_flag_F77=' ${wl}-bernotok'
15193 allow_undefined_flag_F77=' ${wl}-berok'
15194 # Exported symbols can be pulled into shared objects from archives
15195 whole_archive_flag_spec_F77='$convenience'
15196 archive_cmds_need_lc_F77=yes
15197 # This is similar to how AIX traditionally builds its shared libraries.
15198 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'
15199 fi
15200 fi
15201 ;;
15202
15203 amigaos*)
15204 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)'
15205 hardcode_libdir_flag_spec_F77='-L$libdir'
15206 hardcode_minus_L_F77=yes
15207 # see comment about different semantics on the GNU ld section
15208 ld_shlibs_F77=no
15209 ;;
15210
15211 bsdi[45]*)
15212 export_dynamic_flag_spec_F77=-rdynamic
15213 ;;
15214
15215 cygwin* | mingw* | pw32*)
15216 # When not using gcc, we currently assume that we are using
15217 # Microsoft Visual C++.
15218 # hardcode_libdir_flag_spec is actually meaningless, as there is
15219 # no search path for DLLs.
15220 hardcode_libdir_flag_spec_F77=' '
15221 allow_undefined_flag_F77=unsupported
15222 # Tell ltmain to make .lib files, not .a files.
15223 libext=lib
15224 # Tell ltmain to make .dll files, not .so files.
15225 shrext_cmds=".dll"
15226 # FIXME: Setting linknames here is a bad hack.
15227 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15228 # The linker will automatically build a .lib file if we build a DLL.
15229 old_archive_From_new_cmds_F77='true'
15230 # FIXME: Should let the user specify the lib program.
15231 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15232 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15233 enable_shared_with_static_runtimes_F77=yes
15234 ;;
15235
15236 darwin* | rhapsody*)
15237 case $host_os in
15238 rhapsody* | darwin1.[012])
15239 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15240 ;;
15241 *) # Darwin 1.3 on
15242 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15243 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15244 else
15245 case ${MACOSX_DEPLOYMENT_TARGET} in
15246 10.[012])
15247 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15248 ;;
15249 10.*)
15250 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15251 ;;
15252 esac
15253 fi
15254 ;;
15255 esac
15256 archive_cmds_need_lc_F77=no
15257 hardcode_direct_F77=no
15258 hardcode_automatic_F77=yes
15259 hardcode_shlibpath_var_F77=unsupported
15260 whole_archive_flag_spec_F77=''
15261 link_all_deplibs_F77=yes
15262 if test "$GCC" = yes ; then
15263 output_verbose_link_cmd='echo'
15264 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}"
15265 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15266 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}"
15267 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}"
15268 else
15269 case $cc_basename in
15270 xlc*)
15271 output_verbose_link_cmd='echo'
15272 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15273 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15275 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}'
15276 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}'
15277 ;;
15278 *)
15279 ld_shlibs_F77=no
15280 ;;
15281 esac
15282 fi
15283 ;;
15284
15285 dgux*)
15286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15287 hardcode_libdir_flag_spec_F77='-L$libdir'
15288 hardcode_shlibpath_var_F77=no
15289 ;;
15290
15291 freebsd1*)
15292 ld_shlibs_F77=no
15293 ;;
15294
15295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15296 # support. Future versions do this automatically, but an explicit c++rt0.o
15297 # does not break anything, and helps significantly (at the cost of a little
15298 # extra space).
15299 freebsd2.2*)
15300 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15301 hardcode_libdir_flag_spec_F77='-R$libdir'
15302 hardcode_direct_F77=yes
15303 hardcode_shlibpath_var_F77=no
15304 ;;
15305
15306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15307 freebsd2*)
15308 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15309 hardcode_direct_F77=yes
15310 hardcode_minus_L_F77=yes
15311 hardcode_shlibpath_var_F77=no
15312 ;;
15313
15314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15315 freebsd* | dragonfly*)
15316 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15317 hardcode_libdir_flag_spec_F77='-R$libdir'
15318 hardcode_direct_F77=yes
15319 hardcode_shlibpath_var_F77=no
15320 ;;
15321
15322 hpux9*)
15323 if test "$GCC" = yes; then
15324 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'
15325 else
15326 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'
15327 fi
15328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15329 hardcode_libdir_separator_F77=:
15330 hardcode_direct_F77=yes
15331
15332 # hardcode_minus_L: Not really in the search PATH,
15333 # but as the default location of the library.
15334 hardcode_minus_L_F77=yes
15335 export_dynamic_flag_spec_F77='${wl}-E'
15336 ;;
15337
15338 hpux10*)
15339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15340 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15341 else
15342 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15343 fi
15344 if test "$with_gnu_ld" = no; then
15345 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15346 hardcode_libdir_separator_F77=:
15347
15348 hardcode_direct_F77=yes
15349 export_dynamic_flag_spec_F77='${wl}-E'
15350
15351 # hardcode_minus_L: Not really in the search PATH,
15352 # but as the default location of the library.
15353 hardcode_minus_L_F77=yes
15354 fi
15355 ;;
15356
15357 hpux11*)
15358 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15359 case $host_cpu in
15360 hppa*64*)
15361 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15362 ;;
15363 ia64*)
15364 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15365 ;;
15366 *)
15367 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15368 ;;
15369 esac
15370 else
15371 case $host_cpu in
15372 hppa*64*)
15373 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15374 ;;
15375 ia64*)
15376 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15377 ;;
15378 *)
15379 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15380 ;;
15381 esac
15382 fi
15383 if test "$with_gnu_ld" = no; then
15384 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15385 hardcode_libdir_separator_F77=:
15386
15387 case $host_cpu in
15388 hppa*64*|ia64*)
15389 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15390 hardcode_direct_F77=no
15391 hardcode_shlibpath_var_F77=no
15392 ;;
15393 *)
15394 hardcode_direct_F77=yes
15395 export_dynamic_flag_spec_F77='${wl}-E'
15396
15397 # hardcode_minus_L: Not really in the search PATH,
15398 # but as the default location of the library.
15399 hardcode_minus_L_F77=yes
15400 ;;
15401 esac
15402 fi
15403 ;;
15404
15405 irix5* | irix6* | nonstopux*)
15406 if test "$GCC" = yes; then
15407 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'
15408 else
15409 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'
15410 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15411 fi
15412 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15413 hardcode_libdir_separator_F77=:
15414 link_all_deplibs_F77=yes
15415 ;;
15416
15417 netbsd* | netbsdelf*-gnu)
15418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15419 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15420 else
15421 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15422 fi
15423 hardcode_libdir_flag_spec_F77='-R$libdir'
15424 hardcode_direct_F77=yes
15425 hardcode_shlibpath_var_F77=no
15426 ;;
15427
15428 newsos6)
15429 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15430 hardcode_direct_F77=yes
15431 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15432 hardcode_libdir_separator_F77=:
15433 hardcode_shlibpath_var_F77=no
15434 ;;
15435
15436 openbsd*)
15437 if test -f /usr/libexec/ld.so; then
15438 hardcode_direct_F77=yes
15439 hardcode_shlibpath_var_F77=no
15440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15441 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15442 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15443 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15444 export_dynamic_flag_spec_F77='${wl}-E'
15445 else
15446 case $host_os in
15447 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15448 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15449 hardcode_libdir_flag_spec_F77='-R$libdir'
15450 ;;
15451 *)
15452 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15453 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15454 ;;
15455 esac
15456 fi
15457 else
15458 ld_shlibs_F77=no
15459 fi
15460 ;;
15461
15462 os2*)
15463 hardcode_libdir_flag_spec_F77='-L$libdir'
15464 hardcode_minus_L_F77=yes
15465 allow_undefined_flag_F77=unsupported
15466 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'
15467 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15468 ;;
15469
15470 osf3*)
15471 if test "$GCC" = yes; then
15472 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15473 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'
15474 else
15475 allow_undefined_flag_F77=' -expect_unresolved \*'
15476 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'
15477 fi
15478 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15479 hardcode_libdir_separator_F77=:
15480 ;;
15481
15482 osf4* | osf5*) # as osf3* with the addition of -msym flag
15483 if test "$GCC" = yes; then
15484 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15485 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'
15486 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15487 else
15488 allow_undefined_flag_F77=' -expect_unresolved \*'
15489 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'
15490 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~
15491 $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'
15492
15493 # Both c and cxx compiler support -rpath directly
15494 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15495 fi
15496 hardcode_libdir_separator_F77=:
15497 ;;
15498
15499 solaris*)
15500 no_undefined_flag_F77=' -z text'
15501 if test "$GCC" = yes; then
15502 wlarc='${wl}'
15503 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15505 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15506 else
15507 wlarc=''
15508 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15509 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15510 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15511 fi
15512 hardcode_libdir_flag_spec_F77='-R$libdir'
15513 hardcode_shlibpath_var_F77=no
15514 case $host_os in
15515 solaris2.[0-5] | solaris2.[0-5].*) ;;
15516 *)
15517 # The compiler driver will combine and reorder linker options,
15518 # but understands `-z linker_flag'. GCC discards it without `$wl',
15519 # but is careful enough not to reorder.
15520 # Supported since Solaris 2.6 (maybe 2.5.1?)
15521 if test "$GCC" = yes; then
15522 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15523 else
15524 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15525 fi
15526 ;;
15527 esac
15528 link_all_deplibs_F77=yes
15529 ;;
15530
15531 sunos4*)
15532 if test "x$host_vendor" = xsequent; then
15533 # Use $CC to link under sequent, because it throws in some extra .o
15534 # files that make .init and .fini sections work.
15535 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15536 else
15537 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15538 fi
15539 hardcode_libdir_flag_spec_F77='-L$libdir'
15540 hardcode_direct_F77=yes
15541 hardcode_minus_L_F77=yes
15542 hardcode_shlibpath_var_F77=no
15543 ;;
15544
15545 sysv4)
15546 case $host_vendor in
15547 sni)
15548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549 hardcode_direct_F77=yes # is this really true???
15550 ;;
15551 siemens)
15552 ## LD is ld it makes a PLAMLIB
15553 ## CC just makes a GrossModule.
15554 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15555 reload_cmds_F77='$CC -r -o $output$reload_objs'
15556 hardcode_direct_F77=no
15557 ;;
15558 motorola)
15559 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15560 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15561 ;;
15562 esac
15563 runpath_var='LD_RUN_PATH'
15564 hardcode_shlibpath_var_F77=no
15565 ;;
15566
15567 sysv4.3*)
15568 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569 hardcode_shlibpath_var_F77=no
15570 export_dynamic_flag_spec_F77='-Bexport'
15571 ;;
15572
15573 sysv4*MP*)
15574 if test -d /usr/nec; then
15575 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15576 hardcode_shlibpath_var_F77=no
15577 runpath_var=LD_RUN_PATH
15578 hardcode_runpath_var=yes
15579 ld_shlibs_F77=yes
15580 fi
15581 ;;
15582
15583 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15584 no_undefined_flag_F77='${wl}-z,text'
15585 archive_cmds_need_lc_F77=no
15586 hardcode_shlibpath_var_F77=no
15587 runpath_var='LD_RUN_PATH'
15588
15589 if test "$GCC" = yes; then
15590 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15592 else
15593 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15594 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15595 fi
15596 ;;
15597
15598 sysv5* | sco3.2v5* | sco5v6*)
15599 # Note: We can NOT use -z defs as we might desire, because we do not
15600 # link with -lc, and that would cause any symbols used from libc to
15601 # always be unresolved, which means just about no library would
15602 # ever link correctly. If we're not using GNU ld we use -z text
15603 # though, which does catch some bad symbols but isn't as heavy-handed
15604 # as -z defs.
15605 no_undefined_flag_F77='${wl}-z,text'
15606 allow_undefined_flag_F77='${wl}-z,nodefs'
15607 archive_cmds_need_lc_F77=no
15608 hardcode_shlibpath_var_F77=no
15609 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15610 hardcode_libdir_separator_F77=':'
15611 link_all_deplibs_F77=yes
15612 export_dynamic_flag_spec_F77='${wl}-Bexport'
15613 runpath_var='LD_RUN_PATH'
15614
15615 if test "$GCC" = yes; then
15616 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15618 else
15619 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15620 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15621 fi
15622 ;;
15623
15624 uts4*)
15625 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626 hardcode_libdir_flag_spec_F77='-L$libdir'
15627 hardcode_shlibpath_var_F77=no
15628 ;;
15629
15630 *)
15631 ld_shlibs_F77=no
15632 ;;
15633 esac
15634 fi
15635
15636{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15637echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15638test "$ld_shlibs_F77" = no && can_build_shared=no
15639
15640#
15641# Do we need to explicitly link libc?
15642#
15643case "x$archive_cmds_need_lc_F77" in
15644x|xyes)
15645 # Assume -lc should be added
15646 archive_cmds_need_lc_F77=yes
15647
15648 if test "$enable_shared" = yes && test "$GCC" = yes; then
15649 case $archive_cmds_F77 in
15650 *'~'*)
15651 # FIXME: we may have to deal with multi-command sequences.
15652 ;;
15653 '$CC '*)
15654 # Test whether the compiler implicitly links with -lc since on some
15655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15656 # to ld, don't add -lc before -lgcc.
15657 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15658echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15659 $rm conftest*
15660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15661
15662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15663 (eval $ac_compile) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } 2>conftest.err; then
15667 soname=conftest
15668 lib=conftest
15669 libobjs=conftest.$ac_objext
15670 deplibs=
15671 wl=$lt_prog_compiler_wl_F77
15672 pic_flag=$lt_prog_compiler_pic_F77
15673 compiler_flags=-v
15674 linker_flags=-v
15675 verstring=
15676 output_objdir=.
15677 libname=conftest
15678 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15679 allow_undefined_flag_F77=
15680 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15681 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }
15685 then
15686 archive_cmds_need_lc_F77=no
15687 else
15688 archive_cmds_need_lc_F77=yes
15689 fi
15690 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15691 else
15692 cat conftest.err 1>&5
15693 fi
15694 $rm conftest*
15695 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15696echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15697 ;;
15698 esac
15699 fi
15700 ;;
15701esac
15702
15703{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15704echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15705library_names_spec=
15706libname_spec='lib$name'
15707soname_spec=
15708shrext_cmds=".so"
15709postinstall_cmds=
15710postuninstall_cmds=
15711finish_cmds=
15712finish_eval=
15713shlibpath_var=
15714shlibpath_overrides_runpath=unknown
15715version_type=none
15716dynamic_linker="$host_os ld.so"
15717sys_lib_dlsearch_path_spec="/lib /usr/lib"
15718
15719need_lib_prefix=unknown
15720hardcode_into_libs=no
15721
15722# when you set need_version to no, make sure it does not cause -set_version
15723# flags to be left without arguments
15724need_version=unknown
15725
15726case $host_os in
15727aix3*)
15728 version_type=linux
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15730 shlibpath_var=LIBPATH
15731
15732 # AIX 3 has no versioning support, so we append a major version to the name.
15733 soname_spec='${libname}${release}${shared_ext}$major'
15734 ;;
15735
15736aix[4-9]*)
15737 version_type=linux
15738 need_lib_prefix=no
15739 need_version=no
15740 hardcode_into_libs=yes
15741 if test "$host_cpu" = ia64; then
15742 # AIX 5 supports IA64
15743 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15744 shlibpath_var=LD_LIBRARY_PATH
15745 else
15746 # With GCC up to 2.95.x, collect2 would create an import file
15747 # for dependence libraries. The import file would start with
15748 # the line `#! .'. This would cause the generated library to
15749 # depend on `.', always an invalid library. This was fixed in
15750 # development snapshots of GCC prior to 3.0.
15751 case $host_os in
15752 aix4 | aix4.[01] | aix4.[01].*)
15753 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15754 echo ' yes '
15755 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15756 :
15757 else
15758 can_build_shared=no
15759 fi
15760 ;;
15761 esac
15762 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15763 # soname into executable. Probably we can add versioning support to
15764 # collect2, so additional links can be useful in future.
15765 if test "$aix_use_runtimelinking" = yes; then
15766 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15767 # instead of lib<name>.a to let people know that these are not
15768 # typical AIX shared libraries.
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770 else
15771 # We preserve .a as extension for shared libraries through AIX4.2
15772 # and later when we are not doing run time linking.
15773 library_names_spec='${libname}${release}.a $libname.a'
15774 soname_spec='${libname}${release}${shared_ext}$major'
15775 fi
15776 shlibpath_var=LIBPATH
15777 fi
15778 ;;
15779
15780amigaos*)
15781 library_names_spec='$libname.ixlibrary $libname.a'
15782 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15783 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'
15784 ;;
15785
15786beos*)
15787 library_names_spec='${libname}${shared_ext}'
15788 dynamic_linker="$host_os ld.so"
15789 shlibpath_var=LIBRARY_PATH
15790 ;;
15791
15792bsdi[45]*)
15793 version_type=linux
15794 need_version=no
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15796 soname_spec='${libname}${release}${shared_ext}$major'
15797 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15798 shlibpath_var=LD_LIBRARY_PATH
15799 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15800 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15801 # the default ld.so.conf also contains /usr/contrib/lib and
15802 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15803 # libtool to hard-code these into programs
15804 ;;
15805
15806cygwin* | mingw* | pw32*)
15807 version_type=windows
15808 shrext_cmds=".dll"
15809 need_version=no
15810 need_lib_prefix=no
15811
15812 case $GCC,$host_os in
15813 yes,cygwin* | yes,mingw* | yes,pw32*)
15814 library_names_spec='$libname.dll.a'
15815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15816 postinstall_cmds='base_file=`basename \${file}`~
15817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15818 dldir=$destdir/`dirname \$dlpath`~
15819 test -d \$dldir || mkdir -p \$dldir~
15820 $install_prog $dir/$dlname \$dldir/$dlname~
15821 chmod a+x \$dldir/$dlname'
15822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15823 dlpath=$dir/\$dldll~
15824 $rm \$dlpath'
15825 shlibpath_overrides_runpath=yes
15826
15827 case $host_os in
15828 cygwin*)
15829 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15830 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15831 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15832 ;;
15833 mingw*)
15834 # MinGW DLLs use traditional 'lib' prefix
15835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15836 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15837 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15838 # It is most probably a Windows format PATH printed by
15839 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15840 # path with ; separators, and with drive letters. We can handle the
15841 # drive letters (cygwin fileutils understands them), so leave them,
15842 # especially as we might pass files found there to a mingw objdump,
15843 # which wouldn't understand a cygwinified path. Ahh.
15844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15845 else
15846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15847 fi
15848 ;;
15849 pw32*)
15850 # pw32 DLLs use 'pw' prefix rather than 'lib'
15851 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15852 ;;
15853 esac
15854 ;;
15855
15856 *)
15857 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15858 ;;
15859 esac
15860 dynamic_linker='Win32 ld.exe'
15861 # FIXME: first we should search . and the directory the executable is in
15862 shlibpath_var=PATH
15863 ;;
15864
15865darwin* | rhapsody*)
15866 dynamic_linker="$host_os dyld"
15867 version_type=darwin
15868 need_lib_prefix=no
15869 need_version=no
15870 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15871 soname_spec='${libname}${release}${major}$shared_ext'
15872 shlibpath_overrides_runpath=yes
15873 shlibpath_var=DYLD_LIBRARY_PATH
15874 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15875
15876 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15877 ;;
15878
15879dgux*)
15880 version_type=linux
15881 need_lib_prefix=no
15882 need_version=no
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15884 soname_spec='${libname}${release}${shared_ext}$major'
15885 shlibpath_var=LD_LIBRARY_PATH
15886 ;;
15887
15888freebsd1*)
15889 dynamic_linker=no
15890 ;;
15891
15892freebsd* | dragonfly*)
15893 # DragonFly does not have aout. When/if they implement a new
15894 # versioning mechanism, adjust this.
15895 if test -x /usr/bin/objformat; then
15896 objformat=`/usr/bin/objformat`
15897 else
15898 case $host_os in
15899 freebsd[123]*) objformat=aout ;;
15900 *) objformat=elf ;;
15901 esac
15902 fi
15903 version_type=freebsd-$objformat
15904 case $version_type in
15905 freebsd-elf*)
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15907 need_version=no
15908 need_lib_prefix=no
15909 ;;
15910 freebsd-*)
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15912 need_version=yes
15913 ;;
15914 esac
15915 shlibpath_var=LD_LIBRARY_PATH
15916 case $host_os in
15917 freebsd2*)
15918 shlibpath_overrides_runpath=yes
15919 ;;
15920 freebsd3.[01]* | freebsdelf3.[01]*)
15921 shlibpath_overrides_runpath=yes
15922 hardcode_into_libs=yes
15923 ;;
15924 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15925 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15926 shlibpath_overrides_runpath=no
15927 hardcode_into_libs=yes
15928 ;;
15929 *) # from 4.6 on, and DragonFly
15930 shlibpath_overrides_runpath=yes
15931 hardcode_into_libs=yes
15932 ;;
15933 esac
15934 ;;
15935
15936gnu*)
15937 version_type=linux
15938 need_lib_prefix=no
15939 need_version=no
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15941 soname_spec='${libname}${release}${shared_ext}$major'
15942 shlibpath_var=LD_LIBRARY_PATH
15943 hardcode_into_libs=yes
15944 ;;
15945
15946hpux9* | hpux10* | hpux11*)
15947 # Give a soname corresponding to the major version so that dld.sl refuses to
15948 # link against other versions.
15949 version_type=sunos
15950 need_lib_prefix=no
15951 need_version=no
15952 case $host_cpu in
15953 ia64*)
15954 shrext_cmds='.so'
15955 hardcode_into_libs=yes
15956 dynamic_linker="$host_os dld.so"
15957 shlibpath_var=LD_LIBRARY_PATH
15958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960 soname_spec='${libname}${release}${shared_ext}$major'
15961 if test "X$HPUX_IA64_MODE" = X32; then
15962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15963 else
15964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15965 fi
15966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15967 ;;
15968 hppa*64*)
15969 shrext_cmds='.sl'
15970 hardcode_into_libs=yes
15971 dynamic_linker="$host_os dld.sl"
15972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15978 ;;
15979 *)
15980 shrext_cmds='.sl'
15981 dynamic_linker="$host_os dld.sl"
15982 shlibpath_var=SHLIB_PATH
15983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 ;;
15987 esac
15988 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15989 postinstall_cmds='chmod 555 $lib'
15990 ;;
15991
15992interix[3-9]*)
15993 version_type=linux
15994 need_lib_prefix=no
15995 need_version=no
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15999 shlibpath_var=LD_LIBRARY_PATH
16000 shlibpath_overrides_runpath=no
16001 hardcode_into_libs=yes
16002 ;;
16003
16004irix5* | irix6* | nonstopux*)
16005 case $host_os in
16006 nonstopux*) version_type=nonstopux ;;
16007 *)
16008 if test "$lt_cv_prog_gnu_ld" = yes; then
16009 version_type=linux
16010 else
16011 version_type=irix
16012 fi ;;
16013 esac
16014 need_lib_prefix=no
16015 need_version=no
16016 soname_spec='${libname}${release}${shared_ext}$major'
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16018 case $host_os in
16019 irix5* | nonstopux*)
16020 libsuff= shlibsuff=
16021 ;;
16022 *)
16023 case $LD in # libtool.m4 will add one of these switches to LD
16024 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16025 libsuff= shlibsuff= libmagic=32-bit;;
16026 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16027 libsuff=32 shlibsuff=N32 libmagic=N32;;
16028 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16029 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16030 *) libsuff= shlibsuff= libmagic=never-match;;
16031 esac
16032 ;;
16033 esac
16034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16035 shlibpath_overrides_runpath=no
16036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16038 hardcode_into_libs=yes
16039 ;;
16040
16041# No shared lib support for Linux oldld, aout, or coff.
16042linux*oldld* | linux*aout* | linux*coff*)
16043 dynamic_linker=no
16044 ;;
16045
16046# This must be Linux ELF.
16047linux* | k*bsd*-gnu)
16048 version_type=linux
16049 need_lib_prefix=no
16050 need_version=no
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052 soname_spec='${libname}${release}${shared_ext}$major'
16053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=no
16056 # This implies no fast_install, which is unacceptable.
16057 # Some rework will be needed to allow for fast_install
16058 # before this can be enabled.
16059 hardcode_into_libs=yes
16060
16061 # Append ld.so.conf contents to the search path
16062 if test -f /etc/ld.so.conf; then
16063 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' ' '`
16064 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16065 fi
16066
16067 # We used to test for /lib/ld.so.1 and disable shared libraries on
16068 # powerpc, because MkLinux only supported shared libraries with the
16069 # GNU dynamic linker. Since this was broken with cross compilers,
16070 # most powerpc-linux boxes support dynamic linking these days and
16071 # people can always --disable-shared, the test was removed, and we
16072 # assume the GNU/Linux dynamic linker is in use.
16073 dynamic_linker='GNU/Linux ld.so'
16074 ;;
16075
16076netbsdelf*-gnu)
16077 version_type=linux
16078 need_lib_prefix=no
16079 need_version=no
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16081 soname_spec='${libname}${release}${shared_ext}$major'
16082 shlibpath_var=LD_LIBRARY_PATH
16083 shlibpath_overrides_runpath=no
16084 hardcode_into_libs=yes
16085 dynamic_linker='NetBSD ld.elf_so'
16086 ;;
16087
16088netbsd*)
16089 version_type=sunos
16090 need_lib_prefix=no
16091 need_version=no
16092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16095 dynamic_linker='NetBSD (a.out) ld.so'
16096 else
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 dynamic_linker='NetBSD ld.elf_so'
16100 fi
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=yes
16103 hardcode_into_libs=yes
16104 ;;
16105
16106newsos6)
16107 version_type=linux
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 shlibpath_var=LD_LIBRARY_PATH
16110 shlibpath_overrides_runpath=yes
16111 ;;
16112
16113nto-qnx*)
16114 version_type=linux
16115 need_lib_prefix=no
16116 need_version=no
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 soname_spec='${libname}${release}${shared_ext}$major'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=yes
16121 ;;
16122
16123openbsd*)
16124 version_type=sunos
16125 sys_lib_dlsearch_path_spec="/usr/lib"
16126 need_lib_prefix=no
16127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16128 case $host_os in
16129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16130 *) need_version=no ;;
16131 esac
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16134 shlibpath_var=LD_LIBRARY_PATH
16135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16136 case $host_os in
16137 openbsd2.[89] | openbsd2.[89].*)
16138 shlibpath_overrides_runpath=no
16139 ;;
16140 *)
16141 shlibpath_overrides_runpath=yes
16142 ;;
16143 esac
16144 else
16145 shlibpath_overrides_runpath=yes
16146 fi
16147 ;;
16148
16149os2*)
16150 libname_spec='$name'
16151 shrext_cmds=".dll"
16152 need_lib_prefix=no
16153 library_names_spec='$libname${shared_ext} $libname.a'
16154 dynamic_linker='OS/2 ld.exe'
16155 shlibpath_var=LIBPATH
16156 ;;
16157
16158osf3* | osf4* | osf5*)
16159 version_type=osf
16160 need_lib_prefix=no
16161 need_version=no
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16167 ;;
16168
16169rdos*)
16170 dynamic_linker=no
16171 ;;
16172
16173solaris*)
16174 version_type=linux
16175 need_lib_prefix=no
16176 need_version=no
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178 soname_spec='${libname}${release}${shared_ext}$major'
16179 shlibpath_var=LD_LIBRARY_PATH
16180 shlibpath_overrides_runpath=yes
16181 hardcode_into_libs=yes
16182 # ldd complains unless libraries are executable
16183 postinstall_cmds='chmod +x $lib'
16184 ;;
16185
16186sunos4*)
16187 version_type=sunos
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16190 shlibpath_var=LD_LIBRARY_PATH
16191 shlibpath_overrides_runpath=yes
16192 if test "$with_gnu_ld" = yes; then
16193 need_lib_prefix=no
16194 fi
16195 need_version=yes
16196 ;;
16197
16198sysv4 | sysv4.3*)
16199 version_type=linux
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 case $host_vendor in
16204 sni)
16205 shlibpath_overrides_runpath=no
16206 need_lib_prefix=no
16207 export_dynamic_flag_spec='${wl}-Blargedynsym'
16208 runpath_var=LD_RUN_PATH
16209 ;;
16210 siemens)
16211 need_lib_prefix=no
16212 ;;
16213 motorola)
16214 need_lib_prefix=no
16215 need_version=no
16216 shlibpath_overrides_runpath=no
16217 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16218 ;;
16219 esac
16220 ;;
16221
16222sysv4*MP*)
16223 if test -d /usr/nec ;then
16224 version_type=linux
16225 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16226 soname_spec='$libname${shared_ext}.$major'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 fi
16229 ;;
16230
16231sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16232 version_type=freebsd-elf
16233 need_lib_prefix=no
16234 need_version=no
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 hardcode_into_libs=yes
16239 if test "$with_gnu_ld" = yes; then
16240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16241 shlibpath_overrides_runpath=no
16242 else
16243 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16244 shlibpath_overrides_runpath=yes
16245 case $host_os in
16246 sco3.2v5*)
16247 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16248 ;;
16249 esac
16250 fi
16251 sys_lib_dlsearch_path_spec='/usr/lib'
16252 ;;
16253
16254uts4*)
16255 version_type=linux
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 shlibpath_var=LD_LIBRARY_PATH
16259 ;;
16260
16261*)
16262 dynamic_linker=no
16263 ;;
16264esac
16265{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16266echo "${ECHO_T}$dynamic_linker" >&6; }
16267test "$dynamic_linker" = no && can_build_shared=no
16268
16269if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16271else
16272 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16273fi
16274
16275sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16276if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16278else
16279 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16280fi
16281
16282sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16283
16284variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16285if test "$GCC" = yes; then
16286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16287fi
16288
16289{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16290echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16291hardcode_action_F77=
16292if test -n "$hardcode_libdir_flag_spec_F77" || \
16293 test -n "$runpath_var_F77" || \
16294 test "X$hardcode_automatic_F77" = "Xyes" ; then
16295
16296 # We can hardcode non-existant directories.
16297 if test "$hardcode_direct_F77" != no &&
16298 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16299 # have to relink, otherwise we might link with an installed library
16300 # when we should be linking with a yet-to-be-installed one
16301 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16302 test "$hardcode_minus_L_F77" != no; then
16303 # Linking always hardcodes the temporary library directory.
16304 hardcode_action_F77=relink
16305 else
16306 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16307 hardcode_action_F77=immediate
16308 fi
16309else
16310 # We cannot hardcode anything, or else we can only hardcode existing
16311 # directories.
16312 hardcode_action_F77=unsupported
16313fi
16314{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16315echo "${ECHO_T}$hardcode_action_F77" >&6; }
16316
16317if test "$hardcode_action_F77" = relink; then
16318 # Fast installation is not supported
16319 enable_fast_install=no
16320elif test "$shlibpath_overrides_runpath" = yes ||
16321 test "$enable_shared" = no; then
16322 # Fast installation is not necessary
16323 enable_fast_install=needless
16324fi
16325
16326
16327# The else clause should only fire when bootstrapping the
16328# libtool distribution, otherwise you forgot to ship ltmain.sh
16329# with your package, and you will get complaints that there are
16330# no rules to generate ltmain.sh.
16331if test -f "$ltmain"; then
16332 # See if we are running on zsh, and set the options which allow our commands through
16333 # without removal of \ escapes.
16334 if test -n "${ZSH_VERSION+set}" ; then
16335 setopt NO_GLOB_SUBST
16336 fi
16337 # Now quote all the things that may contain metacharacters while being
16338 # careful not to overquote the AC_SUBSTed values. We take copies of the
16339 # variables and quote the copies for generation of the libtool script.
16340 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16341 SED SHELL STRIP \
16342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16344 deplibs_check_method reload_flag reload_cmds need_locks \
16345 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16346 lt_cv_sys_global_symbol_to_c_name_address \
16347 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16348 old_postinstall_cmds old_postuninstall_cmds \
16349 compiler_F77 \
16350 CC_F77 \
16351 LD_F77 \
16352 lt_prog_compiler_wl_F77 \
16353 lt_prog_compiler_pic_F77 \
16354 lt_prog_compiler_static_F77 \
16355 lt_prog_compiler_no_builtin_flag_F77 \
16356 export_dynamic_flag_spec_F77 \
16357 thread_safe_flag_spec_F77 \
16358 whole_archive_flag_spec_F77 \
16359 enable_shared_with_static_runtimes_F77 \
16360 old_archive_cmds_F77 \
16361 old_archive_from_new_cmds_F77 \
16362 predep_objects_F77 \
16363 postdep_objects_F77 \
16364 predeps_F77 \
16365 postdeps_F77 \
16366 compiler_lib_search_path_F77 \
16367 compiler_lib_search_dirs_F77 \
16368 archive_cmds_F77 \
16369 archive_expsym_cmds_F77 \
16370 postinstall_cmds_F77 \
16371 postuninstall_cmds_F77 \
16372 old_archive_from_expsyms_cmds_F77 \
16373 allow_undefined_flag_F77 \
16374 no_undefined_flag_F77 \
16375 export_symbols_cmds_F77 \
16376 hardcode_libdir_flag_spec_F77 \
16377 hardcode_libdir_flag_spec_ld_F77 \
16378 hardcode_libdir_separator_F77 \
16379 hardcode_automatic_F77 \
16380 module_cmds_F77 \
16381 module_expsym_cmds_F77 \
16382 lt_cv_prog_compiler_c_o_F77 \
16383 fix_srcfile_path_F77 \
16384 exclude_expsyms_F77 \
16385 include_expsyms_F77; do
16386
16387 case $var in
16388 old_archive_cmds_F77 | \
16389 old_archive_from_new_cmds_F77 | \
16390 archive_cmds_F77 | \
16391 archive_expsym_cmds_F77 | \
16392 module_cmds_F77 | \
16393 module_expsym_cmds_F77 | \
16394 old_archive_from_expsyms_cmds_F77 | \
16395 export_symbols_cmds_F77 | \
16396 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16397 postinstall_cmds | postuninstall_cmds | \
16398 old_postinstall_cmds | old_postuninstall_cmds | \
16399 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16400 # Double-quote double-evaled strings.
16401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16402 ;;
16403 *)
16404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16405 ;;
16406 esac
16407 done
16408
16409 case $lt_echo in
16410 *'\$0 --fallback-echo"')
16411 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16412 ;;
16413 esac
16414
16415cfgfile="$ofile"
16416
16417 cat <<__EOF__ >> "$cfgfile"
16418# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16419
16420# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16421
16422# Shell to use when invoking shell scripts.
16423SHELL=$lt_SHELL
16424
16425# Whether or not to build shared libraries.
16426build_libtool_libs=$enable_shared
16427
16428# Whether or not to build static libraries.
16429build_old_libs=$enable_static
16430
16431# Whether or not to add -lc for building shared libraries.
16432build_libtool_need_lc=$archive_cmds_need_lc_F77
16433
16434# Whether or not to disallow shared libs when runtime libs are static
16435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16436
16437# Whether or not to optimize for fast installation.
16438fast_install=$enable_fast_install
16439
16440# The host system.
16441host_alias=$host_alias
16442host=$host
16443host_os=$host_os
16444
16445# The build system.
16446build_alias=$build_alias
16447build=$build
16448build_os=$build_os
16449
16450# An echo program that does not interpret backslashes.
16451echo=$lt_echo
16452
16453# The archiver.
16454AR=$lt_AR
16455AR_FLAGS=$lt_AR_FLAGS
16456
16457# A C compiler.
16458LTCC=$lt_LTCC
16459
16460# LTCC compiler flags.
16461LTCFLAGS=$lt_LTCFLAGS
16462
16463# A language-specific compiler.
16464CC=$lt_compiler_F77
16465
16466# Is the compiler the GNU C compiler?
16467with_gcc=$GCC_F77
16468
16469# An ERE matcher.
16470EGREP=$lt_EGREP
16471
16472# The linker used to build libraries.
16473LD=$lt_LD_F77
16474
16475# Whether we need hard or soft links.
16476LN_S=$lt_LN_S
16477
16478# A BSD-compatible nm program.
16479NM=$lt_NM
16480
16481# A symbol stripping program
16482STRIP=$lt_STRIP
16483
16484# Used to examine libraries when file_magic_cmd begins "file"
16485MAGIC_CMD=$MAGIC_CMD
16486
16487# Used on cygwin: DLL creation program.
16488DLLTOOL="$DLLTOOL"
16489
16490# Used on cygwin: object dumper.
16491OBJDUMP="$OBJDUMP"
16492
16493# Used on cygwin: assembler.
16494AS="$AS"
16495
16496# The name of the directory that contains temporary libtool files.
16497objdir=$objdir
16498
16499# How to create reloadable object files.
16500reload_flag=$lt_reload_flag
16501reload_cmds=$lt_reload_cmds
16502
16503# How to pass a linker flag through the compiler.
16504wl=$lt_lt_prog_compiler_wl_F77
16505
16506# Object file suffix (normally "o").
16507objext="$ac_objext"
16508
16509# Old archive suffix (normally "a").
16510libext="$libext"
16511
16512# Shared library suffix (normally ".so").
16513shrext_cmds='$shrext_cmds'
16514
16515# Executable file suffix (normally "").
16516exeext="$exeext"
16517
16518# Additional compiler flags for building library objects.
16519pic_flag=$lt_lt_prog_compiler_pic_F77
16520pic_mode=$pic_mode
16521
16522# What is the maximum length of a command?
16523max_cmd_len=$lt_cv_sys_max_cmd_len
16524
16525# Does compiler simultaneously support -c and -o options?
16526compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16527
16528# Must we lock files when doing compilation?
16529need_locks=$lt_need_locks
16530
16531# Do we need the lib prefix for modules?
16532need_lib_prefix=$need_lib_prefix
16533
16534# Do we need a version for libraries?
16535need_version=$need_version
16536
16537# Whether dlopen is supported.
16538dlopen_support=$enable_dlopen
16539
16540# Whether dlopen of programs is supported.
16541dlopen_self=$enable_dlopen_self
16542
16543# Whether dlopen of statically linked programs is supported.
16544dlopen_self_static=$enable_dlopen_self_static
16545
16546# Compiler flag to prevent dynamic linking.
16547link_static_flag=$lt_lt_prog_compiler_static_F77
16548
16549# Compiler flag to turn off builtin functions.
16550no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16551
16552# Compiler flag to allow reflexive dlopens.
16553export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16554
16555# Compiler flag to generate shared objects directly from archives.
16556whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16557
16558# Compiler flag to generate thread-safe objects.
16559thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16560
16561# Library versioning type.
16562version_type=$version_type
16563
16564# Format of library name prefix.
16565libname_spec=$lt_libname_spec
16566
16567# List of archive names. First name is the real one, the rest are links.
16568# The last name is the one that the linker finds with -lNAME.
16569library_names_spec=$lt_library_names_spec
16570
16571# The coded name of the library, if different from the real name.
16572soname_spec=$lt_soname_spec
16573
16574# Commands used to build and install an old-style archive.
16575RANLIB=$lt_RANLIB
16576old_archive_cmds=$lt_old_archive_cmds_F77
16577old_postinstall_cmds=$lt_old_postinstall_cmds
16578old_postuninstall_cmds=$lt_old_postuninstall_cmds
16579
16580# Create an old-style archive from a shared archive.
16581old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16582
16583# Create a temporary old-style archive to link instead of a shared archive.
16584old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16585
16586# Commands used to build and install a shared archive.
16587archive_cmds=$lt_archive_cmds_F77
16588archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16589postinstall_cmds=$lt_postinstall_cmds
16590postuninstall_cmds=$lt_postuninstall_cmds
16591
16592# Commands used to build a loadable module (assumed same as above if empty)
16593module_cmds=$lt_module_cmds_F77
16594module_expsym_cmds=$lt_module_expsym_cmds_F77
16595
16596# Commands to strip libraries.
16597old_striplib=$lt_old_striplib
16598striplib=$lt_striplib
16599
16600# Dependencies to place before the objects being linked to create a
16601# shared library.
16602predep_objects=$lt_predep_objects_F77
16603
16604# Dependencies to place after the objects being linked to create a
16605# shared library.
16606postdep_objects=$lt_postdep_objects_F77
16607
16608# Dependencies to place before the objects being linked to create a
16609# shared library.
16610predeps=$lt_predeps_F77
16611
16612# Dependencies to place after the objects being linked to create a
16613# shared library.
16614postdeps=$lt_postdeps_F77
16615
16616# The directories searched by this compiler when creating a shared
16617# library
16618compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16619
16620# The library search path used internally by the compiler when linking
16621# a shared library.
16622compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16623
16624# Method to check whether dependent libraries are shared objects.
16625deplibs_check_method=$lt_deplibs_check_method
16626
16627# Command to use when deplibs_check_method == file_magic.
16628file_magic_cmd=$lt_file_magic_cmd
16629
16630# Flag that allows shared libraries with undefined symbols to be built.
16631allow_undefined_flag=$lt_allow_undefined_flag_F77
16632
16633# Flag that forces no undefined symbols.
16634no_undefined_flag=$lt_no_undefined_flag_F77
16635
16636# Commands used to finish a libtool library installation in a directory.
16637finish_cmds=$lt_finish_cmds
16638
16639# Same as above, but a single script fragment to be evaled but not shown.
16640finish_eval=$lt_finish_eval
16641
16642# Take the output of nm and produce a listing of raw symbols and C names.
16643global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16644
16645# Transform the output of nm in a proper C declaration
16646global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16647
16648# Transform the output of nm in a C name address pair
16649global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16650
16651# This is the shared library runtime path variable.
16652runpath_var=$runpath_var
16653
16654# This is the shared library path variable.
16655shlibpath_var=$shlibpath_var
16656
16657# Is shlibpath searched before the hard-coded library search path?
16658shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16659
16660# How to hardcode a shared library path into an executable.
16661hardcode_action=$hardcode_action_F77
16662
16663# Whether we should hardcode library paths into libraries.
16664hardcode_into_libs=$hardcode_into_libs
16665
16666# Flag to hardcode \$libdir into a binary during linking.
16667# This must work even if \$libdir does not exist.
16668hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16669
16670# If ld is used when linking, flag to hardcode \$libdir into
16671# a binary during linking. This must work even if \$libdir does
16672# not exist.
16673hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16674
16675# Whether we need a single -rpath flag with a separated argument.
16676hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16677
16678# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16679# resulting binary.
16680hardcode_direct=$hardcode_direct_F77
16681
16682# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16683# resulting binary.
16684hardcode_minus_L=$hardcode_minus_L_F77
16685
16686# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16687# the resulting binary.
16688hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16689
16690# Set to yes if building a shared library automatically hardcodes DIR into the library
16691# and all subsequent libraries and executables linked against it.
16692hardcode_automatic=$hardcode_automatic_F77
16693
16694# Variables whose values should be saved in libtool wrapper scripts and
16695# restored at relink time.
16696variables_saved_for_relink="$variables_saved_for_relink"
16697
16698# Whether libtool must link a program against all its dependency libraries.
16699link_all_deplibs=$link_all_deplibs_F77
16700
16701# Compile-time system search path for libraries
16702sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16703
16704# Run-time system search path for libraries
16705sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16706
16707# Fix the shell variable \$srcfile for the compiler.
16708fix_srcfile_path=$lt_fix_srcfile_path
16709
16710# Set to yes if exported symbols are required.
16711always_export_symbols=$always_export_symbols_F77
16712
16713# The commands to list exported symbols.
16714export_symbols_cmds=$lt_export_symbols_cmds_F77
16715
16716# The commands to extract the exported symbol list from a shared archive.
16717extract_expsyms_cmds=$lt_extract_expsyms_cmds
16718
16719# Symbols that should not be listed in the preloaded symbols.
16720exclude_expsyms=$lt_exclude_expsyms_F77
16721
16722# Symbols that must always be exported.
16723include_expsyms=$lt_include_expsyms_F77
16724
16725# ### END LIBTOOL TAG CONFIG: $tagname
16726
16727__EOF__
16728
16729
16730else
16731 # If there is no Makefile yet, we rely on a make rule to execute
16732 # `config.status --recheck' to rerun these tests and create the
16733 # libtool script then.
16734 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16735 if test -f "$ltmain_in"; then
16736 test -f Makefile && make "$ltmain"
16737 fi
16738fi
16739
16740
16741ac_ext=c
16742ac_cpp='$CPP $CPPFLAGS'
16743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16745ac_compiler_gnu=$ac_cv_c_compiler_gnu
16746
16747CC="$lt_save_CC"
16748
16749 else
16750 tagname=""
16751 fi
16752 ;;
16753
16754 GCJ)
16755 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16756
16757
16758# Source file extension for Java test sources.
16759ac_ext=java
16760
16761# Object file extension for compiled Java test sources.
16762objext=o
16763objext_GCJ=$objext
16764
16765# Code to be used in simple compile tests
16766lt_simple_compile_test_code="class foo {}"
16767
16768# Code to be used in simple link tests
16769lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16770
16771# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16772
16773# If no C compiler was specified, use CC.
16774LTCC=${LTCC-"$CC"}
16775
16776# If no C compiler flags were specified, use CFLAGS.
16777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16778
16779# Allow CC to be a program name with arguments.
16780compiler=$CC
16781
16782
16783# save warnings/boilerplate of simple test code
16784ac_outfile=conftest.$ac_objext
16785echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16786eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16787_lt_compiler_boilerplate=`cat conftest.err`
16788$rm conftest*
16789
16790ac_outfile=conftest.$ac_objext
16791echo "$lt_simple_link_test_code" >conftest.$ac_ext
16792eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16793_lt_linker_boilerplate=`cat conftest.err`
16794$rm -r conftest*
16795
16796
16797# Allow CC to be a program name with arguments.
16798lt_save_CC="$CC"
16799CC=${GCJ-"gcj"}
16800compiler=$CC
16801compiler_GCJ=$CC
16802for cc_temp in $compiler""; do
16803 case $cc_temp in
16804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16806 \-*) ;;
16807 *) break;;
16808 esac
16809done
16810cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16811
16812
16813# GCJ did not exist at the time GCC didn't implicitly link libc in.
16814archive_cmds_need_lc_GCJ=no
16815
16816old_archive_cmds_GCJ=$old_archive_cmds
16817
16818
16819lt_prog_compiler_no_builtin_flag_GCJ=
16820
16821if test "$GCC" = yes; then
16822 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16823
16824
16825{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16826echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16827if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16829else
16830 lt_cv_prog_compiler_rtti_exceptions=no
16831 ac_outfile=conftest.$ac_objext
16832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16833 lt_compiler_flag="-fno-rtti -fno-exceptions"
16834 # Insert the option either (1) after the last *FLAGS variable, or
16835 # (2) before a word containing "conftest.", or (3) at the end.
16836 # Note that $ac_compile itself does not contain backslashes and begins
16837 # with a dollar sign (not a hyphen), so the echo should work correctly.
16838 # The option is referenced via a variable to avoid confusing sed.
16839 lt_compile=`echo "$ac_compile" | $SED \
16840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842 -e 's:$: $lt_compiler_flag:'`
16843 (eval echo "\"\$as_me:16843: $lt_compile\"" >&5)
16844 (eval "$lt_compile" 2>conftest.err)
16845 ac_status=$?
16846 cat conftest.err >&5
16847 echo "$as_me:16847: \$? = $ac_status" >&5
16848 if (exit $ac_status) && test -s "$ac_outfile"; then
16849 # The compiler can only warn and ignore the option if not recognized
16850 # So say no if there are warnings other than the usual output.
16851 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16854 lt_cv_prog_compiler_rtti_exceptions=yes
16855 fi
16856 fi
16857 $rm conftest*
16858
16859fi
16860{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16861echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16862
16863if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16864 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16865else
16866 :
16867fi
16868
16869fi
16870
16871lt_prog_compiler_wl_GCJ=
16872lt_prog_compiler_pic_GCJ=
16873lt_prog_compiler_static_GCJ=
16874
16875{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16876echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16877
16878 if test "$GCC" = yes; then
16879 lt_prog_compiler_wl_GCJ='-Wl,'
16880 lt_prog_compiler_static_GCJ='-static'
16881
16882 case $host_os in
16883 aix*)
16884 # All AIX code is PIC.
16885 if test "$host_cpu" = ia64; then
16886 # AIX 5 now supports IA64 processor
16887 lt_prog_compiler_static_GCJ='-Bstatic'
16888 fi
16889 ;;
16890
16891 amigaos*)
16892 # FIXME: we need at least 68020 code to build shared libraries, but
16893 # adding the `-m68020' flag to GCC prevents building anything better,
16894 # like `-m68040'.
16895 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16896 ;;
16897
16898 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16899 # PIC is the default for these OSes.
16900 ;;
16901
16902 mingw* | cygwin* | pw32* | os2*)
16903 # This hack is so that the source file can tell whether it is being
16904 # built for inclusion in a dll (and should export symbols for example).
16905 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16906 # (--disable-auto-import) libraries
16907
16908 ;;
16909
16910 darwin* | rhapsody*)
16911 # PIC is the default on this platform
16912 # Common symbols not allowed in MH_DYLIB files
16913 lt_prog_compiler_pic_GCJ='-fno-common'
16914 ;;
16915
16916 interix[3-9]*)
16917 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16918 # Instead, we relocate shared libraries at runtime.
16919 ;;
16920
16921 msdosdjgpp*)
16922 # Just because we use GCC doesn't mean we suddenly get shared libraries
16923 # on systems that don't support them.
16924 lt_prog_compiler_can_build_shared_GCJ=no
16925 enable_shared=no
16926 ;;
16927
16928 sysv4*MP*)
16929 if test -d /usr/nec; then
16930 lt_prog_compiler_pic_GCJ=-Kconform_pic
16931 fi
16932 ;;
16933
16934 hpux*)
16935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16936 # not for PA HP-UX.
16937 case $host_cpu in
16938 hppa*64*|ia64*)
16939 # +Z the default
16940 ;;
16941 *)
16942 lt_prog_compiler_pic_GCJ='-fPIC'
16943 ;;
16944 esac
16945 ;;
16946
16947 *)
16948 lt_prog_compiler_pic_GCJ='-fPIC'
16949 ;;
16950 esac
16951 else
16952 # PORTME Check for flag to pass linker flags through the system compiler.
16953 case $host_os in
16954 aix*)
16955 lt_prog_compiler_wl_GCJ='-Wl,'
16956 if test "$host_cpu" = ia64; then
16957 # AIX 5 now supports IA64 processor
16958 lt_prog_compiler_static_GCJ='-Bstatic'
16959 else
16960 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16961 fi
16962 ;;
16963 darwin*)
16964 # PIC is the default on this platform
16965 # Common symbols not allowed in MH_DYLIB files
16966 case $cc_basename in
16967 xlc*)
16968 lt_prog_compiler_pic_GCJ='-qnocommon'
16969 lt_prog_compiler_wl_GCJ='-Wl,'
16970 ;;
16971 esac
16972 ;;
16973
16974 mingw* | cygwin* | pw32* | os2*)
16975 # This hack is so that the source file can tell whether it is being
16976 # built for inclusion in a dll (and should export symbols for example).
16977
16978 ;;
16979
16980 hpux9* | hpux10* | hpux11*)
16981 lt_prog_compiler_wl_GCJ='-Wl,'
16982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16983 # not for PA HP-UX.
16984 case $host_cpu in
16985 hppa*64*|ia64*)
16986 # +Z the default
16987 ;;
16988 *)
16989 lt_prog_compiler_pic_GCJ='+Z'
16990 ;;
16991 esac
16992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16993 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16994 ;;
16995
16996 irix5* | irix6* | nonstopux*)
16997 lt_prog_compiler_wl_GCJ='-Wl,'
16998 # PIC (with -KPIC) is the default.
16999 lt_prog_compiler_static_GCJ='-non_shared'
17000 ;;
17001
17002 newsos6)
17003 lt_prog_compiler_pic_GCJ='-KPIC'
17004 lt_prog_compiler_static_GCJ='-Bstatic'
17005 ;;
17006
17007 linux* | k*bsd*-gnu)
17008 case $cc_basename in
17009 icc* | ecc*)
17010 lt_prog_compiler_wl_GCJ='-Wl,'
17011 lt_prog_compiler_pic_GCJ='-KPIC'
17012 lt_prog_compiler_static_GCJ='-static'
17013 ;;
17014 pgcc* | pgf77* | pgf90* | pgf95*)
17015 # Portland Group compilers (*not* the Pentium gcc compiler,
17016 # which looks to be a dead project)
17017 lt_prog_compiler_wl_GCJ='-Wl,'
17018 lt_prog_compiler_pic_GCJ='-fpic'
17019 lt_prog_compiler_static_GCJ='-Bstatic'
17020 ;;
17021 ccc*)
17022 lt_prog_compiler_wl_GCJ='-Wl,'
17023 # All Alpha code is PIC.
17024 lt_prog_compiler_static_GCJ='-non_shared'
17025 ;;
17026 *)
17027 case `$CC -V 2>&1 | sed 5q` in
17028 *Sun\ C*)
17029 # Sun C 5.9
17030 lt_prog_compiler_pic_GCJ='-KPIC'
17031 lt_prog_compiler_static_GCJ='-Bstatic'
17032 lt_prog_compiler_wl_GCJ='-Wl,'
17033 ;;
17034 *Sun\ F*)
17035 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17036 lt_prog_compiler_pic_GCJ='-KPIC'
17037 lt_prog_compiler_static_GCJ='-Bstatic'
17038 lt_prog_compiler_wl_GCJ=''
17039 ;;
17040 esac
17041 ;;
17042 esac
17043 ;;
17044
17045 osf3* | osf4* | osf5*)
17046 lt_prog_compiler_wl_GCJ='-Wl,'
17047 # All OSF/1 code is PIC.
17048 lt_prog_compiler_static_GCJ='-non_shared'
17049 ;;
17050
17051 rdos*)
17052 lt_prog_compiler_static_GCJ='-non_shared'
17053 ;;
17054
17055 solaris*)
17056 lt_prog_compiler_pic_GCJ='-KPIC'
17057 lt_prog_compiler_static_GCJ='-Bstatic'
17058 case $cc_basename in
17059 f77* | f90* | f95*)
17060 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17061 *)
17062 lt_prog_compiler_wl_GCJ='-Wl,';;
17063 esac
17064 ;;
17065
17066 sunos4*)
17067 lt_prog_compiler_wl_GCJ='-Qoption ld '
17068 lt_prog_compiler_pic_GCJ='-PIC'
17069 lt_prog_compiler_static_GCJ='-Bstatic'
17070 ;;
17071
17072 sysv4 | sysv4.2uw2* | sysv4.3*)
17073 lt_prog_compiler_wl_GCJ='-Wl,'
17074 lt_prog_compiler_pic_GCJ='-KPIC'
17075 lt_prog_compiler_static_GCJ='-Bstatic'
17076 ;;
17077
17078 sysv4*MP*)
17079 if test -d /usr/nec ;then
17080 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17081 lt_prog_compiler_static_GCJ='-Bstatic'
17082 fi
17083 ;;
17084
17085 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17086 lt_prog_compiler_wl_GCJ='-Wl,'
17087 lt_prog_compiler_pic_GCJ='-KPIC'
17088 lt_prog_compiler_static_GCJ='-Bstatic'
17089 ;;
17090
17091 unicos*)
17092 lt_prog_compiler_wl_GCJ='-Wl,'
17093 lt_prog_compiler_can_build_shared_GCJ=no
17094 ;;
17095
17096 uts4*)
17097 lt_prog_compiler_pic_GCJ='-pic'
17098 lt_prog_compiler_static_GCJ='-Bstatic'
17099 ;;
17100
17101 *)
17102 lt_prog_compiler_can_build_shared_GCJ=no
17103 ;;
17104 esac
17105 fi
17106
17107{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17108echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17109
17110#
17111# Check to make sure the PIC flag actually works.
17112#
17113if test -n "$lt_prog_compiler_pic_GCJ"; then
17114
17115{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17116echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17117if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120 lt_cv_prog_compiler_pic_works_GCJ=no
17121 ac_outfile=conftest.$ac_objext
17122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17123 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17124 # Insert the option either (1) after the last *FLAGS variable, or
17125 # (2) before a word containing "conftest.", or (3) at the end.
17126 # Note that $ac_compile itself does not contain backslashes and begins
17127 # with a dollar sign (not a hyphen), so the echo should work correctly.
17128 # The option is referenced via a variable to avoid confusing sed.
17129 lt_compile=`echo "$ac_compile" | $SED \
17130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17132 -e 's:$: $lt_compiler_flag:'`
17133 (eval echo "\"\$as_me:17133: $lt_compile\"" >&5)
17134 (eval "$lt_compile" 2>conftest.err)
17135 ac_status=$?
17136 cat conftest.err >&5
17137 echo "$as_me:17137: \$? = $ac_status" >&5
17138 if (exit $ac_status) && test -s "$ac_outfile"; then
17139 # The compiler can only warn and ignore the option if not recognized
17140 # So say no if there are warnings other than the usual output.
17141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17144 lt_cv_prog_compiler_pic_works_GCJ=yes
17145 fi
17146 fi
17147 $rm conftest*
17148
17149fi
17150{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17151echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17152
17153if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17154 case $lt_prog_compiler_pic_GCJ in
17155 "" | " "*) ;;
17156 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17157 esac
17158else
17159 lt_prog_compiler_pic_GCJ=
17160 lt_prog_compiler_can_build_shared_GCJ=no
17161fi
17162
17163fi
17164case $host_os in
17165 # For platforms which do not support PIC, -DPIC is meaningless:
17166 *djgpp*)
17167 lt_prog_compiler_pic_GCJ=
17168 ;;
17169 *)
17170 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17171 ;;
17172esac
17173
17174#
17175# Check to make sure the static flag actually works.
17176#
17177wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17178{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17179echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17180if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182else
17183 lt_cv_prog_compiler_static_works_GCJ=no
17184 save_LDFLAGS="$LDFLAGS"
17185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17188 # The linker can only warn and ignore the option if not recognized
17189 # So say no if there are warnings
17190 if test -s conftest.err; then
17191 # Append any errors to the config.log.
17192 cat conftest.err 1>&5
17193 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17195 if diff conftest.exp conftest.er2 >/dev/null; then
17196 lt_cv_prog_compiler_static_works_GCJ=yes
17197 fi
17198 else
17199 lt_cv_prog_compiler_static_works_GCJ=yes
17200 fi
17201 fi
17202 $rm -r conftest*
17203 LDFLAGS="$save_LDFLAGS"
17204
17205fi
17206{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17207echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17208
17209if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17210 :
17211else
17212 lt_prog_compiler_static_GCJ=
17213fi
17214
17215
17216{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17217echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17218if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17220else
17221 lt_cv_prog_compiler_c_o_GCJ=no
17222 $rm -r conftest 2>/dev/null
17223 mkdir conftest
17224 cd conftest
17225 mkdir out
17226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17227
17228 lt_compiler_flag="-o out/conftest2.$ac_objext"
17229 # Insert the option either (1) after the last *FLAGS variable, or
17230 # (2) before a word containing "conftest.", or (3) at the end.
17231 # Note that $ac_compile itself does not contain backslashes and begins
17232 # with a dollar sign (not a hyphen), so the echo should work correctly.
17233 lt_compile=`echo "$ac_compile" | $SED \
17234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17236 -e 's:$: $lt_compiler_flag:'`
17237 (eval echo "\"\$as_me:17237: $lt_compile\"" >&5)
17238 (eval "$lt_compile" 2>out/conftest.err)
17239 ac_status=$?
17240 cat out/conftest.err >&5
17241 echo "$as_me:17241: \$? = $ac_status" >&5
17242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17243 then
17244 # The compiler can only warn and ignore the option if not recognized
17245 # So say no if there are warnings
17246 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17249 lt_cv_prog_compiler_c_o_GCJ=yes
17250 fi
17251 fi
17252 chmod u+w . 2>&5
17253 $rm conftest*
17254 # SGI C++ compiler will create directory out/ii_files/ for
17255 # template instantiation
17256 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17257 $rm out/* && rmdir out
17258 cd ..
17259 rmdir conftest
17260 $rm conftest*
17261
17262fi
17263{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17264echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17265
17266
17267hard_links="nottested"
17268if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17269 # do not overwrite the value of need_locks provided by the user
17270 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17271echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17272 hard_links=yes
17273 $rm conftest*
17274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17275 touch conftest.a
17276 ln conftest.a conftest.b 2>&5 || hard_links=no
17277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17278 { echo "$as_me:$LINENO: result: $hard_links" >&5
17279echo "${ECHO_T}$hard_links" >&6; }
17280 if test "$hard_links" = no; then
17281 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17282echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17283 need_locks=warn
17284 fi
17285else
17286 need_locks=no
17287fi
17288
17289{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17290echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17291
17292 runpath_var=
17293 allow_undefined_flag_GCJ=
17294 enable_shared_with_static_runtimes_GCJ=no
17295 archive_cmds_GCJ=
17296 archive_expsym_cmds_GCJ=
17297 old_archive_From_new_cmds_GCJ=
17298 old_archive_from_expsyms_cmds_GCJ=
17299 export_dynamic_flag_spec_GCJ=
17300 whole_archive_flag_spec_GCJ=
17301 thread_safe_flag_spec_GCJ=
17302 hardcode_libdir_flag_spec_GCJ=
17303 hardcode_libdir_flag_spec_ld_GCJ=
17304 hardcode_libdir_separator_GCJ=
17305 hardcode_direct_GCJ=no
17306 hardcode_minus_L_GCJ=no
17307 hardcode_shlibpath_var_GCJ=unsupported
17308 link_all_deplibs_GCJ=unknown
17309 hardcode_automatic_GCJ=no
17310 module_cmds_GCJ=
17311 module_expsym_cmds_GCJ=
17312 always_export_symbols_GCJ=no
17313 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17314 # include_expsyms should be a list of space-separated symbols to be *always*
17315 # included in the symbol list
17316 include_expsyms_GCJ=
17317 # exclude_expsyms can be an extended regexp of symbols to exclude
17318 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17320 # as well as any symbol that contains `d'.
17321 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17323 # platforms (ab)use it in PIC code, but their linkers get confused if
17324 # the symbol is explicitly referenced. Since portable code cannot
17325 # rely on this symbol name, it's probably fine to never include it in
17326 # preloaded symbol tables.
17327 # Exclude shared library initialization/finalization symbols.
17328 extract_expsyms_cmds=
17329 # Just being paranoid about ensuring that cc_basename is set.
17330 for cc_temp in $compiler""; do
17331 case $cc_temp in
17332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17334 \-*) ;;
17335 *) break;;
17336 esac
17337done
17338cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17339
17340 case $host_os in
17341 cygwin* | mingw* | pw32*)
17342 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17343 # When not using gcc, we currently assume that we are using
17344 # Microsoft Visual C++.
17345 if test "$GCC" != yes; then
17346 with_gnu_ld=no
17347 fi
17348 ;;
17349 interix*)
17350 # we just hope/assume this is gcc and not c89 (= MSVC++)
17351 with_gnu_ld=yes
17352 ;;
17353 openbsd*)
17354 with_gnu_ld=no
17355 ;;
17356 esac
17357
17358 ld_shlibs_GCJ=yes
17359 if test "$with_gnu_ld" = yes; then
17360 # If archive_cmds runs LD, not CC, wlarc should be empty
17361 wlarc='${wl}'
17362
17363 # Set some defaults for GNU ld with shared library support. These
17364 # are reset later if shared libraries are not supported. Putting them
17365 # here allows them to be overridden if necessary.
17366 runpath_var=LD_RUN_PATH
17367 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17368 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17369 # ancient GNU ld didn't support --whole-archive et. al.
17370 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17371 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17372 else
17373 whole_archive_flag_spec_GCJ=
17374 fi
17375 supports_anon_versioning=no
17376 case `$LD -v 2>/dev/null` in
17377 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17378 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17379 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17380 *\ 2.11.*) ;; # other 2.11 versions
17381 *) supports_anon_versioning=yes ;;
17382 esac
17383
17384 # See if GNU ld supports shared libraries.
17385 case $host_os in
17386 aix[3-9]*)
17387 # On AIX/PPC, the GNU linker is very broken
17388 if test "$host_cpu" != ia64; then
17389 ld_shlibs_GCJ=no
17390 cat <<EOF 1>&2
17391
17392*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17393*** to be unable to reliably create shared libraries on AIX.
17394*** Therefore, libtool is disabling shared libraries support. If you
17395*** really care for shared libraries, you may want to modify your PATH
17396*** so that a non-GNU linker is found, and then restart.
17397
17398EOF
17399 fi
17400 ;;
17401
17402 amigaos*)
17403 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)'
17404 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17405 hardcode_minus_L_GCJ=yes
17406
17407 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17408 # that the semantics of dynamic libraries on AmigaOS, at least up
17409 # to version 4, is to share data among multiple programs linked
17410 # with the same dynamic library. Since this doesn't match the
17411 # behavior of shared libraries on other platforms, we can't use
17412 # them.
17413 ld_shlibs_GCJ=no
17414 ;;
17415
17416 beos*)
17417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17418 allow_undefined_flag_GCJ=unsupported
17419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17420 # support --undefined. This deserves some investigation. FIXME
17421 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17422 else
17423 ld_shlibs_GCJ=no
17424 fi
17425 ;;
17426
17427 cygwin* | mingw* | pw32*)
17428 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17429 # as there is no search path for DLLs.
17430 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17431 allow_undefined_flag_GCJ=unsupported
17432 always_export_symbols_GCJ=no
17433 enable_shared_with_static_runtimes_GCJ=yes
17434 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17435
17436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17437 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17438 # If the export-symbols file already is a .def file (1st line
17439 # is EXPORTS), use it as is; otherwise, prepend...
17440 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17441 cp $export_symbols $output_objdir/$soname.def;
17442 else
17443 echo EXPORTS > $output_objdir/$soname.def;
17444 cat $export_symbols >> $output_objdir/$soname.def;
17445 fi~
17446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17447 else
17448 ld_shlibs_GCJ=no
17449 fi
17450 ;;
17451
17452 interix[3-9]*)
17453 hardcode_direct_GCJ=no
17454 hardcode_shlibpath_var_GCJ=no
17455 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17456 export_dynamic_flag_spec_GCJ='${wl}-E'
17457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17458 # Instead, shared libraries are loaded at an image base (0x10000000 by
17459 # default) and relocated if they conflict, which is a slow very memory
17460 # consuming and fragmenting process. To avoid this, we pick a random,
17461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17462 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17463 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'
17464 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'
17465 ;;
17466
17467 gnu* | linux* | k*bsd*-gnu)
17468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17469 tmp_addflag=
17470 case $cc_basename,$host_cpu in
17471 pgcc*) # Portland Group C compiler
17472 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'
17473 tmp_addflag=' $pic_flag'
17474 ;;
17475 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17476 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'
17477 tmp_addflag=' $pic_flag -Mnomain' ;;
17478 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17479 tmp_addflag=' -i_dynamic' ;;
17480 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17481 tmp_addflag=' -i_dynamic -nofor_main' ;;
17482 ifc* | ifort*) # Intel Fortran compiler
17483 tmp_addflag=' -nofor_main' ;;
17484 esac
17485 case `$CC -V 2>&1 | sed 5q` in
17486 *Sun\ C*) # Sun C 5.9
17487 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'
17488 tmp_sharedflag='-G' ;;
17489 *Sun\ F*) # Sun Fortran 8.3
17490 tmp_sharedflag='-G' ;;
17491 *)
17492 tmp_sharedflag='-shared' ;;
17493 esac
17494 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17495
17496 if test $supports_anon_versioning = yes; then
17497 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17499 $echo "local: *; };" >> $output_objdir/$libname.ver~
17500 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17501 fi
17502 link_all_deplibs_GCJ=no
17503 else
17504 ld_shlibs_GCJ=no
17505 fi
17506 ;;
17507
17508 netbsd* | netbsdelf*-gnu)
17509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17510 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17511 wlarc=
17512 else
17513 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17514 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17515 fi
17516 ;;
17517
17518 solaris*)
17519 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17520 ld_shlibs_GCJ=no
17521 cat <<EOF 1>&2
17522
17523*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17524*** create shared libraries on Solaris systems. Therefore, libtool
17525*** is disabling shared libraries support. We urge you to upgrade GNU
17526*** binutils to release 2.9.1 or newer. Another option is to modify
17527*** your PATH or compiler configuration so that the native linker is
17528*** used, and then restart.
17529
17530EOF
17531 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17532 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17533 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17534 else
17535 ld_shlibs_GCJ=no
17536 fi
17537 ;;
17538
17539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17540 case `$LD -v 2>&1` in
17541 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17542 ld_shlibs_GCJ=no
17543 cat <<_LT_EOF 1>&2
17544
17545*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17546*** reliably create shared libraries on SCO systems. Therefore, libtool
17547*** is disabling shared libraries support. We urge you to upgrade GNU
17548*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17549*** your PATH or compiler configuration so that the native linker is
17550*** used, and then restart.
17551
17552_LT_EOF
17553 ;;
17554 *)
17555 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17556 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17557 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17558 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17559 else
17560 ld_shlibs_GCJ=no
17561 fi
17562 ;;
17563 esac
17564 ;;
17565
17566 sunos4*)
17567 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17568 wlarc=
17569 hardcode_direct_GCJ=yes
17570 hardcode_shlibpath_var_GCJ=no
17571 ;;
17572
17573 *)
17574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17575 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17576 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17577 else
17578 ld_shlibs_GCJ=no
17579 fi
17580 ;;
17581 esac
17582
17583 if test "$ld_shlibs_GCJ" = no; then
17584 runpath_var=
17585 hardcode_libdir_flag_spec_GCJ=
17586 export_dynamic_flag_spec_GCJ=
17587 whole_archive_flag_spec_GCJ=
17588 fi
17589 else
17590 # PORTME fill in a description of your system's linker (not GNU ld)
17591 case $host_os in
17592 aix3*)
17593 allow_undefined_flag_GCJ=unsupported
17594 always_export_symbols_GCJ=yes
17595 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'
17596 # Note: this linker hardcodes the directories in LIBPATH if there
17597 # are no directories specified by -L.
17598 hardcode_minus_L_GCJ=yes
17599 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17600 # Neither direct hardcoding nor static linking is supported with a
17601 # broken collect2.
17602 hardcode_direct_GCJ=unsupported
17603 fi
17604 ;;
17605
17606 aix[4-9]*)
17607 if test "$host_cpu" = ia64; then
17608 # On IA64, the linker does run time linking by default, so we don't
17609 # have to do anything special.
17610 aix_use_runtimelinking=no
17611 exp_sym_flag='-Bexport'
17612 no_entry_flag=""
17613 else
17614 # If we're using GNU nm, then we don't want the "-C" option.
17615 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17616 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17617 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'
17618 else
17619 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'
17620 fi
17621 aix_use_runtimelinking=no
17622
17623 # Test if we are trying to use run time linking or normal
17624 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17625 # need to do runtime linking.
17626 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17627 for ld_flag in $LDFLAGS; do
17628 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17629 aix_use_runtimelinking=yes
17630 break
17631 fi
17632 done
17633 ;;
17634 esac
17635
17636 exp_sym_flag='-bexport'
17637 no_entry_flag='-bnoentry'
17638 fi
17639
17640 # When large executables or shared objects are built, AIX ld can
17641 # have problems creating the table of contents. If linking a library
17642 # or program results in "error TOC overflow" add -mminimal-toc to
17643 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17644 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17645
17646 archive_cmds_GCJ=''
17647 hardcode_direct_GCJ=yes
17648 hardcode_libdir_separator_GCJ=':'
17649 link_all_deplibs_GCJ=yes
17650
17651 if test "$GCC" = yes; then
17652 case $host_os in aix4.[012]|aix4.[012].*)
17653 # We only want to do this on AIX 4.2 and lower, the check
17654 # below for broken collect2 doesn't work under 4.3+
17655 collect2name=`${CC} -print-prog-name=collect2`
17656 if test -f "$collect2name" && \
17657 strings "$collect2name" | grep resolve_lib_name >/dev/null
17658 then
17659 # We have reworked collect2
17660 :
17661 else
17662 # We have old collect2
17663 hardcode_direct_GCJ=unsupported
17664 # It fails to find uninstalled libraries when the uninstalled
17665 # path is not listed in the libpath. Setting hardcode_minus_L
17666 # to unsupported forces relinking
17667 hardcode_minus_L_GCJ=yes
17668 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17669 hardcode_libdir_separator_GCJ=
17670 fi
17671 ;;
17672 esac
17673 shared_flag='-shared'
17674 if test "$aix_use_runtimelinking" = yes; then
17675 shared_flag="$shared_flag "'${wl}-G'
17676 fi
17677 else
17678 # not using gcc
17679 if test "$host_cpu" = ia64; then
17680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17681 # chokes on -Wl,-G. The following line is correct:
17682 shared_flag='-G'
17683 else
17684 if test "$aix_use_runtimelinking" = yes; then
17685 shared_flag='${wl}-G'
17686 else
17687 shared_flag='${wl}-bM:SRE'
17688 fi
17689 fi
17690 fi
17691
17692 # It seems that -bexpall does not export symbols beginning with
17693 # underscore (_), so it is better to generate a list of symbols to export.
17694 always_export_symbols_GCJ=yes
17695 if test "$aix_use_runtimelinking" = yes; then
17696 # Warning - without using the other runtime loading flags (-brtl),
17697 # -berok will link without error, but may produce a broken library.
17698 allow_undefined_flag_GCJ='-berok'
17699 # Determine the default libpath from the value encoded in an empty executable.
17700 cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
17706
17707int
17708main ()
17709{
17710
17711 ;
17712 return 0;
17713}
17714_ACEOF
17715rm -f conftest.$ac_objext conftest$ac_exeext
17716if { (ac_try="$ac_link"
17717case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720esac
17721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_link") 2>conftest.er1
17723 ac_status=$?
17724 grep -v '^ *+' conftest.er1 >conftest.err
17725 rm -f conftest.er1
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && {
17729 test -z "$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 } && test -s conftest$ac_exeext &&
17732 $as_test_x conftest$ac_exeext; then
17733
17734lt_aix_libpath_sed='
17735 /Import File Strings/,/^$/ {
17736 /^0/ {
17737 s/^0 *\(.*\)$/\1/
17738 p
17739 }
17740 }'
17741aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17742# Check for a 64-bit object if we didn't find anything.
17743if test -z "$aix_libpath"; then
17744 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17745fi
17746else
17747 echo "$as_me: failed program was:" >&5
17748sed 's/^/| /' conftest.$ac_ext >&5
17749
17750
17751fi
17752
17753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17754 conftest$ac_exeext conftest.$ac_ext
17755if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17756
17757 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17758 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"
17759 else
17760 if test "$host_cpu" = ia64; then
17761 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17762 allow_undefined_flag_GCJ="-z nodefs"
17763 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"
17764 else
17765 # Determine the default libpath from the value encoded in an empty executable.
17766 cat >conftest.$ac_ext <<_ACEOF
17767/* confdefs.h. */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h. */
17772
17773int
17774main ()
17775{
17776
17777 ;
17778 return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext conftest$ac_exeext
17782if { (ac_try="$ac_link"
17783case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17786esac
17787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_link") 2>conftest.er1
17789 ac_status=$?
17790 grep -v '^ *+' conftest.er1 >conftest.err
17791 rm -f conftest.er1
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } && {
17795 test -z "$ac_c_werror_flag" ||
17796 test ! -s conftest.err
17797 } && test -s conftest$ac_exeext &&
17798 $as_test_x conftest$ac_exeext; then
17799
17800lt_aix_libpath_sed='
17801 /Import File Strings/,/^$/ {
17802 /^0/ {
17803 s/^0 *\(.*\)$/\1/
17804 p
17805 }
17806 }'
17807aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17808# Check for a 64-bit object if we didn't find anything.
17809if test -z "$aix_libpath"; then
17810 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17811fi
17812else
17813 echo "$as_me: failed program was:" >&5
17814sed 's/^/| /' conftest.$ac_ext >&5
17815
17816
17817fi
17818
17819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17820 conftest$ac_exeext conftest.$ac_ext
17821if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17822
17823 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17824 # Warning - without using the other run time loading flags,
17825 # -berok will link without error, but may produce a broken library.
17826 no_undefined_flag_GCJ=' ${wl}-bernotok'
17827 allow_undefined_flag_GCJ=' ${wl}-berok'
17828 # Exported symbols can be pulled into shared objects from archives
17829 whole_archive_flag_spec_GCJ='$convenience'
17830 archive_cmds_need_lc_GCJ=yes
17831 # This is similar to how AIX traditionally builds its shared libraries.
17832 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'
17833 fi
17834 fi
17835 ;;
17836
17837 amigaos*)
17838 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)'
17839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17840 hardcode_minus_L_GCJ=yes
17841 # see comment about different semantics on the GNU ld section
17842 ld_shlibs_GCJ=no
17843 ;;
17844
17845 bsdi[45]*)
17846 export_dynamic_flag_spec_GCJ=-rdynamic
17847 ;;
17848
17849 cygwin* | mingw* | pw32*)
17850 # When not using gcc, we currently assume that we are using
17851 # Microsoft Visual C++.
17852 # hardcode_libdir_flag_spec is actually meaningless, as there is
17853 # no search path for DLLs.
17854 hardcode_libdir_flag_spec_GCJ=' '
17855 allow_undefined_flag_GCJ=unsupported
17856 # Tell ltmain to make .lib files, not .a files.
17857 libext=lib
17858 # Tell ltmain to make .dll files, not .so files.
17859 shrext_cmds=".dll"
17860 # FIXME: Setting linknames here is a bad hack.
17861 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17862 # The linker will automatically build a .lib file if we build a DLL.
17863 old_archive_From_new_cmds_GCJ='true'
17864 # FIXME: Should let the user specify the lib program.
17865 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17866 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17867 enable_shared_with_static_runtimes_GCJ=yes
17868 ;;
17869
17870 darwin* | rhapsody*)
17871 case $host_os in
17872 rhapsody* | darwin1.[012])
17873 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17874 ;;
17875 *) # Darwin 1.3 on
17876 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17877 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17878 else
17879 case ${MACOSX_DEPLOYMENT_TARGET} in
17880 10.[012])
17881 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17882 ;;
17883 10.*)
17884 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17885 ;;
17886 esac
17887 fi
17888 ;;
17889 esac
17890 archive_cmds_need_lc_GCJ=no
17891 hardcode_direct_GCJ=no
17892 hardcode_automatic_GCJ=yes
17893 hardcode_shlibpath_var_GCJ=unsupported
17894 whole_archive_flag_spec_GCJ=''
17895 link_all_deplibs_GCJ=yes
17896 if test "$GCC" = yes ; then
17897 output_verbose_link_cmd='echo'
17898 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}"
17899 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17900 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}"
17901 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}"
17902 else
17903 case $cc_basename in
17904 xlc*)
17905 output_verbose_link_cmd='echo'
17906 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17907 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17908 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17909 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}'
17910 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}'
17911 ;;
17912 *)
17913 ld_shlibs_GCJ=no
17914 ;;
17915 esac
17916 fi
17917 ;;
17918
17919 dgux*)
17920 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17922 hardcode_shlibpath_var_GCJ=no
17923 ;;
17924
17925 freebsd1*)
17926 ld_shlibs_GCJ=no
17927 ;;
17928
17929 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17930 # support. Future versions do this automatically, but an explicit c++rt0.o
17931 # does not break anything, and helps significantly (at the cost of a little
17932 # extra space).
17933 freebsd2.2*)
17934 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17935 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17936 hardcode_direct_GCJ=yes
17937 hardcode_shlibpath_var_GCJ=no
17938 ;;
17939
17940 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17941 freebsd2*)
17942 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17943 hardcode_direct_GCJ=yes
17944 hardcode_minus_L_GCJ=yes
17945 hardcode_shlibpath_var_GCJ=no
17946 ;;
17947
17948 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17949 freebsd* | dragonfly*)
17950 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17951 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17952 hardcode_direct_GCJ=yes
17953 hardcode_shlibpath_var_GCJ=no
17954 ;;
17955
17956 hpux9*)
17957 if test "$GCC" = yes; then
17958 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'
17959 else
17960 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'
17961 fi
17962 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17963 hardcode_libdir_separator_GCJ=:
17964 hardcode_direct_GCJ=yes
17965
17966 # hardcode_minus_L: Not really in the search PATH,
17967 # but as the default location of the library.
17968 hardcode_minus_L_GCJ=yes
17969 export_dynamic_flag_spec_GCJ='${wl}-E'
17970 ;;
17971
17972 hpux10*)
17973 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17974 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17975 else
17976 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17977 fi
17978 if test "$with_gnu_ld" = no; then
17979 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17980 hardcode_libdir_separator_GCJ=:
17981
17982 hardcode_direct_GCJ=yes
17983 export_dynamic_flag_spec_GCJ='${wl}-E'
17984
17985 # hardcode_minus_L: Not really in the search PATH,
17986 # but as the default location of the library.
17987 hardcode_minus_L_GCJ=yes
17988 fi
17989 ;;
17990
17991 hpux11*)
17992 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17993 case $host_cpu in
17994 hppa*64*)
17995 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17996 ;;
17997 ia64*)
17998 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17999 ;;
18000 *)
18001 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18002 ;;
18003 esac
18004 else
18005 case $host_cpu in
18006 hppa*64*)
18007 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18008 ;;
18009 ia64*)
18010 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18011 ;;
18012 *)
18013 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18014 ;;
18015 esac
18016 fi
18017 if test "$with_gnu_ld" = no; then
18018 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18019 hardcode_libdir_separator_GCJ=:
18020
18021 case $host_cpu in
18022 hppa*64*|ia64*)
18023 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18024 hardcode_direct_GCJ=no
18025 hardcode_shlibpath_var_GCJ=no
18026 ;;
18027 *)
18028 hardcode_direct_GCJ=yes
18029 export_dynamic_flag_spec_GCJ='${wl}-E'
18030
18031 # hardcode_minus_L: Not really in the search PATH,
18032 # but as the default location of the library.
18033 hardcode_minus_L_GCJ=yes
18034 ;;
18035 esac
18036 fi
18037 ;;
18038
18039 irix5* | irix6* | nonstopux*)
18040 if test "$GCC" = yes; then
18041 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'
18042 else
18043 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'
18044 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18045 fi
18046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18047 hardcode_libdir_separator_GCJ=:
18048 link_all_deplibs_GCJ=yes
18049 ;;
18050
18051 netbsd* | netbsdelf*-gnu)
18052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18053 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18054 else
18055 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18056 fi
18057 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18058 hardcode_direct_GCJ=yes
18059 hardcode_shlibpath_var_GCJ=no
18060 ;;
18061
18062 newsos6)
18063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18064 hardcode_direct_GCJ=yes
18065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18066 hardcode_libdir_separator_GCJ=:
18067 hardcode_shlibpath_var_GCJ=no
18068 ;;
18069
18070 openbsd*)
18071 if test -f /usr/libexec/ld.so; then
18072 hardcode_direct_GCJ=yes
18073 hardcode_shlibpath_var_GCJ=no
18074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18075 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18076 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18078 export_dynamic_flag_spec_GCJ='${wl}-E'
18079 else
18080 case $host_os in
18081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18084 ;;
18085 *)
18086 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18087 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18088 ;;
18089 esac
18090 fi
18091 else
18092 ld_shlibs_GCJ=no
18093 fi
18094 ;;
18095
18096 os2*)
18097 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18098 hardcode_minus_L_GCJ=yes
18099 allow_undefined_flag_GCJ=unsupported
18100 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'
18101 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18102 ;;
18103
18104 osf3*)
18105 if test "$GCC" = yes; then
18106 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18107 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'
18108 else
18109 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18110 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'
18111 fi
18112 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18113 hardcode_libdir_separator_GCJ=:
18114 ;;
18115
18116 osf4* | osf5*) # as osf3* with the addition of -msym flag
18117 if test "$GCC" = yes; then
18118 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18119 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'
18120 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18121 else
18122 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18123 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'
18124 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~
18125 $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'
18126
18127 # Both c and cxx compiler support -rpath directly
18128 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18129 fi
18130 hardcode_libdir_separator_GCJ=:
18131 ;;
18132
18133 solaris*)
18134 no_undefined_flag_GCJ=' -z text'
18135 if test "$GCC" = yes; then
18136 wlarc='${wl}'
18137 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18139 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18140 else
18141 wlarc=''
18142 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18143 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18144 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18145 fi
18146 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18147 hardcode_shlibpath_var_GCJ=no
18148 case $host_os in
18149 solaris2.[0-5] | solaris2.[0-5].*) ;;
18150 *)
18151 # The compiler driver will combine and reorder linker options,
18152 # but understands `-z linker_flag'. GCC discards it without `$wl',
18153 # but is careful enough not to reorder.
18154 # Supported since Solaris 2.6 (maybe 2.5.1?)
18155 if test "$GCC" = yes; then
18156 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18157 else
18158 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18159 fi
18160 ;;
18161 esac
18162 link_all_deplibs_GCJ=yes
18163 ;;
18164
18165 sunos4*)
18166 if test "x$host_vendor" = xsequent; then
18167 # Use $CC to link under sequent, because it throws in some extra .o
18168 # files that make .init and .fini sections work.
18169 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18170 else
18171 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18172 fi
18173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18174 hardcode_direct_GCJ=yes
18175 hardcode_minus_L_GCJ=yes
18176 hardcode_shlibpath_var_GCJ=no
18177 ;;
18178
18179 sysv4)
18180 case $host_vendor in
18181 sni)
18182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18183 hardcode_direct_GCJ=yes # is this really true???
18184 ;;
18185 siemens)
18186 ## LD is ld it makes a PLAMLIB
18187 ## CC just makes a GrossModule.
18188 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18189 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18190 hardcode_direct_GCJ=no
18191 ;;
18192 motorola)
18193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18194 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18195 ;;
18196 esac
18197 runpath_var='LD_RUN_PATH'
18198 hardcode_shlibpath_var_GCJ=no
18199 ;;
18200
18201 sysv4.3*)
18202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18203 hardcode_shlibpath_var_GCJ=no
18204 export_dynamic_flag_spec_GCJ='-Bexport'
18205 ;;
18206
18207 sysv4*MP*)
18208 if test -d /usr/nec; then
18209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18210 hardcode_shlibpath_var_GCJ=no
18211 runpath_var=LD_RUN_PATH
18212 hardcode_runpath_var=yes
18213 ld_shlibs_GCJ=yes
18214 fi
18215 ;;
18216
18217 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18218 no_undefined_flag_GCJ='${wl}-z,text'
18219 archive_cmds_need_lc_GCJ=no
18220 hardcode_shlibpath_var_GCJ=no
18221 runpath_var='LD_RUN_PATH'
18222
18223 if test "$GCC" = yes; then
18224 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18225 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18226 else
18227 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18228 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18229 fi
18230 ;;
18231
18232 sysv5* | sco3.2v5* | sco5v6*)
18233 # Note: We can NOT use -z defs as we might desire, because we do not
18234 # link with -lc, and that would cause any symbols used from libc to
18235 # always be unresolved, which means just about no library would
18236 # ever link correctly. If we're not using GNU ld we use -z text
18237 # though, which does catch some bad symbols but isn't as heavy-handed
18238 # as -z defs.
18239 no_undefined_flag_GCJ='${wl}-z,text'
18240 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18241 archive_cmds_need_lc_GCJ=no
18242 hardcode_shlibpath_var_GCJ=no
18243 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18244 hardcode_libdir_separator_GCJ=':'
18245 link_all_deplibs_GCJ=yes
18246 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18247 runpath_var='LD_RUN_PATH'
18248
18249 if test "$GCC" = yes; then
18250 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18251 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18252 else
18253 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18254 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18255 fi
18256 ;;
18257
18258 uts4*)
18259 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18261 hardcode_shlibpath_var_GCJ=no
18262 ;;
18263
18264 *)
18265 ld_shlibs_GCJ=no
18266 ;;
18267 esac
18268 fi
18269
18270{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18271echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18272test "$ld_shlibs_GCJ" = no && can_build_shared=no
18273
18274#
18275# Do we need to explicitly link libc?
18276#
18277case "x$archive_cmds_need_lc_GCJ" in
18278x|xyes)
18279 # Assume -lc should be added
18280 archive_cmds_need_lc_GCJ=yes
18281
18282 if test "$enable_shared" = yes && test "$GCC" = yes; then
18283 case $archive_cmds_GCJ in
18284 *'~'*)
18285 # FIXME: we may have to deal with multi-command sequences.
18286 ;;
18287 '$CC '*)
18288 # Test whether the compiler implicitly links with -lc since on some
18289 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18290 # to ld, don't add -lc before -lgcc.
18291 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18292echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18293 $rm conftest*
18294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18295
18296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18297 (eval $ac_compile) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } 2>conftest.err; then
18301 soname=conftest
18302 lib=conftest
18303 libobjs=conftest.$ac_objext
18304 deplibs=
18305 wl=$lt_prog_compiler_wl_GCJ
18306 pic_flag=$lt_prog_compiler_pic_GCJ
18307 compiler_flags=-v
18308 linker_flags=-v
18309 verstring=
18310 output_objdir=.
18311 libname=conftest
18312 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18313 allow_undefined_flag_GCJ=
18314 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18315 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }
18319 then
18320 archive_cmds_need_lc_GCJ=no
18321 else
18322 archive_cmds_need_lc_GCJ=yes
18323 fi
18324 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18325 else
18326 cat conftest.err 1>&5
18327 fi
18328 $rm conftest*
18329 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18330echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18331 ;;
18332 esac
18333 fi
18334 ;;
18335esac
18336
18337{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18338echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18339library_names_spec=
18340libname_spec='lib$name'
18341soname_spec=
18342shrext_cmds=".so"
18343postinstall_cmds=
18344postuninstall_cmds=
18345finish_cmds=
18346finish_eval=
18347shlibpath_var=
18348shlibpath_overrides_runpath=unknown
18349version_type=none
18350dynamic_linker="$host_os ld.so"
18351sys_lib_dlsearch_path_spec="/lib /usr/lib"
18352
18353need_lib_prefix=unknown
18354hardcode_into_libs=no
18355
18356# when you set need_version to no, make sure it does not cause -set_version
18357# flags to be left without arguments
18358need_version=unknown
18359
18360case $host_os in
18361aix3*)
18362 version_type=linux
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18364 shlibpath_var=LIBPATH
18365
18366 # AIX 3 has no versioning support, so we append a major version to the name.
18367 soname_spec='${libname}${release}${shared_ext}$major'
18368 ;;
18369
18370aix[4-9]*)
18371 version_type=linux
18372 need_lib_prefix=no
18373 need_version=no
18374 hardcode_into_libs=yes
18375 if test "$host_cpu" = ia64; then
18376 # AIX 5 supports IA64
18377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18378 shlibpath_var=LD_LIBRARY_PATH
18379 else
18380 # With GCC up to 2.95.x, collect2 would create an import file
18381 # for dependence libraries. The import file would start with
18382 # the line `#! .'. This would cause the generated library to
18383 # depend on `.', always an invalid library. This was fixed in
18384 # development snapshots of GCC prior to 3.0.
18385 case $host_os in
18386 aix4 | aix4.[01] | aix4.[01].*)
18387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18388 echo ' yes '
18389 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18390 :
18391 else
18392 can_build_shared=no
18393 fi
18394 ;;
18395 esac
18396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18397 # soname into executable. Probably we can add versioning support to
18398 # collect2, so additional links can be useful in future.
18399 if test "$aix_use_runtimelinking" = yes; then
18400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18401 # instead of lib<name>.a to let people know that these are not
18402 # typical AIX shared libraries.
18403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18404 else
18405 # We preserve .a as extension for shared libraries through AIX4.2
18406 # and later when we are not doing run time linking.
18407 library_names_spec='${libname}${release}.a $libname.a'
18408 soname_spec='${libname}${release}${shared_ext}$major'
18409 fi
18410 shlibpath_var=LIBPATH
18411 fi
18412 ;;
18413
18414amigaos*)
18415 library_names_spec='$libname.ixlibrary $libname.a'
18416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18417 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'
18418 ;;
18419
18420beos*)
18421 library_names_spec='${libname}${shared_ext}'
18422 dynamic_linker="$host_os ld.so"
18423 shlibpath_var=LIBRARY_PATH
18424 ;;
18425
18426bsdi[45]*)
18427 version_type=linux
18428 need_version=no
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18430 soname_spec='${libname}${release}${shared_ext}$major'
18431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18432 shlibpath_var=LD_LIBRARY_PATH
18433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18435 # the default ld.so.conf also contains /usr/contrib/lib and
18436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18437 # libtool to hard-code these into programs
18438 ;;
18439
18440cygwin* | mingw* | pw32*)
18441 version_type=windows
18442 shrext_cmds=".dll"
18443 need_version=no
18444 need_lib_prefix=no
18445
18446 case $GCC,$host_os in
18447 yes,cygwin* | yes,mingw* | yes,pw32*)
18448 library_names_spec='$libname.dll.a'
18449 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18450 postinstall_cmds='base_file=`basename \${file}`~
18451 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18452 dldir=$destdir/`dirname \$dlpath`~
18453 test -d \$dldir || mkdir -p \$dldir~
18454 $install_prog $dir/$dlname \$dldir/$dlname~
18455 chmod a+x \$dldir/$dlname'
18456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18457 dlpath=$dir/\$dldll~
18458 $rm \$dlpath'
18459 shlibpath_overrides_runpath=yes
18460
18461 case $host_os in
18462 cygwin*)
18463 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18464 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18465 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18466 ;;
18467 mingw*)
18468 # MinGW DLLs use traditional 'lib' prefix
18469 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18470 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18471 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18472 # It is most probably a Windows format PATH printed by
18473 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18474 # path with ; separators, and with drive letters. We can handle the
18475 # drive letters (cygwin fileutils understands them), so leave them,
18476 # especially as we might pass files found there to a mingw objdump,
18477 # which wouldn't understand a cygwinified path. Ahh.
18478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18479 else
18480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18481 fi
18482 ;;
18483 pw32*)
18484 # pw32 DLLs use 'pw' prefix rather than 'lib'
18485 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18486 ;;
18487 esac
18488 ;;
18489
18490 *)
18491 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18492 ;;
18493 esac
18494 dynamic_linker='Win32 ld.exe'
18495 # FIXME: first we should search . and the directory the executable is in
18496 shlibpath_var=PATH
18497 ;;
18498
18499darwin* | rhapsody*)
18500 dynamic_linker="$host_os dyld"
18501 version_type=darwin
18502 need_lib_prefix=no
18503 need_version=no
18504 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18505 soname_spec='${libname}${release}${major}$shared_ext'
18506 shlibpath_overrides_runpath=yes
18507 shlibpath_var=DYLD_LIBRARY_PATH
18508 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18509
18510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18511 ;;
18512
18513dgux*)
18514 version_type=linux
18515 need_lib_prefix=no
18516 need_version=no
18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18518 soname_spec='${libname}${release}${shared_ext}$major'
18519 shlibpath_var=LD_LIBRARY_PATH
18520 ;;
18521
18522freebsd1*)
18523 dynamic_linker=no
18524 ;;
18525
18526freebsd* | dragonfly*)
18527 # DragonFly does not have aout. When/if they implement a new
18528 # versioning mechanism, adjust this.
18529 if test -x /usr/bin/objformat; then
18530 objformat=`/usr/bin/objformat`
18531 else
18532 case $host_os in
18533 freebsd[123]*) objformat=aout ;;
18534 *) objformat=elf ;;
18535 esac
18536 fi
18537 version_type=freebsd-$objformat
18538 case $version_type in
18539 freebsd-elf*)
18540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18541 need_version=no
18542 need_lib_prefix=no
18543 ;;
18544 freebsd-*)
18545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18546 need_version=yes
18547 ;;
18548 esac
18549 shlibpath_var=LD_LIBRARY_PATH
18550 case $host_os in
18551 freebsd2*)
18552 shlibpath_overrides_runpath=yes
18553 ;;
18554 freebsd3.[01]* | freebsdelf3.[01]*)
18555 shlibpath_overrides_runpath=yes
18556 hardcode_into_libs=yes
18557 ;;
18558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18560 shlibpath_overrides_runpath=no
18561 hardcode_into_libs=yes
18562 ;;
18563 *) # from 4.6 on, and DragonFly
18564 shlibpath_overrides_runpath=yes
18565 hardcode_into_libs=yes
18566 ;;
18567 esac
18568 ;;
18569
18570gnu*)
18571 version_type=linux
18572 need_lib_prefix=no
18573 need_version=no
18574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18575 soname_spec='${libname}${release}${shared_ext}$major'
18576 shlibpath_var=LD_LIBRARY_PATH
18577 hardcode_into_libs=yes
18578 ;;
18579
18580hpux9* | hpux10* | hpux11*)
18581 # Give a soname corresponding to the major version so that dld.sl refuses to
18582 # link against other versions.
18583 version_type=sunos
18584 need_lib_prefix=no
18585 need_version=no
18586 case $host_cpu in
18587 ia64*)
18588 shrext_cmds='.so'
18589 hardcode_into_libs=yes
18590 dynamic_linker="$host_os dld.so"
18591 shlibpath_var=LD_LIBRARY_PATH
18592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18595 if test "X$HPUX_IA64_MODE" = X32; then
18596 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18597 else
18598 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18599 fi
18600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18601 ;;
18602 hppa*64*)
18603 shrext_cmds='.sl'
18604 hardcode_into_libs=yes
18605 dynamic_linker="$host_os dld.sl"
18606 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18609 soname_spec='${libname}${release}${shared_ext}$major'
18610 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18612 ;;
18613 *)
18614 shrext_cmds='.sl'
18615 dynamic_linker="$host_os dld.sl"
18616 shlibpath_var=SHLIB_PATH
18617 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18619 soname_spec='${libname}${release}${shared_ext}$major'
18620 ;;
18621 esac
18622 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18623 postinstall_cmds='chmod 555 $lib'
18624 ;;
18625
18626interix[3-9]*)
18627 version_type=linux
18628 need_lib_prefix=no
18629 need_version=no
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18631 soname_spec='${libname}${release}${shared_ext}$major'
18632 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18633 shlibpath_var=LD_LIBRARY_PATH
18634 shlibpath_overrides_runpath=no
18635 hardcode_into_libs=yes
18636 ;;
18637
18638irix5* | irix6* | nonstopux*)
18639 case $host_os in
18640 nonstopux*) version_type=nonstopux ;;
18641 *)
18642 if test "$lt_cv_prog_gnu_ld" = yes; then
18643 version_type=linux
18644 else
18645 version_type=irix
18646 fi ;;
18647 esac
18648 need_lib_prefix=no
18649 need_version=no
18650 soname_spec='${libname}${release}${shared_ext}$major'
18651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18652 case $host_os in
18653 irix5* | nonstopux*)
18654 libsuff= shlibsuff=
18655 ;;
18656 *)
18657 case $LD in # libtool.m4 will add one of these switches to LD
18658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18659 libsuff= shlibsuff= libmagic=32-bit;;
18660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18661 libsuff=32 shlibsuff=N32 libmagic=N32;;
18662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18664 *) libsuff= shlibsuff= libmagic=never-match;;
18665 esac
18666 ;;
18667 esac
18668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18669 shlibpath_overrides_runpath=no
18670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18672 hardcode_into_libs=yes
18673 ;;
18674
18675# No shared lib support for Linux oldld, aout, or coff.
18676linux*oldld* | linux*aout* | linux*coff*)
18677 dynamic_linker=no
18678 ;;
18679
18680# This must be Linux ELF.
18681linux* | k*bsd*-gnu)
18682 version_type=linux
18683 need_lib_prefix=no
18684 need_version=no
18685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18686 soname_spec='${libname}${release}${shared_ext}$major'
18687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18688 shlibpath_var=LD_LIBRARY_PATH
18689 shlibpath_overrides_runpath=no
18690 # This implies no fast_install, which is unacceptable.
18691 # Some rework will be needed to allow for fast_install
18692 # before this can be enabled.
18693 hardcode_into_libs=yes
18694
18695 # Append ld.so.conf contents to the search path
18696 if test -f /etc/ld.so.conf; then
18697 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' ' '`
18698 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18699 fi
18700
18701 # We used to test for /lib/ld.so.1 and disable shared libraries on
18702 # powerpc, because MkLinux only supported shared libraries with the
18703 # GNU dynamic linker. Since this was broken with cross compilers,
18704 # most powerpc-linux boxes support dynamic linking these days and
18705 # people can always --disable-shared, the test was removed, and we
18706 # assume the GNU/Linux dynamic linker is in use.
18707 dynamic_linker='GNU/Linux ld.so'
18708 ;;
18709
18710netbsdelf*-gnu)
18711 version_type=linux
18712 need_lib_prefix=no
18713 need_version=no
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18715 soname_spec='${libname}${release}${shared_ext}$major'
18716 shlibpath_var=LD_LIBRARY_PATH
18717 shlibpath_overrides_runpath=no
18718 hardcode_into_libs=yes
18719 dynamic_linker='NetBSD ld.elf_so'
18720 ;;
18721
18722netbsd*)
18723 version_type=sunos
18724 need_lib_prefix=no
18725 need_version=no
18726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18729 dynamic_linker='NetBSD (a.out) ld.so'
18730 else
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 dynamic_linker='NetBSD ld.elf_so'
18734 fi
18735 shlibpath_var=LD_LIBRARY_PATH
18736 shlibpath_overrides_runpath=yes
18737 hardcode_into_libs=yes
18738 ;;
18739
18740newsos6)
18741 version_type=linux
18742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18743 shlibpath_var=LD_LIBRARY_PATH
18744 shlibpath_overrides_runpath=yes
18745 ;;
18746
18747nto-qnx*)
18748 version_type=linux
18749 need_lib_prefix=no
18750 need_version=no
18751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18752 soname_spec='${libname}${release}${shared_ext}$major'
18753 shlibpath_var=LD_LIBRARY_PATH
18754 shlibpath_overrides_runpath=yes
18755 ;;
18756
18757openbsd*)
18758 version_type=sunos
18759 sys_lib_dlsearch_path_spec="/usr/lib"
18760 need_lib_prefix=no
18761 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18762 case $host_os in
18763 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18764 *) need_version=no ;;
18765 esac
18766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18768 shlibpath_var=LD_LIBRARY_PATH
18769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18770 case $host_os in
18771 openbsd2.[89] | openbsd2.[89].*)
18772 shlibpath_overrides_runpath=no
18773 ;;
18774 *)
18775 shlibpath_overrides_runpath=yes
18776 ;;
18777 esac
18778 else
18779 shlibpath_overrides_runpath=yes
18780 fi
18781 ;;
18782
18783os2*)
18784 libname_spec='$name'
18785 shrext_cmds=".dll"
18786 need_lib_prefix=no
18787 library_names_spec='$libname${shared_ext} $libname.a'
18788 dynamic_linker='OS/2 ld.exe'
18789 shlibpath_var=LIBPATH
18790 ;;
18791
18792osf3* | osf4* | osf5*)
18793 version_type=osf
18794 need_lib_prefix=no
18795 need_version=no
18796 soname_spec='${libname}${release}${shared_ext}$major'
18797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18798 shlibpath_var=LD_LIBRARY_PATH
18799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18801 ;;
18802
18803rdos*)
18804 dynamic_linker=no
18805 ;;
18806
18807solaris*)
18808 version_type=linux
18809 need_lib_prefix=no
18810 need_version=no
18811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812 soname_spec='${libname}${release}${shared_ext}$major'
18813 shlibpath_var=LD_LIBRARY_PATH
18814 shlibpath_overrides_runpath=yes
18815 hardcode_into_libs=yes
18816 # ldd complains unless libraries are executable
18817 postinstall_cmds='chmod +x $lib'
18818 ;;
18819
18820sunos4*)
18821 version_type=sunos
18822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 shlibpath_overrides_runpath=yes
18826 if test "$with_gnu_ld" = yes; then
18827 need_lib_prefix=no
18828 fi
18829 need_version=yes
18830 ;;
18831
18832sysv4 | sysv4.3*)
18833 version_type=linux
18834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835 soname_spec='${libname}${release}${shared_ext}$major'
18836 shlibpath_var=LD_LIBRARY_PATH
18837 case $host_vendor in
18838 sni)
18839 shlibpath_overrides_runpath=no
18840 need_lib_prefix=no
18841 export_dynamic_flag_spec='${wl}-Blargedynsym'
18842 runpath_var=LD_RUN_PATH
18843 ;;
18844 siemens)
18845 need_lib_prefix=no
18846 ;;
18847 motorola)
18848 need_lib_prefix=no
18849 need_version=no
18850 shlibpath_overrides_runpath=no
18851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18852 ;;
18853 esac
18854 ;;
18855
18856sysv4*MP*)
18857 if test -d /usr/nec ;then
18858 version_type=linux
18859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18860 soname_spec='$libname${shared_ext}.$major'
18861 shlibpath_var=LD_LIBRARY_PATH
18862 fi
18863 ;;
18864
18865sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18866 version_type=freebsd-elf
18867 need_lib_prefix=no
18868 need_version=no
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18871 shlibpath_var=LD_LIBRARY_PATH
18872 hardcode_into_libs=yes
18873 if test "$with_gnu_ld" = yes; then
18874 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18875 shlibpath_overrides_runpath=no
18876 else
18877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18878 shlibpath_overrides_runpath=yes
18879 case $host_os in
18880 sco3.2v5*)
18881 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18882 ;;
18883 esac
18884 fi
18885 sys_lib_dlsearch_path_spec='/usr/lib'
18886 ;;
18887
18888uts4*)
18889 version_type=linux
18890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18891 soname_spec='${libname}${release}${shared_ext}$major'
18892 shlibpath_var=LD_LIBRARY_PATH
18893 ;;
18894
18895*)
18896 dynamic_linker=no
18897 ;;
18898esac
18899{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18900echo "${ECHO_T}$dynamic_linker" >&6; }
18901test "$dynamic_linker" = no && can_build_shared=no
18902
18903if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905else
18906 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18907fi
18908
18909sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18910if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912else
18913 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18914fi
18915
18916sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18917
18918variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18919if test "$GCC" = yes; then
18920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18921fi
18922
18923{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18924echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18925hardcode_action_GCJ=
18926if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18927 test -n "$runpath_var_GCJ" || \
18928 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18929
18930 # We can hardcode non-existant directories.
18931 if test "$hardcode_direct_GCJ" != no &&
18932 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18933 # have to relink, otherwise we might link with an installed library
18934 # when we should be linking with a yet-to-be-installed one
18935 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18936 test "$hardcode_minus_L_GCJ" != no; then
18937 # Linking always hardcodes the temporary library directory.
18938 hardcode_action_GCJ=relink
18939 else
18940 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18941 hardcode_action_GCJ=immediate
18942 fi
18943else
18944 # We cannot hardcode anything, or else we can only hardcode existing
18945 # directories.
18946 hardcode_action_GCJ=unsupported
18947fi
18948{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18949echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18950
18951if test "$hardcode_action_GCJ" = relink; then
18952 # Fast installation is not supported
18953 enable_fast_install=no
18954elif test "$shlibpath_overrides_runpath" = yes ||
18955 test "$enable_shared" = no; then
18956 # Fast installation is not necessary
18957 enable_fast_install=needless
18958fi
18959
18960
18961# The else clause should only fire when bootstrapping the
18962# libtool distribution, otherwise you forgot to ship ltmain.sh
18963# with your package, and you will get complaints that there are
18964# no rules to generate ltmain.sh.
18965if test -f "$ltmain"; then
18966 # See if we are running on zsh, and set the options which allow our commands through
18967 # without removal of \ escapes.
18968 if test -n "${ZSH_VERSION+set}" ; then
18969 setopt NO_GLOB_SUBST
18970 fi
18971 # Now quote all the things that may contain metacharacters while being
18972 # careful not to overquote the AC_SUBSTed values. We take copies of the
18973 # variables and quote the copies for generation of the libtool script.
18974 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18975 SED SHELL STRIP \
18976 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18977 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18978 deplibs_check_method reload_flag reload_cmds need_locks \
18979 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18980 lt_cv_sys_global_symbol_to_c_name_address \
18981 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18982 old_postinstall_cmds old_postuninstall_cmds \
18983 compiler_GCJ \
18984 CC_GCJ \
18985 LD_GCJ \
18986 lt_prog_compiler_wl_GCJ \
18987 lt_prog_compiler_pic_GCJ \
18988 lt_prog_compiler_static_GCJ \
18989 lt_prog_compiler_no_builtin_flag_GCJ \
18990 export_dynamic_flag_spec_GCJ \
18991 thread_safe_flag_spec_GCJ \
18992 whole_archive_flag_spec_GCJ \
18993 enable_shared_with_static_runtimes_GCJ \
18994 old_archive_cmds_GCJ \
18995 old_archive_from_new_cmds_GCJ \
18996 predep_objects_GCJ \
18997 postdep_objects_GCJ \
18998 predeps_GCJ \
18999 postdeps_GCJ \
19000 compiler_lib_search_path_GCJ \
19001 compiler_lib_search_dirs_GCJ \
19002 archive_cmds_GCJ \
19003 archive_expsym_cmds_GCJ \
19004 postinstall_cmds_GCJ \
19005 postuninstall_cmds_GCJ \
19006 old_archive_from_expsyms_cmds_GCJ \
19007 allow_undefined_flag_GCJ \
19008 no_undefined_flag_GCJ \
19009 export_symbols_cmds_GCJ \
19010 hardcode_libdir_flag_spec_GCJ \
19011 hardcode_libdir_flag_spec_ld_GCJ \
19012 hardcode_libdir_separator_GCJ \
19013 hardcode_automatic_GCJ \
19014 module_cmds_GCJ \
19015 module_expsym_cmds_GCJ \
19016 lt_cv_prog_compiler_c_o_GCJ \
19017 fix_srcfile_path_GCJ \
19018 exclude_expsyms_GCJ \
19019 include_expsyms_GCJ; do
19020
19021 case $var in
19022 old_archive_cmds_GCJ | \
19023 old_archive_from_new_cmds_GCJ | \
19024 archive_cmds_GCJ | \
19025 archive_expsym_cmds_GCJ | \
19026 module_cmds_GCJ | \
19027 module_expsym_cmds_GCJ | \
19028 old_archive_from_expsyms_cmds_GCJ | \
19029 export_symbols_cmds_GCJ | \
19030 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19031 postinstall_cmds | postuninstall_cmds | \
19032 old_postinstall_cmds | old_postuninstall_cmds | \
19033 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19034 # Double-quote double-evaled strings.
19035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19036 ;;
19037 *)
19038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19039 ;;
19040 esac
19041 done
19042
19043 case $lt_echo in
19044 *'\$0 --fallback-echo"')
19045 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19046 ;;
19047 esac
19048
19049cfgfile="$ofile"
19050
19051 cat <<__EOF__ >> "$cfgfile"
19052# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19053
19054# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19055
19056# Shell to use when invoking shell scripts.
19057SHELL=$lt_SHELL
19058
19059# Whether or not to build shared libraries.
19060build_libtool_libs=$enable_shared
19061
19062# Whether or not to build static libraries.
19063build_old_libs=$enable_static
19064
19065# Whether or not to add -lc for building shared libraries.
19066build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19067
19068# Whether or not to disallow shared libs when runtime libs are static
19069allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19070
19071# Whether or not to optimize for fast installation.
19072fast_install=$enable_fast_install
19073
19074# The host system.
19075host_alias=$host_alias
19076host=$host
19077host_os=$host_os
19078
19079# The build system.
19080build_alias=$build_alias
19081build=$build
19082build_os=$build_os
19083
19084# An echo program that does not interpret backslashes.
19085echo=$lt_echo
19086
19087# The archiver.
19088AR=$lt_AR
19089AR_FLAGS=$lt_AR_FLAGS
19090
19091# A C compiler.
19092LTCC=$lt_LTCC
19093
19094# LTCC compiler flags.
19095LTCFLAGS=$lt_LTCFLAGS
19096
19097# A language-specific compiler.
19098CC=$lt_compiler_GCJ
19099
19100# Is the compiler the GNU C compiler?
19101with_gcc=$GCC_GCJ
19102
19103# An ERE matcher.
19104EGREP=$lt_EGREP
19105
19106# The linker used to build libraries.
19107LD=$lt_LD_GCJ
19108
19109# Whether we need hard or soft links.
19110LN_S=$lt_LN_S
19111
19112# A BSD-compatible nm program.
19113NM=$lt_NM
19114
19115# A symbol stripping program
19116STRIP=$lt_STRIP
19117
19118# Used to examine libraries when file_magic_cmd begins "file"
19119MAGIC_CMD=$MAGIC_CMD
19120
19121# Used on cygwin: DLL creation program.
19122DLLTOOL="$DLLTOOL"
19123
19124# Used on cygwin: object dumper.
19125OBJDUMP="$OBJDUMP"
19126
19127# Used on cygwin: assembler.
19128AS="$AS"
19129
19130# The name of the directory that contains temporary libtool files.
19131objdir=$objdir
19132
19133# How to create reloadable object files.
19134reload_flag=$lt_reload_flag
19135reload_cmds=$lt_reload_cmds
19136
19137# How to pass a linker flag through the compiler.
19138wl=$lt_lt_prog_compiler_wl_GCJ
19139
19140# Object file suffix (normally "o").
19141objext="$ac_objext"
19142
19143# Old archive suffix (normally "a").
19144libext="$libext"
19145
19146# Shared library suffix (normally ".so").
19147shrext_cmds='$shrext_cmds'
19148
19149# Executable file suffix (normally "").
19150exeext="$exeext"
19151
19152# Additional compiler flags for building library objects.
19153pic_flag=$lt_lt_prog_compiler_pic_GCJ
19154pic_mode=$pic_mode
19155
19156# What is the maximum length of a command?
19157max_cmd_len=$lt_cv_sys_max_cmd_len
19158
19159# Does compiler simultaneously support -c and -o options?
19160compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19161
19162# Must we lock files when doing compilation?
19163need_locks=$lt_need_locks
19164
19165# Do we need the lib prefix for modules?
19166need_lib_prefix=$need_lib_prefix
19167
19168# Do we need a version for libraries?
19169need_version=$need_version
19170
19171# Whether dlopen is supported.
19172dlopen_support=$enable_dlopen
19173
19174# Whether dlopen of programs is supported.
19175dlopen_self=$enable_dlopen_self
19176
19177# Whether dlopen of statically linked programs is supported.
19178dlopen_self_static=$enable_dlopen_self_static
19179
19180# Compiler flag to prevent dynamic linking.
19181link_static_flag=$lt_lt_prog_compiler_static_GCJ
19182
19183# Compiler flag to turn off builtin functions.
19184no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19185
19186# Compiler flag to allow reflexive dlopens.
19187export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19188
19189# Compiler flag to generate shared objects directly from archives.
19190whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19191
19192# Compiler flag to generate thread-safe objects.
19193thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19194
19195# Library versioning type.
19196version_type=$version_type
19197
19198# Format of library name prefix.
19199libname_spec=$lt_libname_spec
19200
19201# List of archive names. First name is the real one, the rest are links.
19202# The last name is the one that the linker finds with -lNAME.
19203library_names_spec=$lt_library_names_spec
19204
19205# The coded name of the library, if different from the real name.
19206soname_spec=$lt_soname_spec
19207
19208# Commands used to build and install an old-style archive.
19209RANLIB=$lt_RANLIB
19210old_archive_cmds=$lt_old_archive_cmds_GCJ
19211old_postinstall_cmds=$lt_old_postinstall_cmds
19212old_postuninstall_cmds=$lt_old_postuninstall_cmds
19213
19214# Create an old-style archive from a shared archive.
19215old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19216
19217# Create a temporary old-style archive to link instead of a shared archive.
19218old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19219
19220# Commands used to build and install a shared archive.
19221archive_cmds=$lt_archive_cmds_GCJ
19222archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19223postinstall_cmds=$lt_postinstall_cmds
19224postuninstall_cmds=$lt_postuninstall_cmds
19225
19226# Commands used to build a loadable module (assumed same as above if empty)
19227module_cmds=$lt_module_cmds_GCJ
19228module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19229
19230# Commands to strip libraries.
19231old_striplib=$lt_old_striplib
19232striplib=$lt_striplib
19233
19234# Dependencies to place before the objects being linked to create a
19235# shared library.
19236predep_objects=$lt_predep_objects_GCJ
19237
19238# Dependencies to place after the objects being linked to create a
19239# shared library.
19240postdep_objects=$lt_postdep_objects_GCJ
19241
19242# Dependencies to place before the objects being linked to create a
19243# shared library.
19244predeps=$lt_predeps_GCJ
19245
19246# Dependencies to place after the objects being linked to create a
19247# shared library.
19248postdeps=$lt_postdeps_GCJ
19249
19250# The directories searched by this compiler when creating a shared
19251# library
19252compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19253
19254# The library search path used internally by the compiler when linking
19255# a shared library.
19256compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19257
19258# Method to check whether dependent libraries are shared objects.
19259deplibs_check_method=$lt_deplibs_check_method
19260
19261# Command to use when deplibs_check_method == file_magic.
19262file_magic_cmd=$lt_file_magic_cmd
19263
19264# Flag that allows shared libraries with undefined symbols to be built.
19265allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19266
19267# Flag that forces no undefined symbols.
19268no_undefined_flag=$lt_no_undefined_flag_GCJ
19269
19270# Commands used to finish a libtool library installation in a directory.
19271finish_cmds=$lt_finish_cmds
19272
19273# Same as above, but a single script fragment to be evaled but not shown.
19274finish_eval=$lt_finish_eval
19275
19276# Take the output of nm and produce a listing of raw symbols and C names.
19277global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19278
19279# Transform the output of nm in a proper C declaration
19280global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19281
19282# Transform the output of nm in a C name address pair
19283global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19284
19285# This is the shared library runtime path variable.
19286runpath_var=$runpath_var
19287
19288# This is the shared library path variable.
19289shlibpath_var=$shlibpath_var
19290
19291# Is shlibpath searched before the hard-coded library search path?
19292shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19293
19294# How to hardcode a shared library path into an executable.
19295hardcode_action=$hardcode_action_GCJ
19296
19297# Whether we should hardcode library paths into libraries.
19298hardcode_into_libs=$hardcode_into_libs
19299
19300# Flag to hardcode \$libdir into a binary during linking.
19301# This must work even if \$libdir does not exist.
19302hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19303
19304# If ld is used when linking, flag to hardcode \$libdir into
19305# a binary during linking. This must work even if \$libdir does
19306# not exist.
19307hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19308
19309# Whether we need a single -rpath flag with a separated argument.
19310hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19311
19312# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19313# resulting binary.
19314hardcode_direct=$hardcode_direct_GCJ
19315
19316# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19317# resulting binary.
19318hardcode_minus_L=$hardcode_minus_L_GCJ
19319
19320# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19321# the resulting binary.
19322hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19323
19324# Set to yes if building a shared library automatically hardcodes DIR into the library
19325# and all subsequent libraries and executables linked against it.
19326hardcode_automatic=$hardcode_automatic_GCJ
19327
19328# Variables whose values should be saved in libtool wrapper scripts and
19329# restored at relink time.
19330variables_saved_for_relink="$variables_saved_for_relink"
19331
19332# Whether libtool must link a program against all its dependency libraries.
19333link_all_deplibs=$link_all_deplibs_GCJ
19334
19335# Compile-time system search path for libraries
19336sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19337
19338# Run-time system search path for libraries
19339sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19340
19341# Fix the shell variable \$srcfile for the compiler.
19342fix_srcfile_path=$lt_fix_srcfile_path
19343
19344# Set to yes if exported symbols are required.
19345always_export_symbols=$always_export_symbols_GCJ
19346
19347# The commands to list exported symbols.
19348export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19349
19350# The commands to extract the exported symbol list from a shared archive.
19351extract_expsyms_cmds=$lt_extract_expsyms_cmds
19352
19353# Symbols that should not be listed in the preloaded symbols.
19354exclude_expsyms=$lt_exclude_expsyms_GCJ
19355
19356# Symbols that must always be exported.
19357include_expsyms=$lt_include_expsyms_GCJ
19358
19359# ### END LIBTOOL TAG CONFIG: $tagname
19360
19361__EOF__
19362
19363
19364else
19365 # If there is no Makefile yet, we rely on a make rule to execute
19366 # `config.status --recheck' to rerun these tests and create the
19367 # libtool script then.
19368 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19369 if test -f "$ltmain_in"; then
19370 test -f Makefile && make "$ltmain"
19371 fi
19372fi
19373
19374
19375ac_ext=c
19376ac_cpp='$CPP $CPPFLAGS'
19377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379ac_compiler_gnu=$ac_cv_c_compiler_gnu
19380
19381CC="$lt_save_CC"
19382
19383 else
19384 tagname=""
19385 fi
19386 ;;
19387
19388 RC)
19389
19390
19391# Source file extension for RC test sources.
19392ac_ext=rc
19393
19394# Object file extension for compiled RC test sources.
19395objext=o
19396objext_RC=$objext
19397
19398# Code to be used in simple compile tests
19399lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19400
19401# Code to be used in simple link tests
19402lt_simple_link_test_code="$lt_simple_compile_test_code"
19403
19404# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19405
19406# If no C compiler was specified, use CC.
19407LTCC=${LTCC-"$CC"}
19408
19409# If no C compiler flags were specified, use CFLAGS.
19410LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19411
19412# Allow CC to be a program name with arguments.
19413compiler=$CC
19414
19415
19416# save warnings/boilerplate of simple test code
19417ac_outfile=conftest.$ac_objext
19418echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19419eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19420_lt_compiler_boilerplate=`cat conftest.err`
19421$rm conftest*
19422
19423ac_outfile=conftest.$ac_objext
19424echo "$lt_simple_link_test_code" >conftest.$ac_ext
19425eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19426_lt_linker_boilerplate=`cat conftest.err`
19427$rm -r conftest*
19428
19429
19430# Allow CC to be a program name with arguments.
19431lt_save_CC="$CC"
19432CC=${RC-"windres"}
19433compiler=$CC
19434compiler_RC=$CC
19435for cc_temp in $compiler""; do
19436 case $cc_temp in
19437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19439 \-*) ;;
19440 *) break;;
19441 esac
19442done
19443cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19444
19445lt_cv_prog_compiler_c_o_RC=yes
19446
19447# The else clause should only fire when bootstrapping the
19448# libtool distribution, otherwise you forgot to ship ltmain.sh
19449# with your package, and you will get complaints that there are
19450# no rules to generate ltmain.sh.
19451if test -f "$ltmain"; then
19452 # See if we are running on zsh, and set the options which allow our commands through
19453 # without removal of \ escapes.
19454 if test -n "${ZSH_VERSION+set}" ; then
19455 setopt NO_GLOB_SUBST
19456 fi
19457 # Now quote all the things that may contain metacharacters while being
19458 # careful not to overquote the AC_SUBSTed values. We take copies of the
19459 # variables and quote the copies for generation of the libtool script.
19460 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19461 SED SHELL STRIP \
19462 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19463 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19464 deplibs_check_method reload_flag reload_cmds need_locks \
19465 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19466 lt_cv_sys_global_symbol_to_c_name_address \
19467 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19468 old_postinstall_cmds old_postuninstall_cmds \
19469 compiler_RC \
19470 CC_RC \
19471 LD_RC \
19472 lt_prog_compiler_wl_RC \
19473 lt_prog_compiler_pic_RC \
19474 lt_prog_compiler_static_RC \
19475 lt_prog_compiler_no_builtin_flag_RC \
19476 export_dynamic_flag_spec_RC \
19477 thread_safe_flag_spec_RC \
19478 whole_archive_flag_spec_RC \
19479 enable_shared_with_static_runtimes_RC \
19480 old_archive_cmds_RC \
19481 old_archive_from_new_cmds_RC \
19482 predep_objects_RC \
19483 postdep_objects_RC \
19484 predeps_RC \
19485 postdeps_RC \
19486 compiler_lib_search_path_RC \
19487 compiler_lib_search_dirs_RC \
19488 archive_cmds_RC \
19489 archive_expsym_cmds_RC \
19490 postinstall_cmds_RC \
19491 postuninstall_cmds_RC \
19492 old_archive_from_expsyms_cmds_RC \
19493 allow_undefined_flag_RC \
19494 no_undefined_flag_RC \
19495 export_symbols_cmds_RC \
19496 hardcode_libdir_flag_spec_RC \
19497 hardcode_libdir_flag_spec_ld_RC \
19498 hardcode_libdir_separator_RC \
19499 hardcode_automatic_RC \
19500 module_cmds_RC \
19501 module_expsym_cmds_RC \
19502 lt_cv_prog_compiler_c_o_RC \
19503 fix_srcfile_path_RC \
19504 exclude_expsyms_RC \
19505 include_expsyms_RC; do
19506
19507 case $var in
19508 old_archive_cmds_RC | \
19509 old_archive_from_new_cmds_RC | \
19510 archive_cmds_RC | \
19511 archive_expsym_cmds_RC | \
19512 module_cmds_RC | \
19513 module_expsym_cmds_RC | \
19514 old_archive_from_expsyms_cmds_RC | \
19515 export_symbols_cmds_RC | \
19516 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19517 postinstall_cmds | postuninstall_cmds | \
19518 old_postinstall_cmds | old_postuninstall_cmds | \
19519 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19520 # Double-quote double-evaled strings.
19521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19522 ;;
19523 *)
19524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19525 ;;
19526 esac
19527 done
19528
19529 case $lt_echo in
19530 *'\$0 --fallback-echo"')
19531 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19532 ;;
19533 esac
19534
19535cfgfile="$ofile"
19536
19537 cat <<__EOF__ >> "$cfgfile"
19538# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19539
19540# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19541
19542# Shell to use when invoking shell scripts.
19543SHELL=$lt_SHELL
19544
19545# Whether or not to build shared libraries.
19546build_libtool_libs=$enable_shared
19547
19548# Whether or not to build static libraries.
19549build_old_libs=$enable_static
19550
19551# Whether or not to add -lc for building shared libraries.
19552build_libtool_need_lc=$archive_cmds_need_lc_RC
19553
19554# Whether or not to disallow shared libs when runtime libs are static
19555allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19556
19557# Whether or not to optimize for fast installation.
19558fast_install=$enable_fast_install
19559
19560# The host system.
19561host_alias=$host_alias
19562host=$host
19563host_os=$host_os
19564
19565# The build system.
19566build_alias=$build_alias
19567build=$build
19568build_os=$build_os
19569
19570# An echo program that does not interpret backslashes.
19571echo=$lt_echo
19572
19573# The archiver.
19574AR=$lt_AR
19575AR_FLAGS=$lt_AR_FLAGS
19576
19577# A C compiler.
19578LTCC=$lt_LTCC
19579
19580# LTCC compiler flags.
19581LTCFLAGS=$lt_LTCFLAGS
19582
19583# A language-specific compiler.
19584CC=$lt_compiler_RC
19585
19586# Is the compiler the GNU C compiler?
19587with_gcc=$GCC_RC
19588
19589# An ERE matcher.
19590EGREP=$lt_EGREP
19591
19592# The linker used to build libraries.
19593LD=$lt_LD_RC
19594
19595# Whether we need hard or soft links.
19596LN_S=$lt_LN_S
19597
19598# A BSD-compatible nm program.
19599NM=$lt_NM
19600
19601# A symbol stripping program
19602STRIP=$lt_STRIP
19603
19604# Used to examine libraries when file_magic_cmd begins "file"
19605MAGIC_CMD=$MAGIC_CMD
19606
19607# Used on cygwin: DLL creation program.
19608DLLTOOL="$DLLTOOL"
19609
19610# Used on cygwin: object dumper.
19611OBJDUMP="$OBJDUMP"
19612
19613# Used on cygwin: assembler.
19614AS="$AS"
19615
19616# The name of the directory that contains temporary libtool files.
19617objdir=$objdir
19618
19619# How to create reloadable object files.
19620reload_flag=$lt_reload_flag
19621reload_cmds=$lt_reload_cmds
19622
19623# How to pass a linker flag through the compiler.
19624wl=$lt_lt_prog_compiler_wl_RC
19625
19626# Object file suffix (normally "o").
19627objext="$ac_objext"
19628
19629# Old archive suffix (normally "a").
19630libext="$libext"
19631
19632# Shared library suffix (normally ".so").
19633shrext_cmds='$shrext_cmds'
19634
19635# Executable file suffix (normally "").
19636exeext="$exeext"
19637
19638# Additional compiler flags for building library objects.
19639pic_flag=$lt_lt_prog_compiler_pic_RC
19640pic_mode=$pic_mode
19641
19642# What is the maximum length of a command?
19643max_cmd_len=$lt_cv_sys_max_cmd_len
19644
19645# Does compiler simultaneously support -c and -o options?
19646compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19647
19648# Must we lock files when doing compilation?
19649need_locks=$lt_need_locks
19650
19651# Do we need the lib prefix for modules?
19652need_lib_prefix=$need_lib_prefix
19653
19654# Do we need a version for libraries?
19655need_version=$need_version
19656
19657# Whether dlopen is supported.
19658dlopen_support=$enable_dlopen
19659
19660# Whether dlopen of programs is supported.
19661dlopen_self=$enable_dlopen_self
19662
19663# Whether dlopen of statically linked programs is supported.
19664dlopen_self_static=$enable_dlopen_self_static
19665
19666# Compiler flag to prevent dynamic linking.
19667link_static_flag=$lt_lt_prog_compiler_static_RC
19668
19669# Compiler flag to turn off builtin functions.
19670no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19671
19672# Compiler flag to allow reflexive dlopens.
19673export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19674
19675# Compiler flag to generate shared objects directly from archives.
19676whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19677
19678# Compiler flag to generate thread-safe objects.
19679thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19680
19681# Library versioning type.
19682version_type=$version_type
19683
19684# Format of library name prefix.
19685libname_spec=$lt_libname_spec
19686
19687# List of archive names. First name is the real one, the rest are links.
19688# The last name is the one that the linker finds with -lNAME.
19689library_names_spec=$lt_library_names_spec
19690
19691# The coded name of the library, if different from the real name.
19692soname_spec=$lt_soname_spec
19693
19694# Commands used to build and install an old-style archive.
19695RANLIB=$lt_RANLIB
19696old_archive_cmds=$lt_old_archive_cmds_RC
19697old_postinstall_cmds=$lt_old_postinstall_cmds
19698old_postuninstall_cmds=$lt_old_postuninstall_cmds
19699
19700# Create an old-style archive from a shared archive.
19701old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19702
19703# Create a temporary old-style archive to link instead of a shared archive.
19704old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19705
19706# Commands used to build and install a shared archive.
19707archive_cmds=$lt_archive_cmds_RC
19708archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19709postinstall_cmds=$lt_postinstall_cmds
19710postuninstall_cmds=$lt_postuninstall_cmds
19711
19712# Commands used to build a loadable module (assumed same as above if empty)
19713module_cmds=$lt_module_cmds_RC
19714module_expsym_cmds=$lt_module_expsym_cmds_RC
19715
19716# Commands to strip libraries.
19717old_striplib=$lt_old_striplib
19718striplib=$lt_striplib
19719
19720# Dependencies to place before the objects being linked to create a
19721# shared library.
19722predep_objects=$lt_predep_objects_RC
19723
19724# Dependencies to place after the objects being linked to create a
19725# shared library.
19726postdep_objects=$lt_postdep_objects_RC
19727
19728# Dependencies to place before the objects being linked to create a
19729# shared library.
19730predeps=$lt_predeps_RC
19731
19732# Dependencies to place after the objects being linked to create a
19733# shared library.
19734postdeps=$lt_postdeps_RC
19735
19736# The directories searched by this compiler when creating a shared
19737# library
19738compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19739
19740# The library search path used internally by the compiler when linking
19741# a shared library.
19742compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19743
19744# Method to check whether dependent libraries are shared objects.
19745deplibs_check_method=$lt_deplibs_check_method
19746
19747# Command to use when deplibs_check_method == file_magic.
19748file_magic_cmd=$lt_file_magic_cmd
19749
19750# Flag that allows shared libraries with undefined symbols to be built.
19751allow_undefined_flag=$lt_allow_undefined_flag_RC
19752
19753# Flag that forces no undefined symbols.
19754no_undefined_flag=$lt_no_undefined_flag_RC
19755
19756# Commands used to finish a libtool library installation in a directory.
19757finish_cmds=$lt_finish_cmds
19758
19759# Same as above, but a single script fragment to be evaled but not shown.
19760finish_eval=$lt_finish_eval
19761
19762# Take the output of nm and produce a listing of raw symbols and C names.
19763global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19764
19765# Transform the output of nm in a proper C declaration
19766global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19767
19768# Transform the output of nm in a C name address pair
19769global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19770
19771# This is the shared library runtime path variable.
19772runpath_var=$runpath_var
19773
19774# This is the shared library path variable.
19775shlibpath_var=$shlibpath_var
19776
19777# Is shlibpath searched before the hard-coded library search path?
19778shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19779
19780# How to hardcode a shared library path into an executable.
19781hardcode_action=$hardcode_action_RC
19782
19783# Whether we should hardcode library paths into libraries.
19784hardcode_into_libs=$hardcode_into_libs
19785
19786# Flag to hardcode \$libdir into a binary during linking.
19787# This must work even if \$libdir does not exist.
19788hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19789
19790# If ld is used when linking, flag to hardcode \$libdir into
19791# a binary during linking. This must work even if \$libdir does
19792# not exist.
19793hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19794
19795# Whether we need a single -rpath flag with a separated argument.
19796hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19797
19798# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19799# resulting binary.
19800hardcode_direct=$hardcode_direct_RC
19801
19802# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19803# resulting binary.
19804hardcode_minus_L=$hardcode_minus_L_RC
19805
19806# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19807# the resulting binary.
19808hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19809
19810# Set to yes if building a shared library automatically hardcodes DIR into the library
19811# and all subsequent libraries and executables linked against it.
19812hardcode_automatic=$hardcode_automatic_RC
19813
19814# Variables whose values should be saved in libtool wrapper scripts and
19815# restored at relink time.
19816variables_saved_for_relink="$variables_saved_for_relink"
19817
19818# Whether libtool must link a program against all its dependency libraries.
19819link_all_deplibs=$link_all_deplibs_RC
19820
19821# Compile-time system search path for libraries
19822sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19823
19824# Run-time system search path for libraries
19825sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19826
19827# Fix the shell variable \$srcfile for the compiler.
19828fix_srcfile_path=$lt_fix_srcfile_path
19829
19830# Set to yes if exported symbols are required.
19831always_export_symbols=$always_export_symbols_RC
19832
19833# The commands to list exported symbols.
19834export_symbols_cmds=$lt_export_symbols_cmds_RC
19835
19836# The commands to extract the exported symbol list from a shared archive.
19837extract_expsyms_cmds=$lt_extract_expsyms_cmds
19838
19839# Symbols that should not be listed in the preloaded symbols.
19840exclude_expsyms=$lt_exclude_expsyms_RC
19841
19842# Symbols that must always be exported.
19843include_expsyms=$lt_include_expsyms_RC
19844
19845# ### END LIBTOOL TAG CONFIG: $tagname
19846
19847__EOF__
19848
19849
19850else
19851 # If there is no Makefile yet, we rely on a make rule to execute
19852 # `config.status --recheck' to rerun these tests and create the
19853 # libtool script then.
19854 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19855 if test -f "$ltmain_in"; then
19856 test -f Makefile && make "$ltmain"
19857 fi
19858fi
19859
19860
19861ac_ext=c
19862ac_cpp='$CPP $CPPFLAGS'
19863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865ac_compiler_gnu=$ac_cv_c_compiler_gnu
19866
19867CC="$lt_save_CC"
19868
19869 ;;
19870
19871 *)
19872 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19873echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19874 { (exit 1); exit 1; }; }
19875 ;;
19876 esac
19877
19878 # Append the new tag name to the list of available tags.
19879 if test -n "$tagname" ; then
19880 available_tags="$available_tags $tagname"
19881 fi
19882 fi
19883 done
19884 IFS="$lt_save_ifs"
19885
19886 # Now substitute the updated list of available tags.
19887 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19888 mv "${ofile}T" "$ofile"
19889 chmod +x "$ofile"
19890 else
19891 rm -f "${ofile}T"
19892 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19893echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19894 { (exit 1); exit 1; }; }
19895 fi
19896fi
19897
19898
19899
19900# This can be used to rebuild libtool when needed
19901LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19902
19903# Always use our own libtool.
19904LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19905
19906# Prevent multiple expansion
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928# Checks for header files.
19929{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19930echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19931if test "${ac_cv_header_stdc+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19933else
19934 cat >conftest.$ac_ext <<_ACEOF
19935/* confdefs.h. */
19936_ACEOF
19937cat confdefs.h >>conftest.$ac_ext
19938cat >>conftest.$ac_ext <<_ACEOF
19939/* end confdefs.h. */
19940#include <stdlib.h>
19941#include <stdarg.h>
19942#include <string.h>
19943#include <float.h>
19944
19945int
19946main ()
19947{
19948
19949 ;
19950 return 0;
19951}
19952_ACEOF
19953rm -f conftest.$ac_objext
19954if { (ac_try="$ac_compile"
19955case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19958esac
19959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960 (eval "$ac_compile") 2>conftest.er1
19961 ac_status=$?
19962 grep -v '^ *+' conftest.er1 >conftest.err
19963 rm -f conftest.er1
19964 cat conftest.err >&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } && {
19967 test -z "$ac_c_werror_flag" ||
19968 test ! -s conftest.err
19969 } && test -s conftest.$ac_objext; then
19970 ac_cv_header_stdc=yes
19971else
19972 echo "$as_me: failed program was:" >&5
19973sed 's/^/| /' conftest.$ac_ext >&5
19974
19975 ac_cv_header_stdc=no
19976fi
19977
19978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19979
19980if test $ac_cv_header_stdc = yes; then
19981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19982 cat >conftest.$ac_ext <<_ACEOF
19983/* confdefs.h. */
19984_ACEOF
19985cat confdefs.h >>conftest.$ac_ext
19986cat >>conftest.$ac_ext <<_ACEOF
19987/* end confdefs.h. */
19988#include <string.h>
19989
19990_ACEOF
19991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19992 $EGREP "memchr" >/dev/null 2>&1; then
19993 :
19994else
19995 ac_cv_header_stdc=no
19996fi
19997rm -f conftest*
19998
19999fi
20000
20001if test $ac_cv_header_stdc = yes; then
20002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20003 cat >conftest.$ac_ext <<_ACEOF
20004/* confdefs.h. */
20005_ACEOF
20006cat confdefs.h >>conftest.$ac_ext
20007cat >>conftest.$ac_ext <<_ACEOF
20008/* end confdefs.h. */
20009#include <stdlib.h>
20010
20011_ACEOF
20012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20013 $EGREP "free" >/dev/null 2>&1; then
20014 :
20015else
20016 ac_cv_header_stdc=no
20017fi
20018rm -f conftest*
20019
20020fi
20021
20022if test $ac_cv_header_stdc = yes; then
20023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20024 if test "$cross_compiling" = yes; then
20025 :
20026else
20027 cat >conftest.$ac_ext <<_ACEOF
20028/* confdefs.h. */
20029_ACEOF
20030cat confdefs.h >>conftest.$ac_ext
20031cat >>conftest.$ac_ext <<_ACEOF
20032/* end confdefs.h. */
20033#include <ctype.h>
20034#include <stdlib.h>
20035#if ((' ' & 0x0FF) == 0x020)
20036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20038#else
20039# define ISLOWER(c) \
20040 (('a' <= (c) && (c) <= 'i') \
20041 || ('j' <= (c) && (c) <= 'r') \
20042 || ('s' <= (c) && (c) <= 'z'))
20043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20044#endif
20045
20046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20047int
20048main ()
20049{
20050 int i;
20051 for (i = 0; i < 256; i++)
20052 if (XOR (islower (i), ISLOWER (i))
20053 || toupper (i) != TOUPPER (i))
20054 return 2;
20055 return 0;
20056}
20057_ACEOF
20058rm -f conftest$ac_exeext
20059if { (ac_try="$ac_link"
20060case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20063esac
20064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_link") 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20069 { (case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20072esac
20073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074 (eval "$ac_try") 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 :
20079else
20080 echo "$as_me: program exited with status $ac_status" >&5
20081echo "$as_me: failed program was:" >&5
20082sed 's/^/| /' conftest.$ac_ext >&5
20083
20084( exit $ac_status )
20085ac_cv_header_stdc=no
20086fi
20087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20088fi
20089
20090
20091fi
20092fi
20093{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20094echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20095if test $ac_cv_header_stdc = yes; then
20096
20097cat >>confdefs.h <<\_ACEOF
20098#define STDC_HEADERS 1
20099_ACEOF
20100
20101fi
20102
20103
20104
20105
20106
20107for ac_header in fcntl.h stdlib.h string.h unistd.h
20108do
20109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115fi
20116ac_res=`eval echo '${'$as_ac_Header'}'`
20117 { echo "$as_me:$LINENO: result: $ac_res" >&5
20118echo "${ECHO_T}$ac_res" >&6; }
20119else
20120 # Is the header compilable?
20121{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20123cat >conftest.$ac_ext <<_ACEOF
20124/* confdefs.h. */
20125_ACEOF
20126cat confdefs.h >>conftest.$ac_ext
20127cat >>conftest.$ac_ext <<_ACEOF
20128/* end confdefs.h. */
20129$ac_includes_default
20130#include <$ac_header>
20131_ACEOF
20132rm -f conftest.$ac_objext
20133if { (ac_try="$ac_compile"
20134case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20137esac
20138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_compile") 2>conftest.er1
20140 ac_status=$?
20141 grep -v '^ *+' conftest.er1 >conftest.err
20142 rm -f conftest.er1
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && {
20146 test -z "$ac_c_werror_flag" ||
20147 test ! -s conftest.err
20148 } && test -s conftest.$ac_objext; then
20149 ac_header_compiler=yes
20150else
20151 echo "$as_me: failed program was:" >&5
20152sed 's/^/| /' conftest.$ac_ext >&5
20153
20154 ac_header_compiler=no
20155fi
20156
20157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20158{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20159echo "${ECHO_T}$ac_header_compiler" >&6; }
20160
20161# Is the header present?
20162{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20164cat >conftest.$ac_ext <<_ACEOF
20165/* confdefs.h. */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h. */
20170#include <$ac_header>
20171_ACEOF
20172if { (ac_try="$ac_cpp conftest.$ac_ext"
20173case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20176esac
20177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20179 ac_status=$?
20180 grep -v '^ *+' conftest.er1 >conftest.err
20181 rm -f conftest.er1
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } >/dev/null && {
20185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20187 }; then
20188 ac_header_preproc=yes
20189else
20190 echo "$as_me: failed program was:" >&5
20191sed 's/^/| /' conftest.$ac_ext >&5
20192
20193 ac_header_preproc=no
20194fi
20195
20196rm -f conftest.err conftest.$ac_ext
20197{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20198echo "${ECHO_T}$ac_header_preproc" >&6; }
20199
20200# So? What about this header?
20201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20202 yes:no: )
20203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20207 ac_header_preproc=yes
20208 ;;
20209 no:yes:* )
20210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20213echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20217echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20222 ( cat <<\_ASBOX
20223## -------------------------------------------- ##
20224## Report this to sebastian.marsching@suphp.org ##
20225## -------------------------------------------- ##
20226_ASBOX
20227 ) | sed "s/^/$as_me: WARNING: /" >&2
20228 ;;
20229esac
20230{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20234else
20235 eval "$as_ac_Header=\$ac_header_preproc"
20236fi
20237ac_res=`eval echo '${'$as_ac_Header'}'`
20238 { echo "$as_me:$LINENO: result: $ac_res" >&5
20239echo "${ECHO_T}$ac_res" >&6; }
20240
20241fi
20242if test `eval echo '${'$as_ac_Header'}'` = yes; then
20243 cat >>confdefs.h <<_ACEOF
20244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20245_ACEOF
20246
20247fi
20248
20249done
20250
20251
20252# Find apr-config
20253
20254
20255 apr_found="no"
20256
20257 if test "$ac_cv_emxos2" = "yes"; then
20258 # Scripts don't pass test -x on OS/2
20259 TEST_X="test -f"
20260 else
20261 TEST_X="test -x"
20262 fi
20263
20264 { echo "$as_me:$LINENO: checking for APR" >&5
20265echo $ECHO_N "checking for APR... $ECHO_C" >&6; }
20266
20267# Check whether --with-apr was given.
20268if test "${with_apr+set}" = set; then
20269 withval=$with_apr;
20270 if test "$withval" = "no" || test "$withval" = "yes"; then
20271 { { echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
20272echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
20273 { (exit 1); exit 1; }; }
20274 fi
20275
20276 if $TEST_X "$withval/bin/apr-config"; then
20277 apr_found="yes"
20278 apr_config="$withval/bin/apr-config"
20279 elif $TEST_X "$withval/apr-config"; then
20280 apr_found="yes"
20281 apr_config="$withval/apr-config"
20282 elif $TEST_X "$withval/bin/apr-1-config"; then
20283 apr_found="yes"
20284 apr_config="$withval/bin/apr-1-config"
20285 elif $TEST_X "$withval/apr-1-config"; then
20286 apr_found="yes"
20287 apr_config="$withval/apr-1-config"
20288 elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
20289 apr_found="yes"
20290 apr_config="$withval"
20291 fi
20292
20293 if test "$apr_found" != "yes"; then
20294 { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
20295build directory, or an apr-config file." >&5
20296echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
20297build directory, or an apr-config file." >&2;}
20298 { (exit 1); exit 1; }; }
20299 fi
20300
20301else
20302
20303 if test -d ""; then
20304 apr_temp_abs_srcdir="`cd && pwd`"
20305 apr_found="reconfig"
20306 if test -n ""; then
20307 apr_config="/apr-config"
20308 else
20309 apr_config="/apr-config"
20310 fi
20311 fi
20312 if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
20313 if apr-config --help > /dev/null 2>&1 ; then
20314 apr_found="yes"
20315 apr_config="apr-config"
20316 else
20317 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
20318 if $TEST_X "$lookdir/bin/apr-config"; then
20319 apr_found="yes"
20320 apr_config="$lookdir/bin/apr-config"
20321 break
20322 fi
20323 done
20324 fi
20325 fi
20326
20327fi
20328
20329
20330 { echo "$as_me:$LINENO: result: $apr_found" >&5
20331echo "${ECHO_T}$apr_found" >&6; }
20332
20333
20334# Determine Apache version and find apxs
20335
20336{ echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
20337echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6; }
20338
20339# Check whether --with-apxs was given.
20340if test "${with_apxs+set}" = set; then
20341 withval=$with_apxs;
20342 if test "$withval" = "yes"; then
20343 APXS=apxs
20344 else
20345 APXS="$withval"
20346 fi
20347
20348fi
20349
20350
20351if test -z "$APXS"; then
20352 APXS=`which apxs`
20353fi
20354
20355if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
20356 for i in /usr/sbin /usr/local/apache/bin ; do
20357 if test -f "$i/apxs"; then
20358 APXS="$i/apxs"
20359 fi
20360 done
20361fi
20362
20363if test -n "$APXS"; then
20364
20365
20366 APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
20367 | grep "Server version" \
20368 | cut -f2 -d":" \
20369 | cut -f2 -d"/" \
20370 | cut -f1 -d" "`
20371 major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
20372 if test "$major_version" = "2.0" -o "$major_version" = "2.2"; then
20373 APACHE_VERSION_2=true
20374 APACHE_VERSION_1_3=false
20375 else
20376 APACHE_VERSION_2=false
20377 APACHE_VERSION_1_3=true
20378 fi
20379
20380
20381
20382 APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
20383 APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
20384 if test x"${APACHE_VERSION_2}" = xtrue ; then \
20385 APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS`
20386 fi
20387 if test x"${APACHE_VERSION_1_3}" = xtrue; then \
20388 APXS_EXTRA_CFLAGS=`$APXS -q CFLAGS`
20389 fi
20390
20391
20392
20393
20394 { echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
20395echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6; }
20396else
20397 APXS="/notfound/"
20398
20399
20400 { echo "$as_me:$LINENO: result: no" >&5
20401echo "${ECHO_T}no" >&6; }
20402fi
20403
20404if test x"${APACHE_VERSION_2}" = xtrue ; then \
20405 if test x"${apr_found}" = xyes ; then \
20406 APR_INCLUDEDIR=`${apr_config} --includedir`
20407
20408 APR_CPPFLAGS=`${apr_config} --cppflags`
20409
20410 else
20411 { { echo "$as_me:$LINENO: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&5
20412echo "$as_me: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&2;}
20413 { (exit 1); exit 1; }; }
20414 fi
20415fi
20416
20417# Get uid/gid mode
20418
20419{ echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
20420echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6; }
20421
20422# Check whether --with-setid-mode was given.
20423if test "${with_setid_mode+set}" = set; then
20424 withval=$with_setid_mode;
20425 if test "$withval" = "yes"; then
20426 SETID_MODE="paranoid"
20427 else
20428 SETID_MODE="$withval"
20429 fi
20430
20431fi
20432
20433
20434if test -z "$SETID_MODE" ; then
20435 SETID_MODE="paranoid"
20436fi
20437
20438if test -n "$SETID_MODE"; then
20439 case "$SETID_MODE" in
20440 owner)
20441 OPT_APACHEMOD_USERGROUP_DEF=""
20442
20443
20444cat >>confdefs.h <<\_ACEOF
20445#define OPT_USERGROUP_OWNER 1
20446_ACEOF
20447
20448 ;;
20449 force)
20450 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
20451
20452
20453cat >>confdefs.h <<\_ACEOF
20454#define OPT_USERGROUP_FORCE 1
20455_ACEOF
20456
20457 ;;
20458 paranoid)
20459 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
20460
20461
20462cat >>confdefs.h <<\_ACEOF
20463#define OPT_USERGROUP_PARANOID 1
20464_ACEOF
20465
20466 ;;
20467 *)
20468 { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
20469echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
20470 { (exit 1); exit 1; }; }
20471 ;;
20472 esac
20473 { echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
20474echo "${ECHO_T}ok - using $SETID_MODE" >&6; }
20475fi
20476
20477
20478# Checkpath (docroot) option
20479
20480checkpath=yes
20481# Check whether --enable-checkpath was given.
20482if test "${enable_checkpath+set}" = set; then
20483 enableval=$enable_checkpath;
20484 if test "$enableval" = "no"; then
20485 checkpath=no
20486
20487cat >>confdefs.h <<\_ACEOF
20488#define OPT_DISABLE_CHECKPATH 1
20489_ACEOF
20490
20491 fi
20492
20493fi
20494
20495
20496
20497# Minimum UID
20498
20499
20500# Check whether --with-min-uid was given.
20501if test "${with_min_uid+set}" = set; then
20502 withval=$with_min_uid;
20503 if test "$withval" -a ! "$withval" = "yes" ; then
20504
20505cat >>confdefs.h <<_ACEOF
20506#define OPT_MIN_UID $withval
20507_ACEOF
20508
20509 fi
20510
20511else
20512
20513
20514cat >>confdefs.h <<\_ACEOF
20515#define OPT_MIN_UID 100
20516_ACEOF
20517
20518
20519fi
20520
20521
20522# Minimum GID
20523
20524
20525# Check whether --with-min-gid was given.
20526if test "${with_min_gid+set}" = set; then
20527 withval=$with_min_gid;
20528 if test "$withval" -a ! "$withval" = "yes" ; then
20529
20530cat >>confdefs.h <<_ACEOF
20531#define OPT_MIN_GID $withval
20532_ACEOF
20533
20534 fi
20535
20536else
20537
20538
20539cat >>confdefs.h <<\_ACEOF
20540#define OPT_MIN_GID 100
20541_ACEOF
20542
20543
20544fi
20545
20546
20547
20548# Webserver user
20549
20550
20551# Check whether --with-apache-user was given.
20552if test "${with_apache_user+set}" = set; then
20553 withval=$with_apache_user;
20554 if test "$withval" -a ! "$withval" = "yes" ; then
20555
20556cat >>confdefs.h <<_ACEOF
20557#define OPT_APACHE_USER "$withval"
20558_ACEOF
20559
20560 fi
20561
20562else
20563
20564
20565cat >>confdefs.h <<_ACEOF
20566#define OPT_APACHE_USER "wwwrun"
20567_ACEOF
20568
20569
20570fi
20571
20572
20573# Path to logfile
20574
20575
20576# Check whether --with-logfile was given.
20577if test "${with_logfile+set}" = set; then
20578 withval=$with_logfile;
20579 if test "$withval" -a ! "$withval" = "yes" ; then
20580
20581cat >>confdefs.h <<_ACEOF
20582#define OPT_LOGFILE "$withval"
20583_ACEOF
20584
20585 fi
20586
20587else
20588
20589
20590cat >>confdefs.h <<_ACEOF
20591#define OPT_LOGFILE "/var/log/httpd/suphp_log"
20592_ACEOF
20593
20594
20595fi
20596
20597
20598
20599# Conditional building of Apache module
20600 if test x"$APACHE_VERSION_1_3" = xtrue; then
20601 COND_AP13_TRUE=
20602 COND_AP13_FALSE='#'
20603else
20604 COND_AP13_TRUE='#'
20605 COND_AP13_FALSE=
20606fi
20607
20608 if test x"$APACHE_VERSION_2" = xtrue; then
20609 COND_AP20_TRUE=
20610 COND_AP20_FALSE='#'
20611else
20612 COND_AP20_TRUE='#'
20613 COND_AP20_FALSE=
20614fi
20615
20616
20617# Conditionally include UserGroup support
20618 if test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ; then
20619 COND_APUSERGROUP_TRUE=
20620 COND_APUSERGROUP_FALSE='#'
20621else
20622 COND_APUSERGROUP_TRUE='#'
20623 COND_APUSERGROUP_FALSE=
20624fi
20625
20626
20627ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
20628
20629cat >confcache <<\_ACEOF
20630# This file is a shell script that caches the results of configure
20631# tests run on this system so they can be shared between configure
20632# scripts and configure runs, see configure's option --config-cache.
20633# It is not useful on other systems. If it contains results you don't
20634# want to keep, you may remove or edit it.
20635#
20636# config.status only pays attention to the cache file if you give it
20637# the --recheck option to rerun configure.
20638#
20639# `ac_cv_env_foo' variables (set or unset) will be overridden when
20640# loading this file, other *unset* `ac_cv_foo' will be assigned the
20641# following values.
20642
20643_ACEOF
20644
20645# The following way of writing the cache mishandles newlines in values,
20646# but we know of no workaround that is simple, portable, and efficient.
20647# So, we kill variables containing newlines.
20648# Ultrix sh set writes to stderr and can't be redirected directly,
20649# and sets the high bit in the cache file unless we assign to the vars.
20650(
20651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20652 eval ac_val=\$$ac_var
20653 case $ac_val in #(
20654 *${as_nl}*)
20655 case $ac_var in #(
20656 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20657echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20658 esac
20659 case $ac_var in #(
20660 _ | IFS | as_nl) ;; #(
20661 *) $as_unset $ac_var ;;
20662 esac ;;
20663 esac
20664 done
20665
20666 (set) 2>&1 |
20667 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20668 *${as_nl}ac_space=\ *)
20669 # `set' does not quote correctly, so add quotes (double-quote
20670 # substitution turns \\\\ into \\, and sed turns \\ into \).
20671 sed -n \
20672 "s/'/'\\\\''/g;
20673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20674 ;; #(
20675 *)
20676 # `set' quotes correctly as required by POSIX, so do not add quotes.
20677 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20678 ;;
20679 esac |
20680 sort
20681) |
20682 sed '
20683 /^ac_cv_env_/b end
20684 t clear
20685 :clear
20686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20687 t end
20688 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20689 :end' >>confcache
20690if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20691 if test -w "$cache_file"; then
20692 test "x$cache_file" != "x/dev/null" &&
20693 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20694echo "$as_me: updating cache $cache_file" >&6;}
20695 cat confcache >$cache_file
20696 else
20697 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20698echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20699 fi
20700fi
20701rm -f confcache
20702
20703test "x$prefix" = xNONE && prefix=$ac_default_prefix
20704# Let make expand exec_prefix.
20705test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20706
20707DEFS=-DHAVE_CONFIG_H
20708
20709ac_libobjs=
20710ac_ltlibobjs=
20711for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20712 # 1. Remove the extension, and $U if already installed.
20713 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20714 ac_i=`echo "$ac_i" | sed "$ac_script"`
20715 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20716 # will be set to the directory where LIBOBJS objects are built.
20717 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20718 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20719done
20720LIBOBJS=$ac_libobjs
20721
20722LTLIBOBJS=$ac_ltlibobjs
20723
20724
20725if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20726 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20727Usually this means the macro was only invoked conditionally." >&5
20728echo "$as_me: error: conditional \"AMDEP\" was never defined.
20729Usually this means the macro was only invoked conditionally." >&2;}
20730 { (exit 1); exit 1; }; }
20731fi
20732if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20733 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20734Usually this means the macro was only invoked conditionally." >&5
20735echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20736Usually this means the macro was only invoked conditionally." >&2;}
20737 { (exit 1); exit 1; }; }
20738fi
20739if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20740 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20741Usually this means the macro was only invoked conditionally." >&5
20742echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20743Usually this means the macro was only invoked conditionally." >&2;}
20744 { (exit 1); exit 1; }; }
20745fi
20746if test -z "${COND_AP13_TRUE}" && test -z "${COND_AP13_FALSE}"; then
20747 { { echo "$as_me:$LINENO: error: conditional \"COND_AP13\" was never defined.
20748Usually this means the macro was only invoked conditionally." >&5
20749echo "$as_me: error: conditional \"COND_AP13\" was never defined.
20750Usually this means the macro was only invoked conditionally." >&2;}
20751 { (exit 1); exit 1; }; }
20752fi
20753if test -z "${COND_AP20_TRUE}" && test -z "${COND_AP20_FALSE}"; then
20754 { { echo "$as_me:$LINENO: error: conditional \"COND_AP20\" was never defined.
20755Usually this means the macro was only invoked conditionally." >&5
20756echo "$as_me: error: conditional \"COND_AP20\" was never defined.
20757Usually this means the macro was only invoked conditionally." >&2;}
20758 { (exit 1); exit 1; }; }
20759fi
20760if test -z "${COND_APUSERGROUP_TRUE}" && test -z "${COND_APUSERGROUP_FALSE}"; then
20761 { { echo "$as_me:$LINENO: error: conditional \"COND_APUSERGROUP\" was never defined.
20762Usually this means the macro was only invoked conditionally." >&5
20763echo "$as_me: error: conditional \"COND_APUSERGROUP\" was never defined.
20764Usually this means the macro was only invoked conditionally." >&2;}
20765 { (exit 1); exit 1; }; }
20766fi
20767
20768: ${CONFIG_STATUS=./config.status}
20769ac_clean_files_save=$ac_clean_files
20770ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20771{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20772echo "$as_me: creating $CONFIG_STATUS" >&6;}
20773cat >$CONFIG_STATUS <<_ACEOF
20774#! $SHELL
20775# Generated by $as_me.
20776# Run this file to recreate the current configuration.
20777# Compiler output produced by configure, useful for debugging
20778# configure, is in config.log if it exists.
20779
20780debug=false
20781ac_cs_recheck=false
20782ac_cs_silent=false
20783SHELL=\${CONFIG_SHELL-$SHELL}
20784_ACEOF
20785
20786cat >>$CONFIG_STATUS <<\_ACEOF
20787## --------------------- ##
20788## M4sh Initialization. ##
20789## --------------------- ##
20790
20791# Be more Bourne compatible
20792DUALCASE=1; export DUALCASE # for MKS sh
20793if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20794 emulate sh
20795 NULLCMD=:
20796 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20797 # is contrary to our usage. Disable this feature.
20798 alias -g '${1+"$@"}'='"$@"'
20799 setopt NO_GLOB_SUBST
20800else
20801 case `(set -o) 2>/dev/null` in
20802 *posix*) set -o posix ;;
20803esac
20804
20805fi
20806
20807
20808
20809
20810# PATH needs CR
20811# Avoid depending upon Character Ranges.
20812as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20813as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20814as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20815as_cr_digits='0123456789'
20816as_cr_alnum=$as_cr_Letters$as_cr_digits
20817
20818# The user is always right.
20819if test "${PATH_SEPARATOR+set}" != set; then
20820 echo "#! /bin/sh" >conf$$.sh
20821 echo "exit 0" >>conf$$.sh
20822 chmod +x conf$$.sh
20823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20824 PATH_SEPARATOR=';'
20825 else
20826 PATH_SEPARATOR=:
20827 fi
20828 rm -f conf$$.sh
20829fi
20830
20831# Support unset when possible.
20832if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20833 as_unset=unset
20834else
20835 as_unset=false
20836fi
20837
20838
20839# IFS
20840# We need space, tab and new line, in precisely that order. Quoting is
20841# there to prevent editors from complaining about space-tab.
20842# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20843# splitting by setting IFS to empty value.)
20844as_nl='
20845'
20846IFS=" "" $as_nl"
20847
20848# Find who we are. Look in the path if we contain no directory separator.
20849case $0 in
20850 *[\\/]* ) as_myself=$0 ;;
20851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20852for as_dir in $PATH
20853do
20854 IFS=$as_save_IFS
20855 test -z "$as_dir" && as_dir=.
20856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20857done
20858IFS=$as_save_IFS
20859
20860 ;;
20861esac
20862# We did not find ourselves, most probably we were run as `sh COMMAND'
20863# in which case we are not to be found in the path.
20864if test "x$as_myself" = x; then
20865 as_myself=$0
20866fi
20867if test ! -f "$as_myself"; then
20868 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20869 { (exit 1); exit 1; }
20870fi
20871
20872# Work around bugs in pre-3.0 UWIN ksh.
20873for as_var in ENV MAIL MAILPATH
20874do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20875done
20876PS1='$ '
20877PS2='> '
20878PS4='+ '
20879
20880# NLS nuisances.
20881for as_var in \
20882 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20883 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20884 LC_TELEPHONE LC_TIME
20885do
20886 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20887 eval $as_var=C; export $as_var
20888 else
20889 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20890 fi
20891done
20892
20893# Required to use basename.
20894if expr a : '\(a\)' >/dev/null 2>&1 &&
20895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20896 as_expr=expr
20897else
20898 as_expr=false
20899fi
20900
20901if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20902 as_basename=basename
20903else
20904 as_basename=false
20905fi
20906
20907
20908# Name of the executable.
20909as_me=`$as_basename -- "$0" ||
20910$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20911 X"$0" : 'X\(//\)$' \| \
20912 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20913echo X/"$0" |
20914 sed '/^.*\/\([^/][^/]*\)\/*$/{
20915 s//\1/
20916 q
20917 }
20918 /^X\/\(\/\/\)$/{
20919 s//\1/
20920 q
20921 }
20922 /^X\/\(\/\).*/{
20923 s//\1/
20924 q
20925 }
20926 s/.*/./; q'`
20927
20928# CDPATH.
20929$as_unset CDPATH
20930
20931
20932
20933 as_lineno_1=$LINENO
20934 as_lineno_2=$LINENO
20935 test "x$as_lineno_1" != "x$as_lineno_2" &&
20936 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20937
20938 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20939 # uniformly replaced by the line number. The first 'sed' inserts a
20940 # line-number line after each line using $LINENO; the second 'sed'
20941 # does the real work. The second script uses 'N' to pair each
20942 # line-number line with the line containing $LINENO, and appends
20943 # trailing '-' during substitution so that $LINENO is not a special
20944 # case at line end.
20945 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20946 # scripts with optimization help from Paolo Bonzini. Blame Lee
20947 # E. McMahon (1931-1989) for sed's syntax. :-)
20948 sed -n '
20949 p
20950 /[$]LINENO/=
20951 ' <$as_myself |
20952 sed '
20953 s/[$]LINENO.*/&-/
20954 t lineno
20955 b
20956 :lineno
20957 N
20958 :loop
20959 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20960 t loop
20961 s/-\n.*//
20962 ' >$as_me.lineno &&
20963 chmod +x "$as_me.lineno" ||
20964 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20965 { (exit 1); exit 1; }; }
20966
20967 # Don't try to exec as it changes $[0], causing all sort of problems
20968 # (the dirname of $[0] is not the place where we might find the
20969 # original and so on. Autoconf is especially sensitive to this).
20970 . "./$as_me.lineno"
20971 # Exit status is that of the last command.
20972 exit
20973}
20974
20975
20976if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20977 as_dirname=dirname
20978else
20979 as_dirname=false
20980fi
20981
20982ECHO_C= ECHO_N= ECHO_T=
20983case `echo -n x` in
20984-n*)
20985 case `echo 'x\c'` in
20986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20987 *) ECHO_C='\c';;
20988 esac;;
20989*)
20990 ECHO_N='-n';;
20991esac
20992
20993if expr a : '\(a\)' >/dev/null 2>&1 &&
20994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20995 as_expr=expr
20996else
20997 as_expr=false
20998fi
20999
21000rm -f conf$$ conf$$.exe conf$$.file
21001if test -d conf$$.dir; then
21002 rm -f conf$$.dir/conf$$.file
21003else
21004 rm -f conf$$.dir
21005 mkdir conf$$.dir
21006fi
21007echo >conf$$.file
21008if ln -s conf$$.file conf$$ 2>/dev/null; then
21009 as_ln_s='ln -s'
21010 # ... but there are two gotchas:
21011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21013 # In both cases, we have to default to `cp -p'.
21014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21015 as_ln_s='cp -p'
21016elif ln conf$$.file conf$$ 2>/dev/null; then
21017 as_ln_s=ln
21018else
21019 as_ln_s='cp -p'
21020fi
21021rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21022rmdir conf$$.dir 2>/dev/null
21023
21024if mkdir -p . 2>/dev/null; then
21025 as_mkdir_p=:
21026else
21027 test -d ./-p && rmdir ./-p
21028 as_mkdir_p=false
21029fi
21030
21031if test -x / >/dev/null 2>&1; then
21032 as_test_x='test -x'
21033else
21034 if ls -dL / >/dev/null 2>&1; then
21035 as_ls_L_option=L
21036 else
21037 as_ls_L_option=
21038 fi
21039 as_test_x='
21040 eval sh -c '\''
21041 if test -d "$1"; then
21042 test -d "$1/.";
21043 else
21044 case $1 in
21045 -*)set "./$1";;
21046 esac;
21047 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21048 ???[sx]*):;;*)false;;esac;fi
21049 '\'' sh
21050 '
21051fi
21052as_executable_p=$as_test_x
21053
21054# Sed expression to map a string onto a valid CPP name.
21055as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21056
21057# Sed expression to map a string onto a valid variable name.
21058as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21059
21060
21061exec 6>&1
21062
21063# Save the log message, to keep $[0] and so on meaningful, and to
21064# report actual input values of CONFIG_FILES etc. instead of their
21065# values after options handling.
21066ac_log="
21067This file was extended by suPHP $as_me 0.7.1, which was
21068generated by GNU Autoconf 2.61. Invocation command line was
21069
21070 CONFIG_FILES = $CONFIG_FILES
21071 CONFIG_HEADERS = $CONFIG_HEADERS
21072 CONFIG_LINKS = $CONFIG_LINKS
21073 CONFIG_COMMANDS = $CONFIG_COMMANDS
21074 $ $0 $@
21075
21076on `(hostname || uname -n) 2>/dev/null | sed 1q`
21077"
21078
21079_ACEOF
21080
21081cat >>$CONFIG_STATUS <<_ACEOF
21082# Files that config.status was made for.
21083config_files="$ac_config_files"
21084config_headers="$ac_config_headers"
21085config_commands="$ac_config_commands"
21086
21087_ACEOF
21088
21089cat >>$CONFIG_STATUS <<\_ACEOF
21090ac_cs_usage="\
21091\`$as_me' instantiates files from templates according to the
21092current configuration.
21093
21094Usage: $0 [OPTIONS] [FILE]...
21095
21096 -h, --help print this help, then exit
21097 -V, --version print version number and configuration settings, then exit
21098 -q, --quiet do not print progress messages
21099 -d, --debug don't remove temporary files
21100 --recheck update $as_me by reconfiguring in the same conditions
21101 --file=FILE[:TEMPLATE]
21102 instantiate the configuration file FILE
21103 --header=FILE[:TEMPLATE]
21104 instantiate the configuration header FILE
21105
21106Configuration files:
21107$config_files
21108
21109Configuration headers:
21110$config_headers
21111
21112Configuration commands:
21113$config_commands
21114
21115Report bugs to <bug-autoconf@gnu.org>."
21116
21117_ACEOF
21118cat >>$CONFIG_STATUS <<_ACEOF
21119ac_cs_version="\\
21120suPHP config.status 0.7.1
21121configured by $0, generated by GNU Autoconf 2.61,
21122 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21123
21124Copyright (C) 2006 Free Software Foundation, Inc.
21125This config.status script is free software; the Free Software Foundation
21126gives unlimited permission to copy, distribute and modify it."
21127
21128ac_pwd='$ac_pwd'
21129srcdir='$srcdir'
21130INSTALL='$INSTALL'
21131MKDIR_P='$MKDIR_P'
21132_ACEOF
21133
21134cat >>$CONFIG_STATUS <<\_ACEOF
21135# If no file are specified by the user, then we need to provide default
21136# value. By we need to know if files were specified by the user.
21137ac_need_defaults=:
21138while test $# != 0
21139do
21140 case $1 in
21141 --*=*)
21142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21143 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21144 ac_shift=:
21145 ;;
21146 *)
21147 ac_option=$1
21148 ac_optarg=$2
21149 ac_shift=shift
21150 ;;
21151 esac
21152
21153 case $ac_option in
21154 # Handling of the options.
21155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21156 ac_cs_recheck=: ;;
21157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21158 echo "$ac_cs_version"; exit ;;
21159 --debug | --debu | --deb | --de | --d | -d )
21160 debug=: ;;
21161 --file | --fil | --fi | --f )
21162 $ac_shift
21163 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21164 ac_need_defaults=false;;
21165 --header | --heade | --head | --hea )
21166 $ac_shift
21167 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21168 ac_need_defaults=false;;
21169 --he | --h)
21170 # Conflict between --help and --header
21171 { echo "$as_me: error: ambiguous option: $1
21172Try \`$0 --help' for more information." >&2
21173 { (exit 1); exit 1; }; };;
21174 --help | --hel | -h )
21175 echo "$ac_cs_usage"; exit ;;
21176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21177 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21178 ac_cs_silent=: ;;
21179
21180 # This is an error.
21181 -*) { echo "$as_me: error: unrecognized option: $1
21182Try \`$0 --help' for more information." >&2
21183 { (exit 1); exit 1; }; } ;;
21184
21185 *) ac_config_targets="$ac_config_targets $1"
21186 ac_need_defaults=false ;;
21187
21188 esac
21189 shift
21190done
21191
21192ac_configure_extra_args=
21193
21194if $ac_cs_silent; then
21195 exec 6>/dev/null
21196 ac_configure_extra_args="$ac_configure_extra_args --silent"
21197fi
21198
21199_ACEOF
21200cat >>$CONFIG_STATUS <<_ACEOF
21201if \$ac_cs_recheck; then
21202 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21203 CONFIG_SHELL=$SHELL
21204 export CONFIG_SHELL
21205 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21206fi
21207
21208_ACEOF
21209cat >>$CONFIG_STATUS <<\_ACEOF
21210exec 5>>config.log
21211{
21212 echo
21213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21214## Running $as_me. ##
21215_ASBOX
21216 echo "$ac_log"
21217} >&5
21218
21219_ACEOF
21220cat >>$CONFIG_STATUS <<_ACEOF
21221#
21222# INIT-COMMANDS
21223#
21224AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21225
21226_ACEOF
21227
21228cat >>$CONFIG_STATUS <<\_ACEOF
21229
21230# Handling of arguments.
21231for ac_config_target in $ac_config_targets
21232do
21233 case $ac_config_target in
21234 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21235 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21236 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21237 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21238 "src/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
21239 "src/apache2/Makefile") CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
21240
21241 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21242echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21243 { (exit 1); exit 1; }; };;
21244 esac
21245done
21246
21247
21248# If the user did not use the arguments to specify the items to instantiate,
21249# then the envvar interface is used. Set only those that are not.
21250# We use the long form for the default assignment because of an extremely
21251# bizarre bug on SunOS 4.1.3.
21252if $ac_need_defaults; then
21253 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21254 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21255 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21256fi
21257
21258# Have a temporary directory for convenience. Make it in the build tree
21259# simply because there is no reason against having it here, and in addition,
21260# creating and moving files from /tmp can sometimes cause problems.
21261# Hook for its removal unless debugging.
21262# Note that there is a small window in which the directory will not be cleaned:
21263# after its creation but before its name has been assigned to `$tmp'.
21264$debug ||
21265{
21266 tmp=
21267 trap 'exit_status=$?
21268 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21269' 0
21270 trap '{ (exit 1); exit 1; }' 1 2 13 15
21271}
21272# Create a (secure) tmp directory for tmp files.
21273
21274{
21275 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21276 test -n "$tmp" && test -d "$tmp"
21277} ||
21278{
21279 tmp=./conf$$-$RANDOM
21280 (umask 077 && mkdir "$tmp")
21281} ||
21282{
21283 echo "$me: cannot create a temporary directory in ." >&2
21284 { (exit 1); exit 1; }
21285}
21286
21287#
21288# Set up the sed scripts for CONFIG_FILES section.
21289#
21290
21291# No need to generate the scripts if there are no CONFIG_FILES.
21292# This happens for instance when ./config.status config.h
21293if test -n "$CONFIG_FILES"; then
21294
21295_ACEOF
21296
21297
21298
21299ac_delim='%!_!# '
21300for ac_last_try in false false false false false :; do
21301 cat >conf$$subs.sed <<_ACEOF
21302SHELL!$SHELL$ac_delim
21303PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21304PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21305PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21306PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21307PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21308PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21309exec_prefix!$exec_prefix$ac_delim
21310prefix!$prefix$ac_delim
21311program_transform_name!$program_transform_name$ac_delim
21312bindir!$bindir$ac_delim
21313sbindir!$sbindir$ac_delim
21314libexecdir!$libexecdir$ac_delim
21315datarootdir!$datarootdir$ac_delim
21316datadir!$datadir$ac_delim
21317sysconfdir!$sysconfdir$ac_delim
21318sharedstatedir!$sharedstatedir$ac_delim
21319localstatedir!$localstatedir$ac_delim
21320includedir!$includedir$ac_delim
21321oldincludedir!$oldincludedir$ac_delim
21322docdir!$docdir$ac_delim
21323infodir!$infodir$ac_delim
21324htmldir!$htmldir$ac_delim
21325dvidir!$dvidir$ac_delim
21326pdfdir!$pdfdir$ac_delim
21327psdir!$psdir$ac_delim
21328libdir!$libdir$ac_delim
21329localedir!$localedir$ac_delim
21330mandir!$mandir$ac_delim
21331DEFS!$DEFS$ac_delim
21332ECHO_C!$ECHO_C$ac_delim
21333ECHO_N!$ECHO_N$ac_delim
21334ECHO_T!$ECHO_T$ac_delim
21335LIBS!$LIBS$ac_delim
21336build_alias!$build_alias$ac_delim
21337host_alias!$host_alias$ac_delim
21338target_alias!$target_alias$ac_delim
21339INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21340INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21341INSTALL_DATA!$INSTALL_DATA$ac_delim
21342am__isrc!$am__isrc$ac_delim
21343CYGPATH_W!$CYGPATH_W$ac_delim
21344PACKAGE!$PACKAGE$ac_delim
21345VERSION!$VERSION$ac_delim
21346ACLOCAL!$ACLOCAL$ac_delim
21347AUTOCONF!$AUTOCONF$ac_delim
21348AUTOMAKE!$AUTOMAKE$ac_delim
21349AUTOHEADER!$AUTOHEADER$ac_delim
21350MAKEINFO!$MAKEINFO$ac_delim
21351install_sh!$install_sh$ac_delim
21352STRIP!$STRIP$ac_delim
21353INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21354mkdir_p!$mkdir_p$ac_delim
21355AWK!$AWK$ac_delim
21356SET_MAKE!$SET_MAKE$ac_delim
21357am__leading_dot!$am__leading_dot$ac_delim
21358AMTAR!$AMTAR$ac_delim
21359am__tar!$am__tar$ac_delim
21360am__untar!$am__untar$ac_delim
21361CC!$CC$ac_delim
21362CFLAGS!$CFLAGS$ac_delim
21363LDFLAGS!$LDFLAGS$ac_delim
21364CPPFLAGS!$CPPFLAGS$ac_delim
21365ac_ct_CC!$ac_ct_CC$ac_delim
21366EXEEXT!$EXEEXT$ac_delim
21367OBJEXT!$OBJEXT$ac_delim
21368DEPDIR!$DEPDIR$ac_delim
21369am__include!$am__include$ac_delim
21370am__quote!$am__quote$ac_delim
21371AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21372AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21373AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21374CCDEPMODE!$CCDEPMODE$ac_delim
21375am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21376am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21377CXX!$CXX$ac_delim
21378CXXFLAGS!$CXXFLAGS$ac_delim
21379ac_ct_CXX!$ac_ct_CXX$ac_delim
21380CXXDEPMODE!$CXXDEPMODE$ac_delim
21381am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21382am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21383build!$build$ac_delim
21384build_cpu!$build_cpu$ac_delim
21385build_vendor!$build_vendor$ac_delim
21386build_os!$build_os$ac_delim
21387host!$host$ac_delim
21388host_cpu!$host_cpu$ac_delim
21389host_vendor!$host_vendor$ac_delim
21390host_os!$host_os$ac_delim
21391SED!$SED$ac_delim
21392GREP!$GREP$ac_delim
21393EGREP!$EGREP$ac_delim
21394LN_S!$LN_S$ac_delim
21395ECHO!$ECHO$ac_delim
21396AR!$AR$ac_delim
21397RANLIB!$RANLIB$ac_delim
21398DSYMUTIL!$DSYMUTIL$ac_delim
21399_ACEOF
21400
21401 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21402 break
21403 elif $ac_last_try; then
21404 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21405echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21406 { (exit 1); exit 1; }; }
21407 else
21408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21409 fi
21410done
21411
21412ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21413if test -n "$ac_eof"; then
21414 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21415 ac_eof=`expr $ac_eof + 1`
21416fi
21417
21418cat >>$CONFIG_STATUS <<_ACEOF
21419cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21420/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21421_ACEOF
21422sed '
21423s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21424s/^/s,@/; s/!/@,|#_!!_#|/
21425:n
21426t n
21427s/'"$ac_delim"'$/,g/; t
21428s/$/\\/; p
21429N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21430' >>$CONFIG_STATUS <conf$$subs.sed
21431rm -f conf$$subs.sed
21432cat >>$CONFIG_STATUS <<_ACEOF
21433CEOF$ac_eof
21434_ACEOF
21435
21436
21437ac_delim='%!_!# '
21438for ac_last_try in false false false false false :; do
21439 cat >conf$$subs.sed <<_ACEOF
21440NMEDIT!$NMEDIT$ac_delim
21441CPP!$CPP$ac_delim
21442CXXCPP!$CXXCPP$ac_delim
21443F77!$F77$ac_delim
21444FFLAGS!$FFLAGS$ac_delim
21445ac_ct_F77!$ac_ct_F77$ac_delim
21446LIBTOOL!$LIBTOOL$ac_delim
21447APXS!$APXS$ac_delim
21448APACHE_VERSION_1_3!$APACHE_VERSION_1_3$ac_delim
21449APACHE_VERSION_2!$APACHE_VERSION_2$ac_delim
21450APXS_INCLUDEDIR!$APXS_INCLUDEDIR$ac_delim
21451APXS_LIBEXECDIR!$APXS_LIBEXECDIR$ac_delim
21452APXS_EXTRA_CFLAGS!$APXS_EXTRA_CFLAGS$ac_delim
21453APR_INCLUDEDIR!$APR_INCLUDEDIR$ac_delim
21454APR_CPPFLAGS!$APR_CPPFLAGS$ac_delim
21455OPT_APACHEMOD_USERGROUP_DEF!$OPT_APACHEMOD_USERGROUP_DEF$ac_delim
21456COND_AP13_TRUE!$COND_AP13_TRUE$ac_delim
21457COND_AP13_FALSE!$COND_AP13_FALSE$ac_delim
21458COND_AP20_TRUE!$COND_AP20_TRUE$ac_delim
21459COND_AP20_FALSE!$COND_AP20_FALSE$ac_delim
21460COND_APUSERGROUP_TRUE!$COND_APUSERGROUP_TRUE$ac_delim
21461COND_APUSERGROUP_FALSE!$COND_APUSERGROUP_FALSE$ac_delim
21462LIBOBJS!$LIBOBJS$ac_delim
21463LTLIBOBJS!$LTLIBOBJS$ac_delim
21464_ACEOF
21465
21466 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
21467 break
21468 elif $ac_last_try; then
21469 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21470echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21471 { (exit 1); exit 1; }; }
21472 else
21473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21474 fi
21475done
21476
21477ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21478if test -n "$ac_eof"; then
21479 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21480 ac_eof=`expr $ac_eof + 1`
21481fi
21482
21483cat >>$CONFIG_STATUS <<_ACEOF
21484cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21485/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21486_ACEOF
21487sed '
21488s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21489s/^/s,@/; s/!/@,|#_!!_#|/
21490:n
21491t n
21492s/'"$ac_delim"'$/,g/; t
21493s/$/\\/; p
21494N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21495' >>$CONFIG_STATUS <conf$$subs.sed
21496rm -f conf$$subs.sed
21497cat >>$CONFIG_STATUS <<_ACEOF
21498:end
21499s/|#_!!_#|//g
21500CEOF$ac_eof
21501_ACEOF
21502
21503
21504# VPATH may cause trouble with some makes, so we remove $(srcdir),
21505# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21506# trailing colons and then remove the whole line if VPATH becomes empty
21507# (actually we leave an empty line to preserve line numbers).
21508if test "x$srcdir" = x.; then
21509 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21510s/:*\$(srcdir):*/:/
21511s/:*\${srcdir}:*/:/
21512s/:*@srcdir@:*/:/
21513s/^\([^=]*=[ ]*\):*/\1/
21514s/:*$//
21515s/^[^=]*=[ ]*$//
21516}'
21517fi
21518
21519cat >>$CONFIG_STATUS <<\_ACEOF
21520fi # test -n "$CONFIG_FILES"
21521
21522
21523for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21524do
21525 case $ac_tag in
21526 :[FHLC]) ac_mode=$ac_tag; continue;;
21527 esac
21528 case $ac_mode$ac_tag in
21529 :[FHL]*:*);;
21530 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21531echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21532 { (exit 1); exit 1; }; };;
21533 :[FH]-) ac_tag=-:-;;
21534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21535 esac
21536 ac_save_IFS=$IFS
21537 IFS=:
21538 set x $ac_tag
21539 IFS=$ac_save_IFS
21540 shift
21541 ac_file=$1
21542 shift
21543
21544 case $ac_mode in
21545 :L) ac_source=$1;;
21546 :[FH])
21547 ac_file_inputs=
21548 for ac_f
21549 do
21550 case $ac_f in
21551 -) ac_f="$tmp/stdin";;
21552 *) # Look for the file first in the build tree, then in the source tree
21553 # (if the path is not absolute). The absolute path cannot be DOS-style,
21554 # because $ac_f cannot contain `:'.
21555 test -f "$ac_f" ||
21556 case $ac_f in
21557 [\\/$]*) false;;
21558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21559 esac ||
21560 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21561echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21562 { (exit 1); exit 1; }; };;
21563 esac
21564 ac_file_inputs="$ac_file_inputs $ac_f"
21565 done
21566
21567 # Let's still pretend it is `configure' which instantiates (i.e., don't
21568 # use $as_me), people would be surprised to read:
21569 # /* config.h. Generated by config.status. */
21570 configure_input="Generated from "`IFS=:
21571 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21572 if test x"$ac_file" != x-; then
21573 configure_input="$ac_file. $configure_input"
21574 { echo "$as_me:$LINENO: creating $ac_file" >&5
21575echo "$as_me: creating $ac_file" >&6;}
21576 fi
21577
21578 case $ac_tag in
21579 *:-:* | *:-) cat >"$tmp/stdin";;
21580 esac
21581 ;;
21582 esac
21583
21584 ac_dir=`$as_dirname -- "$ac_file" ||
21585$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21586 X"$ac_file" : 'X\(//\)[^/]' \| \
21587 X"$ac_file" : 'X\(//\)$' \| \
21588 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21589echo X"$ac_file" |
21590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21591 s//\1/
21592 q
21593 }
21594 /^X\(\/\/\)[^/].*/{
21595 s//\1/
21596 q
21597 }
21598 /^X\(\/\/\)$/{
21599 s//\1/
21600 q
21601 }
21602 /^X\(\/\).*/{
21603 s//\1/
21604 q
21605 }
21606 s/.*/./; q'`
21607 { as_dir="$ac_dir"
21608 case $as_dir in #(
21609 -*) as_dir=./$as_dir;;
21610 esac
21611 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21612 as_dirs=
21613 while :; do
21614 case $as_dir in #(
21615 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21616 *) as_qdir=$as_dir;;
21617 esac
21618 as_dirs="'$as_qdir' $as_dirs"
21619 as_dir=`$as_dirname -- "$as_dir" ||
21620$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21621 X"$as_dir" : 'X\(//\)[^/]' \| \
21622 X"$as_dir" : 'X\(//\)$' \| \
21623 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21624echo X"$as_dir" |
21625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21626 s//\1/
21627 q
21628 }
21629 /^X\(\/\/\)[^/].*/{
21630 s//\1/
21631 q
21632 }
21633 /^X\(\/\/\)$/{
21634 s//\1/
21635 q
21636 }
21637 /^X\(\/\).*/{
21638 s//\1/
21639 q
21640 }
21641 s/.*/./; q'`
21642 test -d "$as_dir" && break
21643 done
21644 test -z "$as_dirs" || eval "mkdir $as_dirs"
21645 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21646echo "$as_me: error: cannot create directory $as_dir" >&2;}
21647 { (exit 1); exit 1; }; }; }
21648 ac_builddir=.
21649
21650case "$ac_dir" in
21651.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21652*)
21653 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21654 # A ".." for each directory in $ac_dir_suffix.
21655 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21656 case $ac_top_builddir_sub in
21657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21659 esac ;;
21660esac
21661ac_abs_top_builddir=$ac_pwd
21662ac_abs_builddir=$ac_pwd$ac_dir_suffix
21663# for backward compatibility:
21664ac_top_builddir=$ac_top_build_prefix
21665
21666case $srcdir in
21667 .) # We are building in place.
21668 ac_srcdir=.
21669 ac_top_srcdir=$ac_top_builddir_sub
21670 ac_abs_top_srcdir=$ac_pwd ;;
21671 [\\/]* | ?:[\\/]* ) # Absolute name.
21672 ac_srcdir=$srcdir$ac_dir_suffix;
21673 ac_top_srcdir=$srcdir
21674 ac_abs_top_srcdir=$srcdir ;;
21675 *) # Relative name.
21676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21677 ac_top_srcdir=$ac_top_build_prefix$srcdir
21678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21679esac
21680ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21681
21682
21683 case $ac_mode in
21684 :F)
21685 #
21686 # CONFIG_FILE
21687 #
21688
21689 case $INSTALL in
21690 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21691 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21692 esac
21693 ac_MKDIR_P=$MKDIR_P
21694 case $MKDIR_P in
21695 [\\/$]* | ?:[\\/]* ) ;;
21696 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21697 esac
21698_ACEOF
21699
21700cat >>$CONFIG_STATUS <<\_ACEOF
21701# If the template does not know about datarootdir, expand it.
21702# FIXME: This hack should be removed a few years after 2.60.
21703ac_datarootdir_hack=; ac_datarootdir_seen=
21704
21705case `sed -n '/datarootdir/ {
21706 p
21707 q
21708}
21709/@datadir@/p
21710/@docdir@/p
21711/@infodir@/p
21712/@localedir@/p
21713/@mandir@/p
21714' $ac_file_inputs` in
21715*datarootdir*) ac_datarootdir_seen=yes;;
21716*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21717 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21718echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21719_ACEOF
21720cat >>$CONFIG_STATUS <<_ACEOF
21721 ac_datarootdir_hack='
21722 s&@datadir@&$datadir&g
21723 s&@docdir@&$docdir&g
21724 s&@infodir@&$infodir&g
21725 s&@localedir@&$localedir&g
21726 s&@mandir@&$mandir&g
21727 s&\\\${datarootdir}&$datarootdir&g' ;;
21728esac
21729_ACEOF
21730
21731# Neutralize VPATH when `$srcdir' = `.'.
21732# Shell code in configure.ac might set extrasub.
21733# FIXME: do we really want to maintain this feature?
21734cat >>$CONFIG_STATUS <<_ACEOF
21735 sed "$ac_vpsub
21736$extrasub
21737_ACEOF
21738cat >>$CONFIG_STATUS <<\_ACEOF
21739:t
21740/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21741s&@configure_input@&$configure_input&;t t
21742s&@top_builddir@&$ac_top_builddir_sub&;t t
21743s&@srcdir@&$ac_srcdir&;t t
21744s&@abs_srcdir@&$ac_abs_srcdir&;t t
21745s&@top_srcdir@&$ac_top_srcdir&;t t
21746s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21747s&@builddir@&$ac_builddir&;t t
21748s&@abs_builddir@&$ac_abs_builddir&;t t
21749s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21750s&@INSTALL@&$ac_INSTALL&;t t
21751s&@MKDIR_P@&$ac_MKDIR_P&;t t
21752$ac_datarootdir_hack
21753" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21754
21755test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21756 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21757 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21758 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21759which seems to be undefined. Please make sure it is defined." >&5
21760echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21761which seems to be undefined. Please make sure it is defined." >&2;}
21762
21763 rm -f "$tmp/stdin"
21764 case $ac_file in
21765 -) cat "$tmp/out"; rm -f "$tmp/out";;
21766 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21767 esac
21768 ;;
21769 :H)
21770 #
21771 # CONFIG_HEADER
21772 #
21773_ACEOF
21774
21775# Transform confdefs.h into a sed script `conftest.defines', that
21776# substitutes the proper values into config.h.in to produce config.h.
21777rm -f conftest.defines conftest.tail
21778# First, append a space to every undef/define line, to ease matching.
21779echo 's/$/ /' >conftest.defines
21780# Then, protect against being on the right side of a sed subst, or in
21781# an unquoted here document, in config.status. If some macros were
21782# called several times there might be several #defines for the same
21783# symbol, which is useless. But do not sort them, since the last
21784# AC_DEFINE must be honored.
21785ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21786# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21787# NAME is the cpp macro being defined, VALUE is the value it is being given.
21788# PARAMS is the parameter list in the macro definition--in most cases, it's
21789# just an empty string.
21790ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21791ac_dB='\\)[ (].*,\\1define\\2'
21792ac_dC=' '
21793ac_dD=' ,'
21794
21795uniq confdefs.h |
21796 sed -n '
21797 t rset
21798 :rset
21799 s/^[ ]*#[ ]*define[ ][ ]*//
21800 t ok
21801 d
21802 :ok
21803 s/[\\&,]/\\&/g
21804 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21805 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21806 ' >>conftest.defines
21807
21808# Remove the space that was appended to ease matching.
21809# Then replace #undef with comments. This is necessary, for
21810# example, in the case of _POSIX_SOURCE, which is predefined and required
21811# on some systems where configure will not decide to define it.
21812# (The regexp can be short, since the line contains either #define or #undef.)
21813echo 's/ $//
21814s,^[ #]*u.*,/* & */,' >>conftest.defines
21815
21816# Break up conftest.defines:
21817ac_max_sed_lines=50
21818
21819# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21820# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21821# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21822# et cetera.
21823ac_in='$ac_file_inputs'
21824ac_out='"$tmp/out1"'
21825ac_nxt='"$tmp/out2"'
21826
21827while :
21828do
21829 # Write a here document:
21830 cat >>$CONFIG_STATUS <<_ACEOF
21831 # First, check the format of the line:
21832 cat >"\$tmp/defines.sed" <<\\CEOF
21833/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21834/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21835b
21836:def
21837_ACEOF
21838 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21839 echo 'CEOF
21840 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21841 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21842 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21843 grep . conftest.tail >/dev/null || break
21844 rm -f conftest.defines
21845 mv conftest.tail conftest.defines
21846done
21847rm -f conftest.defines conftest.tail
21848
21849echo "ac_result=$ac_in" >>$CONFIG_STATUS
21850cat >>$CONFIG_STATUS <<\_ACEOF
21851 if test x"$ac_file" != x-; then
21852 echo "/* $configure_input */" >"$tmp/config.h"
21853 cat "$ac_result" >>"$tmp/config.h"
21854 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21855 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21856echo "$as_me: $ac_file is unchanged" >&6;}
21857 else
21858 rm -f $ac_file
21859 mv "$tmp/config.h" $ac_file
21860 fi
21861 else
21862 echo "/* $configure_input */"
21863 cat "$ac_result"
21864 fi
21865 rm -f "$tmp/out12"
21866# Compute $ac_file's index in $config_headers.
21867_am_arg=$ac_file
21868_am_stamp_count=1
21869for _am_header in $config_headers :; do
21870 case $_am_header in
21871 $_am_arg | $_am_arg:* )
21872 break ;;
21873 * )
21874 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21875 esac
21876done
21877echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21878$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21879 X"$_am_arg" : 'X\(//\)[^/]' \| \
21880 X"$_am_arg" : 'X\(//\)$' \| \
21881 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21882echo X"$_am_arg" |
21883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21884 s//\1/
21885 q
21886 }
21887 /^X\(\/\/\)[^/].*/{
21888 s//\1/
21889 q
21890 }
21891 /^X\(\/\/\)$/{
21892 s//\1/
21893 q
21894 }
21895 /^X\(\/\).*/{
21896 s//\1/
21897 q
21898 }
21899 s/.*/./; q'`/stamp-h$_am_stamp_count
21900 ;;
21901
21902 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21903echo "$as_me: executing $ac_file commands" >&6;}
21904 ;;
21905 esac
21906
21907
21908 case $ac_file$ac_mode in
21909 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21910 # Strip MF so we end up with the name of the file.
21911 mf=`echo "$mf" | sed -e 's/:.*$//'`
21912 # Check whether this is an Automake generated Makefile or not.
21913 # We used to match only the files named `Makefile.in', but
21914 # some people rename them; so instead we look at the file content.
21915 # Grep'ing the first line is not enough: some people post-process
21916 # each Makefile.in and add a new line on top of each file to say so.
21917 # Grep'ing the whole file is not good either: AIX grep has a line
21918 # limit of 2048, but all sed's we know have understand at least 4000.
21919 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21920 dirpart=`$as_dirname -- "$mf" ||
21921$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21922 X"$mf" : 'X\(//\)[^/]' \| \
21923 X"$mf" : 'X\(//\)$' \| \
21924 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21925echo X"$mf" |
21926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21927 s//\1/
21928 q
21929 }
21930 /^X\(\/\/\)[^/].*/{
21931 s//\1/
21932 q
21933 }
21934 /^X\(\/\/\)$/{
21935 s//\1/
21936 q
21937 }
21938 /^X\(\/\).*/{
21939 s//\1/
21940 q
21941 }
21942 s/.*/./; q'`
21943 else
21944 continue
21945 fi
21946 # Extract the definition of DEPDIR, am__include, and am__quote
21947 # from the Makefile without running `make'.
21948 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21949 test -z "$DEPDIR" && continue
21950 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21951 test -z "am__include" && continue
21952 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21953 # When using ansi2knr, U may be empty or an underscore; expand it
21954 U=`sed -n 's/^U = //p' < "$mf"`
21955 # Find all dependency output files, they are included files with
21956 # $(DEPDIR) in their names. We invoke sed twice because it is the
21957 # simplest approach to changing $(DEPDIR) to its actual value in the
21958 # expansion.
21959 for file in `sed -n "
21960 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21961 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21962 # Make sure the directory exists.
21963 test -f "$dirpart/$file" && continue
21964 fdir=`$as_dirname -- "$file" ||
21965$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21966 X"$file" : 'X\(//\)[^/]' \| \
21967 X"$file" : 'X\(//\)$' \| \
21968 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21969echo X"$file" |
21970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21971 s//\1/
21972 q
21973 }
21974 /^X\(\/\/\)[^/].*/{
21975 s//\1/
21976 q
21977 }
21978 /^X\(\/\/\)$/{
21979 s//\1/
21980 q
21981 }
21982 /^X\(\/\).*/{
21983 s//\1/
21984 q
21985 }
21986 s/.*/./; q'`
21987 { as_dir=$dirpart/$fdir
21988 case $as_dir in #(
21989 -*) as_dir=./$as_dir;;
21990 esac
21991 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21992 as_dirs=
21993 while :; do
21994 case $as_dir in #(
21995 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21996 *) as_qdir=$as_dir;;
21997 esac
21998 as_dirs="'$as_qdir' $as_dirs"
21999 as_dir=`$as_dirname -- "$as_dir" ||
22000$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22001 X"$as_dir" : 'X\(//\)[^/]' \| \
22002 X"$as_dir" : 'X\(//\)$' \| \
22003 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22004echo X"$as_dir" |
22005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22006 s//\1/
22007 q
22008 }
22009 /^X\(\/\/\)[^/].*/{
22010 s//\1/
22011 q
22012 }
22013 /^X\(\/\/\)$/{
22014 s//\1/
22015 q
22016 }
22017 /^X\(\/\).*/{
22018 s//\1/
22019 q
22020 }
22021 s/.*/./; q'`
22022 test -d "$as_dir" && break
22023 done
22024 test -z "$as_dirs" || eval "mkdir $as_dirs"
22025 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22026echo "$as_me: error: cannot create directory $as_dir" >&2;}
22027 { (exit 1); exit 1; }; }; }
22028 # echo "creating $dirpart/$file"
22029 echo '# dummy' > "$dirpart/$file"
22030 done
22031done
22032 ;;
22033
22034 esac
22035done # for ac_tag
22036
22037
22038{ (exit 0); exit 0; }
22039_ACEOF
22040chmod +x $CONFIG_STATUS
22041ac_clean_files=$ac_clean_files_save
22042
22043
22044# configure is writing to config.log, and then calls config.status.
22045# config.status does its own redirection, appending to config.log.
22046# Unfortunately, on DOS this fails, as config.log is still kept open
22047# by configure, so config.status won't be able to write to it; its
22048# output is simply discarded. So we exec the FD to /dev/null,
22049# effectively closing config.log, so it can be properly (re)opened and
22050# appended to by config.status. When coming back to configure, we
22051# need to make the FD available again.
22052if test "$no_create" != yes; then
22053 ac_cs_success=:
22054 ac_config_status_args=
22055 test "$silent" = yes &&
22056 ac_config_status_args="$ac_config_status_args --quiet"
22057 exec 5>/dev/null
22058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22059 exec 5>>config.log
22060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22061 # would make configure fail if this is the last instruction.
22062 $ac_cs_success || { (exit 1); exit 1; }
22063fi
22064
22065
22066if test "$APXS" = "/notfound/"; then
22067 { echo "$as_me:$LINENO: WARNING:
22068!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22069!!*** APXS was not found, so mod_suphp will not be built! ***!!
22070!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22071 " >&5
22072echo "$as_me: WARNING:
22073!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22074!!*** APXS was not found, so mod_suphp will not be built! ***!!
22075!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22076 " >&2;}
22077fi
22078