]> jfr.im git - irc/blitzed-org/libopm.git/blame - configure
Apply "[irc-security] BOPM patch for MikroTik HttpProxy, possibly others"
[irc/blitzed-org/libopm.git] / configure
CommitLineData
89354eef 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
f58aa3e1 3# Generated by GNU Autoconf 2.60 for libopm 0.1.
89354eef 4#
f58aa3e1 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
89354eef 7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
89354eef 9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
49ba971d 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
f58aa3e1 20 setopt NO_GLOB_SUBST
21else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23fi
24BIN_SH=xpg4; export BIN_SH # for Tru64
25DUALCASE=1; export DUALCASE # for MKS sh
26
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
89354eef 47fi
48
89354eef 49# Support unset when possible.
f58aa3e1 50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
89354eef 51 as_unset=unset
52else
53 as_unset=false
54fi
55
49ba971d 56
f58aa3e1 57# IFS
58# We need space, tab and new line, in precisely that order. Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" "" $as_nl"
65
66# Find who we are. Look in the path if we contain no directory separator.
67case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78 ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83 as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88fi
89
49ba971d 90# Work around bugs in pre-3.0 UWIN ksh.
f58aa3e1 91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
49ba971d 94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103do
f58aa3e1 104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49ba971d 105 eval $as_var=C; export $as_var
106 else
f58aa3e1 107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49ba971d 108 fi
109done
110
111# Required to use basename.
f58aa3e1 112if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
49ba971d 114 as_expr=expr
115else
116 as_expr=false
117fi
118
f58aa3e1 119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
49ba971d 120 as_basename=basename
121else
122 as_basename=false
123fi
89354eef 124
125
126# Name of the executable.
f58aa3e1 127as_me=`$as_basename -- "$0" ||
89354eef 128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
f58aa3e1 130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
89354eef 131echo X/"$0" |
f58aa3e1 132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
89354eef 145
f58aa3e1 146# CDPATH.
147$as_unset CDPATH
49ba971d 148
89354eef 149
f58aa3e1 150if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153else
154 as_have_required=no
155fi
156
157 if test $as_have_required = yes && (eval ":
158(as_func_return () {
159 (exit \$1)
160}
161as_func_success () {
162 as_func_return 0
163}
164as_func_failure () {
165 as_func_return 1
166}
167as_func_ret_success () {
168 return 0
169}
170as_func_ret_failure () {
171 return 1
172}
173
174exitcode=0
175if as_func_success; then
176 :
177else
178 exitcode=1
179 echo as_func_success failed.
89354eef 180fi
181
f58aa3e1 182if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185fi
89354eef 186
f58aa3e1 187if as_func_ret_success; then
188 :
189else
190 exitcode=1
191 echo as_func_ret_success failed.
192fi
89354eef 193
f58aa3e1 194if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201else
202 exitcode=1
203 echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214 :
215else
216 as_candidate_shells=
89354eef 217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f58aa3e1 218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
89354eef 219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
f58aa3e1 222 case $as_dir in
89354eef 223 /*)
f58aa3e1 224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228done
229IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272 (exit $1)
273}
274as_func_success () {
275 as_func_return 0
276}
277as_func_failure () {
278 as_func_return 1
279}
280as_func_ret_success () {
281 return 0
282}
283as_func_ret_failure () {
284 return 1
285}
286
287exitcode=0
288if as_func_success; then
289 :
290else
291 exitcode=1
292 echo as_func_success failed.
293fi
294
295if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301 :
302else
303 exitcode=1
304 echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314else
315 exitcode=1
316 echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
89354eef 322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
89354eef 324 test "x$as_lineno_1" != "x$as_lineno_2" &&
f58aa3e1 325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329 break
330fi
331
332fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361 (exit \$1)
362}
363as_func_success () {
364 as_func_return 0
365}
366as_func_failure () {
367 as_func_return 1
368}
369as_func_ret_success () {
370 return 0
371}
372as_func_ret_failure () {
373 return 1
374}
375
376exitcode=0
377if as_func_success; then
378 :
379else
380 exitcode=1
381 echo as_func_success failed.
382fi
383
384if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390 :
391else
392 exitcode=1
393 echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403else
404 exitcode=1
405 echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413}
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
89354eef 421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
f58aa3e1 424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
89354eef 429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
f58aa3e1 430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
89354eef 436 sed '
f58aa3e1 437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
89354eef 441 N
f58aa3e1 442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
89354eef 444 t loop
f58aa3e1 445 s/-\n.*//
89354eef 446 ' >$as_me.lineno &&
f58aa3e1 447 chmod +x "$as_me.lineno" ||
89354eef 448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
f58aa3e1 453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
89354eef 455 # Exit status is that of the last command.
456 exit
457}
458
459
f58aa3e1 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462else
463 as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473*)
474 ECHO_N='-n';;
89354eef 475esac
476
f58aa3e1 477if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
89354eef 479 as_expr=expr
480else
481 as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
f58aa3e1 485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490fi
89354eef 491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
f58aa3e1 493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
89354eef 499 as_ln_s='cp -p'
89354eef 500elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502else
503 as_ln_s='cp -p'
504fi
f58aa3e1 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
89354eef 507
49ba971d 508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510else
f58aa3e1 511 test -d ./-p && rmdir ./-p
49ba971d 512 as_mkdir_p=false
513fi
514
f58aa3e1 515# Find out whether ``test -x'' works. Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524else
525 as_executable_p=:
526fi
527rm -f conf$$.file
89354eef 528
529# Sed expression to map a string onto a valid CPP name.
f58aa3e1 530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
89354eef 531
532# Sed expression to map a string onto a valid variable name.
f58aa3e1 533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
89354eef 534
535
49ba971d 536
537
538# Check that we are running under the correct shell.
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541case X$ECHO in
542X*--fallback-echo)
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545 ;;
546esac
547
548echo=${ECHO-echo}
549if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
551 shift
552elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
554 :
f58aa3e1 555elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
49ba971d 556 # Yippee, $echo works!
557 :
558else
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
561fi
562
563if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
565 shift
566 cat <<EOF
f58aa3e1 567$*
49ba971d 568EOF
569 exit 0
570fi
571
572# The HP-UX ksh and POSIX shell print the target directory to stdout
573# if CDPATH is set.
f58aa3e1 574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
49ba971d 575
576if test -z "$ECHO"; then
577if test "X${echo_test_string+set}" != Xset; then
578# find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
f58aa3e1 581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
49ba971d 583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584 then
585 break
586 fi
587 done
588fi
589
590if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
593 :
594else
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
598 #
599 # So, first we look for a working echo in the user's PATH.
600
f58aa3e1 601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
49ba971d 602 for dir in $PATH /usr/ucb; do
f58aa3e1 603 IFS="$lt_save_ifs"
49ba971d 604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 echo="$dir/echo"
609 break
610 fi
611 done
f58aa3e1 612 IFS="$lt_save_ifs"
49ba971d 613
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
620 echo='print -r'
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
627 export CONFIG_SHELL
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629 else
630 # Try using printf.
631 echo='printf %s\n'
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # Cool, printf works
636 :
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642 export CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
644 export SHELL
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
651 else
652 # maybe with a smaller string...
653 prev=:
654
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657 then
658 break
659 fi
660 prev="$cmd"
661 done
662
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667 else
668 # Oops. We lost completely, so just stick with echo.
669 echo=echo
670 fi
671 fi
672 fi
673 fi
674fi
675fi
676
677# Copy echo and quote the copy suitably for passing to libtool from
678# the Makefile, instead of quoting the original, which is used later.
679ECHO=$echo
680if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682fi
683
89354eef 684
685
f58aa3e1 686
687tagnames=${tagnames+${tagnames},}CXX
688
689tagnames=${tagnames+${tagnames},}F77
690
691exec 7<&0 </dev/null 6>&1
692
89354eef 693# Name of the host.
694# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695# so uname gets run too.
696ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
89354eef 698#
699# Initializations.
700#
701ac_default_prefix=/usr/local
f58aa3e1 702ac_clean_files=
49ba971d 703ac_config_libobj_dir=.
f58aa3e1 704LIBOBJS=
89354eef 705cross_compiling=no
706subdirs=
707MFLAGS=
708MAKEFLAGS=
709SHELL=${CONFIG_SHELL-/bin/sh}
710
89354eef 711# Identity of this package.
712PACKAGE_NAME='libopm'
713PACKAGE_TARNAME='libopm'
714PACKAGE_VERSION='0.1'
715PACKAGE_STRING='libopm 0.1'
716PACKAGE_BUGREPORT=''
717
718ac_unique_file="src/libopm.h"
a85b2128 719ac_default_prefix=/usr/local/libopm
89354eef 720# Factoring default headers for most tests.
721ac_includes_default="\
722#include <stdio.h>
723#if HAVE_SYS_TYPES_H
724# include <sys/types.h>
725#endif
726#if HAVE_SYS_STAT_H
727# include <sys/stat.h>
728#endif
729#if STDC_HEADERS
730# include <stdlib.h>
731# include <stddef.h>
732#else
733# if HAVE_STDLIB_H
734# include <stdlib.h>
735# endif
736#endif
737#if HAVE_STRING_H
738# if !STDC_HEADERS && HAVE_MEMORY_H
739# include <memory.h>
740# endif
741# include <string.h>
742#endif
743#if HAVE_STRINGS_H
744# include <strings.h>
745#endif
746#if HAVE_INTTYPES_H
747# include <inttypes.h>
f58aa3e1 748#endif
749#if HAVE_STDINT_H
750# include <stdint.h>
89354eef 751#endif
752#if HAVE_UNISTD_H
753# include <unistd.h>
754#endif"
755
f58aa3e1 756ac_subst_vars='SHELL
757PATH_SEPARATOR
758PACKAGE_NAME
759PACKAGE_TARNAME
760PACKAGE_VERSION
761PACKAGE_STRING
762PACKAGE_BUGREPORT
763exec_prefix
764prefix
765program_transform_name
766bindir
767sbindir
768libexecdir
769datarootdir
770datadir
771sysconfdir
772sharedstatedir
773localstatedir
774includedir
775oldincludedir
776docdir
777infodir
778htmldir
779dvidir
780pdfdir
781psdir
782libdir
783localedir
784mandir
785DEFS
786ECHO_C
787ECHO_N
788ECHO_T
789LIBS
790build_alias
791host_alias
792target_alias
793INSTALL_PROGRAM
794INSTALL_SCRIPT
795INSTALL_DATA
796CYGPATH_W
797PACKAGE
798VERSION
799ACLOCAL
800AUTOCONF
801AUTOMAKE
802AUTOHEADER
803MAKEINFO
804install_sh
805STRIP
806INSTALL_STRIP_PROGRAM
807mkdir_p
808AWK
809SET_MAKE
810am__leading_dot
811AMTAR
812am__tar
813am__untar
814MAINTAINER_MODE_TRUE
815MAINTAINER_MODE_FALSE
816MAINT
817DOX_DIR_HTML
818DOX_DIR_LATEX
819DOX_DIR_MAN
820CC
821CFLAGS
822LDFLAGS
823CPPFLAGS
824ac_ct_CC
825EXEEXT
826OBJEXT
827DEPDIR
828am__include
829am__quote
830AMDEP_TRUE
831AMDEP_FALSE
832AMDEPBACKSLASH
833CCDEPMODE
834am__fastdepCC_TRUE
835am__fastdepCC_FALSE
836build
837build_cpu
838build_vendor
839build_os
840host
841host_cpu
842host_vendor
843host_os
844GREP
845EGREP
846LN_S
847ECHO
848AR
849RANLIB
850CPP
851CXX
852CXXFLAGS
853ac_ct_CXX
854CXXDEPMODE
855am__fastdepCXX_TRUE
856am__fastdepCXX_FALSE
857CXXCPP
858F77
859FFLAGS
860ac_ct_F77
861LIBTOOL
862LIBTOOL_DEPS
863ETR_SOCKET_LIBS
864LIBOBJS
865LSOCKET
866LNSL
867LTLIBOBJS'
49ba971d 868ac_subst_files=''
f58aa3e1 869 ac_precious_vars='build_alias
870host_alias
871target_alias
872CC
873CFLAGS
874LDFLAGS
875CPPFLAGS
876CPP
877CXX
878CXXFLAGS
879CCC
880CXXCPP
881F77
882FFLAGS'
883
89354eef 884
885# Initialize some variables set by options.
886ac_init_help=
887ac_init_version=false
888# The variables have the same names as the options, with
889# dashes changed to underlines.
890cache_file=/dev/null
891exec_prefix=NONE
892no_create=
893no_recursion=
894prefix=NONE
895program_prefix=NONE
896program_suffix=NONE
897program_transform_name=s,x,x,
898silent=
899site=
900srcdir=
901verbose=
902x_includes=NONE
903x_libraries=NONE
904
905# Installation directory options.
906# These are left unexpanded so users can "make install exec_prefix=/foo"
907# and all the variables that are supposed to be based on exec_prefix
908# by default will actually change.
909# Use braces instead of parens because sh, perl, etc. also accept them.
f58aa3e1 910# (The list follows the same order as the GNU Coding Standards.)
89354eef 911bindir='${exec_prefix}/bin'
912sbindir='${exec_prefix}/sbin'
913libexecdir='${exec_prefix}/libexec'
f58aa3e1 914datarootdir='${prefix}/share'
915datadir='${datarootdir}'
89354eef 916sysconfdir='${prefix}/etc'
917sharedstatedir='${prefix}/com'
918localstatedir='${prefix}/var'
89354eef 919includedir='${prefix}/include'
920oldincludedir='/usr/include'
f58aa3e1 921docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922infodir='${datarootdir}/info'
923htmldir='${docdir}'
924dvidir='${docdir}'
925pdfdir='${docdir}'
926psdir='${docdir}'
927libdir='${exec_prefix}/lib'
928localedir='${datarootdir}/locale'
929mandir='${datarootdir}/man'
89354eef 930
931ac_prev=
f58aa3e1 932ac_dashdash=
89354eef 933for ac_option
934do
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
f58aa3e1 937 eval $ac_prev=\$ac_option
89354eef 938 ac_prev=
939 continue
940 fi
941
f58aa3e1 942 case $ac_option in
943 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 *) ac_optarg=yes ;;
945 esac
89354eef 946
947 # Accept the important Cygnus configure options, so we can diagnose typos.
948
f58aa3e1 949 case $ac_dashdash$ac_option in
950 --)
951 ac_dashdash=yes ;;
89354eef 952
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 bindir=$ac_optarg ;;
957
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
962
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
969
970 --config-cache | -C)
971 cache_file=config.cache ;;
972
f58aa3e1 973 -datadir | --datadir | --datadi | --datad)
89354eef 974 ac_prev=datadir ;;
f58aa3e1 975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
89354eef 976 datadir=$ac_optarg ;;
977
f58aa3e1 978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
984
89354eef 985 -disable-* | --disable-*)
986 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
989 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
990 { (exit 1); exit 1; }; }
991 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
f58aa3e1 992 eval enable_$ac_feature=no ;;
993
994 -docdir | --docdir | --docdi | --doc | --do)
995 ac_prev=docdir ;;
996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 docdir=$ac_optarg ;;
998
999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 ac_prev=dvidir ;;
1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002 dvidir=$ac_optarg ;;
89354eef 1003
1004 -enable-* | --enable-*)
1005 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1008 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009 { (exit 1); exit 1; }; }
1010 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
f58aa3e1 1011 eval enable_$ac_feature=\$ac_optarg ;;
89354eef 1012
1013 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015 | --exec | --exe | --ex)
1016 ac_prev=exec_prefix ;;
1017 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019 | --exec=* | --exe=* | --ex=*)
1020 exec_prefix=$ac_optarg ;;
1021
1022 -gas | --gas | --ga | --g)
1023 # Obsolete; use --with-gas.
1024 with_gas=yes ;;
1025
1026 -help | --help | --hel | --he | -h)
1027 ac_init_help=long ;;
1028 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029 ac_init_help=recursive ;;
1030 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031 ac_init_help=short ;;
1032
1033 -host | --host | --hos | --ho)
1034 ac_prev=host_alias ;;
1035 -host=* | --host=* | --hos=* | --ho=*)
1036 host_alias=$ac_optarg ;;
1037
f58aa3e1 1038 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 ac_prev=htmldir ;;
1040 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 | --ht=*)
1042 htmldir=$ac_optarg ;;
1043
89354eef 1044 -includedir | --includedir | --includedi | --included | --include \
1045 | --includ | --inclu | --incl | --inc)
1046 ac_prev=includedir ;;
1047 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048 | --includ=* | --inclu=* | --incl=* | --inc=*)
1049 includedir=$ac_optarg ;;
1050
1051 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 ac_prev=infodir ;;
1053 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054 infodir=$ac_optarg ;;
1055
1056 -libdir | --libdir | --libdi | --libd)
1057 ac_prev=libdir ;;
1058 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059 libdir=$ac_optarg ;;
1060
1061 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062 | --libexe | --libex | --libe)
1063 ac_prev=libexecdir ;;
1064 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065 | --libexe=* | --libex=* | --libe=*)
1066 libexecdir=$ac_optarg ;;
1067
f58aa3e1 1068 -localedir | --localedir | --localedi | --localed | --locale)
1069 ac_prev=localedir ;;
1070 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071 localedir=$ac_optarg ;;
1072
89354eef 1073 -localstatedir | --localstatedir | --localstatedi | --localstated \
f58aa3e1 1074 | --localstate | --localstat | --localsta | --localst | --locals)
89354eef 1075 ac_prev=localstatedir ;;
1076 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
f58aa3e1 1077 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
89354eef 1078 localstatedir=$ac_optarg ;;
1079
1080 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 ac_prev=mandir ;;
1082 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083 mandir=$ac_optarg ;;
1084
1085 -nfp | --nfp | --nf)
1086 # Obsolete; use --without-fp.
1087 with_fp=no ;;
1088
1089 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090 | --no-cr | --no-c | -n)
1091 no_create=yes ;;
1092
1093 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 no_recursion=yes ;;
1096
1097 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099 | --oldin | --oldi | --old | --ol | --o)
1100 ac_prev=oldincludedir ;;
1101 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104 oldincludedir=$ac_optarg ;;
1105
1106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 ac_prev=prefix ;;
1108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109 prefix=$ac_optarg ;;
1110
1111 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112 | --program-pre | --program-pr | --program-p)
1113 ac_prev=program_prefix ;;
1114 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116 program_prefix=$ac_optarg ;;
1117
1118 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119 | --program-suf | --program-su | --program-s)
1120 ac_prev=program_suffix ;;
1121 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123 program_suffix=$ac_optarg ;;
1124
1125 -program-transform-name | --program-transform-name \
1126 | --program-transform-nam | --program-transform-na \
1127 | --program-transform-n | --program-transform- \
1128 | --program-transform | --program-transfor \
1129 | --program-transfo | --program-transf \
1130 | --program-trans | --program-tran \
1131 | --progr-tra | --program-tr | --program-t)
1132 ac_prev=program_transform_name ;;
1133 -program-transform-name=* | --program-transform-name=* \
1134 | --program-transform-nam=* | --program-transform-na=* \
1135 | --program-transform-n=* | --program-transform-=* \
1136 | --program-transform=* | --program-transfor=* \
1137 | --program-transfo=* | --program-transf=* \
1138 | --program-trans=* | --program-tran=* \
1139 | --progr-tra=* | --program-tr=* | --program-t=*)
1140 program_transform_name=$ac_optarg ;;
1141
f58aa3e1 1142 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 ac_prev=pdfdir ;;
1144 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145 pdfdir=$ac_optarg ;;
1146
1147 -psdir | --psdir | --psdi | --psd | --ps)
1148 ac_prev=psdir ;;
1149 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 psdir=$ac_optarg ;;
1151
89354eef 1152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153 | -silent | --silent | --silen | --sile | --sil)
1154 silent=yes ;;
1155
1156 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157 ac_prev=sbindir ;;
1158 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159 | --sbi=* | --sb=*)
1160 sbindir=$ac_optarg ;;
1161
1162 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164 | --sharedst | --shareds | --shared | --share | --shar \
1165 | --sha | --sh)
1166 ac_prev=sharedstatedir ;;
1167 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170 | --sha=* | --sh=*)
1171 sharedstatedir=$ac_optarg ;;
1172
1173 -site | --site | --sit)
1174 ac_prev=site ;;
1175 -site=* | --site=* | --sit=*)
1176 site=$ac_optarg ;;
1177
1178 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179 ac_prev=srcdir ;;
1180 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181 srcdir=$ac_optarg ;;
1182
1183 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184 | --syscon | --sysco | --sysc | --sys | --sy)
1185 ac_prev=sysconfdir ;;
1186 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188 sysconfdir=$ac_optarg ;;
1189
1190 -target | --target | --targe | --targ | --tar | --ta | --t)
1191 ac_prev=target_alias ;;
1192 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193 target_alias=$ac_optarg ;;
1194
1195 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 verbose=yes ;;
1197
1198 -version | --version | --versio | --versi | --vers | -V)
1199 ac_init_version=: ;;
1200
1201 -with-* | --with-*)
1202 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1205 { echo "$as_me: error: invalid package name: $ac_package" >&2
1206 { (exit 1); exit 1; }; }
1207 ac_package=`echo $ac_package| sed 's/-/_/g'`
f58aa3e1 1208 eval with_$ac_package=\$ac_optarg ;;
89354eef 1209
1210 -without-* | --without-*)
1211 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1214 { echo "$as_me: error: invalid package name: $ac_package" >&2
1215 { (exit 1); exit 1; }; }
1216 ac_package=`echo $ac_package | sed 's/-/_/g'`
f58aa3e1 1217 eval with_$ac_package=no ;;
89354eef 1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1236
1237 -*) { echo "$as_me: error: unrecognized option: $ac_option
1238Try \`$0 --help' for more information." >&2
1239 { (exit 1); exit 1; }; }
1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1246 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1247 { (exit 1); exit 1; }; }
f58aa3e1 1248 eval $ac_envvar=\$ac_optarg
89354eef 1249 export $ac_envvar ;;
1250
1251 *)
1252 # FIXME: should be removed in autoconf 3.0.
1253 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 ;;
1258
1259 esac
1260done
1261
1262if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 { echo "$as_me: error: missing argument to $ac_option" >&2
1265 { (exit 1); exit 1; }; }
1266fi
1267
f58aa3e1 1268# Be sure to have absolute directory names.
1269for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
89354eef 1273do
f58aa3e1 1274 eval ac_val=\$$ac_var
89354eef 1275 case $ac_val in
f58aa3e1 1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
89354eef 1278 esac
f58aa3e1 1279 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1280 { (exit 1); exit 1; }; }
89354eef 1281done
1282
1283# There might be people who depend on the old broken behavior: `$host'
1284# used to hold the argument of --host etc.
1285# FIXME: To remove some day.
1286build=$build_alias
1287host=$host_alias
1288target=$target_alias
1289
1290# FIXME: To remove some day.
1291if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1295 If a cross compiler is detected then cross compile mode will be used." >&2
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299fi
1300
1301ac_tool_prefix=
1302test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304test "$silent" = yes && exec 6>/dev/null
1305
1306
f58aa3e1 1307ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308ac_ls_di=`ls -di .` &&
1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 { echo "$as_me: error: Working directory cannot be determined" >&2
1311 { (exit 1); exit 1; }; }
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 { echo "$as_me: error: pwd does not report name of working directory" >&2
1314 { (exit 1); exit 1; }; }
1315
1316
89354eef 1317# Find the source files, if location was not specified.
1318if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
f58aa3e1 1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$0" ||
89354eef 1322$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f58aa3e1 1323 X"$0" : 'X\(//\)[^/]' \| \
1324 X"$0" : 'X\(//\)$' \| \
1325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
89354eef 1326echo X"$0" |
f58aa3e1 1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
89354eef 1344 srcdir=$ac_confdir
f58aa3e1 1345 if test ! -r "$srcdir/$ac_unique_file"; then
89354eef 1346 srcdir=..
1347 fi
1348else
1349 ac_srcdir_defaulted=no
1350fi
f58aa3e1 1351if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
89354eef 1354 { (exit 1); exit 1; }; }
89354eef 1355fi
f58aa3e1 1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357ac_abs_confdir=`(
1358 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
49ba971d 1359 { (exit 1); exit 1; }; }
f58aa3e1 1360 pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
1371for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376done
89354eef 1377
1378#
1379# Report the --help message.
1380#
1381if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
1385\`configure' configures libopm 0.1 to adapt to many kinds of systems.
1386
1387Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392Defaults for the options are specified in brackets.
1393
1394Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print \`checking...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404
89354eef 1405Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
f58aa3e1 1407 [$ac_default_prefix]
89354eef 1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
f58aa3e1 1409 [PREFIX]
89354eef 1410
1411By default, \`make install' will install all the files in
1412\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414for instance \`--prefix=\$HOME'.
1415
1416For better control, use the options below.
1417
1418Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
89354eef 1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --oldincludedir=DIR C header files for non-gcc [/usr/include]
f58aa3e1 1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430 --infodir=DIR info documentation [DATAROOTDIR/info]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root [DATAROOTDIR/doc/libopm]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
89354eef 1438_ACEOF
1439
1440 cat <<\_ACEOF
1441
1442Program names:
1443 --program-prefix=PREFIX prepend PREFIX to installed program names
1444 --program-suffix=SUFFIX append SUFFIX to installed program names
1445 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1446
1447System types:
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450_ACEOF
1451fi
1452
1453if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of libopm 0.1:";;
1456 esac
1457 cat <<\_ACEOF
1458
1459Optional Features:
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f58aa3e1 1462 --enable-maintainer-mode enable make rules and dependencies not useful
1463 (and sometimes confusing) to the casual installer
1464 --disable-dependency-tracking speeds up one-time build
1465 --enable-dependency-tracking do not reject slow dependency extractors
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
89354eef 1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471
1472Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
13931fb2 1475 --with-extra-fascism add extra gcc3-specific warning flags
f58aa3e1 1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-pic try to use only PIC/non-PIC objects [default=use
1478 both]
1479 --with-tags[=TAGS] include additional configurations [automatic]
49ba971d 1480 --with-werror use -Werror to abort compilation on any warning
89354eef 1481
1482Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
f58aa3e1 1487 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
89354eef 1489 CPP C preprocessor
f58aa3e1 1490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
1492 CXXCPP C++ preprocessor
1493 F77 Fortran 77 compiler command
1494 FFLAGS Fortran 77 compiler flags
89354eef 1495
1496Use these variables to override the choices made by `configure' or to help
1497it to find libraries and programs with nonstandard names/locations.
1498
1499_ACEOF
f58aa3e1 1500ac_status=$?
89354eef 1501fi
1502
1503if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
89354eef 1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
f58aa3e1 1506 test -d "$ac_dir" || continue
89354eef 1507 ac_builddir=.
1508
f58aa3e1 1509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
89354eef 1512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
f58aa3e1 1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
89354eef 1524
1525case $srcdir in
f58aa3e1 1526 .) # We are building in place.
89354eef 1527 ac_srcdir=.
f58aa3e1 1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
89354eef 1531 ac_srcdir=$srcdir$ac_dir_suffix;
f58aa3e1 1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538esac
1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
89354eef 1549 else
1550 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
f58aa3e1 1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
89354eef 1553 done
1554fi
1555
f58aa3e1 1556test -n "$ac_init_help" && exit $ac_status
89354eef 1557if $ac_init_version; then
1558 cat <<\_ACEOF
1559libopm configure 0.1
f58aa3e1 1560generated by GNU Autoconf 2.60
89354eef 1561
f58aa3e1 1562Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15632002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
89354eef 1564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
1566_ACEOF
f58aa3e1 1567 exit
89354eef 1568fi
f58aa3e1 1569cat >config.log <<_ACEOF
89354eef 1570This file contains any messages produced by compilers while
1571running configure, to aid debugging if configure makes a mistake.
1572
1573It was created by libopm $as_me 0.1, which was
f58aa3e1 1574generated by GNU Autoconf 2.60. Invocation command line was
89354eef 1575
1576 $ $0 $@
1577
1578_ACEOF
f58aa3e1 1579exec 5>>config.log
89354eef 1580{
1581cat <<_ASUNAME
1582## --------- ##
1583## Platform. ##
1584## --------- ##
1585
1586hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1587uname -m = `(uname -m) 2>/dev/null || echo unknown`
1588uname -r = `(uname -r) 2>/dev/null || echo unknown`
1589uname -s = `(uname -s) 2>/dev/null || echo unknown`
1590uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591
1592/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1593/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594
1595/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1596/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1597/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
f58aa3e1 1598/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
89354eef 1599/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1600/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1601/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1602
1603_ASUNAME
1604
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 echo "PATH: $as_dir"
1611done
f58aa3e1 1612IFS=$as_save_IFS
89354eef 1613
1614} >&5
1615
1616cat >&5 <<_ACEOF
1617
1618
1619## ----------- ##
1620## Core tests. ##
1621## ----------- ##
1622
1623_ACEOF
1624
1625
1626# Keep a trace of the command line.
1627# Strip out --no-create and --no-recursion so they do not pile up.
49ba971d 1628# Strip out --silent because we don't want to record it for future runs.
89354eef 1629# Also quote any args containing shell meta-characters.
49ba971d 1630# Make two passes to allow for proper duplicate-argument suppression.
89354eef 1631ac_configure_args=
49ba971d 1632ac_configure_args0=
1633ac_configure_args1=
49ba971d 1634ac_must_keep_next=false
1635for ac_pass in 1 2
89354eef 1636do
49ba971d 1637 for ac_arg
1638 do
1639 case $ac_arg in
1640 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642 | -silent | --silent | --silen | --sile | --sil)
1643 continue ;;
f58aa3e1 1644 *\'*)
49ba971d 1645 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1646 esac
1647 case $ac_pass in
1648 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649 2)
1650 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1651 if test $ac_must_keep_next = true; then
f58aa3e1 1652 ac_must_keep_next=false # Got value, back to normal.
49ba971d 1653 else
f58aa3e1 1654 case $ac_arg in
1655 *=* | --config-cache | -C | -disable-* | --disable-* \
1656 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1657 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1658 | -with-* | --with-* | -without-* | --without-* | --x)
1659 case "$ac_configure_args0 " in
1660 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1661 esac
1662 ;;
1663 -* ) ac_must_keep_next=true ;;
1664 esac
49ba971d 1665 fi
f58aa3e1 1666 ac_configure_args="$ac_configure_args '$ac_arg'"
49ba971d 1667 ;;
1668 esac
1669 done
89354eef 1670done
49ba971d 1671$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1672$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
89354eef 1673
1674# When interrupted or exit'd, cleanup temporary files, and complete
1675# config.log. We remove comments because anyway the quotes in there
1676# would cause problems or look ugly.
f58aa3e1 1677# WARNING: Use '\'' to represent an apostrophe within the trap.
1678# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
89354eef 1679trap 'exit_status=$?
1680 # Save into config.log some information that might help in debugging.
1681 {
1682 echo
49ba971d 1683
89354eef 1684 cat <<\_ASBOX
1685## ---------------- ##
1686## Cache variables. ##
1687## ---------------- ##
1688_ASBOX
1689 echo
1690 # The following way of writing the cache mishandles newlines in values,
f58aa3e1 1691(
1692 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1693 eval ac_val=\$$ac_var
1694 case $ac_val in #(
1695 *${as_nl}*)
1696 case $ac_var in #(
1697 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1698echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1699 esac
1700 case $ac_var in #(
1701 _ | IFS | as_nl) ;; #(
1702 *) $as_unset $ac_var ;;
1703 esac ;;
1704 esac
1705 done
89354eef 1706 (set) 2>&1 |
f58aa3e1 1707 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1708 *${as_nl}ac_space=\ *)
89354eef 1709 sed -n \
f58aa3e1 1710 "s/'\''/'\''\\\\'\'''\''/g;
1711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1712 ;; #(
89354eef 1713 *)
f58aa3e1 1714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
89354eef 1715 ;;
f58aa3e1 1716 esac |
1717 sort
1718)
89354eef 1719 echo
49ba971d 1720
1721 cat <<\_ASBOX
1722## ----------------- ##
1723## Output variables. ##
1724## ----------------- ##
1725_ASBOX
1726 echo
1727 for ac_var in $ac_subst_vars
1728 do
f58aa3e1 1729 eval ac_val=\$$ac_var
1730 case $ac_val in
1731 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 esac
1733 echo "$ac_var='\''$ac_val'\''"
49ba971d 1734 done | sort
1735 echo
1736
1737 if test -n "$ac_subst_files"; then
1738 cat <<\_ASBOX
f58aa3e1 1739## ------------------- ##
1740## File substitutions. ##
1741## ------------------- ##
49ba971d 1742_ASBOX
1743 echo
1744 for ac_var in $ac_subst_files
1745 do
f58aa3e1 1746 eval ac_val=\$$ac_var
1747 case $ac_val in
1748 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 esac
1750 echo "$ac_var='\''$ac_val'\''"
49ba971d 1751 done | sort
1752 echo
1753 fi
1754
89354eef 1755 if test -s confdefs.h; then
1756 cat <<\_ASBOX
1757## ----------- ##
1758## confdefs.h. ##
1759## ----------- ##
1760_ASBOX
1761 echo
f58aa3e1 1762 cat confdefs.h
89354eef 1763 echo
1764 fi
1765 test "$ac_signal" != 0 &&
1766 echo "$as_me: caught signal $ac_signal"
1767 echo "$as_me: exit $exit_status"
1768 } >&5
f58aa3e1 1769 rm -f core *.core core.conftest.* &&
1770 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
89354eef 1771 exit $exit_status
f58aa3e1 1772' 0
89354eef 1773for ac_signal in 1 2 13 15; do
1774 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1775done
1776ac_signal=0
1777
1778# confdefs.h avoids OS command line length limits that DEFS can exceed.
f58aa3e1 1779rm -f -r conftest* confdefs.h
89354eef 1780
1781# Predefined preprocessor variables.
1782
1783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_NAME "$PACKAGE_NAME"
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1790_ACEOF
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_VERSION "$PACKAGE_VERSION"
1795_ACEOF
1796
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_STRING "$PACKAGE_STRING"
1800_ACEOF
1801
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1805_ACEOF
1806
1807
1808# Let the site file select an alternate cache file if it wants to.
1809# Prefer explicitly selected file to automatically selected ones.
f58aa3e1 1810if test -n "$CONFIG_SITE"; then
1811 set x "$CONFIG_SITE"
1812elif test "x$prefix" != xNONE; then
1813 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814else
1815 set x "$ac_default_prefix/share/config.site" \
1816 "$ac_default_prefix/etc/config.site"
89354eef 1817fi
f58aa3e1 1818shift
1819for ac_site_file
1820do
89354eef 1821 if test -r "$ac_site_file"; then
1822 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1823echo "$as_me: loading site script $ac_site_file" >&6;}
1824 sed 's/^/| /' "$ac_site_file" >&5
1825 . "$ac_site_file"
1826 fi
1827done
1828
1829if test -r "$cache_file"; then
1830 # Some versions of bash will fail to source /dev/null (special
1831 # files actually), so we avoid doing that.
1832 if test -f "$cache_file"; then
1833 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1834echo "$as_me: loading cache $cache_file" >&6;}
1835 case $cache_file in
f58aa3e1 1836 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1837 *) . "./$cache_file";;
89354eef 1838 esac
1839 fi
1840else
1841 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1842echo "$as_me: creating cache $cache_file" >&6;}
1843 >$cache_file
1844fi
1845
1846# Check that the precious variables saved in the cache have kept the same
1847# value.
1848ac_cache_corrupted=false
f58aa3e1 1849for ac_var in $ac_precious_vars; do
89354eef 1850 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1851 eval ac_new_set=\$ac_env_${ac_var}_set
f58aa3e1 1852 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1853 eval ac_new_val=\$ac_env_${ac_var}_value
89354eef 1854 case $ac_old_set,$ac_new_set in
1855 set,)
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1857echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1859 ,set)
1860 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1861echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1862 ac_cache_corrupted=: ;;
1863 ,);;
1864 *)
1865 if test "x$ac_old_val" != "x$ac_new_val"; then
f58aa3e1 1866 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
89354eef 1867echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
f58aa3e1 1868 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
89354eef 1869echo "$as_me: former value: $ac_old_val" >&2;}
f58aa3e1 1870 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
89354eef 1871echo "$as_me: current value: $ac_new_val" >&2;}
f58aa3e1 1872 ac_cache_corrupted=:
89354eef 1873 fi;;
1874 esac
1875 # Pass precious variables to config.status.
1876 if test "$ac_new_set" = set; then
1877 case $ac_new_val in
f58aa3e1 1878 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
89354eef 1879 *) ac_arg=$ac_var=$ac_new_val ;;
1880 esac
1881 case " $ac_configure_args " in
1882 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1883 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1884 esac
1885 fi
1886done
1887if $ac_cache_corrupted; then
1888 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1889echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1890 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1891echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1892 { (exit 1); exit 1; }; }
1893fi
1894
89354eef 1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
49ba971d 1917
89354eef 1918
f58aa3e1 1919ac_ext=c
1920ac_cpp='$CPP $CPPFLAGS'
1921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923ac_compiler_gnu=$ac_cv_c_compiler_gnu
89354eef 1924
89354eef 1925
1926
f58aa3e1 1927ac_config_headers="$ac_config_headers src/setup.h"
89354eef 1928
f58aa3e1 1929am__api_version="1.9"
89354eef 1930ac_aux_dir=
f58aa3e1 1931for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1932 if test -f "$ac_dir/install-sh"; then
89354eef 1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/install-sh -c"
1935 break
f58aa3e1 1936 elif test -f "$ac_dir/install.sh"; then
89354eef 1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install.sh -c"
1939 break
f58aa3e1 1940 elif test -f "$ac_dir/shtool"; then
89354eef 1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/shtool install -c"
1943 break
1944 fi
1945done
1946if test -z "$ac_aux_dir"; then
f58aa3e1 1947 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1948echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
89354eef 1949 { (exit 1); exit 1; }; }
1950fi
f58aa3e1 1951
1952# These three variables are undocumented and unsupported,
1953# and are intended to be withdrawn in a future Autoconf release.
1954# They can cause serious problems if a builder's source tree is in a directory
1955# whose full name contains unusual characters.
1956ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1957ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1958ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1959
89354eef 1960
1961# Find a good install program. We prefer a C program (faster),
1962# so one script is as good as another. But avoid the broken or
1963# incompatible versions:
1964# SysV /etc/install, /usr/sbin/install
1965# SunOS /usr/etc/install
1966# IRIX /sbin/install
1967# AIX /bin/install
1968# AmigaOS /C/install, which installs bootblocks on floppy discs
1969# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1970# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1971# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
f58aa3e1 1972# OS/2's system install, which has a completely different semantic
89354eef 1973# ./install, which can be erroneously created by make from ./install.sh.
f58aa3e1 1974{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1975echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
89354eef 1976if test -z "$INSTALL"; then
1977if test "${ac_cv_path_install+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 # Account for people who put trailing slashes in PATH elements.
1986case $as_dir/ in
1987 ./ | .// | /cC/* | \
1988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
f58aa3e1 1989 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
89354eef 1990 /usr/ucb/* ) ;;
1991 *)
1992 # OSF1 and SCO ODT 3.0 have their own names for install.
1993 # Don't use installbsd from OSF since it installs stuff as root
1994 # by default.
1995 for ac_prog in ginstall scoinst install; do
1996 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 1997 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1998 if test $ac_prog = install &&
1999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2000 # AIX install. It has an incompatible calling convention.
2001 :
2002 elif test $ac_prog = install &&
2003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2004 # program-specific install script used by HP pwplus--don't use.
2005 :
2006 else
2007 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2008 break 3
2009 fi
2010 fi
89354eef 2011 done
2012 done
2013 ;;
2014esac
2015done
f58aa3e1 2016IFS=$as_save_IFS
89354eef 2017
2018
2019fi
2020 if test "${ac_cv_path_install+set}" = set; then
2021 INSTALL=$ac_cv_path_install
2022 else
f58aa3e1 2023 # As a last resort, use the slow shell script. Don't cache a
2024 # value for INSTALL within a source directory, because that will
89354eef 2025 # break other packages using the cache if that directory is
f58aa3e1 2026 # removed, or if the value is a relative name.
89354eef 2027 INSTALL=$ac_install_sh
2028 fi
2029fi
f58aa3e1 2030{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2031echo "${ECHO_T}$INSTALL" >&6; }
89354eef 2032
2033# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2034# It thinks the first close brace ends the variable substitution.
2035test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2036
2037test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2038
2039test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2040
f58aa3e1 2041{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2042echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
89354eef 2043# Just in case
2044sleep 1
2045echo timestamp > conftest.file
2046# Do `set' in a subshell so we don't clobber the current shell's
2047# arguments. Must try -L first in case configure is actually a
2048# symlink; some systems play weird games with the mod time of symlinks
2049# (eg FreeBSD returns the mod time of the symlink's containing
2050# directory).
2051if (
2052 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2053 if test "$*" = "X"; then
2054 # -L didn't work.
2055 set X `ls -t $srcdir/configure conftest.file`
2056 fi
2057 rm -f conftest.file
2058 if test "$*" != "X $srcdir/configure conftest.file" \
2059 && test "$*" != "X conftest.file $srcdir/configure"; then
2060
2061 # If neither matched, then we have a broken ls. This can happen
2062 # if, for instance, CONFIG_SHELL is bash and it inherits a
2063 # broken ls alias from the environment. This has actually
2064 # happened. Such a system could not be considered "sane".
2065 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2066alias in your environment" >&5
2067echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2068alias in your environment" >&2;}
2069 { (exit 1); exit 1; }; }
2070 fi
2071
2072 test "$2" = conftest.file
2073 )
2074then
2075 # Ok.
2076 :
2077else
2078 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2079Check your system clock" >&5
2080echo "$as_me: error: newly created file is older than distributed files!
2081Check your system clock" >&2;}
2082 { (exit 1); exit 1; }; }
2083fi
f58aa3e1 2084{ echo "$as_me:$LINENO: result: yes" >&5
2085echo "${ECHO_T}yes" >&6; }
89354eef 2086test "$program_prefix" != NONE &&
f58aa3e1 2087 program_transform_name="s&^&$program_prefix&;$program_transform_name"
89354eef 2088# Use a double $ so make ignores it.
2089test "$program_suffix" != NONE &&
f58aa3e1 2090 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
89354eef 2091# Double any \ or $. echo might interpret backslashes.
2092# By default was `s,x,x', remove it if useless.
2093cat <<\_ACEOF >conftest.sed
2094s/[\\$]/&&/g;s/;s,x,x,$//
2095_ACEOF
2096program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
f58aa3e1 2097rm -f conftest.sed
89354eef 2098
2099# expand $ac_aux_dir to an absolute path
2100am_aux_dir=`cd $ac_aux_dir && pwd`
2101
2102test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2103# Use eval to expand $SHELL
2104if eval "$MISSING --run true"; then
2105 am_missing_run="$MISSING --run "
2106else
2107 am_missing_run=
2108 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2109echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2110fi
2111
f58aa3e1 2112if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2113 # We used to keeping the `.' as first argument, in order to
2114 # allow $(mkdir_p) to be used without argument. As in
2115 # $(mkdir_p) $(somedir)
2116 # where $(somedir) is conditionally defined. However this is wrong
2117 # for two reasons:
2118 # 1. if the package is installed by a user who cannot write `.'
2119 # make install will fail,
2120 # 2. the above comment should most certainly read
2121 # $(mkdir_p) $(DESTDIR)$(somedir)
2122 # so it does not work when $(somedir) is undefined and
2123 # $(DESTDIR) is not.
2124 # To support the latter case, we have to write
2125 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2126 # so the `.' trick is pointless.
2127 mkdir_p='mkdir -p --'
2128else
2129 # On NextStep and OpenStep, the `mkdir' command does not
2130 # recognize any option. It will interpret all options as
2131 # directories to create, and then abort because `.' already
2132 # exists.
2133 for d in ./-p ./--version;
2134 do
2135 test -d $d && rmdir $d
2136 done
2137 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2138 if test -f "$ac_aux_dir/mkinstalldirs"; then
2139 mkdir_p='$(mkinstalldirs)'
2140 else
2141 mkdir_p='$(install_sh) -d'
2142 fi
2143fi
2144
89354eef 2145for ac_prog in gawk mawk nawk awk
2146do
2147 # Extract the first word of "$ac_prog", so it can be a program name with args.
2148set dummy $ac_prog; ac_word=$2
f58aa3e1 2149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
89354eef 2151if test "${ac_cv_prog_AWK+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
2154 if test -n "$AWK"; then
2155 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2156else
2157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158for as_dir in $PATH
2159do
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
89354eef 2164 ac_cv_prog_AWK="$ac_prog"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 break 2
2167 fi
2168done
2169done
f58aa3e1 2170IFS=$as_save_IFS
89354eef 2171
2172fi
2173fi
2174AWK=$ac_cv_prog_AWK
2175if test -n "$AWK"; then
f58aa3e1 2176 { echo "$as_me:$LINENO: result: $AWK" >&5
2177echo "${ECHO_T}$AWK" >&6; }
89354eef 2178else
f58aa3e1 2179 { echo "$as_me:$LINENO: result: no" >&5
2180echo "${ECHO_T}no" >&6; }
89354eef 2181fi
2182
f58aa3e1 2183
89354eef 2184 test -n "$AWK" && break
2185done
2186
f58aa3e1 2187{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2188echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2189set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2190if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
89354eef 2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 cat >conftest.make <<\_ACEOF
f58aa3e1 2194SHELL = /bin/sh
89354eef 2195all:
f58aa3e1 2196 @echo '@@@%%%=$(MAKE)=@@@%%%'
89354eef 2197_ACEOF
2198# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f58aa3e1 2199case `${MAKE-make} -f conftest.make 2>/dev/null` in
2200 *@@@%%%=?*=@@@%%%*)
2201 eval ac_cv_prog_make_${ac_make}_set=yes;;
2202 *)
2203 eval ac_cv_prog_make_${ac_make}_set=no;;
2204esac
89354eef 2205rm -f conftest.make
2206fi
f58aa3e1 2207if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2208 { echo "$as_me:$LINENO: result: yes" >&5
2209echo "${ECHO_T}yes" >&6; }
89354eef 2210 SET_MAKE=
2211else
f58aa3e1 2212 { echo "$as_me:$LINENO: result: no" >&5
2213echo "${ECHO_T}no" >&6; }
89354eef 2214 SET_MAKE="MAKE=${MAKE-make}"
2215fi
2216
f58aa3e1 2217rm -rf .tst 2>/dev/null
2218mkdir .tst 2>/dev/null
2219if test -d .tst; then
2220 am__leading_dot=.
2221else
2222 am__leading_dot=_
2223fi
2224rmdir .tst 2>/dev/null
2225
2226# test to see if srcdir already configured
89354eef 2227if test "`cd $srcdir && pwd`" != "`pwd`" &&
2228 test -f $srcdir/config.status; then
2229 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2230echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2231 { (exit 1); exit 1; }; }
2232fi
2233
f58aa3e1 2234# test whether we have cygpath
2235if test -z "$CYGPATH_W"; then
2236 if (cygpath --version) >/dev/null 2>/dev/null; then
2237 CYGPATH_W='cygpath -w'
2238 else
2239 CYGPATH_W=echo
2240 fi
2241fi
2242
2243
89354eef 2244# Define the identity of the package.
f58aa3e1 2245 PACKAGE='libopm'
2246 VERSION='0.1'
89354eef 2247
2248
2249cat >>confdefs.h <<_ACEOF
2250#define PACKAGE "$PACKAGE"
2251_ACEOF
2252
2253
2254cat >>confdefs.h <<_ACEOF
2255#define VERSION "$VERSION"
2256_ACEOF
2257
2258# Some tools Automake needs.
2259
2260ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2261
2262
2263AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2264
2265
2266AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2267
2268
2269AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2270
2271
2272MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2273
89354eef 2274install_sh=${install_sh-"$am_aux_dir/install-sh"}
2275
2276# Installed binaries are usually stripped using `strip' when the user
2277# run `make install-strip'. However `strip' might not be the right
2278# tool to use in cross-compilation environments, therefore Automake
2279# will honor the `STRIP' environment variable to overrule this program.
2280if test "$cross_compiling" != no; then
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2283set dummy ${ac_tool_prefix}strip; ac_word=$2
f58aa3e1 2284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
89354eef 2286if test "${ac_cv_prog_STRIP+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289 if test -n "$STRIP"; then
2290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2291else
2292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293for as_dir in $PATH
2294do
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
89354eef 2299 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2302 fi
2303done
2304done
f58aa3e1 2305IFS=$as_save_IFS
89354eef 2306
2307fi
2308fi
2309STRIP=$ac_cv_prog_STRIP
2310if test -n "$STRIP"; then
f58aa3e1 2311 { echo "$as_me:$LINENO: result: $STRIP" >&5
2312echo "${ECHO_T}$STRIP" >&6; }
89354eef 2313else
f58aa3e1 2314 { echo "$as_me:$LINENO: result: no" >&5
2315echo "${ECHO_T}no" >&6; }
89354eef 2316fi
2317
f58aa3e1 2318
89354eef 2319fi
2320if test -z "$ac_cv_prog_STRIP"; then
2321 ac_ct_STRIP=$STRIP
2322 # Extract the first word of "strip", so it can be a program name with args.
2323set dummy strip; ac_word=$2
f58aa3e1 2324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
89354eef 2326if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328else
2329 if test -n "$ac_ct_STRIP"; then
2330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2331else
2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333for as_dir in $PATH
2334do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
89354eef 2339 ac_cv_prog_ac_ct_STRIP="strip"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2342 fi
2343done
2344done
f58aa3e1 2345IFS=$as_save_IFS
89354eef 2346
89354eef 2347fi
2348fi
2349ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2350if test -n "$ac_ct_STRIP"; then
f58aa3e1 2351 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2352echo "${ECHO_T}$ac_ct_STRIP" >&6; }
89354eef 2353else
f58aa3e1 2354 { echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6; }
89354eef 2356fi
2357
f58aa3e1 2358 if test "x$ac_ct_STRIP" = x; then
2359 STRIP=":"
2360 else
2361 case $cross_compiling:$ac_tool_warned in
2362yes:)
2363{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2364whose name does not start with the host triplet. If you think this
2365configuration is useful to you, please write to autoconf@gnu.org." >&5
2366echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2367whose name does not start with the host triplet. If you think this
2368configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2369ac_tool_warned=yes ;;
2370esac
2371 STRIP=$ac_ct_STRIP
2372 fi
89354eef 2373else
2374 STRIP="$ac_cv_prog_STRIP"
2375fi
2376
2377fi
2378INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2379
2380# We need awk for the "check" target. The system "awk" is bad on
2381# some platforms.
f58aa3e1 2382# Always define AMTAR for backward compatibility.
2383
2384AMTAR=${AMTAR-"${am_missing_run}tar"}
89354eef 2385
f58aa3e1 2386am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
89354eef 2387
2388
2389
f58aa3e1 2390
2391
2392
2393{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2394echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2395 # Check whether --enable-maintainer-mode was given.
89354eef 2396if test "${enable_maintainer_mode+set}" = set; then
f58aa3e1 2397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
89354eef 2398else
2399 USE_MAINTAINER_MODE=no
f58aa3e1 2400fi
2401
2402 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2403echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
89354eef 2404
2405
2406if test $USE_MAINTAINER_MODE = yes; then
2407 MAINTAINER_MODE_TRUE=
2408 MAINTAINER_MODE_FALSE='#'
2409else
2410 MAINTAINER_MODE_TRUE='#'
2411 MAINTAINER_MODE_FALSE=
2412fi
2413
2414 MAINT=$MAINTAINER_MODE_TRUE
2415
2416
2417
03fff986 2418# for documentation purposes
2419DOX_DIR_HTML=api
2420DOX_DIR_LATEX=latex
2421DOX_DIR_MAN=man
2422
2423
2424
2425
2426
89354eef 2427
f58aa3e1 2428# Check whether --with-extra-fascism was given.
89354eef 2429if test "${with_extra_fascism+set}" = set; then
f58aa3e1 2430 withval=$with_extra_fascism; CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
2431fi
2432
89354eef 2433
13931fb2 2434
89354eef 2435ac_ext=c
2436ac_cpp='$CPP $CPPFLAGS'
2437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440if test -n "$ac_tool_prefix"; then
2441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2442set dummy ${ac_tool_prefix}gcc; ac_word=$2
f58aa3e1 2443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
89354eef 2445if test "${ac_cv_prog_CC+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447else
2448 if test -n "$CC"; then
2449 ac_cv_prog_CC="$CC" # Let the user override the test.
2450else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
89354eef 2458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2461 fi
2462done
2463done
f58aa3e1 2464IFS=$as_save_IFS
89354eef 2465
2466fi
2467fi
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
f58aa3e1 2470 { echo "$as_me:$LINENO: result: $CC" >&5
2471echo "${ECHO_T}$CC" >&6; }
89354eef 2472else
f58aa3e1 2473 { echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6; }
89354eef 2475fi
2476
f58aa3e1 2477
89354eef 2478fi
2479if test -z "$ac_cv_prog_CC"; then
2480 ac_ct_CC=$CC
2481 # Extract the first word of "gcc", so it can be a program name with args.
2482set dummy gcc; ac_word=$2
f58aa3e1 2483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
89354eef 2485if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488 if test -n "$ac_ct_CC"; then
2489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2490else
2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
89354eef 2498 ac_cv_prog_ac_ct_CC="gcc"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 break 2
2501 fi
2502done
2503done
f58aa3e1 2504IFS=$as_save_IFS
89354eef 2505
2506fi
2507fi
2508ac_ct_CC=$ac_cv_prog_ac_ct_CC
2509if test -n "$ac_ct_CC"; then
f58aa3e1 2510 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2511echo "${ECHO_T}$ac_ct_CC" >&6; }
89354eef 2512else
f58aa3e1 2513 { echo "$as_me:$LINENO: result: no" >&5
2514echo "${ECHO_T}no" >&6; }
89354eef 2515fi
2516
f58aa3e1 2517 if test "x$ac_ct_CC" = x; then
2518 CC=""
2519 else
2520 case $cross_compiling:$ac_tool_warned in
2521yes:)
2522{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2523whose name does not start with the host triplet. If you think this
2524configuration is useful to you, please write to autoconf@gnu.org." >&5
2525echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2526whose name does not start with the host triplet. If you think this
2527configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2528ac_tool_warned=yes ;;
2529esac
2530 CC=$ac_ct_CC
2531 fi
89354eef 2532else
2533 CC="$ac_cv_prog_CC"
2534fi
2535
2536if test -z "$CC"; then
f58aa3e1 2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
89354eef 2539set dummy ${ac_tool_prefix}cc; ac_word=$2
f58aa3e1 2540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
89354eef 2542if test "${ac_cv_prog_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547else
2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
89354eef 2555 ac_cv_prog_CC="${ac_tool_prefix}cc"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559done
2560done
f58aa3e1 2561IFS=$as_save_IFS
89354eef 2562
2563fi
2564fi
2565CC=$ac_cv_prog_CC
2566if test -n "$CC"; then
f58aa3e1 2567 { echo "$as_me:$LINENO: result: $CC" >&5
2568echo "${ECHO_T}$CC" >&6; }
89354eef 2569else
f58aa3e1 2570 { echo "$as_me:$LINENO: result: no" >&5
2571echo "${ECHO_T}no" >&6; }
89354eef 2572fi
2573
89354eef 2574
f58aa3e1 2575 fi
89354eef 2576fi
2577if test -z "$CC"; then
2578 # Extract the first word of "cc", so it can be a program name with args.
2579set dummy cc; ac_word=$2
f58aa3e1 2580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
89354eef 2582if test "${ac_cv_prog_CC+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587else
2588 ac_prog_rejected=no
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
89354eef 2596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2597 ac_prog_rejected=yes
2598 continue
2599 fi
2600 ac_cv_prog_CC="cc"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604done
2605done
f58aa3e1 2606IFS=$as_save_IFS
89354eef 2607
2608if test $ac_prog_rejected = yes; then
2609 # We found a bogon in the path, so make sure we never use it.
2610 set dummy $ac_cv_prog_CC
2611 shift
2612 if test $# != 0; then
2613 # We chose a different compiler from the bogus one.
2614 # However, it has the same basename, so the bogon will be chosen
2615 # first if we set CC to just the basename; use the full file name.
2616 shift
49ba971d 2617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
89354eef 2618 fi
2619fi
2620fi
2621fi
2622CC=$ac_cv_prog_CC
2623if test -n "$CC"; then
f58aa3e1 2624 { echo "$as_me:$LINENO: result: $CC" >&5
2625echo "${ECHO_T}$CC" >&6; }
89354eef 2626else
f58aa3e1 2627 { echo "$as_me:$LINENO: result: no" >&5
2628echo "${ECHO_T}no" >&6; }
89354eef 2629fi
2630
f58aa3e1 2631
89354eef 2632fi
2633if test -z "$CC"; then
2634 if test -n "$ac_tool_prefix"; then
f58aa3e1 2635 for ac_prog in cl.exe
89354eef 2636 do
2637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2638set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f58aa3e1 2639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
89354eef 2641if test "${ac_cv_prog_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$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
f58aa3e1 2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
89354eef 2654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658done
2659done
f58aa3e1 2660IFS=$as_save_IFS
89354eef 2661
2662fi
2663fi
2664CC=$ac_cv_prog_CC
2665if test -n "$CC"; then
f58aa3e1 2666 { echo "$as_me:$LINENO: result: $CC" >&5
2667echo "${ECHO_T}$CC" >&6; }
89354eef 2668else
f58aa3e1 2669 { echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6; }
89354eef 2671fi
2672
f58aa3e1 2673
89354eef 2674 test -n "$CC" && break
2675 done
2676fi
2677if test -z "$CC"; then
2678 ac_ct_CC=$CC
f58aa3e1 2679 for ac_prog in cl.exe
89354eef 2680do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682set dummy $ac_prog; ac_word=$2
f58aa3e1 2683{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
89354eef 2685if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687else
2688 if test -n "$ac_ct_CC"; then
2689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
89354eef 2698 ac_cv_prog_ac_ct_CC="$ac_prog"
2699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702done
2703done
f58aa3e1 2704IFS=$as_save_IFS
89354eef 2705
2706fi
2707fi
2708ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709if test -n "$ac_ct_CC"; then
f58aa3e1 2710 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2711echo "${ECHO_T}$ac_ct_CC" >&6; }
89354eef 2712else
f58aa3e1 2713 { echo "$as_me:$LINENO: result: no" >&5
2714echo "${ECHO_T}no" >&6; }
89354eef 2715fi
2716
f58aa3e1 2717
89354eef 2718 test -n "$ac_ct_CC" && break
2719done
2720
f58aa3e1 2721 if test "x$ac_ct_CC" = x; then
2722 CC=""
2723 else
2724 case $cross_compiling:$ac_tool_warned in
2725yes:)
2726{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2727whose name does not start with the host triplet. If you think this
2728configuration is useful to you, please write to autoconf@gnu.org." >&5
2729echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2730whose name does not start with the host triplet. If you think this
2731configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2732ac_tool_warned=yes ;;
2733esac
2734 CC=$ac_ct_CC
2735 fi
89354eef 2736fi
2737
2738fi
2739
2740
49ba971d 2741test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2742See \`config.log' for more details." >&5
2743echo "$as_me: error: no acceptable C compiler found in \$PATH
2744See \`config.log' for more details." >&2;}
89354eef 2745 { (exit 1); exit 1; }; }
2746
2747# Provide some information about the compiler.
f58aa3e1 2748echo "$as_me:$LINENO: checking for C compiler version" >&5
89354eef 2749ac_compiler=`set X $ac_compile; echo $2`
f58aa3e1 2750{ (ac_try="$ac_compiler --version >&5"
2751case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2754esac
2755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compiler --version >&5") 2>&5
89354eef 2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
f58aa3e1 2760{ (ac_try="$ac_compiler -v >&5"
2761case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764esac
2765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compiler -v >&5") 2>&5
89354eef 2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }
f58aa3e1 2770{ (ac_try="$ac_compiler -V >&5"
2771case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774esac
2775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_compiler -V >&5") 2>&5
89354eef 2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }
2780
2781cat >conftest.$ac_ext <<_ACEOF
49ba971d 2782/* confdefs.h. */
2783_ACEOF
2784cat confdefs.h >>conftest.$ac_ext
2785cat >>conftest.$ac_ext <<_ACEOF
2786/* end confdefs.h. */
89354eef 2787
89354eef 2788int
2789main ()
2790{
2791
2792 ;
2793 return 0;
2794}
2795_ACEOF
2796ac_clean_files_save=$ac_clean_files
49ba971d 2797ac_clean_files="$ac_clean_files a.out a.exe b.out"
89354eef 2798# Try to create an executable without -o first, disregard a.out.
2799# It will help us diagnose broken compilers, and finding out an intuition
2800# of exeext.
f58aa3e1 2801{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2802echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
89354eef 2803ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
f58aa3e1 2804#
2805# List of possible output files, starting from the most likely.
2806# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2807# only as a last resort. b.out is created by i960 compilers.
2808ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2809#
2810# The IRIX 6 linker writes into existing files which may not be
2811# executable, retaining their permissions. Remove them first so a
2812# subsequent execution test works.
2813ac_rmfiles=
2814for ac_file in $ac_files
2815do
2816 case $ac_file in
2817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2818 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2819 esac
2820done
2821rm -f $ac_rmfiles
2822
2823if { (ac_try="$ac_link_default"
2824case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827esac
2828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_link_default") 2>&5
89354eef 2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; then
f58aa3e1 2833 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2834# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2835# in a Makefile. We should not override ac_cv_exeext if it was cached,
2836# so that the user can short-circuit this test for compilers unknown to
2837# Autoconf.
2838for ac_file in $ac_files
49ba971d 2839do
2840 test -f "$ac_file" || continue
89354eef 2841 case $ac_file in
f58aa3e1 2842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2843 ;;
49ba971d 2844 [ab].out )
f58aa3e1 2845 # We found the default executable, but exeext='' is most
2846 # certainly right.
2847 break;;
49ba971d 2848 *.* )
f58aa3e1 2849 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2850 then :; else
2851 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 fi
2853 # We set ac_cv_exeext here because the later test for it is not
2854 # safe: cross compilers may not add the suffix if given an `-o'
2855 # argument, so we may need to know it at that point already.
2856 # Even if this section looks crufty: it has the advantage of
2857 # actually working.
2858 break;;
49ba971d 2859 * )
f58aa3e1 2860 break;;
89354eef 2861 esac
2862done
f58aa3e1 2863test "$ac_cv_exeext" = no && ac_cv_exeext=
2864
89354eef 2865else
2866 echo "$as_me: failed program was:" >&5
49ba971d 2867sed 's/^/| /' conftest.$ac_ext >&5
2868
2869{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870See \`config.log' for more details." >&5
2871echo "$as_me: error: C compiler cannot create executables
2872See \`config.log' for more details." >&2;}
89354eef 2873 { (exit 77); exit 77; }; }
2874fi
2875
2876ac_exeext=$ac_cv_exeext
f58aa3e1 2877{ echo "$as_me:$LINENO: result: $ac_file" >&5
2878echo "${ECHO_T}$ac_file" >&6; }
89354eef 2879
f58aa3e1 2880# Check that the compiler produces executables we can run. If not, either
89354eef 2881# the compiler is broken, or we cross compile.
f58aa3e1 2882{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2883echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
89354eef 2884# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2885# If not cross compiling, check that we can run a simple program.
2886if test "$cross_compiling" != yes; then
2887 if { ac_try='./$ac_file'
f58aa3e1 2888 { (case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_try") 2>&5
89354eef 2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2897 cross_compiling=no
2898 else
2899 if test "$cross_compiling" = maybe; then
2900 cross_compiling=yes
2901 else
2902 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
49ba971d 2903If you meant to cross compile, use \`--host'.
2904See \`config.log' for more details." >&5
89354eef 2905echo "$as_me: error: cannot run C compiled programs.
49ba971d 2906If you meant to cross compile, use \`--host'.
2907See \`config.log' for more details." >&2;}
89354eef 2908 { (exit 1); exit 1; }; }
2909 fi
2910 fi
2911fi
f58aa3e1 2912{ echo "$as_me:$LINENO: result: yes" >&5
2913echo "${ECHO_T}yes" >&6; }
89354eef 2914
49ba971d 2915rm -f a.out a.exe conftest$ac_cv_exeext b.out
89354eef 2916ac_clean_files=$ac_clean_files_save
f58aa3e1 2917# Check that the compiler produces executables we can run. If not, either
89354eef 2918# the compiler is broken, or we cross compile.
f58aa3e1 2919{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2920echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2921{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2922echo "${ECHO_T}$cross_compiling" >&6; }
2923
2924{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2925echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2926if { (ac_try="$ac_link"
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_link") 2>&5
89354eef 2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; then
2936 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2937# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2938# work properly (i.e., refer to `conftest.exe'), while it won't with
2939# `rm'.
49ba971d 2940for ac_file in conftest.exe conftest conftest.*; do
2941 test -f "$ac_file" || continue
89354eef 2942 case $ac_file in
f58aa3e1 2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
89354eef 2944 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
f58aa3e1 2945 break;;
89354eef 2946 * ) break;;
2947 esac
2948done
2949else
49ba971d 2950 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2951See \`config.log' for more details." >&5
2952echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2953See \`config.log' for more details." >&2;}
89354eef 2954 { (exit 1); exit 1; }; }
2955fi
2956
2957rm -f conftest$ac_cv_exeext
f58aa3e1 2958{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2959echo "${ECHO_T}$ac_cv_exeext" >&6; }
89354eef 2960
2961rm -f conftest.$ac_ext
2962EXEEXT=$ac_cv_exeext
2963ac_exeext=$EXEEXT
f58aa3e1 2964{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2965echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
89354eef 2966if test "${ac_cv_objext+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968else
2969 cat >conftest.$ac_ext <<_ACEOF
49ba971d 2970/* confdefs.h. */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h. */
89354eef 2975
89354eef 2976int
2977main ()
2978{
2979
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984rm -f conftest.o conftest.obj
f58aa3e1 2985if { (ac_try="$ac_compile"
2986case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>&5
89354eef 2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; then
f58aa3e1 2995 for ac_file in conftest.o conftest.obj conftest.*; do
2996 test -f "$ac_file" || continue;
89354eef 2997 case $ac_file in
f58aa3e1 2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
89354eef 2999 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3000 break;;
3001 esac
3002done
3003else
3004 echo "$as_me: failed program was:" >&5
49ba971d 3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3008See \`config.log' for more details." >&5
3009echo "$as_me: error: cannot compute suffix of object files: cannot compile
3010See \`config.log' for more details." >&2;}
89354eef 3011 { (exit 1); exit 1; }; }
3012fi
3013
3014rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015fi
f58aa3e1 3016{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3017echo "${ECHO_T}$ac_cv_objext" >&6; }
89354eef 3018OBJEXT=$ac_cv_objext
3019ac_objext=$OBJEXT
f58aa3e1 3020{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3021echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
89354eef 3022if test "${ac_cv_c_compiler_gnu+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025 cat >conftest.$ac_ext <<_ACEOF
49ba971d 3026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
89354eef 3031
89354eef 3032int
3033main ()
3034{
3035#ifndef __GNUC__
3036 choke me
3037#endif
3038
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext
f58aa3e1 3044if { (ac_try="$ac_compile"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
89354eef 3051 ac_status=$?
f58aa3e1 3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
89354eef 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } &&
f58aa3e1 3057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; } &&
3067 { ac_try='test -s conftest.$ac_objext'
3068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_try") 2>&5
89354eef 3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 ac_compiler_gnu=yes
3078else
3079 echo "$as_me: failed program was:" >&5
49ba971d 3080sed 's/^/| /' conftest.$ac_ext >&5
3081
f58aa3e1 3082 ac_compiler_gnu=no
89354eef 3083fi
f58aa3e1 3084
3085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89354eef 3086ac_cv_c_compiler_gnu=$ac_compiler_gnu
3087
3088fi
f58aa3e1 3089{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3090echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
89354eef 3091GCC=`test $ac_compiler_gnu = yes && echo yes`
3092ac_test_CFLAGS=${CFLAGS+set}
3093ac_save_CFLAGS=$CFLAGS
f58aa3e1 3094{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3095echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
89354eef 3096if test "${ac_cv_prog_cc_g+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098else
f58aa3e1 3099 ac_save_c_werror_flag=$ac_c_werror_flag
3100 ac_c_werror_flag=yes
3101 ac_cv_prog_cc_g=no
3102 CFLAGS="-g"
3103 cat >conftest.$ac_ext <<_ACEOF
49ba971d 3104/* confdefs.h. */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h. */
89354eef 3109
89354eef 3110int
3111main ()
3112{
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
f58aa3e1 3119if { (ac_try="$ac_compile"
3120case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
89354eef 3126 ac_status=$?
f58aa3e1 3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
89354eef 3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
f58aa3e1 3132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
89354eef 3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7ad87fe 3151 (exit $ac_status); }; }; then
3152 ac_cv_prog_cc_g=yes
aa93efde 3153else
3154 echo "$as_me: failed program was:" >&5
49ba971d 3155sed 's/^/| /' conftest.$ac_ext >&5
3156
f58aa3e1 3157 CFLAGS=""
3158 cat >conftest.$ac_ext <<_ACEOF
49ba971d 3159/* confdefs.h. */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h. */
f58aa3e1 3164
49ba971d 3165int
3166main ()
3167{
f58aa3e1 3168
49ba971d 3169 ;
3170 return 0;
3171}
3172_ACEOF
f58aa3e1 3173rm -f conftest.$ac_objext
3174if { (ac_try="$ac_compile"
3175case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
49ba971d 3181 ac_status=$?
f58aa3e1 3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
49ba971d 3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
f58aa3e1 3187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
49ba971d 3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
f58aa3e1 3207 :
49ba971d 3208else
3209 echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
f58aa3e1 3212 ac_c_werror_flag=$ac_save_c_werror_flag
3213 CFLAGS="-g"
3214 cat >conftest.$ac_ext <<_ACEOF
49ba971d 3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
f58aa3e1 3220
89354eef 3221int
3222main ()
3223{
f58aa3e1 3224
89354eef 3225 ;
3226 return 0;
3227}
3228_ACEOF
3229rm -f conftest.$ac_objext
f58aa3e1 3230if { (ac_try="$ac_compile"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
89354eef 3237 ac_status=$?
f58aa3e1 3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
89354eef 3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
f58aa3e1 3243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3244 { (case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
3248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257esac
3258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_try") 2>&5
89354eef 3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
f58aa3e1 3263 ac_cv_prog_cc_g=yes
89354eef 3264else
3265 echo "$as_me: failed program was:" >&5
49ba971d 3266sed 's/^/| /' conftest.$ac_ext >&5
3267
f58aa3e1 3268
89354eef 3269fi
f58aa3e1 3270
3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272fi
3273
3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275fi
3276
3277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 ac_c_werror_flag=$ac_save_c_werror_flag
3279fi
3280{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3281echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3282if test "$ac_test_CFLAGS" = set; then
3283 CFLAGS=$ac_save_CFLAGS
3284elif test $ac_cv_prog_cc_g = yes; then
3285 if test "$GCC" = yes; then
3286 CFLAGS="-g -O2"
3287 else
3288 CFLAGS="-g"
3289 fi
3290else
3291 if test "$GCC" = yes; then
3292 CFLAGS="-O2"
3293 else
3294 CFLAGS=
3295 fi
3296fi
3297{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3298echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3299if test "${ac_cv_prog_cc_c89+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302 ac_cv_prog_cc_c89=no
3303ac_save_CC=$CC
3304cat >conftest.$ac_ext <<_ACEOF
49ba971d 3305/* confdefs.h. */
3306_ACEOF
3307cat confdefs.h >>conftest.$ac_ext
3308cat >>conftest.$ac_ext <<_ACEOF
3309/* end confdefs.h. */
f58aa3e1 3310#include <stdarg.h>
3311#include <stdio.h>
3312#include <sys/types.h>
3313#include <sys/stat.h>
3314/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3315struct buf { int x; };
3316FILE * (*rcsopen) (struct buf *, struct stat *, int);
3317static char *e (p, i)
3318 char **p;
3319 int i;
3320{
3321 return p[i];
3322}
3323static char *f (char * (*g) (char **, int), char **p, ...)
3324{
3325 char *s;
3326 va_list v;
3327 va_start (v,p);
3328 s = g (p, va_arg (v,int));
3329 va_end (v);
3330 return s;
3331}
3332
3333/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3334 function prototypes and stuff, but not '\xHH' hex character constants.
3335 These don't provoke an error unfortunately, instead are silently treated
3336 as 'x'. The following induces an error, until -std is added to get
3337 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3338 array size at least. It's necessary to write '\x00'==0 to get something
3339 that's true only with -std. */
3340int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341
3342/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3343 inside strings and character constants. */
3344#define FOO(x) 'x'
3345int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346
3347int test (int i, double x);
3348struct s1 {int (*f) (int a);};
3349struct s2 {int (*f) (double a);};
3350int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3351int argc;
3352char **argv;
89354eef 3353int
3354main ()
3355{
f58aa3e1 3356return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
89354eef 3357 ;
3358 return 0;
3359}
3360_ACEOF
f58aa3e1 3361for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3362 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363do
3364 CC="$ac_save_CC $ac_arg"
3365 rm -f conftest.$ac_objext
3366if { (ac_try="$ac_compile"
3367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
3371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_compile") 2>conftest.er1
89354eef 3373 ac_status=$?
f58aa3e1 3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
89354eef 3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
f58aa3e1 3379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3380 { (case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_try") 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
3394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_try") 2>&5
89354eef 3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
f58aa3e1 3399 ac_cv_prog_cc_c89=$ac_arg
89354eef 3400else
3401 echo "$as_me: failed program was:" >&5
49ba971d 3402sed 's/^/| /' conftest.$ac_ext >&5
3403
f58aa3e1 3404
89354eef 3405fi
f58aa3e1 3406
3407rm -f core conftest.err conftest.$ac_objext
3408 test "x$ac_cv_prog_cc_c89" != "xno" && break
89354eef 3409done
f58aa3e1 3410rm -f conftest.$ac_ext
3411CC=$ac_save_CC
3412
89354eef 3413fi
f58aa3e1 3414# AC_CACHE_VAL
3415case "x$ac_cv_prog_cc_c89" in
3416 x)
3417 { echo "$as_me:$LINENO: result: none needed" >&5
3418echo "${ECHO_T}none needed" >&6; } ;;
3419 xno)
3420 { echo "$as_me:$LINENO: result: unsupported" >&5
3421echo "${ECHO_T}unsupported" >&6; } ;;
3422 *)
3423 CC="$CC $ac_cv_prog_cc_c89"
3424 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3425echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3426esac
89354eef 3427
49ba971d 3428
89354eef 3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
f58aa3e1 3434DEPDIR="${am__leading_dot}deps"
89354eef 3435
f58aa3e1 3436ac_config_commands="$ac_config_commands depfiles"
89354eef 3437
3438
3439am_make=${MAKE-make}
3440cat > confinc << 'END'
f58aa3e1 3441am__doit:
89354eef 3442 @echo done
f58aa3e1 3443.PHONY: am__doit
89354eef 3444END
3445# If we don't find an include directive, just comment out the code.
f58aa3e1 3446{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3447echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
89354eef 3448am__include="#"
3449am__quote=
3450_am_result=none
3451# First try GNU make style include.
3452echo "include confinc" > confmf
3453# We grep out `Entering directory' and `Leaving directory'
3454# messages which can occur if `w' ends up in MAKEFLAGS.
3455# In particular we don't look at `^make:' because GNU make might
3456# be invoked under some other name (usually "gmake"), in which
3457# case it prints its new name instead of `make'.
f58aa3e1 3458if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
89354eef 3459 am__include=include
3460 am__quote=
3461 _am_result=GNU
3462fi
3463# Now try BSD make style include.
3464if test "$am__include" = "#"; then
3465 echo '.include "confinc"' > confmf
3466 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3467 am__include=.include
3468 am__quote="\""
3469 _am_result=BSD
3470 fi
3471fi
3472
3473
f58aa3e1 3474{ echo "$as_me:$LINENO: result: $_am_result" >&5
3475echo "${ECHO_T}$_am_result" >&6; }
89354eef 3476rm -f confinc confmf
3477
f58aa3e1 3478# Check whether --enable-dependency-tracking was given.
89354eef 3479if test "${enable_dependency_tracking+set}" = set; then
f58aa3e1 3480 enableval=$enable_dependency_tracking;
3481fi
89354eef 3482
89354eef 3483if test "x$enable_dependency_tracking" != xno; then
3484 am_depcomp="$ac_aux_dir/depcomp"
3485 AMDEPBACKSLASH='\'
3486fi
3487
3488
3489if test "x$enable_dependency_tracking" != xno; then
3490 AMDEP_TRUE=
3491 AMDEP_FALSE='#'
3492else
3493 AMDEP_TRUE='#'
3494 AMDEP_FALSE=
3495fi
3496
3497
3498
3499
3500depcc="$CC" am_compiler_list=
3501
f58aa3e1 3502{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3503echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
89354eef 3504if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3508 # We make a subdir and do the tests there. Otherwise we can end up
3509 # making bogus files that we don't know about and never remove. For
3510 # instance it was reported that on HP-UX the gcc test will end up
3511 # making a dummy file named `D' -- because `-MD' means `put the output
3512 # in D'.
3513 mkdir conftest.dir
3514 # Copy depcomp to subdir because otherwise we won't find it if we're
3515 # using a relative directory.
3516 cp "$am_depcomp" conftest.dir
3517 cd conftest.dir
f58aa3e1 3518 # We will build objects and dependencies in a subdirectory because
3519 # it helps to detect inapplicable dependency modes. For instance
3520 # both Tru64's cc and ICC support -MD to output dependencies as a
3521 # side effect of compilation, but ICC will put the dependencies in
3522 # the current directory while Tru64 will put them in the object
3523 # directory.
3524 mkdir sub
89354eef 3525
3526 am_cv_CC_dependencies_compiler_type=none
3527 if test "$am_compiler_list" = ""; then
3528 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3529 fi
3530 for depmode in $am_compiler_list; do
f58aa3e1 3531 # Setup a source with many dependencies, because some compilers
3532 # like to wrap large dependency lists on column 80 (with \), and
3533 # we should not choose a depcomp mode which is confused by this.
3534 #
89354eef 3535 # We need to recreate these files for each test, as the compiler may
3536 # overwrite some of them when testing with obscure command lines.
3537 # This happens at least with the AIX C compiler.
f58aa3e1 3538 : > sub/conftest.c
3539 for i in 1 2 3 4 5 6; do
3540 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3541 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3542 # Solaris 8's {/usr,}/bin/sh.
3543 touch sub/conftst$i.h
3544 done
3545 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
89354eef 3546
3547 case $depmode in
3548 nosideeffect)
3549 # after this tag, mechanisms are not by side-effect, so they'll
3550 # only be used when explicitly requested
3551 if test "x$enable_dependency_tracking" = xyes; then
3552 continue
3553 else
3554 break
3555 fi
3556 ;;
3557 none) break ;;
3558 esac
3559 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3560 # mode. It turns out that the SunPro C++ compiler does not properly
3561 # handle `-M -o', and we need to detect this.
3562 if depmode=$depmode \
f58aa3e1 3563 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3565 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3566 >/dev/null 2>conftest.err &&
3567 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3568 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
89354eef 3569 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
f58aa3e1 3570 # icc doesn't choke on unknown options, it will just issue warnings
3571 # or remarks (even with -Werror). So we grep stderr for any message
3572 # that says an option was ignored or not supported.
3573 # When given -MP, icc 7.0 and 7.1 complain thusly:
3574 # icc: Command line warning: ignoring option '-M'; no argument required
3575 # The diagnosis changed in icc 8.0:
3576 # icc: Command line remark: option '-MP' not supported
3577 if (grep 'ignoring option' conftest.err ||
3578 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3579 am_cv_CC_dependencies_compiler_type=$depmode
3580 break
3581 fi
89354eef 3582 fi
3583 done
3584
3585 cd ..
3586 rm -rf conftest.dir
3587else
3588 am_cv_CC_dependencies_compiler_type=none
3589fi
3590
3591fi
f58aa3e1 3592{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3593echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
89354eef 3594CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3595
3596
f58aa3e1 3597
3598if
3599 test "x$enable_dependency_tracking" != xno \
3600 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3601 am__fastdepCC_TRUE=
3602 am__fastdepCC_FALSE='#'
3603else
3604 am__fastdepCC_TRUE='#'
3605 am__fastdepCC_FALSE=
3606fi
3607
3608
3609# Check whether --enable-shared was given.
89354eef 3610if test "${enable_shared+set}" = set; then
f58aa3e1 3611 enableval=$enable_shared; p=${PACKAGE-default}
3612 case $enableval in
3613 yes) enable_shared=yes ;;
3614 no) enable_shared=no ;;
3615 *)
3616 enable_shared=no
3617 # Look at the argument we got. We use all the common list separators.
3618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3619 for pkg in $enableval; do
3620 IFS="$lt_save_ifs"
3621 if test "X$pkg" = "X$p"; then
3622 enable_shared=yes
3623 fi
3624 done
3625 IFS="$lt_save_ifs"
3626 ;;
3627 esac
89354eef 3628else
3629 enable_shared=yes
f58aa3e1 3630fi
3631
3632
3633# Check whether --enable-static was given.
89354eef 3634if test "${enable_static+set}" = set; then
f58aa3e1 3635 enableval=$enable_static; p=${PACKAGE-default}
3636 case $enableval in
3637 yes) enable_static=yes ;;
3638 no) enable_static=no ;;
3639 *)
3640 enable_static=no
3641 # Look at the argument we got. We use all the common list separators.
3642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3643 for pkg in $enableval; do
3644 IFS="$lt_save_ifs"
3645 if test "X$pkg" = "X$p"; then
3646 enable_static=yes
3647 fi
3648 done
3649 IFS="$lt_save_ifs"
3650 ;;
3651 esac
89354eef 3652else
3653 enable_static=yes
f58aa3e1 3654fi
3655
3656
3657# Check whether --enable-fast-install was given.
89354eef 3658if test "${enable_fast_install+set}" = set; then
f58aa3e1 3659 enableval=$enable_fast_install; p=${PACKAGE-default}
3660 case $enableval in
3661 yes) enable_fast_install=yes ;;
3662 no) enable_fast_install=no ;;
3663 *)
3664 enable_fast_install=no
3665 # Look at the argument we got. We use all the common list separators.
3666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667 for pkg in $enableval; do
3668 IFS="$lt_save_ifs"
3669 if test "X$pkg" = "X$p"; then
3670 enable_fast_install=yes
3671 fi
3672 done
3673 IFS="$lt_save_ifs"
3674 ;;
3675 esac
89354eef 3676else
3677 enable_fast_install=yes
f58aa3e1 3678fi
3679
3680
89354eef 3681# Make sure we can run config.sub.
f58aa3e1 3682$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3683 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3684echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
89354eef 3685 { (exit 1); exit 1; }; }
3686
f58aa3e1 3687{ echo "$as_me:$LINENO: checking build system type" >&5
3688echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
89354eef 3689if test "${ac_cv_build+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691else
f58aa3e1 3692 ac_build_alias=$build_alias
3693test "x$ac_build_alias" = x &&
3694 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3695test "x$ac_build_alias" = x &&
89354eef 3696 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3697echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3698 { (exit 1); exit 1; }; }
f58aa3e1 3699ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3700 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3701echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
89354eef 3702 { (exit 1); exit 1; }; }
3703
3704fi
f58aa3e1 3705{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3706echo "${ECHO_T}$ac_cv_build" >&6; }
3707case $ac_cv_build in
3708*-*-*) ;;
3709*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3710echo "$as_me: error: invalid value of canonical build" >&2;}
3711 { (exit 1); exit 1; }; };;
3712esac
89354eef 3713build=$ac_cv_build
f58aa3e1 3714ac_save_IFS=$IFS; IFS='-'
3715set x $ac_cv_build
3716shift
3717build_cpu=$1
3718build_vendor=$2
3719shift; shift
3720# Remember, the first character of IFS is used to create $*,
3721# except with old shells:
3722build_os=$*
3723IFS=$ac_save_IFS
3724case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3725
3726
3727{ echo "$as_me:$LINENO: checking host system type" >&5
3728echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
89354eef 3729if test "${ac_cv_host+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
f58aa3e1 3732 if test "x$host_alias" = x; then
3733 ac_cv_host=$ac_cv_build
3734else
3735 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3736 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3737echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
89354eef 3738 { (exit 1); exit 1; }; }
89354eef 3739fi
3740
89354eef 3741fi
f58aa3e1 3742{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3743echo "${ECHO_T}$ac_cv_host" >&6; }
3744case $ac_cv_host in
3745*-*-*) ;;
3746*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3747echo "$as_me: error: invalid value of canonical host" >&2;}
3748 { (exit 1); exit 1; }; };;
3749esac
3750host=$ac_cv_host
3751ac_save_IFS=$IFS; IFS='-'
3752set x $ac_cv_host
3753shift
3754host_cpu=$1
3755host_vendor=$2
3756shift; shift
3757# Remember, the first character of IFS is used to create $*,
3758# except with old shells:
3759host_os=$*
3760IFS=$ac_save_IFS
3761case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3762
3763
3764{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3765echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3766if test "${lt_cv_path_SED+set}" = set; then
89354eef 3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
f58aa3e1 3769 # Loop through the user's path and test for sed and gsed.
3770# Then use that list of sed's as ones to test for truncation.
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for lt_ac_prog in sed gsed; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3779 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
89354eef 3780 fi
f58aa3e1 3781 done
3782 done
3783done
3784lt_ac_max=0
3785lt_ac_count=0
3786# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3787# along with /bin/sed that truncates output.
3788for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3789 test ! -f $lt_ac_sed && continue
3790 cat /dev/null > conftest.in
3791 lt_ac_count=0
3792 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3793 # Check for GNU sed and select it if it is found.
3794 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3795 lt_cv_path_SED=$lt_ac_sed
3796 break
3797 fi
3798 while true; do
3799 cat conftest.in conftest.in >conftest.tmp
3800 mv conftest.tmp conftest.in
3801 cp conftest.in conftest.nl
3802 echo >>conftest.nl
3803 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3804 cmp -s conftest.out conftest.nl || break
3805 # 10000 chars as input seems more than enough
3806 test $lt_ac_count -gt 10 && break
3807 lt_ac_count=`expr $lt_ac_count + 1`
3808 if test $lt_ac_count -gt $lt_ac_max; then
3809 lt_ac_max=$lt_ac_count
3810 lt_cv_path_SED=$lt_ac_sed
89354eef 3811 fi
3812 done
f58aa3e1 3813done
3814
89354eef 3815fi
3816
f58aa3e1 3817SED=$lt_cv_path_SED
3818{ echo "$as_me:$LINENO: result: $SED" >&5
3819echo "${ECHO_T}$SED" >&6; }
3820
3821{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3822echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3823if test "${ac_cv_path_GREP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
89354eef 3825else
f58aa3e1 3826 # Extract the first word of "grep ggrep" to use in msg output
3827if test -z "$GREP"; then
3828set dummy grep ggrep; ac_prog_name=$2
3829if test "${ac_cv_path_GREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832 ac_path_GREP_found=false
3833# Loop through the user's path and test for each of PROGNAME-LIST
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3836do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_prog in grep ggrep; do
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3842 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3843 # Check for GNU ac_path_GREP and select it if it is found.
3844 # Check for GNU $ac_path_GREP
3845case `"$ac_path_GREP" --version 2>&1` in
3846*GNU*)
3847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3848*)
3849 ac_count=0
3850 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3851 while :
3852 do
3853 cat "conftest.in" "conftest.in" >"conftest.tmp"
3854 mv "conftest.tmp" "conftest.in"
3855 cp "conftest.in" "conftest.nl"
3856 echo 'GREP' >> "conftest.nl"
3857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3859 ac_count=`expr $ac_count + 1`
3860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3861 # Best one so far, save it but keep looking for a better one
3862 ac_cv_path_GREP="$ac_path_GREP"
3863 ac_path_GREP_max=$ac_count
3864 fi
3865 # 10*(2^10) chars as input seems more than enough
3866 test $ac_count -gt 10 && break
3867 done
3868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3869esac
3870
3871
3872 $ac_path_GREP_found && break 3
3873 done
3874done
3875
3876done
3877IFS=$as_save_IFS
3878
3879
3880fi
3881
3882GREP="$ac_cv_path_GREP"
3883if test -z "$GREP"; then
3884 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3885echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3886 { (exit 1); exit 1; }; }
3887fi
3888
3889else
3890 ac_cv_path_GREP=$GREP
3891fi
3892
3893
3894fi
3895{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3896echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3897 GREP="$ac_cv_path_GREP"
3898
3899
3900{ echo "$as_me:$LINENO: checking for egrep" >&5
3901echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3902if test "${ac_cv_path_EGREP+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904else
3905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906 then ac_cv_path_EGREP="$GREP -E"
3907 else
3908 # Extract the first word of "egrep" to use in msg output
3909if test -z "$EGREP"; then
3910set dummy egrep; ac_prog_name=$2
3911if test "${ac_cv_path_EGREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 ac_path_EGREP_found=false
3915# Loop through the user's path and test for each of PROGNAME-LIST
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in egrep; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3925 # Check for GNU ac_path_EGREP and select it if it is found.
3926 # Check for GNU $ac_path_EGREP
3927case `"$ac_path_EGREP" --version 2>&1` in
3928*GNU*)
3929 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3930*)
3931 ac_count=0
3932 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3933 while :
3934 do
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 echo 'EGREP' >> "conftest.nl"
3939 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 ac_count=`expr $ac_count + 1`
3942 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_EGREP="$ac_path_EGREP"
3945 ac_path_EGREP_max=$ac_count
3946 fi
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3949 done
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951esac
3952
3953
3954 $ac_path_EGREP_found && break 3
3955 done
3956done
3957
3958done
3959IFS=$as_save_IFS
3960
3961
3962fi
3963
3964EGREP="$ac_cv_path_EGREP"
3965if test -z "$EGREP"; then
3966 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3968 { (exit 1); exit 1; }; }
3969fi
3970
3971else
3972 ac_cv_path_EGREP=$EGREP
3973fi
3974
3975
3976 fi
3977fi
3978{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3979echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3980 EGREP="$ac_cv_path_EGREP"
3981
3982
3983
3984# Check whether --with-gnu-ld was given.
3985if test "${with_gnu_ld+set}" = set; then
3986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3987else
3988 with_gnu_ld=no
3989fi
3990
3991ac_prog=ld
3992if test "$GCC" = yes; then
3993 # Check if gcc -print-prog-name=ld gives a path.
3994 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3995echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3996 case $host in
3997 *-*-mingw*)
3998 # gcc leaves a trailing carriage return which upsets mingw
3999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4000 *)
4001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4002 esac
4003 case $ac_prog in
4004 # Accept absolute paths.
4005 [\\/]* | ?:[\\/]*)
4006 re_direlt='/[^/][^/]*/\.\./'
4007 # Canonicalize the pathname of ld
4008 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4009 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4010 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4011 done
4012 test -z "$LD" && LD="$ac_prog"
4013 ;;
4014 "")
4015 # If it fails, then pretend we aren't using GCC.
4016 ac_prog=ld
4017 ;;
4018 *)
4019 # If it is relative, then search for the first ld in PATH.
4020 with_gnu_ld=unknown
4021 ;;
4022 esac
4023elif test "$with_gnu_ld" = yes; then
4024 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4025echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4026else
4027 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4028echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4029fi
4030if test "${lt_cv_path_LD+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032else
4033 if test -z "$LD"; then
4034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4035 for ac_dir in $PATH; do
4036 IFS="$lt_save_ifs"
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4039 lt_cv_path_LD="$ac_dir/$ac_prog"
4040 # Check to see if the program is GNU ld. I'd rather use --version,
4041 # but apparently some variants of GNU ld only accept -v.
4042 # Break only if it was the GNU/non-GNU ld that we prefer.
4043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4044 *GNU* | *'with BFD'*)
4045 test "$with_gnu_ld" != no && break
4046 ;;
4047 *)
4048 test "$with_gnu_ld" != yes && break
4049 ;;
4050 esac
4051 fi
4052 done
4053 IFS="$lt_save_ifs"
4054else
4055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4056fi
4057fi
4058
4059LD="$lt_cv_path_LD"
4060if test -n "$LD"; then
4061 { echo "$as_me:$LINENO: result: $LD" >&5
4062echo "${ECHO_T}$LD" >&6; }
4063else
4064 { echo "$as_me:$LINENO: result: no" >&5
4065echo "${ECHO_T}no" >&6; }
4066fi
4067test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
89354eef 4068echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4069 { (exit 1); exit 1; }; }
f58aa3e1 4070{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4071echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
89354eef 4072if test "${lt_cv_prog_gnu_ld+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074else
f58aa3e1 4075 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4076case `$LD -v 2>&1 </dev/null` in
4077*GNU* | *'with BFD'*)
89354eef 4078 lt_cv_prog_gnu_ld=yes
f58aa3e1 4079 ;;
4080*)
89354eef 4081 lt_cv_prog_gnu_ld=no
f58aa3e1 4082 ;;
4083esac
89354eef 4084fi
f58aa3e1 4085{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4086echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
89354eef 4087with_gnu_ld=$lt_cv_prog_gnu_ld
4088
4089
f58aa3e1 4090{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4091echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
89354eef 4092if test "${lt_cv_ld_reload_flag+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095 lt_cv_ld_reload_flag='-r'
4096fi
f58aa3e1 4097{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4098echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
89354eef 4099reload_flag=$lt_cv_ld_reload_flag
f58aa3e1 4100case $reload_flag in
4101"" | " "*) ;;
4102*) reload_flag=" $reload_flag" ;;
4103esac
4104reload_cmds='$LD$reload_flag -o $output$reload_objs'
4105case $host_os in
4106 darwin*)
4107 if test "$GCC" = yes; then
4108 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4109 else
4110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4111 fi
4112 ;;
4113esac
89354eef 4114
f58aa3e1 4115{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4116echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
89354eef 4117if test "${lt_cv_path_NM+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 if test -n "$NM"; then
4121 # Let the user override the test.
4122 lt_cv_path_NM="$NM"
4123else
f58aa3e1 4124 lt_nm_to_check="${ac_tool_prefix}nm"
4125 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4126 lt_nm_to_check="$lt_nm_to_check nm"
4127 fi
4128 for lt_tmp_nm in $lt_nm_to_check; do
4129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4130 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4131 IFS="$lt_save_ifs"
4132 test -z "$ac_dir" && ac_dir=.
4133 tmp_nm="$ac_dir/$lt_tmp_nm"
4134 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4135 # Check to see if the nm accepts a BSD-compat flag.
4136 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4137 # nm: unknown option "B" ignored
4138 # Tru64's nm complains that /dev/null is an invalid object file
4139 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4140 */dev/null* | *'Invalid file or object type'*)
4141 lt_cv_path_NM="$tmp_nm -B"
4142 break
4143 ;;
4144 *)
4145 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4146 */dev/null*)
4147 lt_cv_path_NM="$tmp_nm -p"
4148 break
4149 ;;
4150 *)
4151 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4152 continue # so that we can try to find one that supports BSD flags
4153 ;;
4154 esac
4155 ;;
4156 esac
89354eef 4157 fi
f58aa3e1 4158 done
4159 IFS="$lt_save_ifs"
89354eef 4160 done
89354eef 4161 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4162fi
4163fi
f58aa3e1 4164{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4165echo "${ECHO_T}$lt_cv_path_NM" >&6; }
89354eef 4166NM="$lt_cv_path_NM"
89354eef 4167
f58aa3e1 4168{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4169echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
89354eef 4170LN_S=$as_ln_s
4171if test "$LN_S" = "ln -s"; then
f58aa3e1 4172 { echo "$as_me:$LINENO: result: yes" >&5
4173echo "${ECHO_T}yes" >&6; }
89354eef 4174else
f58aa3e1 4175 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4176echo "${ECHO_T}no, using $LN_S" >&6; }
89354eef 4177fi
4178
f58aa3e1 4179{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4180echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
89354eef 4181if test "${lt_cv_deplibs_check_method+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184 lt_cv_file_magic_cmd='$MAGIC_CMD'
4185lt_cv_file_magic_test_file=
4186lt_cv_deplibs_check_method='unknown'
4187# Need to set the preceding variable on all platforms that support
4188# interlibrary dependencies.
4189# 'none' -- dependencies not supported.
4190# `unknown' -- same as none, but documents that we really don't know.
4191# 'pass_all' -- all dependencies passed with no checks.
4192# 'test_compile' -- check by making test program.
4193# 'file_magic [[regex]]' -- check by looking for files in library path
f58aa3e1 4194# which responds to the $file_magic_cmd with a given extended regex.
89354eef 4195# If you have `file' or equivalent on your system and you're not sure
4196# whether `pass_all' will *always* work, you probably want this one.
4197
4198case $host_os in
4199aix4* | aix5*)
4200 lt_cv_deplibs_check_method=pass_all
4201 ;;
4202
4203beos*)
4204 lt_cv_deplibs_check_method=pass_all
4205 ;;
4206
f58aa3e1 4207bsdi[45]*)
89354eef 4208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4209 lt_cv_file_magic_cmd='/usr/bin/file -L'
4210 lt_cv_file_magic_test_file=/shlib/libc.so
4211 ;;
4212
f58aa3e1 4213cygwin*)
4214 # func_win32_libid is a shell function defined in ltmain.sh
4215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4216 lt_cv_file_magic_cmd='func_win32_libid'
4217 ;;
4218
4219mingw* | pw32*)
4220 # Base MSYS/MinGW do not provide the 'file' command needed by
4221 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
89354eef 4222 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4223 lt_cv_file_magic_cmd='$OBJDUMP -f'
4224 ;;
4225
4226darwin* | rhapsody*)
f58aa3e1 4227 lt_cv_deplibs_check_method=pass_all
89354eef 4228 ;;
4229
f58aa3e1 4230freebsd* | dragonfly*)
89354eef 4231 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4232 case $host_cpu in
4233 i*86 )
4234 # Not sure whether the presence of OpenBSD here was a mistake.
4235 # Let's accept both of them until this is cleared up.
f58aa3e1 4236 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
89354eef 4237 lt_cv_file_magic_cmd=/usr/bin/file
4238 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4239 ;;
4240 esac
4241 else
4242 lt_cv_deplibs_check_method=pass_all
4243 fi
4244 ;;
4245
4246gnu*)
4247 lt_cv_deplibs_check_method=pass_all
4248 ;;
4249
f58aa3e1 4250hpux10.20* | hpux11*)
89354eef 4251 lt_cv_file_magic_cmd=/usr/bin/file
f58aa3e1 4252 case $host_cpu in
4253 ia64*)
4254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4255 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4256 ;;
4257 hppa*64*)
4258 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]'
4259 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
89354eef 4260 ;;
4261 *)
f58aa3e1 4262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4263 lt_cv_file_magic_test_file=/usr/lib/libc.sl
89354eef 4264 ;;
4265 esac
f58aa3e1 4266 ;;
4267
4268interix3*)
4269 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4271 ;;
4272
4273irix5* | irix6* | nonstopux*)
4274 case $LD in
4275 *-32|*"-32 ") libmagic=32-bit;;
4276 *-n32|*"-n32 ") libmagic=N32;;
4277 *-64|*"-64 ") libmagic=64-bit;;
4278 *) libmagic=never-match;;
4279 esac
89354eef 4280 lt_cv_deplibs_check_method=pass_all
4281 ;;
4282
4283# This must be Linux ELF.
f58aa3e1 4284linux* | k*bsd*-gnu)
4285 lt_cv_deplibs_check_method=pass_all
89354eef 4286 ;;
4287
f58aa3e1 4288netbsd* | netbsdelf*-gnu)
89354eef 4289 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
f58aa3e1 4290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
89354eef 4291 else
f58aa3e1 4292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
89354eef 4293 fi
4294 ;;
4295
4296newos6*)
4297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4298 lt_cv_file_magic_cmd=/usr/bin/file
4299 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4300 ;;
4301
f58aa3e1 4302nto-qnx*)
4303 lt_cv_deplibs_check_method=unknown
4304 ;;
4305
89354eef 4306openbsd*)
89354eef 4307 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
f58aa3e1 4308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
89354eef 4309 else
f58aa3e1 4310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
89354eef 4311 fi
4312 ;;
4313
4314osf3* | osf4* | osf5*)
89354eef 4315 lt_cv_deplibs_check_method=pass_all
4316 ;;
4317
4318solaris*)
89354eef 4319 lt_cv_deplibs_check_method=pass_all
4320 ;;
4321
f58aa3e1 4322sysv4 | sysv4.3*)
89354eef 4323 case $host_vendor in
4324 motorola)
4325 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]'
4326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4327 ;;
4328 ncr)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
4331 sequent)
4332 lt_cv_file_magic_cmd='/bin/file'
4333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4334 ;;
4335 sni)
4336 lt_cv_file_magic_cmd='/bin/file'
4337 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4338 lt_cv_file_magic_test_file=/lib/libc.so
4339 ;;
f58aa3e1 4340 siemens)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343 pc)
4344 lt_cv_deplibs_check_method=pass_all
4345 ;;
89354eef 4346 esac
4347 ;;
f58aa3e1 4348
4349sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
89354eef 4352esac
4353
4354fi
f58aa3e1 4355{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4356echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
89354eef 4357file_magic_cmd=$lt_cv_file_magic_cmd
4358deplibs_check_method=$lt_cv_deplibs_check_method
f58aa3e1 4359test -z "$deplibs_check_method" && deplibs_check_method=unknown
89354eef 4360
4361
4362
4363
f58aa3e1 4364# If no C compiler was specified, use CC.
4365LTCC=${LTCC-"$CC"}
89354eef 4366
f58aa3e1 4367# If no C compiler flags were specified, use CFLAGS.
4368LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
89354eef 4369
f58aa3e1 4370# Allow CC to be a program name with arguments.
4371compiler=$CC
89354eef 4372
4373
f58aa3e1 4374# Check whether --enable-libtool-lock was given.
4375if test "${enable_libtool_lock+set}" = set; then
4376 enableval=$enable_libtool_lock;
89354eef 4377fi
4378
f58aa3e1 4379test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
89354eef 4380
f58aa3e1 4381# Some flags need to be propagated to the compiler or linker for good
4382# libtool support.
4383case $host in
4384ia64-*-hpux*)
4385 # Find out which ABI we are using.
4386 echo 'int i;' > conftest.$ac_ext
89354eef 4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; then
f58aa3e1 4392 case `/usr/bin/file conftest.$ac_objext` in
4393 *ELF-32*)
4394 HPUX_IA64_MODE="32"
4395 ;;
4396 *ELF-64*)
4397 HPUX_IA64_MODE="64"
4398 ;;
4399 esac
4400 fi
4401 rm -rf conftest*
4402 ;;
4403*-*-irix6*)
4404 # Find out which ABI we are using.
4405 echo '#line 4405 "configure"' > conftest.$ac_ext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>&5
89354eef 4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f58aa3e1 4410 (exit $ac_status); }; then
4411 if test "$lt_cv_prog_gnu_ld" = yes; then
4412 case `/usr/bin/file conftest.$ac_objext` in
4413 *32-bit*)
4414 LD="${LD-ld} -melf32bsmip"
4415 ;;
4416 *N32*)
4417 LD="${LD-ld} -melf32bmipn32"
4418 ;;
4419 *64-bit*)
4420 LD="${LD-ld} -melf64bmip"
4421 ;;
4422 esac
4423 else
4424 case `/usr/bin/file conftest.$ac_objext` in
4425 *32-bit*)
4426 LD="${LD-ld} -32"
4427 ;;
4428 *N32*)
4429 LD="${LD-ld} -n32"
4430 ;;
4431 *64-bit*)
4432 LD="${LD-ld} -64"
4433 ;;
4434 esac
4435 fi
4436 fi
4437 rm -rf conftest*
4438 ;;
89354eef 4439
f58aa3e1 4440x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4441 # Find out which ABI we are using.
4442 echo 'int i;' > conftest.$ac_ext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; then
4448 case `/usr/bin/file conftest.o` in
4449 *32-bit*)
4450 case $host in
4451 x86_64-*linux*)
4452 LD="${LD-ld} -m elf_i386"
4453 ;;
4454 ppc64-*linux*|powerpc64-*linux*)
4455 LD="${LD-ld} -m elf32ppclinux"
4456 ;;
4457 s390x-*linux*)
4458 LD="${LD-ld} -m elf_s390"
4459 ;;
4460 sparc64-*linux*)
4461 LD="${LD-ld} -m elf32_sparc"
4462 ;;
4463 esac
4464 ;;
4465 *64-bit*)
4466 case $host in
4467 x86_64-*linux*)
4468 LD="${LD-ld} -m elf_x86_64"
4469 ;;
4470 ppc*-*linux*|powerpc*-*linux*)
4471 LD="${LD-ld} -m elf64ppc"
4472 ;;
4473 s390*-*linux*)
4474 LD="${LD-ld} -m elf64_s390"
4475 ;;
4476 sparc*-*linux*)
4477 LD="${LD-ld} -m elf64_sparc"
4478 ;;
4479 esac
4480 ;;
4481 esac
4482 fi
4483 rm -rf conftest*
4484 ;;
89354eef 4485
f58aa3e1 4486*-*-sco3.2v5*)
4487 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4488 SAVE_CFLAGS="$CFLAGS"
4489 CFLAGS="$CFLAGS -belf"
4490 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4491echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4492if test "${lt_cv_cc_needs_belf+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495 ac_ext=c
4496ac_cpp='$CPP $CPPFLAGS'
4497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499ac_compiler_gnu=$ac_cv_c_compiler_gnu
89354eef 4500
f58aa3e1 4501 cat >conftest.$ac_ext <<_ACEOF
4502/* confdefs.h. */
4503_ACEOF
4504cat confdefs.h >>conftest.$ac_ext
4505cat >>conftest.$ac_ext <<_ACEOF
4506/* end confdefs.h. */
89354eef 4507
f58aa3e1 4508int
4509main ()
89354eef 4510{
89354eef 4511
f58aa3e1 4512 ;
4513 return 0;
89354eef 4514}
f58aa3e1 4515_ACEOF
4516rm -f conftest.$ac_objext conftest$ac_exeext
4517if { (ac_try="$ac_link"
4518case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521esac
4522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523 (eval "$ac_link") 2>conftest.er1
89354eef 4524 ac_status=$?
f58aa3e1 4525 grep -v '^ *+' conftest.er1 >conftest.err
4526 rm -f conftest.er1
4527 cat conftest.err >&5
89354eef 4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f58aa3e1 4529 (exit $ac_status); } &&
4530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4531 { (case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534esac
4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536 (eval "$ac_try") 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest$ac_exeext'
4541 { (case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544esac
4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_try") 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 lt_cv_cc_needs_belf=yes
4551else
4552 echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
89354eef 4554
f58aa3e1 4555 lt_cv_cc_needs_belf=no
89354eef 4556fi
4557
f58aa3e1 4558rm -f core conftest.err conftest.$ac_objext \
4559 conftest$ac_exeext conftest.$ac_ext
4560 ac_ext=c
4561ac_cpp='$CPP $CPPFLAGS'
4562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565
89354eef 4566fi
f58aa3e1 4567{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4568echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4569 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4570 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4571 CFLAGS="$SAVE_CFLAGS"
4572 fi
4573 ;;
4574sparc*-*solaris*)
4575 # Find out which ABI we are using.
4576 echo 'int i;' > conftest.$ac_ext
4577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4578 (eval $ac_compile) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; then
4582 case `/usr/bin/file conftest.o` in
4583 *64-bit*)
4584 case $lt_cv_prog_gnu_ld in
4585 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4586 *) LD="${LD-ld} -64" ;;
4587 esac
4588 ;;
4589 esac
4590 fi
4591 rm -rf conftest*
4592 ;;
4593
4594
4595esac
4596
4597need_locks="$enable_libtool_lock"
4598
89354eef 4599
4600ac_ext=c
4601ac_cpp='$CPP $CPPFLAGS'
4602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=$ac_cv_c_compiler_gnu
f58aa3e1 4605{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4606echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
89354eef 4607# On Suns, sometimes $CPP names a directory.
4608if test -n "$CPP" && test -d "$CPP"; then
4609 CPP=
4610fi
4611if test -z "$CPP"; then
4612 if test "${ac_cv_prog_CPP+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 # Double quotes because CPP needs to be expanded
4616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4617 do
4618 ac_preproc_ok=false
4619for ac_c_preproc_warn_flag in '' yes
4620do
4621 # Use a header file that comes with gcc, so configuring glibc
4622 # with a fresh cross-compiler works.
49ba971d 4623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4624 # <limits.h> exists even on freestanding compilers.
89354eef 4625 # On the NeXT, cc -E runs the code through the compiler's parser,
4626 # not just through cpp. "Syntax error" is here to catch this case.
4627 cat >conftest.$ac_ext <<_ACEOF
49ba971d 4628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
4633#ifdef __STDC__
4634# include <limits.h>
4635#else
4636# include <assert.h>
4637#endif
f58aa3e1 4638 Syntax error
89354eef 4639_ACEOF
f58aa3e1 4640if { (ac_try="$ac_cpp conftest.$ac_ext"
4641case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644esac
4645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89354eef 4647 ac_status=$?
49ba971d 4648 grep -v '^ *+' conftest.er1 >conftest.err
89354eef 4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null; then
4653 if test -s conftest.err; then
4654 ac_cpp_err=$ac_c_preproc_warn_flag
f58aa3e1 4655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
89354eef 4656 else
4657 ac_cpp_err=
4658 fi
4659else
4660 ac_cpp_err=yes
4661fi
4662if test -z "$ac_cpp_err"; then
4663 :
4664else
4665 echo "$as_me: failed program was:" >&5
49ba971d 4666sed 's/^/| /' conftest.$ac_ext >&5
4667
89354eef 4668 # Broken: fails on valid input.
4669continue
4670fi
f58aa3e1 4671
89354eef 4672rm -f conftest.err conftest.$ac_ext
4673
f58aa3e1 4674 # OK, works on sane cases. Now check whether nonexistent headers
89354eef 4675 # can be detected and how.
4676 cat >conftest.$ac_ext <<_ACEOF
49ba971d 4677/* confdefs.h. */
4678_ACEOF
4679cat confdefs.h >>conftest.$ac_ext
4680cat >>conftest.$ac_ext <<_ACEOF
4681/* end confdefs.h. */
89354eef 4682#include <ac_nonexistent.h>
4683_ACEOF
f58aa3e1 4684if { (ac_try="$ac_cpp conftest.$ac_ext"
4685case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
4689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89354eef 4691 ac_status=$?
49ba971d 4692 grep -v '^ *+' conftest.er1 >conftest.err
89354eef 4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } >/dev/null; then
4697 if test -s conftest.err; then
4698 ac_cpp_err=$ac_c_preproc_warn_flag
f58aa3e1 4699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
89354eef 4700 else
4701 ac_cpp_err=
4702 fi
4703else
4704 ac_cpp_err=yes
4705fi
4706if test -z "$ac_cpp_err"; then
4707 # Broken: success on invalid input.
4708continue
4709else
4710 echo "$as_me: failed program was:" >&5
49ba971d 4711sed 's/^/| /' conftest.$ac_ext >&5
4712
89354eef 4713 # Passes both tests.
4714ac_preproc_ok=:
4715break
4716fi
f58aa3e1 4717
89354eef 4718rm -f conftest.err conftest.$ac_ext
4719
4720done
4721# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4722rm -f conftest.err conftest.$ac_ext
4723if $ac_preproc_ok; then
4724 break
4725fi
4726
4727 done
4728 ac_cv_prog_CPP=$CPP
4729
4730fi
4731 CPP=$ac_cv_prog_CPP
4732else
4733 ac_cv_prog_CPP=$CPP
4734fi
f58aa3e1 4735{ echo "$as_me:$LINENO: result: $CPP" >&5
4736echo "${ECHO_T}$CPP" >&6; }
89354eef 4737ac_preproc_ok=false
4738for ac_c_preproc_warn_flag in '' yes
4739do
4740 # Use a header file that comes with gcc, so configuring glibc
4741 # with a fresh cross-compiler works.
49ba971d 4742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4743 # <limits.h> exists even on freestanding compilers.
89354eef 4744 # On the NeXT, cc -E runs the code through the compiler's parser,
4745 # not just through cpp. "Syntax error" is here to catch this case.
4746 cat >conftest.$ac_ext <<_ACEOF
49ba971d 4747/* confdefs.h. */
4748_ACEOF
4749cat confdefs.h >>conftest.$ac_ext
4750cat >>conftest.$ac_ext <<_ACEOF
4751/* end confdefs.h. */
4752#ifdef __STDC__
4753# include <limits.h>
4754#else
4755# include <assert.h>
4756#endif
f58aa3e1 4757 Syntax error
89354eef 4758_ACEOF
f58aa3e1 4759if { (ac_try="$ac_cpp conftest.$ac_ext"
4760case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4763esac
4764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89354eef 4766 ac_status=$?
49ba971d 4767 grep -v '^ *+' conftest.er1 >conftest.err
89354eef 4768 rm -f conftest.er1
4769 cat conftest.err >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } >/dev/null; then
4772 if test -s conftest.err; then
4773 ac_cpp_err=$ac_c_preproc_warn_flag
f58aa3e1 4774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
89354eef 4775 else
4776 ac_cpp_err=
4777 fi
4778else
4779 ac_cpp_err=yes
4780fi
4781if test -z "$ac_cpp_err"; then
4782 :
4783else
4784 echo "$as_me: failed program was:" >&5
49ba971d 4785sed 's/^/| /' conftest.$ac_ext >&5
4786
89354eef 4787 # Broken: fails on valid input.
4788continue
4789fi
f58aa3e1 4790
89354eef 4791rm -f conftest.err conftest.$ac_ext
4792
f58aa3e1 4793 # OK, works on sane cases. Now check whether nonexistent headers
89354eef 4794 # can be detected and how.
4795 cat >conftest.$ac_ext <<_ACEOF
49ba971d 4796/* confdefs.h. */
4797_ACEOF
4798cat confdefs.h >>conftest.$ac_ext
4799cat >>conftest.$ac_ext <<_ACEOF
4800/* end confdefs.h. */
89354eef 4801#include <ac_nonexistent.h>
4802_ACEOF
f58aa3e1 4803if { (ac_try="$ac_cpp conftest.$ac_ext"
4804case "(($ac_try" in
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4807esac
4808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89354eef 4810 ac_status=$?
49ba971d 4811 grep -v '^ *+' conftest.er1 >conftest.err
89354eef 4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev/null; then
4816 if test -s conftest.err; then
4817 ac_cpp_err=$ac_c_preproc_warn_flag
f58aa3e1 4818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
89354eef 4819 else
4820 ac_cpp_err=
4821 fi
4822else
4823 ac_cpp_err=yes
4824fi
4825if test -z "$ac_cpp_err"; then
4826 # Broken: success on invalid input.
4827continue
4828else
4829 echo "$as_me: failed program was:" >&5
49ba971d 4830sed 's/^/| /' conftest.$ac_ext >&5
4831
89354eef 4832 # Passes both tests.
4833ac_preproc_ok=:
4834break
4835fi
f58aa3e1 4836
89354eef 4837rm -f conftest.err conftest.$ac_ext
4838
4839done
4840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841rm -f conftest.err conftest.$ac_ext
4842if $ac_preproc_ok; then
4843 :
4844else
49ba971d 4845 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4846See \`config.log' for more details." >&5
4847echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4848See \`config.log' for more details." >&2;}
89354eef 4849 { (exit 1); exit 1; }; }
4850fi
4851
4852ac_ext=c
4853ac_cpp='$CPP $CPPFLAGS'
4854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857
4858
f58aa3e1 4859{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4860echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
89354eef 4861if test "${ac_cv_header_stdc+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 cat >conftest.$ac_ext <<_ACEOF
49ba971d 4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
89354eef 4870#include <stdlib.h>
4871#include <stdarg.h>
4872#include <string.h>
4873#include <float.h>
4874
49ba971d 4875int
4876main ()
4877{
4878
4879 ;
4880 return 0;
4881}
89354eef 4882_ACEOF
49ba971d 4883rm -f conftest.$ac_objext
f58aa3e1 4884if { (ac_try="$ac_compile"
4885case "(($ac_try" in
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4888esac
4889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890 (eval "$ac_compile") 2>conftest.er1
89354eef 4891 ac_status=$?
f58aa3e1 4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
89354eef 4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49ba971d 4896 (exit $ac_status); } &&
f58aa3e1 4897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4898 { (case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901esac
4902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_try") 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; } &&
4907 { ac_try='test -s conftest.$ac_objext'
4908 { (case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911esac
4912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_try") 2>&5
49ba971d 4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
89354eef 4917 ac_cv_header_stdc=yes
4918else
4919 echo "$as_me: failed program was:" >&5
49ba971d 4920sed 's/^/| /' conftest.$ac_ext >&5
4921
f58aa3e1 4922 ac_cv_header_stdc=no
89354eef 4923fi
f58aa3e1 4924
4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89354eef 4926
4927if test $ac_cv_header_stdc = yes; then
4928 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4929 cat >conftest.$ac_ext <<_ACEOF
49ba971d 4930/* confdefs.h. */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h. */
89354eef 4935#include <string.h>
4936
4937_ACEOF
4938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49ba971d 4939 $EGREP "memchr" >/dev/null 2>&1; then
89354eef 4940 :
4941else
4942 ac_cv_header_stdc=no
4943fi
4944rm -f conftest*
4945
4946fi
4947
4948if test $ac_cv_header_stdc = yes; then
4949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4950 cat >conftest.$ac_ext <<_ACEOF
49ba971d 4951/* confdefs.h. */
4952_ACEOF
4953cat confdefs.h >>conftest.$ac_ext
4954cat >>conftest.$ac_ext <<_ACEOF
4955/* end confdefs.h. */
89354eef 4956#include <stdlib.h>
4957
4958_ACEOF
4959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49ba971d 4960 $EGREP "free" >/dev/null 2>&1; then
89354eef 4961 :
4962else
4963 ac_cv_header_stdc=no
4964fi
4965rm -f conftest*
4966
4967fi
4968
4969if test $ac_cv_header_stdc = yes; then
4970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4971 if test "$cross_compiling" = yes; then
4972 :
4973else
4974 cat >conftest.$ac_ext <<_ACEOF
49ba971d 4975/* confdefs.h. */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h. */
89354eef 4980#include <ctype.h>
f58aa3e1 4981#include <stdlib.h>
89354eef 4982#if ((' ' & 0x0FF) == 0x020)
4983# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4984# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4985#else
49ba971d 4986# define ISLOWER(c) \
f58aa3e1 4987 (('a' <= (c) && (c) <= 'i') \
4988 || ('j' <= (c) && (c) <= 'r') \
4989 || ('s' <= (c) && (c) <= 'z'))
89354eef 4990# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4991#endif
4992
4993#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4994int
4995main ()
4996{
4997 int i;
4998 for (i = 0; i < 256; i++)
4999 if (XOR (islower (i), ISLOWER (i))
f58aa3e1 5000 || toupper (i) != TOUPPER (i))
5001 return 2;
5002 return 0;
89354eef 5003}
5004_ACEOF
5005rm -f conftest$ac_exeext
f58aa3e1 5006if { (ac_try="$ac_link"
5007case "(($ac_try" in
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5010esac
5011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_link") 2>&5
89354eef 5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f58aa3e1 5016 { (case "(($ac_try" in
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5019esac
5020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_try") 2>&5
89354eef 5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 :
5026else
5027 echo "$as_me: program exited with status $ac_status" >&5
5028echo "$as_me: failed program was:" >&5
49ba971d 5029sed 's/^/| /' conftest.$ac_ext >&5
5030
89354eef 5031( exit $ac_status )
5032ac_cv_header_stdc=no
5033fi
f58aa3e1 5034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
89354eef 5035fi
f58aa3e1 5036
5037
89354eef 5038fi
5039fi
f58aa3e1 5040{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5041echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
89354eef 5042if test $ac_cv_header_stdc = yes; then
5043
5044cat >>confdefs.h <<\_ACEOF
5045#define STDC_HEADERS 1
5046_ACEOF
5047
5048fi
5049
5050# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
f58aa3e1 5061 inttypes.h stdint.h unistd.h
89354eef 5062do
5063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f58aa3e1 5064{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89354eef 5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 cat >conftest.$ac_ext <<_ACEOF
49ba971d 5070/* confdefs.h. */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h. */
89354eef 5075$ac_includes_default
5076
5077#include <$ac_header>
5078_ACEOF
5079rm -f conftest.$ac_objext
f58aa3e1 5080if { (ac_try="$ac_compile"
5081case "(($ac_try" in
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5084esac
5085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086 (eval "$ac_compile") 2>conftest.er1
89354eef 5087 ac_status=$?
f58aa3e1 5088 grep -v '^ *+' conftest.er1 >conftest.err
5089 rm -f conftest.er1
5090 cat conftest.err >&5
89354eef 5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
f58aa3e1 5093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5094 { (case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097esac
5098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_try") 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5107esac
5108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109 (eval "$ac_try") 2>&5
89354eef 5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 eval "$as_ac_Header=yes"
5114else
5115 echo "$as_me: failed program was:" >&5
49ba971d 5116sed 's/^/| /' conftest.$ac_ext >&5
5117
f58aa3e1 5118 eval "$as_ac_Header=no"
89354eef 5119fi
f58aa3e1 5120
5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89354eef 5122fi
f58aa3e1 5123ac_res=`eval echo '${'$as_ac_Header'}'`
5124 { echo "$as_me:$LINENO: result: $ac_res" >&5
5125echo "${ECHO_T}$ac_res" >&6; }
89354eef 5126if test `eval echo '${'$as_ac_Header'}'` = yes; then
5127 cat >>confdefs.h <<_ACEOF
5128#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5129_ACEOF
5130
5131fi
5132
5133done
5134
5135
5136
5137for ac_header in dlfcn.h
5138do
5139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f58aa3e1 5140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89354eef 5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145fi
f58aa3e1 5146ac_res=`eval echo '${'$as_ac_Header'}'`
5147 { echo "$as_me:$LINENO: result: $ac_res" >&5
5148echo "${ECHO_T}$ac_res" >&6; }
89354eef 5149else
5150 # Is the header compilable?
f58aa3e1 5151{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5152echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
89354eef 5153cat >conftest.$ac_ext <<_ACEOF
49ba971d 5154/* confdefs.h. */
5155_ACEOF
5156cat confdefs.h >>conftest.$ac_ext
5157cat >>conftest.$ac_ext <<_ACEOF
5158/* end confdefs.h. */
89354eef 5159$ac_includes_default
5160#include <$ac_header>
5161_ACEOF
5162rm -f conftest.$ac_objext
f58aa3e1 5163if { (ac_try="$ac_compile"
5164case "(($ac_try" in
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5167esac
5168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5169 (eval "$ac_compile") 2>conftest.er1
89354eef 5170 ac_status=$?
f58aa3e1 5171 grep -v '^ *+' conftest.er1 >conftest.err
5172 rm -f conftest.er1
5173 cat conftest.err >&5
89354eef 5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
f58aa3e1 5176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5177 { (case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180esac
5181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_try") 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; } &&
5186 { ac_try='test -s conftest.$ac_objext'
5187 { (case "(($ac_try" in
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5190esac
5191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_try") 2>&5
89354eef 5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_header_compiler=yes
5197else
5198 echo "$as_me: failed program was:" >&5
49ba971d 5199sed 's/^/| /' conftest.$ac_ext >&5
5200
f58aa3e1 5201 ac_header_compiler=no
89354eef 5202fi
f58aa3e1 5203
5204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5206echo "${ECHO_T}$ac_header_compiler" >&6; }
89354eef 5207
5208# Is the header present?
f58aa3e1 5209{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5210echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
89354eef 5211cat >conftest.$ac_ext <<_ACEOF
49ba971d 5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */
89354eef 5217#include <$ac_header>
5218_ACEOF
f58aa3e1 5219if { (ac_try="$ac_cpp conftest.$ac_ext"
5220case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223esac
5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89354eef 5226 ac_status=$?
49ba971d 5227 grep -v '^ *+' conftest.er1 >conftest.err
89354eef 5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } >/dev/null; then
5232 if test -s conftest.err; then
5233 ac_cpp_err=$ac_c_preproc_warn_flag
f58aa3e1 5234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
89354eef 5235 else
5236 ac_cpp_err=
5237 fi
5238else
5239 ac_cpp_err=yes
5240fi
5241if test -z "$ac_cpp_err"; then
5242 ac_header_preproc=yes
5243else
5244 echo "$as_me: failed program was:" >&5
49ba971d 5245sed 's/^/| /' conftest.$ac_ext >&5
5246
89354eef 5247 ac_header_preproc=no
5248fi
f58aa3e1 5249
89354eef 5250rm -f conftest.err conftest.$ac_ext
f58aa3e1 5251{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5252echo "${ECHO_T}$ac_header_preproc" >&6; }
89354eef 5253
5254# So? What about this header?
f58aa3e1 5255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5256 yes:no: )
89354eef 5257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5258echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f58aa3e1 5259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5260echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5261 ac_header_preproc=yes
49ba971d 5262 ;;
f58aa3e1 5263 no:yes:* )
89354eef 5264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5265echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f58aa3e1 5266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5267echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5269echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5271echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
89354eef 5272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49ba971d 5273echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f58aa3e1 5274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5275echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5276
49ba971d 5277 ;;
89354eef 5278esac
f58aa3e1 5279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89354eef 5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
f58aa3e1 5284 eval "$as_ac_Header=\$ac_header_preproc"
89354eef 5285fi
f58aa3e1 5286ac_res=`eval echo '${'$as_ac_Header'}'`
5287 { echo "$as_me:$LINENO: result: $ac_res" >&5
5288echo "${ECHO_T}$ac_res" >&6; }
89354eef 5289
5290fi
5291if test `eval echo '${'$as_ac_Header'}'` = yes; then
5292 cat >>confdefs.h <<_ACEOF
5293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5294_ACEOF
5295
5296fi
5297
5298done
5299
f58aa3e1 5300ac_ext=cpp
5301ac_cpp='$CXXCPP $CPPFLAGS'
5302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5305if test -z "$CXX"; then
5306 if test -n "$CCC"; then
5307 CXX=$CCC
89354eef 5308 else
f58aa3e1 5309 if test -n "$ac_tool_prefix"; then
5310 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5311 do
5312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5313set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5316if test "${ac_cv_prog_CXX+set}" = set; then
89354eef 5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
f58aa3e1 5319 if test -n "$CXX"; then
5320 ac_cv_prog_CXX="$CXX" # Let the user override the test.
89354eef 5321else
5322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323for as_dir in $PATH
5324do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
89354eef 5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333done
5334done
f58aa3e1 5335IFS=$as_save_IFS
89354eef 5336
5337fi
5338fi
f58aa3e1 5339CXX=$ac_cv_prog_CXX
5340if test -n "$CXX"; then
5341 { echo "$as_me:$LINENO: result: $CXX" >&5
5342echo "${ECHO_T}$CXX" >&6; }
89354eef 5343else
f58aa3e1 5344 { echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6; }
89354eef 5346fi
5347
f58aa3e1 5348
5349 test -n "$CXX" && break
5350 done
89354eef 5351fi
f58aa3e1 5352if test -z "$CXX"; then
5353 ac_ct_CXX=$CXX
5354 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5355do
5356 # Extract the first word of "$ac_prog", so it can be a program name with args.
5357set dummy $ac_prog; ac_word=$2
5358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5360if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
89354eef 5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
f58aa3e1 5363 if test -n "$ac_ct_CXX"; then
5364 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
89354eef 5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
f58aa3e1 5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_ac_ct_CXX="$ac_prog"
89354eef 5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377done
5378done
f58aa3e1 5379IFS=$as_save_IFS
89354eef 5380
89354eef 5381fi
5382fi
f58aa3e1 5383ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5384if test -n "$ac_ct_CXX"; then
5385 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5386echo "${ECHO_T}$ac_ct_CXX" >&6; }
89354eef 5387else
f58aa3e1 5388 { echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6; }
89354eef 5390fi
5391
89354eef 5392
f58aa3e1 5393 test -n "$ac_ct_CXX" && break
89354eef 5394done
5395
f58aa3e1 5396 if test "x$ac_ct_CXX" = x; then
5397 CXX="g++"
5398 else
5399 case $cross_compiling:$ac_tool_warned in
5400yes:)
5401{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5402whose name does not start with the host triplet. If you think this
5403configuration is useful to you, please write to autoconf@gnu.org." >&5
5404echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5405whose name does not start with the host triplet. If you think this
5406configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5407ac_tool_warned=yes ;;
5408esac
5409 CXX=$ac_ct_CXX
5410 fi
89354eef 5411fi
5412
f58aa3e1 5413 fi
89354eef 5414fi
f58aa3e1 5415# Provide some information about the compiler.
5416echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5417ac_compiler=`set X $ac_compile; echo $2`
5418{ (ac_try="$ac_compiler --version >&5"
5419case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422esac
5423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_compiler --version >&5") 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }
5428{ (ac_try="$ac_compiler -v >&5"
5429case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432esac
5433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_compiler -v >&5") 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }
5438{ (ac_try="$ac_compiler -V >&5"
5439case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442esac
5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compiler -V >&5") 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }
5448
5449{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5450echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5451if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
89354eef 5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453else
f58aa3e1 5454 cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h. */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h. */
89354eef 5460
f58aa3e1 5461int
5462main ()
5463{
5464#ifndef __GNUC__
5465 choke me
5466#endif
89354eef 5467
f58aa3e1 5468 ;
5469 return 0;
5470}
5471_ACEOF
5472rm -f conftest.$ac_objext
5473if { (ac_try="$ac_compile"
5474case "(($ac_try" in
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5477esac
5478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_compile") 2>conftest.er1
5480 ac_status=$?
5481 grep -v '^ *+' conftest.er1 >conftest.err
5482 rm -f conftest.er1
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5487 { (case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490esac
5491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_try") 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try='test -s conftest.$ac_objext'
5497 { (case "(($ac_try" in
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5500esac
5501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_try") 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 ac_compiler_gnu=yes
89354eef 5507else
f58aa3e1 5508 echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
5511 ac_compiler_gnu=no
89354eef 5512fi
5513
f58aa3e1 5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
89354eef 5516
f58aa3e1 5517fi
5518{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5519echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5520GXX=`test $ac_compiler_gnu = yes && echo yes`
5521ac_test_CXXFLAGS=${CXXFLAGS+set}
5522ac_save_CXXFLAGS=$CXXFLAGS
5523{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5524echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5525if test "${ac_cv_prog_cxx_g+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5529 ac_cxx_werror_flag=yes
5530 ac_cv_prog_cxx_g=no
5531 CXXFLAGS="-g"
5532 cat >conftest.$ac_ext <<_ACEOF
5533/* confdefs.h. */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h. */
89354eef 5538
f58aa3e1 5539int
5540main ()
5541{
89354eef 5542
f58aa3e1 5543 ;
5544 return 0;
5545}
5546_ACEOF
5547rm -f conftest.$ac_objext
5548if { (ac_try="$ac_compile"
5549case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5562 { (case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565esac
5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_try") 2>&5
89354eef 5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f58aa3e1 5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575esac
5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_try") 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_prog_cxx_g=yes
89354eef 5582else
f58aa3e1 5583 echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
89354eef 5585
f58aa3e1 5586 CXXFLAGS=""
5587 cat >conftest.$ac_ext <<_ACEOF
49ba971d 5588/* confdefs.h. */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
5592/* end confdefs.h. */
89354eef 5593
89354eef 5594int
5595main ()
5596{
5597
5598 ;
5599 return 0;
5600}
5601_ACEOF
f58aa3e1 5602rm -f conftest.$ac_objext
5603if { (ac_try="$ac_compile"
5604case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607esac
5608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_compile") 2>conftest.er1
89354eef 5610 ac_status=$?
f58aa3e1 5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
89354eef 5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
f58aa3e1 5616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5617 { (case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_try") 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630esac
5631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_try") 2>&5
89354eef 5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
f58aa3e1 5636 :
89354eef 5637else
5638 echo "$as_me: failed program was:" >&5
49ba971d 5639sed 's/^/| /' conftest.$ac_ext >&5
5640
f58aa3e1 5641 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5642 CXXFLAGS="-g"
5643 cat >conftest.$ac_ext <<_ACEOF
5644/* confdefs.h. */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h. */
89354eef 5649
f58aa3e1 5650int
5651main ()
5652{
89354eef 5653
f58aa3e1 5654 ;
5655 return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext
5659if { (ac_try="$ac_compile"
5660case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
89354eef 5663esac
f58aa3e1 5664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_compile") 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5673 { (case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676esac
5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_try") 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; } &&
5682 { ac_try='test -s conftest.$ac_objext'
5683 { (case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686esac
5687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_try") 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_prog_cxx_g=yes
5693else
5694 echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
89354eef 5696
89354eef 5697
f58aa3e1 5698fi
89354eef 5699
f58aa3e1 5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701fi
89354eef 5702
f58aa3e1 5703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704fi
89354eef 5705
f58aa3e1 5706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5708fi
5709{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5710echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5711if test "$ac_test_CXXFLAGS" = set; then
5712 CXXFLAGS=$ac_save_CXXFLAGS
5713elif test $ac_cv_prog_cxx_g = yes; then
5714 if test "$GXX" = yes; then
5715 CXXFLAGS="-g -O2"
5716 else
5717 CXXFLAGS="-g"
5718 fi
89354eef 5719else
f58aa3e1 5720 if test "$GXX" = yes; then
5721 CXXFLAGS="-O2"
5722 else
5723 CXXFLAGS=
5724 fi
89354eef 5725fi
f58aa3e1 5726ac_ext=cpp
5727ac_cpp='$CXXCPP $CPPFLAGS'
5728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
89354eef 5731
f58aa3e1 5732depcc="$CXX" am_compiler_list=
89354eef 5733
f58aa3e1 5734{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5735echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5736if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
5739 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5740 # We make a subdir and do the tests there. Otherwise we can end up
5741 # making bogus files that we don't know about and never remove. For
5742 # instance it was reported that on HP-UX the gcc test will end up
5743 # making a dummy file named `D' -- because `-MD' means `put the output
5744 # in D'.
5745 mkdir conftest.dir
5746 # Copy depcomp to subdir because otherwise we won't find it if we're
5747 # using a relative directory.
5748 cp "$am_depcomp" conftest.dir
5749 cd conftest.dir
5750 # We will build objects and dependencies in a subdirectory because
5751 # it helps to detect inapplicable dependency modes. For instance
5752 # both Tru64's cc and ICC support -MD to output dependencies as a
5753 # side effect of compilation, but ICC will put the dependencies in
5754 # the current directory while Tru64 will put them in the object
5755 # directory.
5756 mkdir sub
5757
5758 am_cv_CXX_dependencies_compiler_type=none
5759 if test "$am_compiler_list" = ""; then
5760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
89354eef 5761 fi
f58aa3e1 5762 for depmode in $am_compiler_list; do
5763 # Setup a source with many dependencies, because some compilers
5764 # like to wrap large dependency lists on column 80 (with \), and
5765 # we should not choose a depcomp mode which is confused by this.
5766 #
5767 # We need to recreate these files for each test, as the compiler may
5768 # overwrite some of them when testing with obscure command lines.
5769 # This happens at least with the AIX C compiler.
5770 : > sub/conftest.c
5771 for i in 1 2 3 4 5 6; do
5772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5774 # Solaris 8's {/usr,}/bin/sh.
5775 touch sub/conftst$i.h
5776 done
5777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
89354eef 5778
f58aa3e1 5779 case $depmode in
5780 nosideeffect)
5781 # after this tag, mechanisms are not by side-effect, so they'll
5782 # only be used when explicitly requested
5783 if test "x$enable_dependency_tracking" = xyes; then
5784 continue
5785 else
5786 break
5787 fi
5788 ;;
5789 none) break ;;
5790 esac
5791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5792 # mode. It turns out that the SunPro C++ compiler does not properly
5793 # handle `-M -o', and we need to detect this.
5794 if depmode=$depmode \
5795 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5797 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5798 >/dev/null 2>conftest.err &&
5799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5800 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5802 # icc doesn't choke on unknown options, it will just issue warnings
5803 # or remarks (even with -Werror). So we grep stderr for any message
5804 # that says an option was ignored or not supported.
5805 # When given -MP, icc 7.0 and 7.1 complain thusly:
5806 # icc: Command line warning: ignoring option '-M'; no argument required
5807 # The diagnosis changed in icc 8.0:
5808 # icc: Command line remark: option '-MP' not supported
5809 if (grep 'ignoring option' conftest.err ||
5810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5811 am_cv_CXX_dependencies_compiler_type=$depmode
5812 break
5813 fi
5814 fi
5815 done
89354eef 5816
f58aa3e1 5817 cd ..
5818 rm -rf conftest.dir
5819else
5820 am_cv_CXX_dependencies_compiler_type=none
89354eef 5821fi
5822
f58aa3e1 5823fi
5824{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5825echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5826CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
89354eef 5827
f58aa3e1 5828
5829
5830if
5831 test "x$enable_dependency_tracking" != xno \
5832 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5833 am__fastdepCXX_TRUE=
5834 am__fastdepCXX_FALSE='#'
89354eef 5835else
f58aa3e1 5836 am__fastdepCXX_TRUE='#'
5837 am__fastdepCXX_FALSE=
89354eef 5838fi
89354eef 5839
5840
5841
89354eef 5842
f58aa3e1 5843if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5844 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5845 (test "X$CXX" != "Xg++"))) ; then
5846 ac_ext=cpp
5847ac_cpp='$CXXCPP $CPPFLAGS'
5848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5851{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5852echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5853if test -z "$CXXCPP"; then
5854 if test "${ac_cv_prog_CXXCPP+set}" = set; then
89354eef 5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856else
f58aa3e1 5857 # Double quotes because CXXCPP needs to be expanded
5858 for CXXCPP in "$CXX -E" "/lib/cpp"
5859 do
5860 ac_preproc_ok=false
5861for ac_cxx_preproc_warn_flag in '' yes
5862do
5863 # Use a header file that comes with gcc, so configuring glibc
5864 # with a fresh cross-compiler works.
5865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5866 # <limits.h> exists even on freestanding compilers.
5867 # On the NeXT, cc -E runs the code through the compiler's parser,
5868 # not just through cpp. "Syntax error" is here to catch this case.
5869 cat >conftest.$ac_ext <<_ACEOF
49ba971d 5870/* confdefs.h. */
5871_ACEOF
5872cat confdefs.h >>conftest.$ac_ext
5873cat >>conftest.$ac_ext <<_ACEOF
5874/* end confdefs.h. */
f58aa3e1 5875#ifdef __STDC__
5876# include <limits.h>
5877#else
5878# include <assert.h>
5879#endif
5880 Syntax error
89354eef 5881_ACEOF
f58aa3e1 5882if { (ac_try="$ac_cpp conftest.$ac_ext"
5883case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89354eef 5889 ac_status=$?
f58aa3e1 5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
89354eef 5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f58aa3e1 5894 (exit $ac_status); } >/dev/null; then
5895 if test -s conftest.err; then
5896 ac_cpp_err=$ac_cxx_preproc_warn_flag
5897 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5898 else
5899 ac_cpp_err=
5900 fi
5901else
5902 ac_cpp_err=yes
5903fi
5904if test -z "$ac_cpp_err"; then
5905 :
89354eef 5906else
5907 echo "$as_me: failed program was:" >&5
49ba971d 5908sed 's/^/| /' conftest.$ac_ext >&5
5909
f58aa3e1 5910 # Broken: fails on valid input.
5911continue
89354eef 5912fi
5913
f58aa3e1 5914rm -f conftest.err conftest.$ac_ext
89354eef 5915
f58aa3e1 5916 # OK, works on sane cases. Now check whether nonexistent headers
5917 # can be detected and how.
89354eef 5918 cat >conftest.$ac_ext <<_ACEOF
49ba971d 5919/* confdefs.h. */
5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5923/* end confdefs.h. */
f58aa3e1 5924#include <ac_nonexistent.h>
89354eef 5925_ACEOF
f58aa3e1 5926if { (ac_try="$ac_cpp conftest.$ac_ext"
5927case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930esac
5931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89354eef 5933 ac_status=$?
f58aa3e1 5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
89354eef 5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f58aa3e1 5938 (exit $ac_status); } >/dev/null; then
5939 if test -s conftest.err; then
5940 ac_cpp_err=$ac_cxx_preproc_warn_flag
5941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5942 else
5943 ac_cpp_err=
5944 fi
5945else
5946 ac_cpp_err=yes
5947fi
5948if test -z "$ac_cpp_err"; then
5949 # Broken: success on invalid input.
5950continue
89354eef 5951else
5952 echo "$as_me: failed program was:" >&5
49ba971d 5953sed 's/^/| /' conftest.$ac_ext >&5
5954
f58aa3e1 5955 # Passes both tests.
5956ac_preproc_ok=:
5957break
89354eef 5958fi
89354eef 5959
f58aa3e1 5960rm -f conftest.err conftest.$ac_ext
89354eef 5961
f58aa3e1 5962done
5963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5964rm -f conftest.err conftest.$ac_ext
5965if $ac_preproc_ok; then
5966 break
89354eef 5967fi
5968
f58aa3e1 5969 done
5970 ac_cv_prog_CXXCPP=$CXXCPP
89354eef 5971
f58aa3e1 5972fi
5973 CXXCPP=$ac_cv_prog_CXXCPP
89354eef 5974else
f58aa3e1 5975 ac_cv_prog_CXXCPP=$CXXCPP
5976fi
5977{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5978echo "${ECHO_T}$CXXCPP" >&6; }
5979ac_preproc_ok=false
5980for ac_cxx_preproc_warn_flag in '' yes
5981do
5982 # Use a header file that comes with gcc, so configuring glibc
5983 # with a fresh cross-compiler works.
5984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5985 # <limits.h> exists even on freestanding compilers.
5986 # On the NeXT, cc -E runs the code through the compiler's parser,
5987 # not just through cpp. "Syntax error" is here to catch this case.
89354eef 5988 cat >conftest.$ac_ext <<_ACEOF
49ba971d 5989/* confdefs.h. */
5990_ACEOF
5991cat confdefs.h >>conftest.$ac_ext
5992cat >>conftest.$ac_ext <<_ACEOF
5993/* end confdefs.h. */
f58aa3e1 5994#ifdef __STDC__
5995# include <limits.h>
5996#else
5997# include <assert.h>
5998#endif
5999 Syntax error
89354eef 6000_ACEOF
f58aa3e1 6001if { (ac_try="$ac_cpp conftest.$ac_ext"
6002case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005esac
6006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89354eef 6008 ac_status=$?
f58aa3e1 6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
89354eef 6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f58aa3e1 6013 (exit $ac_status); } >/dev/null; then
6014 if test -s conftest.err; then
6015 ac_cpp_err=$ac_cxx_preproc_warn_flag
6016 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6017 else
6018 ac_cpp_err=
6019 fi
6020else
6021 ac_cpp_err=yes
6022fi
6023if test -z "$ac_cpp_err"; then
6024 :
89354eef 6025else
6026 echo "$as_me: failed program was:" >&5
49ba971d 6027sed 's/^/| /' conftest.$ac_ext >&5
6028
f58aa3e1 6029 # Broken: fails on valid input.
6030continue
89354eef 6031fi
89354eef 6032
f58aa3e1 6033rm -f conftest.err conftest.$ac_ext
6034
6035 # OK, works on sane cases. Now check whether nonexistent headers
6036 # can be detected and how.
6037 cat >conftest.$ac_ext <<_ACEOF
6038/* confdefs.h. */
6039_ACEOF
6040cat confdefs.h >>conftest.$ac_ext
6041cat >>conftest.$ac_ext <<_ACEOF
6042/* end confdefs.h. */
6043#include <ac_nonexistent.h>
6044_ACEOF
6045if { (ac_try="$ac_cpp conftest.$ac_ext"
6046case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049esac
6050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev/null; then
6058 if test -s conftest.err; then
6059 ac_cpp_err=$ac_cxx_preproc_warn_flag
6060 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6061 else
6062 ac_cpp_err=
6063 fi
6064else
6065 ac_cpp_err=yes
6066fi
6067if test -z "$ac_cpp_err"; then
6068 # Broken: success on invalid input.
6069continue
6070else
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 # Passes both tests.
6075ac_preproc_ok=:
6076break
89354eef 6077fi
6078
f58aa3e1 6079rm -f conftest.err conftest.$ac_ext
6080
6081done
6082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6083rm -f conftest.err conftest.$ac_ext
6084if $ac_preproc_ok; then
6085 :
89354eef 6086else
f58aa3e1 6087 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6088See \`config.log' for more details." >&5
6089echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6090See \`config.log' for more details." >&2;}
6091 { (exit 1); exit 1; }; }
89354eef 6092fi
6093
f58aa3e1 6094ac_ext=cpp
6095ac_cpp='$CXXCPP $CPPFLAGS'
6096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6099
6100fi
6101
6102
6103ac_ext=f
6104ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6105ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6107if test -n "$ac_tool_prefix"; then
6108 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6109 do
6110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6112{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6114if test "${ac_cv_prog_F77+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116else
6117 if test -n "$F77"; then
6118 ac_cv_prog_F77="$F77" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
89354eef 6130 fi
f58aa3e1 6131done
6132done
6133IFS=$as_save_IFS
6134
6135fi
6136fi
6137F77=$ac_cv_prog_F77
6138if test -n "$F77"; then
6139 { echo "$as_me:$LINENO: result: $F77" >&5
6140echo "${ECHO_T}$F77" >&6; }
89354eef 6141else
f58aa3e1 6142 { echo "$as_me:$LINENO: result: no" >&5
6143echo "${ECHO_T}no" >&6; }
89354eef 6144fi
6145
f58aa3e1 6146
6147 test -n "$F77" && break
6148 done
6149fi
6150if test -z "$F77"; then
6151 ac_ct_F77=$F77
6152 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6153do
6154 # Extract the first word of "$ac_prog", so it can be a program name with args.
6155set dummy $ac_prog; ac_word=$2
6156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161 if test -n "$ac_ct_F77"; then
6162 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6163else
6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165for as_dir in $PATH
6166do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_F77="$ac_prog"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175done
6176done
6177IFS=$as_save_IFS
6178
6179fi
6180fi
6181ac_ct_F77=$ac_cv_prog_ac_ct_F77
6182if test -n "$ac_ct_F77"; then
6183 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6184echo "${ECHO_T}$ac_ct_F77" >&6; }
6185else
6186 { echo "$as_me:$LINENO: result: no" >&5
6187echo "${ECHO_T}no" >&6; }
6188fi
6189
6190
6191 test -n "$ac_ct_F77" && break
6192done
6193
6194 if test "x$ac_ct_F77" = x; then
6195 F77=""
6196 else
6197 case $cross_compiling:$ac_tool_warned in
6198yes:)
6199{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6200whose name does not start with the host triplet. If you think this
6201configuration is useful to you, please write to autoconf@gnu.org." >&5
6202echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6203whose name does not start with the host triplet. If you think this
6204configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6205ac_tool_warned=yes ;;
6206esac
6207 F77=$ac_ct_F77
6208 fi
6209fi
6210
6211
6212# Provide some information about the compiler.
6213echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6214ac_compiler=`set X $ac_compile; echo $2`
6215{ (ac_try="$ac_compiler --version >&5"
6216case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219esac
6220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_compiler --version >&5") 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }
6225{ (ac_try="$ac_compiler -v >&5"
6226case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229esac
6230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_compiler -v >&5") 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }
6235{ (ac_try="$ac_compiler -V >&5"
6236case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239esac
6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_compiler -V >&5") 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }
6245rm -f a.out
6246
6247# If we don't use `.F' as extension, the preprocessor is not run on the
6248# input file. (Note that this only needs to work for GNU compilers.)
6249ac_save_ext=$ac_ext
6250ac_ext=F
6251{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6252echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6253if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
89354eef 6256 cat >conftest.$ac_ext <<_ACEOF
f58aa3e1 6257 program main
6258#ifndef __GNUC__
6259 choke me
6260#endif
89354eef 6261
f58aa3e1 6262 end
89354eef 6263_ACEOF
6264rm -f conftest.$ac_objext
f58aa3e1 6265if { (ac_try="$ac_compile"
6266case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compile") 2>conftest.er1
89354eef 6272 ac_status=$?
f58aa3e1 6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
89354eef 6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
f58aa3e1 6278 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6279 { (case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_try") 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_try") 2>&5
89354eef 6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
f58aa3e1 6298 ac_compiler_gnu=yes
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303 ac_compiler_gnu=no
6304fi
6305
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6308
6309fi
6310{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6311echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6312ac_ext=$ac_save_ext
6313ac_test_FFLAGS=${FFLAGS+set}
6314ac_save_FFLAGS=$FFLAGS
6315FFLAGS=
6316{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6317echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6318if test "${ac_cv_prog_f77_g+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321 FFLAGS=-g
6322cat >conftest.$ac_ext <<_ACEOF
6323 program main
89354eef 6324
f58aa3e1 6325 end
6326_ACEOF
6327rm -f conftest.$ac_objext
6328if { (ac_try="$ac_compile"
6329case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332esac
6333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_compile") 2>conftest.er1
6335 ac_status=$?
6336 grep -v '^ *+' conftest.er1 >conftest.err
6337 rm -f conftest.er1
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6342 { (case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345esac
6346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_try") 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; } &&
6351 { ac_try='test -s conftest.$ac_objext'
6352 { (case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355esac
6356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_try") 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_cv_prog_f77_g=yes
89354eef 6362else
6363 echo "$as_me: failed program was:" >&5
49ba971d 6364sed 's/^/| /' conftest.$ac_ext >&5
6365
f58aa3e1 6366 ac_cv_prog_f77_g=no
89354eef 6367fi
89354eef 6368
f58aa3e1 6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370
6371fi
6372{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6373echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6374if test "$ac_test_FFLAGS" = set; then
6375 FFLAGS=$ac_save_FFLAGS
6376elif test $ac_cv_prog_f77_g = yes; then
6377 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6378 FFLAGS="-g -O2"
6379 else
6380 FFLAGS="-g"
6381 fi
6382else
6383 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6384 FFLAGS="-O2"
89354eef 6385 else
f58aa3e1 6386 FFLAGS=
89354eef 6387 fi
6388fi
6389
f58aa3e1 6390G77=`test $ac_compiler_gnu = yes && echo yes`
6391ac_ext=c
6392ac_cpp='$CPP $CPPFLAGS'
6393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6395ac_compiler_gnu=$ac_cv_c_compiler_gnu
89354eef 6396
89354eef 6397
89354eef 6398
f58aa3e1 6399# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
89354eef 6400
f58aa3e1 6401# find the maximum length of command line arguments
6402{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6403echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6404if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407 i=0
6408 teststring="ABCD"
6409
6410 case $build_os in
6411 msdosdjgpp*)
6412 # On DJGPP, this test can blow up pretty badly due to problems in libc
6413 # (any single argument exceeding 2000 bytes causes a buffer overrun
6414 # during glob expansion). Even if it were fixed, the result of this
6415 # check would be larger than it should be.
6416 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6417 ;;
89354eef 6418
f58aa3e1 6419 gnu*)
6420 # Under GNU Hurd, this test is not required because there is
6421 # no limit to the length of command line arguments.
6422 # Libtool will interpret -1 as no limit whatsoever
6423 lt_cv_sys_max_cmd_len=-1;
6424 ;;
89354eef 6425
f58aa3e1 6426 cygwin* | mingw*)
6427 # On Win9x/ME, this test blows up -- it succeeds, but takes
6428 # about 5 minutes as the teststring grows exponentially.
6429 # Worse, since 9x/ME are not pre-emptively multitasking,
6430 # you end up with a "frozen" computer, even though with patience
6431 # the test eventually succeeds (with a max line length of 256k).
6432 # Instead, let's just punt: use the minimum linelength reported by
6433 # all of the supported platforms: 8192 (on NT/2K/XP).
6434 lt_cv_sys_max_cmd_len=8192;
89354eef 6435 ;;
6436
6437 amigaos*)
f58aa3e1 6438 # On AmigaOS with pdksh, this test takes hours, literally.
6439 # So we just punt and use a minimum line length of 8192.
6440 lt_cv_sys_max_cmd_len=8192;
89354eef 6441 ;;
6442
f58aa3e1 6443 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6444 # This has been around since 386BSD, at least. Likely further.
6445 if test -x /sbin/sysctl; then
6446 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6447 elif test -x /usr/sbin/sysctl; then
6448 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
89354eef 6449 else
f58aa3e1 6450 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
89354eef 6451 fi
f58aa3e1 6452 # And add a safety zone
6453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
89354eef 6455 ;;
6456
f58aa3e1 6457 interix*)
6458 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6459 lt_cv_sys_max_cmd_len=196608
6460 ;;
89354eef 6461
f58aa3e1 6462 osf*)
6463 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6464 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6465 # nice to cause kernel panics so lets avoid the loop below.
6466 # First set a reasonable default.
6467 lt_cv_sys_max_cmd_len=16384
6468 #
6469 if test -x /sbin/sysconfig; then
6470 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6471 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6472 esac
89354eef 6473 fi
89354eef 6474 ;;
f58aa3e1 6475 sco3.2v5*)
6476 lt_cv_sys_max_cmd_len=102400
6477 ;;
6478 sysv5* | sco5v6* | sysv4.2uw2*)
6479 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6480 if test -n "$kargmax"; then
6481 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
89354eef 6482 else
f58aa3e1 6483 lt_cv_sys_max_cmd_len=32768
89354eef 6484 fi
6485 ;;
f58aa3e1 6486 *)
6487 # If test is not a shell built-in, we'll probably end up computing a
6488 # maximum length that is only half of the actual maximum length, but
6489 # we can't tell.
6490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6491 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6492 = "XX$teststring") >/dev/null 2>&1 &&
6493 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6494 lt_cv_sys_max_cmd_len=$new_result &&
6495 test $i != 17 # 1/2 MB should be enough
6496 do
6497 i=`expr $i + 1`
6498 teststring=$teststring$teststring
6499 done
6500 teststring=
6501 # Add a significant safety factor because C++ compilers can tack on massive
6502 # amounts of additional arguments before passing them to the linker.
6503 # It appears as though 1/2 is a usable value.
6504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6505 ;;
6506 esac
89354eef 6507
f58aa3e1 6508fi
89354eef 6509
f58aa3e1 6510if test -n $lt_cv_sys_max_cmd_len ; then
6511 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6512echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6513else
6514 { echo "$as_me:$LINENO: result: none" >&5
6515echo "${ECHO_T}none" >&6; }
6516fi
6517
6518
6519
6520
6521# Check for command to grab the raw symbol name followed by C symbol from nm.
6522{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6523echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6524if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527
6528# These are sane defaults that work on at least a few old systems.
6529# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6530
6531# Character class describing NM global symbol codes.
6532symcode='[BCDEGRST]'
6533
6534# Regexp to match symbols that can be accessed directly from C.
6535sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6536
6537# Transform an extracted symbol line into a proper C declaration
6538lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6539
6540# Transform an extracted symbol line into symbol name and symbol address
6541lt_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'"
6542
6543# Define system-specific variables.
6544case $host_os in
6545aix*)
6546 symcode='[BCDT]'
6547 ;;
6548cygwin* | mingw* | pw32*)
6549 symcode='[ABCDGISTW]'
6550 ;;
6551hpux*) # Its linker distinguishes data from code symbols
6552 if test "$host_cpu" = ia64; then
6553 symcode='[ABCDEGRST]'
6554 fi
6555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6556 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'"
6557 ;;
6558linux* | k*bsd*-gnu)
6559 if test "$host_cpu" = ia64; then
6560 symcode='[ABCDGIRSTW]'
6561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6562 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'"
6563 fi
6564 ;;
6565irix* | nonstopux*)
6566 symcode='[BCDEGRST]'
6567 ;;
6568osf*)
6569 symcode='[BCDEGQRST]'
6570 ;;
6571solaris*)
6572 symcode='[BDRT]'
6573 ;;
6574sco3.2v5*)
6575 symcode='[DT]'
6576 ;;
6577sysv4.2uw2*)
6578 symcode='[DT]'
6579 ;;
6580sysv5* | sco5v6* | unixware* | OpenUNIX*)
6581 symcode='[ABDT]'
6582 ;;
6583sysv4)
6584 symcode='[DFNSTU]'
6585 ;;
6586esac
6587
6588# Handle CRLF in mingw tool chain
6589opt_cr=
6590case $build_os in
6591mingw*)
6592 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6593 ;;
6594esac
6595
6596# If we're using GNU nm, then use its standard symbol codes.
6597case `$NM -V 2>&1` in
6598*GNU* | *'with BFD'*)
6599 symcode='[ABCDGIRSTW]' ;;
6600esac
6601
6602# Try without a prefix undercore, then with it.
6603for ac_symprfx in "" "_"; do
6604
6605 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6606 symxfrm="\\1 $ac_symprfx\\2 \\2"
6607
6608 # Write the raw and C identifiers.
6609 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6610
6611 # Check to see that the pipe works correctly.
6612 pipe_works=no
6613
6614 rm -f conftest*
6615 cat > conftest.$ac_ext <<EOF
6616#ifdef __cplusplus
6617extern "C" {
6618#endif
6619char nm_test_var;
6620void nm_test_func(){}
6621#ifdef __cplusplus
6622}
6623#endif
6624int main(){nm_test_var='a';nm_test_func();return(0);}
6625EOF
6626
6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628 (eval $ac_compile) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; then
6632 # Now try to grab the symbols.
6633 nlist=conftest.nm
6634 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6635 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6636 ac_status=$?
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && test -s "$nlist"; then
6639 # Try sorting and uniquifying the output.
6640 if sort "$nlist" | uniq > "$nlist"T; then
6641 mv -f "$nlist"T "$nlist"
6642 else
6643 rm -f "$nlist"T
6644 fi
6645
6646 # Make sure that we snagged all the symbols we need.
6647 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6648 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6649 cat <<EOF > conftest.$ac_ext
6650#ifdef __cplusplus
6651extern "C" {
6652#endif
6653
6654EOF
6655 # Now generate the symbol file.
6656 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6657
6658 cat <<EOF >> conftest.$ac_ext
6659#if defined (__STDC__) && __STDC__
6660# define lt_ptr_t void *
6661#else
6662# define lt_ptr_t char *
6663# define const
6664#endif
6665
6666/* The mapping between symbol names and symbols. */
6667const struct {
6668 const char *name;
6669 lt_ptr_t address;
6670}
6671lt_preloaded_symbols[] =
6672{
6673EOF
6674 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6675 cat <<\EOF >> conftest.$ac_ext
6676 {0, (lt_ptr_t) 0}
6677};
6678
6679#ifdef __cplusplus
6680}
6681#endif
6682EOF
6683 # Now try linking the two files.
6684 mv conftest.$ac_objext conftstm.$ac_objext
6685 lt_save_LIBS="$LIBS"
6686 lt_save_CFLAGS="$CFLAGS"
6687 LIBS="conftstm.$ac_objext"
6688 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690 (eval $ac_link) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6694 pipe_works=yes
6695 fi
6696 LIBS="$lt_save_LIBS"
6697 CFLAGS="$lt_save_CFLAGS"
6698 else
6699 echo "cannot find nm_test_func in $nlist" >&5
6700 fi
6701 else
6702 echo "cannot find nm_test_var in $nlist" >&5
6703 fi
6704 else
6705 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6706 fi
6707 else
6708 echo "$progname: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6710 fi
6711 rm -f conftest* conftst*
6712
6713 # Do not use the global_symbol_pipe unless it works.
6714 if test "$pipe_works" = yes; then
6715 break
6716 else
6717 lt_cv_sys_global_symbol_pipe=
6718 fi
6719done
6720
6721fi
6722
6723if test -z "$lt_cv_sys_global_symbol_pipe"; then
6724 lt_cv_sys_global_symbol_to_cdecl=
6725fi
6726if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6727 { echo "$as_me:$LINENO: result: failed" >&5
6728echo "${ECHO_T}failed" >&6; }
6729else
6730 { echo "$as_me:$LINENO: result: ok" >&5
6731echo "${ECHO_T}ok" >&6; }
6732fi
6733
6734{ echo "$as_me:$LINENO: checking for objdir" >&5
6735echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6736if test "${lt_cv_objdir+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739 rm -f .libs 2>/dev/null
6740mkdir .libs 2>/dev/null
6741if test -d .libs; then
6742 lt_cv_objdir=.libs
6743else
6744 # MS-DOS does not allow filenames that begin with a dot.
6745 lt_cv_objdir=_libs
6746fi
6747rmdir .libs 2>/dev/null
6748fi
6749{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6750echo "${ECHO_T}$lt_cv_objdir" >&6; }
6751objdir=$lt_cv_objdir
6752
6753
6754
6755
6756
6757case $host_os in
6758aix3*)
6759 # AIX sometimes has problems with the GCC collect2 program. For some
6760 # reason, if we set the COLLECT_NAMES environment variable, the problems
6761 # vanish in a puff of smoke.
6762 if test "X${COLLECT_NAMES+set}" != Xset; then
6763 COLLECT_NAMES=
6764 export COLLECT_NAMES
6765 fi
6766 ;;
6767esac
6768
6769# Sed substitution that helps us do robust quoting. It backslashifies
6770# metacharacters that are still active within double-quoted strings.
6771Xsed='sed -e 1s/^X//'
6772sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6773
6774# Same as above, but do not quote variable references.
6775double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6776
6777# Sed substitution to delay expansion of an escaped shell variable in a
6778# double_quote_subst'ed string.
6779delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6780
6781# Sed substitution to avoid accidental globbing in evaled expressions
6782no_glob_subst='s/\*/\\\*/g'
6783
6784# Constants:
6785rm="rm -f"
6786
6787# Global variables:
6788default_ofile=libtool
6789can_build_shared=yes
6790
6791# All known linkers require a `.a' archive for static linking (except MSVC,
6792# which needs '.lib').
6793libext=a
6794ltmain="$ac_aux_dir/ltmain.sh"
6795ofile="$default_ofile"
6796with_gnu_ld="$lt_cv_prog_gnu_ld"
6797
6798if test -n "$ac_tool_prefix"; then
6799 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6800set dummy ${ac_tool_prefix}ar; ac_word=$2
6801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803if test "${ac_cv_prog_AR+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805else
6806 if test -n "$AR"; then
6807 ac_cv_prog_AR="$AR" # Let the user override the test.
6808else
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_AR="${ac_tool_prefix}ar"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821done
6822IFS=$as_save_IFS
6823
6824fi
6825fi
6826AR=$ac_cv_prog_AR
6827if test -n "$AR"; then
6828 { echo "$as_me:$LINENO: result: $AR" >&5
6829echo "${ECHO_T}$AR" >&6; }
6830else
6831 { echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6; }
6833fi
6834
6835
6836fi
6837if test -z "$ac_cv_prog_AR"; then
6838 ac_ct_AR=$AR
6839 # Extract the first word of "ar", so it can be a program name with args.
6840set dummy ar; ac_word=$2
6841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845else
6846 if test -n "$ac_ct_AR"; then
6847 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6848else
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_prog_ac_ct_AR="ar"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860done
6861done
6862IFS=$as_save_IFS
6863
6864fi
6865fi
6866ac_ct_AR=$ac_cv_prog_ac_ct_AR
6867if test -n "$ac_ct_AR"; then
6868 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6869echo "${ECHO_T}$ac_ct_AR" >&6; }
6870else
6871 { echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6; }
6873fi
6874
6875 if test "x$ac_ct_AR" = x; then
6876 AR="false"
6877 else
6878 case $cross_compiling:$ac_tool_warned in
6879yes:)
6880{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6881whose name does not start with the host triplet. If you think this
6882configuration is useful to you, please write to autoconf@gnu.org." >&5
6883echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6884whose name does not start with the host triplet. If you think this
6885configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6886ac_tool_warned=yes ;;
6887esac
6888 AR=$ac_ct_AR
6889 fi
6890else
6891 AR="$ac_cv_prog_AR"
6892fi
6893
6894if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6896set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899if test "${ac_cv_prog_RANLIB+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901else
6902 if test -n "$RANLIB"; then
6903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6904else
6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916done
6917done
6918IFS=$as_save_IFS
6919
6920fi
6921fi
6922RANLIB=$ac_cv_prog_RANLIB
6923if test -n "$RANLIB"; then
6924 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6925echo "${ECHO_T}$RANLIB" >&6; }
6926else
6927 { echo "$as_me:$LINENO: result: no" >&5
6928echo "${ECHO_T}no" >&6; }
6929fi
6930
6931
6932fi
6933if test -z "$ac_cv_prog_RANLIB"; then
6934 ac_ct_RANLIB=$RANLIB
6935 # Extract the first word of "ranlib", so it can be a program name with args.
6936set dummy ranlib; ac_word=$2
6937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941else
6942 if test -n "$ac_ct_RANLIB"; then
6943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6944else
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_prog_ac_ct_RANLIB="ranlib"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956done
6957done
6958IFS=$as_save_IFS
6959
6960fi
6961fi
6962ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6963if test -n "$ac_ct_RANLIB"; then
6964 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6965echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6966else
6967 { echo "$as_me:$LINENO: result: no" >&5
6968echo "${ECHO_T}no" >&6; }
6969fi
6970
6971 if test "x$ac_ct_RANLIB" = x; then
6972 RANLIB=":"
6973 else
6974 case $cross_compiling:$ac_tool_warned in
6975yes:)
6976{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6977whose name does not start with the host triplet. If you think this
6978configuration is useful to you, please write to autoconf@gnu.org." >&5
6979echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6980whose name does not start with the host triplet. If you think this
6981configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6982ac_tool_warned=yes ;;
6983esac
6984 RANLIB=$ac_ct_RANLIB
6985 fi
6986else
6987 RANLIB="$ac_cv_prog_RANLIB"
6988fi
6989
6990if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6992set dummy ${ac_tool_prefix}strip; ac_word=$2
6993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995if test "${ac_cv_prog_STRIP+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998 if test -n "$STRIP"; then
6999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7000else
7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012done
7013done
7014IFS=$as_save_IFS
7015
7016fi
7017fi
7018STRIP=$ac_cv_prog_STRIP
7019if test -n "$STRIP"; then
7020 { echo "$as_me:$LINENO: result: $STRIP" >&5
7021echo "${ECHO_T}$STRIP" >&6; }
7022else
7023 { echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6; }
7025fi
7026
7027
7028fi
7029if test -z "$ac_cv_prog_STRIP"; then
7030 ac_ct_STRIP=$STRIP
7031 # Extract the first word of "strip", so it can be a program name with args.
7032set dummy strip; ac_word=$2
7033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037else
7038 if test -n "$ac_ct_STRIP"; then
7039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7040else
7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_ac_ct_STRIP="strip"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052done
7053done
7054IFS=$as_save_IFS
7055
7056fi
7057fi
7058ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7059if test -n "$ac_ct_STRIP"; then
7060 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7061echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7062else
7063 { echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6; }
7065fi
7066
7067 if test "x$ac_ct_STRIP" = x; then
7068 STRIP=":"
7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071yes:)
7072{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7073whose name does not start with the host triplet. If you think this
7074configuration is useful to you, please write to autoconf@gnu.org." >&5
7075echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7076whose name does not start with the host triplet. If you think this
7077configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7078ac_tool_warned=yes ;;
7079esac
7080 STRIP=$ac_ct_STRIP
7081 fi
7082else
7083 STRIP="$ac_cv_prog_STRIP"
7084fi
7085
7086
7087old_CC="$CC"
7088old_CFLAGS="$CFLAGS"
7089
7090# Set sane defaults for various variables
7091test -z "$AR" && AR=ar
7092test -z "$AR_FLAGS" && AR_FLAGS=cru
7093test -z "$AS" && AS=as
7094test -z "$CC" && CC=cc
7095test -z "$LTCC" && LTCC=$CC
7096test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7097test -z "$DLLTOOL" && DLLTOOL=dlltool
7098test -z "$LD" && LD=ld
7099test -z "$LN_S" && LN_S="ln -s"
7100test -z "$MAGIC_CMD" && MAGIC_CMD=file
7101test -z "$NM" && NM=nm
7102test -z "$SED" && SED=sed
7103test -z "$OBJDUMP" && OBJDUMP=objdump
7104test -z "$RANLIB" && RANLIB=:
7105test -z "$STRIP" && STRIP=:
7106test -z "$ac_objext" && ac_objext=o
7107
7108# Determine commands to create old-style static archives.
7109old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7110old_postinstall_cmds='chmod 644 $oldlib'
7111old_postuninstall_cmds=
7112
7113if test -n "$RANLIB"; then
7114 case $host_os in
7115 openbsd*)
7116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7117 ;;
7118 *)
7119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7120 ;;
7121 esac
7122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7123fi
7124
7125for cc_temp in $compiler""; do
7126 case $cc_temp in
7127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7129 \-*) ;;
7130 *) break;;
7131 esac
7132done
7133cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7134
7135
7136# Only perform the check for file, if the check method requires it
7137case $deplibs_check_method in
7138file_magic*)
7139 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7140 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7141echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7142if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145 case $MAGIC_CMD in
7146[\\/*] | ?:[\\/]*)
7147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7148 ;;
7149*)
7150 lt_save_MAGIC_CMD="$MAGIC_CMD"
7151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7153 for ac_dir in $ac_dummy; do
7154 IFS="$lt_save_ifs"
7155 test -z "$ac_dir" && ac_dir=.
7156 if test -f $ac_dir/${ac_tool_prefix}file; then
7157 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7158 if test -n "$file_magic_test_file"; then
7159 case $deplibs_check_method in
7160 "file_magic "*)
7161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7164 $EGREP "$file_magic_regex" > /dev/null; then
7165 :
7166 else
7167 cat <<EOF 1>&2
7168
7169*** Warning: the command libtool uses to detect shared libraries,
7170*** $file_magic_cmd, produces output that libtool cannot recognize.
7171*** The result is that libtool may fail to recognize shared libraries
7172*** as such. This will affect the creation of libtool libraries that
7173*** depend on shared libraries, but programs linked with such libtool
7174*** libraries will work regardless of this problem. Nevertheless, you
7175*** may want to report the problem to your system manager and/or to
7176*** bug-libtool@gnu.org
7177
7178EOF
7179 fi ;;
7180 esac
7181 fi
7182 break
7183 fi
7184 done
7185 IFS="$lt_save_ifs"
7186 MAGIC_CMD="$lt_save_MAGIC_CMD"
7187 ;;
7188esac
7189fi
7190
7191MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7192if test -n "$MAGIC_CMD"; then
7193 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7194echo "${ECHO_T}$MAGIC_CMD" >&6; }
7195else
7196 { echo "$as_me:$LINENO: result: no" >&5
7197echo "${ECHO_T}no" >&6; }
7198fi
7199
7200if test -z "$lt_cv_path_MAGIC_CMD"; then
7201 if test -n "$ac_tool_prefix"; then
7202 { echo "$as_me:$LINENO: checking for file" >&5
7203echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7204if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207 case $MAGIC_CMD in
7208[\\/*] | ?:[\\/]*)
7209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7210 ;;
7211*)
7212 lt_save_MAGIC_CMD="$MAGIC_CMD"
7213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7214 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7215 for ac_dir in $ac_dummy; do
7216 IFS="$lt_save_ifs"
7217 test -z "$ac_dir" && ac_dir=.
7218 if test -f $ac_dir/file; then
7219 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7220 if test -n "$file_magic_test_file"; then
7221 case $deplibs_check_method in
7222 "file_magic "*)
7223 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7226 $EGREP "$file_magic_regex" > /dev/null; then
7227 :
7228 else
7229 cat <<EOF 1>&2
7230
7231*** Warning: the command libtool uses to detect shared libraries,
7232*** $file_magic_cmd, produces output that libtool cannot recognize.
7233*** The result is that libtool may fail to recognize shared libraries
7234*** as such. This will affect the creation of libtool libraries that
7235*** depend on shared libraries, but programs linked with such libtool
7236*** libraries will work regardless of this problem. Nevertheless, you
7237*** may want to report the problem to your system manager and/or to
7238*** bug-libtool@gnu.org
7239
7240EOF
7241 fi ;;
7242 esac
7243 fi
7244 break
7245 fi
7246 done
7247 IFS="$lt_save_ifs"
7248 MAGIC_CMD="$lt_save_MAGIC_CMD"
7249 ;;
7250esac
7251fi
7252
7253MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7254if test -n "$MAGIC_CMD"; then
7255 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7256echo "${ECHO_T}$MAGIC_CMD" >&6; }
7257else
7258 { echo "$as_me:$LINENO: result: no" >&5
7259echo "${ECHO_T}no" >&6; }
7260fi
7261
7262 else
7263 MAGIC_CMD=:
7264 fi
7265fi
7266
7267 fi
7268 ;;
7269esac
7270
7271enable_dlopen=no
7272enable_win32_dll=no
7273
7274# Check whether --enable-libtool-lock was given.
7275if test "${enable_libtool_lock+set}" = set; then
7276 enableval=$enable_libtool_lock;
7277fi
7278
7279test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7280
7281
7282# Check whether --with-pic was given.
7283if test "${with_pic+set}" = set; then
7284 withval=$with_pic; pic_mode="$withval"
7285else
7286 pic_mode=default
7287fi
7288
7289test -z "$pic_mode" && pic_mode=default
7290
7291# Use C for the default configuration in the libtool script
7292tagname=
7293lt_save_CC="$CC"
7294ac_ext=c
7295ac_cpp='$CPP $CPPFLAGS'
7296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7298ac_compiler_gnu=$ac_cv_c_compiler_gnu
7299
7300
7301# Source file extension for C test sources.
7302ac_ext=c
7303
7304# Object file extension for compiled C test sources.
7305objext=o
7306objext=$objext
7307
7308# Code to be used in simple compile tests
7309lt_simple_compile_test_code="int some_variable = 0;\n"
7310
7311# Code to be used in simple link tests
7312lt_simple_link_test_code='int main(){return(0);}\n'
7313
7314
7315# If no C compiler was specified, use CC.
7316LTCC=${LTCC-"$CC"}
7317
7318# If no C compiler flags were specified, use CFLAGS.
7319LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7320
7321# Allow CC to be a program name with arguments.
7322compiler=$CC
7323
7324
7325# save warnings/boilerplate of simple test code
7326ac_outfile=conftest.$ac_objext
7327printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7328eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7329_lt_compiler_boilerplate=`cat conftest.err`
7330$rm conftest*
7331
7332ac_outfile=conftest.$ac_objext
7333printf "$lt_simple_link_test_code" >conftest.$ac_ext
7334eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7335_lt_linker_boilerplate=`cat conftest.err`
7336$rm conftest*
7337
7338
7339
7340lt_prog_compiler_no_builtin_flag=
7341
7342if test "$GCC" = yes; then
7343 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7344
7345
7346{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7347echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7348if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 lt_cv_prog_compiler_rtti_exceptions=no
7352 ac_outfile=conftest.$ac_objext
7353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7354 lt_compiler_flag="-fno-rtti -fno-exceptions"
7355 # Insert the option either (1) after the last *FLAGS variable, or
7356 # (2) before a word containing "conftest.", or (3) at the end.
7357 # Note that $ac_compile itself does not contain backslashes and begins
7358 # with a dollar sign (not a hyphen), so the echo should work correctly.
7359 # The option is referenced via a variable to avoid confusing sed.
7360 lt_compile=`echo "$ac_compile" | $SED \
7361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7363 -e 's:$: $lt_compiler_flag:'`
7364 (eval echo "\"\$as_me:7364: $lt_compile\"" >&5)
7365 (eval "$lt_compile" 2>conftest.err)
7366 ac_status=$?
7367 cat conftest.err >&5
7368 echo "$as_me:7368: \$? = $ac_status" >&5
7369 if (exit $ac_status) && test -s "$ac_outfile"; then
7370 # The compiler can only warn and ignore the option if not recognized
7371 # So say no if there are warnings other than the usual output.
7372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7375 lt_cv_prog_compiler_rtti_exceptions=yes
7376 fi
7377 fi
7378 $rm conftest*
7379
7380fi
7381{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7382echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7383
7384if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7385 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7386else
7387 :
7388fi
7389
7390fi
7391
7392lt_prog_compiler_wl=
7393lt_prog_compiler_pic=
7394lt_prog_compiler_static=
7395
7396{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7397echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7398
7399 if test "$GCC" = yes; then
7400 lt_prog_compiler_wl='-Wl,'
7401 lt_prog_compiler_static='-static'
7402
7403 case $host_os in
7404 aix*)
7405 # All AIX code is PIC.
7406 if test "$host_cpu" = ia64; then
7407 # AIX 5 now supports IA64 processor
7408 lt_prog_compiler_static='-Bstatic'
7409 fi
7410 ;;
7411
7412 amigaos*)
7413 # FIXME: we need at least 68020 code to build shared libraries, but
7414 # adding the `-m68020' flag to GCC prevents building anything better,
7415 # like `-m68040'.
7416 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7417 ;;
7418
7419 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7420 # PIC is the default for these OSes.
7421 ;;
7422
7423 mingw* | pw32* | os2*)
7424 # This hack is so that the source file can tell whether it is being
7425 # built for inclusion in a dll (and should export symbols for example).
7426 lt_prog_compiler_pic='-DDLL_EXPORT'
7427 ;;
7428
7429 darwin* | rhapsody*)
7430 # PIC is the default on this platform
7431 # Common symbols not allowed in MH_DYLIB files
7432 lt_prog_compiler_pic='-fno-common'
7433 ;;
7434
7435 interix3*)
7436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7437 # Instead, we relocate shared libraries at runtime.
7438 ;;
7439
7440 msdosdjgpp*)
7441 # Just because we use GCC doesn't mean we suddenly get shared libraries
7442 # on systems that don't support them.
7443 lt_prog_compiler_can_build_shared=no
7444 enable_shared=no
7445 ;;
7446
7447 sysv4*MP*)
7448 if test -d /usr/nec; then
7449 lt_prog_compiler_pic=-Kconform_pic
7450 fi
7451 ;;
7452
7453 hpux*)
7454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7455 # not for PA HP-UX.
7456 case $host_cpu in
7457 hppa*64*|ia64*)
7458 # +Z the default
7459 ;;
7460 *)
7461 lt_prog_compiler_pic='-fPIC'
7462 ;;
7463 esac
7464 ;;
7465
7466 *)
7467 lt_prog_compiler_pic='-fPIC'
7468 ;;
7469 esac
7470 else
7471 # PORTME Check for flag to pass linker flags through the system compiler.
7472 case $host_os in
7473 aix*)
7474 lt_prog_compiler_wl='-Wl,'
7475 if test "$host_cpu" = ia64; then
7476 # AIX 5 now supports IA64 processor
7477 lt_prog_compiler_static='-Bstatic'
7478 else
7479 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7480 fi
7481 ;;
7482 darwin*)
7483 # PIC is the default on this platform
7484 # Common symbols not allowed in MH_DYLIB files
7485 case $cc_basename in
7486 xlc*)
7487 lt_prog_compiler_pic='-qnocommon'
7488 lt_prog_compiler_wl='-Wl,'
7489 ;;
7490 esac
7491 ;;
7492
7493 mingw* | pw32* | os2*)
7494 # This hack is so that the source file can tell whether it is being
7495 # built for inclusion in a dll (and should export symbols for example).
7496 lt_prog_compiler_pic='-DDLL_EXPORT'
7497 ;;
7498
7499 hpux9* | hpux10* | hpux11*)
7500 lt_prog_compiler_wl='-Wl,'
7501 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7502 # not for PA HP-UX.
7503 case $host_cpu in
7504 hppa*64*|ia64*)
7505 # +Z the default
7506 ;;
7507 *)
7508 lt_prog_compiler_pic='+Z'
7509 ;;
7510 esac
7511 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7512 lt_prog_compiler_static='${wl}-a ${wl}archive'
7513 ;;
7514
7515 irix5* | irix6* | nonstopux*)
7516 lt_prog_compiler_wl='-Wl,'
7517 # PIC (with -KPIC) is the default.
7518 lt_prog_compiler_static='-non_shared'
7519 ;;
7520
7521 newsos6)
7522 lt_prog_compiler_pic='-KPIC'
7523 lt_prog_compiler_static='-Bstatic'
7524 ;;
7525
7526 linux* | k*bsd*-gnu)
7527 case $cc_basename in
7528 icc* | ecc*)
7529 lt_prog_compiler_wl='-Wl,'
7530 lt_prog_compiler_pic='-KPIC'
7531 lt_prog_compiler_static='-static'
7532 ;;
7533 pgcc* | pgf77* | pgf90* | pgf95*)
7534 # Portland Group compilers (*not* the Pentium gcc compiler,
7535 # which looks to be a dead project)
7536 lt_prog_compiler_wl='-Wl,'
7537 lt_prog_compiler_pic='-fpic'
7538 lt_prog_compiler_static='-Bstatic'
7539 ;;
7540 ccc*)
7541 lt_prog_compiler_wl='-Wl,'
7542 # All Alpha code is PIC.
7543 lt_prog_compiler_static='-non_shared'
7544 ;;
7545 esac
7546 ;;
7547
7548 osf3* | osf4* | osf5*)
7549 lt_prog_compiler_wl='-Wl,'
7550 # All OSF/1 code is PIC.
7551 lt_prog_compiler_static='-non_shared'
7552 ;;
7553
7554 solaris*)
7555 lt_prog_compiler_pic='-KPIC'
7556 lt_prog_compiler_static='-Bstatic'
7557 case $cc_basename in
7558 f77* | f90* | f95*)
7559 lt_prog_compiler_wl='-Qoption ld ';;
7560 *)
7561 lt_prog_compiler_wl='-Wl,';;
7562 esac
7563 ;;
7564
7565 sunos4*)
7566 lt_prog_compiler_wl='-Qoption ld '
7567 lt_prog_compiler_pic='-PIC'
7568 lt_prog_compiler_static='-Bstatic'
7569 ;;
7570
7571 sysv4 | sysv4.2uw2* | sysv4.3*)
7572 lt_prog_compiler_wl='-Wl,'
7573 lt_prog_compiler_pic='-KPIC'
7574 lt_prog_compiler_static='-Bstatic'
7575 ;;
7576
7577 sysv4*MP*)
7578 if test -d /usr/nec ;then
7579 lt_prog_compiler_pic='-Kconform_pic'
7580 lt_prog_compiler_static='-Bstatic'
7581 fi
7582 ;;
7583
7584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7585 lt_prog_compiler_wl='-Wl,'
7586 lt_prog_compiler_pic='-KPIC'
7587 lt_prog_compiler_static='-Bstatic'
7588 ;;
7589
7590 unicos*)
7591 lt_prog_compiler_wl='-Wl,'
7592 lt_prog_compiler_can_build_shared=no
7593 ;;
7594
7595 uts4*)
7596 lt_prog_compiler_pic='-pic'
7597 lt_prog_compiler_static='-Bstatic'
7598 ;;
7599
7600 *)
7601 lt_prog_compiler_can_build_shared=no
7602 ;;
7603 esac
7604 fi
7605
7606{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7607echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7608
7609#
7610# Check to make sure the PIC flag actually works.
7611#
7612if test -n "$lt_prog_compiler_pic"; then
7613
7614{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7615echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7616if test "${lt_prog_compiler_pic_works+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619 lt_prog_compiler_pic_works=no
7620 ac_outfile=conftest.$ac_objext
7621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7622 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7623 # Insert the option either (1) after the last *FLAGS variable, or
7624 # (2) before a word containing "conftest.", or (3) at the end.
7625 # Note that $ac_compile itself does not contain backslashes and begins
7626 # with a dollar sign (not a hyphen), so the echo should work correctly.
7627 # The option is referenced via a variable to avoid confusing sed.
7628 lt_compile=`echo "$ac_compile" | $SED \
7629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631 -e 's:$: $lt_compiler_flag:'`
7632 (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
7633 (eval "$lt_compile" 2>conftest.err)
7634 ac_status=$?
7635 cat conftest.err >&5
7636 echo "$as_me:7636: \$? = $ac_status" >&5
7637 if (exit $ac_status) && test -s "$ac_outfile"; then
7638 # The compiler can only warn and ignore the option if not recognized
7639 # So say no if there are warnings other than the usual output.
7640 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7643 lt_prog_compiler_pic_works=yes
7644 fi
7645 fi
7646 $rm conftest*
7647
7648fi
7649{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7650echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7651
7652if test x"$lt_prog_compiler_pic_works" = xyes; then
7653 case $lt_prog_compiler_pic in
7654 "" | " "*) ;;
7655 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7656 esac
7657else
7658 lt_prog_compiler_pic=
7659 lt_prog_compiler_can_build_shared=no
7660fi
7661
7662fi
7663case $host_os in
7664 # For platforms which do not support PIC, -DPIC is meaningless:
7665 *djgpp*)
7666 lt_prog_compiler_pic=
7667 ;;
7668 *)
7669 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7670 ;;
7671esac
7672
7673#
7674# Check to make sure the static flag actually works.
7675#
7676wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7677{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7678echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7679if test "${lt_prog_compiler_static_works+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681else
7682 lt_prog_compiler_static_works=no
7683 save_LDFLAGS="$LDFLAGS"
7684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7685 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7687 # The linker can only warn and ignore the option if not recognized
7688 # So say no if there are warnings
7689 if test -s conftest.err; then
7690 # Append any errors to the config.log.
7691 cat conftest.err 1>&5
7692 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7694 if diff conftest.exp conftest.er2 >/dev/null; then
7695 lt_prog_compiler_static_works=yes
7696 fi
7697 else
7698 lt_prog_compiler_static_works=yes
7699 fi
7700 fi
7701 $rm conftest*
7702 LDFLAGS="$save_LDFLAGS"
7703
7704fi
7705{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7706echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7707
7708if test x"$lt_prog_compiler_static_works" = xyes; then
7709 :
7710else
7711 lt_prog_compiler_static=
7712fi
7713
7714
7715{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7716echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7717if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 lt_cv_prog_compiler_c_o=no
7721 $rm -r conftest 2>/dev/null
7722 mkdir conftest
7723 cd conftest
7724 mkdir out
7725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7726
7727 lt_compiler_flag="-o out/conftest2.$ac_objext"
7728 # Insert the option either (1) after the last *FLAGS variable, or
7729 # (2) before a word containing "conftest.", or (3) at the end.
7730 # Note that $ac_compile itself does not contain backslashes and begins
7731 # with a dollar sign (not a hyphen), so the echo should work correctly.
7732 lt_compile=`echo "$ac_compile" | $SED \
7733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7735 -e 's:$: $lt_compiler_flag:'`
7736 (eval echo "\"\$as_me:7736: $lt_compile\"" >&5)
7737 (eval "$lt_compile" 2>out/conftest.err)
7738 ac_status=$?
7739 cat out/conftest.err >&5
7740 echo "$as_me:7740: \$? = $ac_status" >&5
7741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7742 then
7743 # The compiler can only warn and ignore the option if not recognized
7744 # So say no if there are warnings
7745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7748 lt_cv_prog_compiler_c_o=yes
7749 fi
7750 fi
7751 chmod u+w . 2>&5
7752 $rm conftest*
7753 # SGI C++ compiler will create directory out/ii_files/ for
7754 # template instantiation
7755 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7756 $rm out/* && rmdir out
7757 cd ..
7758 rmdir conftest
7759 $rm conftest*
7760
7761fi
7762{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7763echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7764
7765
7766hard_links="nottested"
7767if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7768 # do not overwrite the value of need_locks provided by the user
7769 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7770echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7771 hard_links=yes
7772 $rm conftest*
7773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7774 touch conftest.a
7775 ln conftest.a conftest.b 2>&5 || hard_links=no
7776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7777 { echo "$as_me:$LINENO: result: $hard_links" >&5
7778echo "${ECHO_T}$hard_links" >&6; }
7779 if test "$hard_links" = no; then
7780 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7781echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7782 need_locks=warn
7783 fi
7784else
7785 need_locks=no
7786fi
7787
7788{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7789echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7790
7791 runpath_var=
7792 allow_undefined_flag=
7793 enable_shared_with_static_runtimes=no
7794 archive_cmds=
7795 archive_expsym_cmds=
7796 old_archive_From_new_cmds=
7797 old_archive_from_expsyms_cmds=
7798 export_dynamic_flag_spec=
7799 whole_archive_flag_spec=
7800 thread_safe_flag_spec=
7801 hardcode_libdir_flag_spec=
7802 hardcode_libdir_flag_spec_ld=
7803 hardcode_libdir_separator=
7804 hardcode_direct=no
7805 hardcode_minus_L=no
7806 hardcode_shlibpath_var=unsupported
7807 link_all_deplibs=unknown
7808 hardcode_automatic=no
7809 module_cmds=
7810 module_expsym_cmds=
7811 always_export_symbols=no
7812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7813 # include_expsyms should be a list of space-separated symbols to be *always*
7814 # included in the symbol list
7815 include_expsyms=
7816 # exclude_expsyms can be an extended regexp of symbols to exclude
7817 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7818 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7819 # as well as any symbol that contains `d'.
7820 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7821 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7822 # platforms (ab)use it in PIC code, but their linkers get confused if
7823 # the symbol is explicitly referenced. Since portable code cannot
7824 # rely on this symbol name, it's probably fine to never include it in
7825 # preloaded symbol tables.
7826 extract_expsyms_cmds=
7827 # Just being paranoid about ensuring that cc_basename is set.
7828 for cc_temp in $compiler""; do
7829 case $cc_temp in
7830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7832 \-*) ;;
7833 *) break;;
7834 esac
7835done
7836cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7837
7838 case $host_os in
7839 cygwin* | mingw* | pw32*)
7840 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7841 # When not using gcc, we currently assume that we are using
7842 # Microsoft Visual C++.
7843 if test "$GCC" != yes; then
7844 with_gnu_ld=no
7845 fi
7846 ;;
7847 interix*)
7848 # we just hope/assume this is gcc and not c89 (= MSVC++)
7849 with_gnu_ld=yes
7850 ;;
7851 openbsd*)
7852 with_gnu_ld=no
7853 ;;
7854 esac
7855
7856 ld_shlibs=yes
7857 if test "$with_gnu_ld" = yes; then
7858 # If archive_cmds runs LD, not CC, wlarc should be empty
7859 wlarc='${wl}'
7860
7861 # Set some defaults for GNU ld with shared library support. These
7862 # are reset later if shared libraries are not supported. Putting them
7863 # here allows them to be overridden if necessary.
7864 runpath_var=LD_RUN_PATH
7865 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7866 export_dynamic_flag_spec='${wl}--export-dynamic'
7867 # ancient GNU ld didn't support --whole-archive et. al.
7868 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7869 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7870 else
7871 whole_archive_flag_spec=
7872 fi
7873 supports_anon_versioning=no
7874 case `$LD -v 2>/dev/null` in
7875 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7878 *\ 2.11.*) ;; # other 2.11 versions
7879 *) supports_anon_versioning=yes ;;
7880 esac
7881
7882 # See if GNU ld supports shared libraries.
7883 case $host_os in
7884 aix3* | aix4* | aix5*)
7885 # On AIX/PPC, the GNU linker is very broken
7886 if test "$host_cpu" != ia64; then
7887 ld_shlibs=no
7888 cat <<EOF 1>&2
7889
7890*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7891*** to be unable to reliably create shared libraries on AIX.
7892*** Therefore, libtool is disabling shared libraries support. If you
7893*** really care for shared libraries, you may want to modify your PATH
7894*** so that a non-GNU linker is found, and then restart.
7895
7896EOF
7897 fi
7898 ;;
7899
7900 amigaos*)
7901 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)'
7902 hardcode_libdir_flag_spec='-L$libdir'
7903 hardcode_minus_L=yes
7904
7905 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7906 # that the semantics of dynamic libraries on AmigaOS, at least up
7907 # to version 4, is to share data among multiple programs linked
7908 # with the same dynamic library. Since this doesn't match the
7909 # behavior of shared libraries on other platforms, we can't use
7910 # them.
7911 ld_shlibs=no
7912 ;;
7913
7914 beos*)
7915 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7916 allow_undefined_flag=unsupported
7917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7918 # support --undefined. This deserves some investigation. FIXME
7919 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7920 else
7921 ld_shlibs=no
7922 fi
7923 ;;
7924
7925 cygwin* | mingw* | pw32*)
7926 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7927 # as there is no search path for DLLs.
7928 hardcode_libdir_flag_spec='-L$libdir'
7929 allow_undefined_flag=unsupported
7930 always_export_symbols=no
7931 enable_shared_with_static_runtimes=yes
7932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7933
7934 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7936 # If the export-symbols file already is a .def file (1st line
7937 # is EXPORTS), use it as is; otherwise, prepend...
7938 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7939 cp $export_symbols $output_objdir/$soname.def;
7940 else
7941 echo EXPORTS > $output_objdir/$soname.def;
7942 cat $export_symbols >> $output_objdir/$soname.def;
7943 fi~
7944 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7945 else
7946 ld_shlibs=no
7947 fi
7948 ;;
7949
7950 interix3*)
7951 hardcode_direct=no
7952 hardcode_shlibpath_var=no
7953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7954 export_dynamic_flag_spec='${wl}-E'
7955 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7956 # Instead, shared libraries are loaded at an image base (0x10000000 by
7957 # default) and relocated if they conflict, which is a slow very memory
7958 # consuming and fragmenting process. To avoid this, we pick a random,
7959 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7960 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7962 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'
7963 ;;
7964
7965 linux* | k*bsd*-gnu)
7966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7967 tmp_addflag=
7968 case $cc_basename,$host_cpu in
7969 pgcc*) # Portland Group C compiler
7970 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'
7971 tmp_addflag=' $pic_flag'
7972 ;;
7973 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7974 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'
7975 tmp_addflag=' $pic_flag -Mnomain' ;;
7976 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7977 tmp_addflag=' -i_dynamic' ;;
7978 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7979 tmp_addflag=' -i_dynamic -nofor_main' ;;
7980 ifc* | ifort*) # Intel Fortran compiler
7981 tmp_addflag=' -nofor_main' ;;
7982 esac
7983 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7984
7985 if test $supports_anon_versioning = yes; then
7986 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7988 $echo "local: *; };" >> $output_objdir/$libname.ver~
7989 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7990 fi
7991 link_all_deplibs=no
7992 else
7993 ld_shlibs=no
7994 fi
7995 ;;
7996
7997 netbsd* | netbsdelf*-gnu)
7998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7999 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8000 wlarc=
8001 else
8002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8004 fi
8005 ;;
8006
8007 solaris*)
8008 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8009 ld_shlibs=no
8010 cat <<EOF 1>&2
8011
8012*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8013*** create shared libraries on Solaris systems. Therefore, libtool
8014*** is disabling shared libraries support. We urge you to upgrade GNU
8015*** binutils to release 2.9.1 or newer. Another option is to modify
8016*** your PATH or compiler configuration so that the native linker is
8017*** used, and then restart.
8018
8019EOF
8020 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8023 else
8024 ld_shlibs=no
8025 fi
8026 ;;
8027
8028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8029 case `$LD -v 2>&1` in
8030 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8031 ld_shlibs=no
8032 cat <<_LT_EOF 1>&2
8033
8034*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8035*** reliably create shared libraries on SCO systems. Therefore, libtool
8036*** is disabling shared libraries support. We urge you to upgrade GNU
8037*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8038*** your PATH or compiler configuration so that the native linker is
8039*** used, and then restart.
8040
8041_LT_EOF
8042 ;;
8043 *)
8044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8045 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8048 else
8049 ld_shlibs=no
8050 fi
8051 ;;
8052 esac
8053 ;;
8054
8055 sunos4*)
8056 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8057 wlarc=
8058 hardcode_direct=yes
8059 hardcode_shlibpath_var=no
8060 ;;
8061
8062 *)
8063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8066 else
8067 ld_shlibs=no
8068 fi
8069 ;;
8070 esac
8071
8072 if test "$ld_shlibs" = no; then
8073 runpath_var=
8074 hardcode_libdir_flag_spec=
8075 export_dynamic_flag_spec=
8076 whole_archive_flag_spec=
8077 fi
8078 else
8079 # PORTME fill in a description of your system's linker (not GNU ld)
8080 case $host_os in
8081 aix3*)
8082 allow_undefined_flag=unsupported
8083 always_export_symbols=yes
8084 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'
8085 # Note: this linker hardcodes the directories in LIBPATH if there
8086 # are no directories specified by -L.
8087 hardcode_minus_L=yes
8088 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8089 # Neither direct hardcoding nor static linking is supported with a
8090 # broken collect2.
8091 hardcode_direct=unsupported
8092 fi
8093 ;;
8094
8095 aix4* | aix5*)
8096 if test "$host_cpu" = ia64; then
8097 # On IA64, the linker does run time linking by default, so we don't
8098 # have to do anything special.
8099 aix_use_runtimelinking=no
8100 exp_sym_flag='-Bexport'
8101 no_entry_flag=""
8102 else
8103 # If we're using GNU nm, then we don't want the "-C" option.
8104 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8105 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8106 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'
8107 else
8108 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'
8109 fi
8110 aix_use_runtimelinking=no
8111
8112 # Test if we are trying to use run time linking or normal
8113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8114 # need to do runtime linking.
8115 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8116 for ld_flag in $LDFLAGS; do
8117 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8118 aix_use_runtimelinking=yes
8119 break
8120 fi
8121 done
8122 ;;
8123 esac
8124
8125 exp_sym_flag='-bexport'
8126 no_entry_flag='-bnoentry'
8127 fi
8128
8129 # When large executables or shared objects are built, AIX ld can
8130 # have problems creating the table of contents. If linking a library
8131 # or program results in "error TOC overflow" add -mminimal-toc to
8132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8134
8135 archive_cmds=''
8136 hardcode_direct=yes
8137 hardcode_libdir_separator=':'
8138 link_all_deplibs=yes
8139
8140 if test "$GCC" = yes; then
8141 case $host_os in aix4.[012]|aix4.[012].*)
8142 # We only want to do this on AIX 4.2 and lower, the check
8143 # below for broken collect2 doesn't work under 4.3+
8144 collect2name=`${CC} -print-prog-name=collect2`
8145 if test -f "$collect2name" && \
8146 strings "$collect2name" | grep resolve_lib_name >/dev/null
8147 then
8148 # We have reworked collect2
8149 hardcode_direct=yes
8150 else
8151 # We have old collect2
8152 hardcode_direct=unsupported
8153 # It fails to find uninstalled libraries when the uninstalled
8154 # path is not listed in the libpath. Setting hardcode_minus_L
8155 # to unsupported forces relinking
8156 hardcode_minus_L=yes
8157 hardcode_libdir_flag_spec='-L$libdir'
8158 hardcode_libdir_separator=
8159 fi
8160 ;;
8161 esac
8162 shared_flag='-shared'
8163 if test "$aix_use_runtimelinking" = yes; then
8164 shared_flag="$shared_flag "'${wl}-G'
8165 fi
8166 else
8167 # not using gcc
8168 if test "$host_cpu" = ia64; then
8169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8170 # chokes on -Wl,-G. The following line is correct:
8171 shared_flag='-G'
8172 else
8173 if test "$aix_use_runtimelinking" = yes; then
8174 shared_flag='${wl}-G'
8175 else
8176 shared_flag='${wl}-bM:SRE'
8177 fi
8178 fi
8179 fi
8180
8181 # It seems that -bexpall does not export symbols beginning with
8182 # underscore (_), so it is better to generate a list of symbols to export.
8183 always_export_symbols=yes
8184 if test "$aix_use_runtimelinking" = yes; then
8185 # Warning - without using the other runtime loading flags (-brtl),
8186 # -berok will link without error, but may produce a broken library.
8187 allow_undefined_flag='-berok'
8188 # Determine the default libpath from the value encoded in an empty executable.
8189 cat >conftest.$ac_ext <<_ACEOF
8190/* confdefs.h. */
8191_ACEOF
8192cat confdefs.h >>conftest.$ac_ext
8193cat >>conftest.$ac_ext <<_ACEOF
8194/* end confdefs.h. */
8195
8196int
8197main ()
8198{
8199
8200 ;
8201 return 0;
8202}
8203_ACEOF
8204rm -f conftest.$ac_objext conftest$ac_exeext
8205if { (ac_try="$ac_link"
8206case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209esac
8210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_link") 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8219 { (case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222esac
8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_try") 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (case "(($ac_try" in
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8232esac
8233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234 (eval "$ac_try") 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238
8239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8240}'`
8241# Check for a 64-bit object if we didn't find anything.
8242if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8243}'`; fi
8244else
8245 echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248
8249fi
8250
8251rm -f core conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8254
8255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8256 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"
8257 else
8258 if test "$host_cpu" = ia64; then
8259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8260 allow_undefined_flag="-z nodefs"
8261 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"
8262 else
8263 # Determine the default libpath from the value encoded in an empty executable.
8264 cat >conftest.$ac_ext <<_ACEOF
8265/* confdefs.h. */
8266_ACEOF
8267cat confdefs.h >>conftest.$ac_ext
8268cat >>conftest.$ac_ext <<_ACEOF
8269/* end confdefs.h. */
8270
8271int
8272main ()
8273{
8274
8275 ;
8276 return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext conftest$ac_exeext
8280if { (ac_try="$ac_link"
8281case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_link") 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297esac
8298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try='test -s conftest$ac_exeext'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313
8314aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8315}'`
8316# Check for a 64-bit object if we didn't find anything.
8317if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8318}'`; fi
8319else
8320 echo "$as_me: failed program was:" >&5
8321sed 's/^/| /' conftest.$ac_ext >&5
8322
8323
8324fi
8325
8326rm -f core conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8329
8330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8331 # Warning - without using the other run time loading flags,
8332 # -berok will link without error, but may produce a broken library.
8333 no_undefined_flag=' ${wl}-bernotok'
8334 allow_undefined_flag=' ${wl}-berok'
8335 # Exported symbols can be pulled into shared objects from archives
8336 whole_archive_flag_spec='$convenience'
8337 archive_cmds_need_lc=yes
8338 # This is similar to how AIX traditionally builds its shared libraries.
8339 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'
8340 fi
8341 fi
8342 ;;
8343
8344 amigaos*)
8345 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)'
8346 hardcode_libdir_flag_spec='-L$libdir'
8347 hardcode_minus_L=yes
8348 # see comment about different semantics on the GNU ld section
8349 ld_shlibs=no
8350 ;;
8351
8352 bsdi[45]*)
8353 export_dynamic_flag_spec=-rdynamic
8354 ;;
8355
8356 cygwin* | mingw* | pw32*)
8357 # When not using gcc, we currently assume that we are using
8358 # Microsoft Visual C++.
8359 # hardcode_libdir_flag_spec is actually meaningless, as there is
8360 # no search path for DLLs.
8361 hardcode_libdir_flag_spec=' '
8362 allow_undefined_flag=unsupported
8363 # Tell ltmain to make .lib files, not .a files.
8364 libext=lib
8365 # Tell ltmain to make .dll files, not .so files.
8366 shrext_cmds=".dll"
8367 # FIXME: Setting linknames here is a bad hack.
8368 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8369 # The linker will automatically build a .lib file if we build a DLL.
8370 old_archive_From_new_cmds='true'
8371 # FIXME: Should let the user specify the lib program.
8372 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8373 fix_srcfile_path='`cygpath -w "$srcfile"`'
8374 enable_shared_with_static_runtimes=yes
8375 ;;
8376
8377 darwin* | rhapsody*)
8378 case $host_os in
8379 rhapsody* | darwin1.[012])
8380 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8381 ;;
8382 *) # Darwin 1.3 on
8383 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8384 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8385 else
8386 case ${MACOSX_DEPLOYMENT_TARGET} in
8387 10.[012])
8388 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8389 ;;
8390 10.*)
8391 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8392 ;;
8393 esac
8394 fi
8395 ;;
8396 esac
8397 archive_cmds_need_lc=no
8398 hardcode_direct=no
8399 hardcode_automatic=yes
8400 hardcode_shlibpath_var=unsupported
8401 whole_archive_flag_spec=''
8402 link_all_deplibs=yes
8403 if test "$GCC" = yes ; then
8404 output_verbose_link_cmd='echo'
8405 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8406 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8407 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8408 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8409 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}'
8410 else
8411 case $cc_basename in
8412 xlc*)
8413 output_verbose_link_cmd='echo'
8414 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8415 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8416 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8417 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8418 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}'
8419 ;;
8420 *)
8421 ld_shlibs=no
8422 ;;
8423 esac
8424 fi
8425 ;;
8426
8427 dgux*)
8428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8429 hardcode_libdir_flag_spec='-L$libdir'
8430 hardcode_shlibpath_var=no
8431 ;;
8432
8433 freebsd1*)
8434 ld_shlibs=no
8435 ;;
8436
8437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8438 # support. Future versions do this automatically, but an explicit c++rt0.o
8439 # does not break anything, and helps significantly (at the cost of a little
8440 # extra space).
8441 freebsd2.2*)
8442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8443 hardcode_libdir_flag_spec='-R$libdir'
8444 hardcode_direct=yes
8445 hardcode_shlibpath_var=no
8446 ;;
8447
8448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8449 freebsd2*)
8450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8451 hardcode_direct=yes
8452 hardcode_minus_L=yes
8453 hardcode_shlibpath_var=no
8454 ;;
8455
8456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8457 freebsd* | dragonfly*)
8458 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8459 hardcode_libdir_flag_spec='-R$libdir'
8460 hardcode_direct=yes
8461 hardcode_shlibpath_var=no
8462 ;;
8463
8464 hpux9*)
8465 if test "$GCC" = yes; then
8466 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'
8467 else
8468 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'
8469 fi
8470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8471 hardcode_libdir_separator=:
8472 hardcode_direct=yes
8473
8474 # hardcode_minus_L: Not really in the search PATH,
8475 # but as the default location of the library.
8476 hardcode_minus_L=yes
8477 export_dynamic_flag_spec='${wl}-E'
8478 ;;
8479
8480 hpux10*)
8481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8482 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8483 else
8484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8485 fi
8486 if test "$with_gnu_ld" = no; then
8487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8488 hardcode_libdir_separator=:
8489
8490 hardcode_direct=yes
8491 export_dynamic_flag_spec='${wl}-E'
8492
8493 # hardcode_minus_L: Not really in the search PATH,
8494 # but as the default location of the library.
8495 hardcode_minus_L=yes
8496 fi
8497 ;;
8498
8499 hpux11*)
8500 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8501 case $host_cpu in
8502 hppa*64*)
8503 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 ;;
8505 ia64*)
8506 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8507 ;;
8508 *)
8509 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8510 ;;
8511 esac
8512 else
8513 case $host_cpu in
8514 hppa*64*)
8515 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8516 ;;
8517 ia64*)
8518 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8519 ;;
8520 *)
8521 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8522 ;;
8523 esac
8524 fi
8525 if test "$with_gnu_ld" = no; then
8526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8527 hardcode_libdir_separator=:
8528
8529 case $host_cpu in
8530 hppa*64*|ia64*)
8531 hardcode_libdir_flag_spec_ld='+b $libdir'
8532 hardcode_direct=no
8533 hardcode_shlibpath_var=no
8534 ;;
8535 *)
8536 hardcode_direct=yes
8537 export_dynamic_flag_spec='${wl}-E'
8538
8539 # hardcode_minus_L: Not really in the search PATH,
8540 # but as the default location of the library.
8541 hardcode_minus_L=yes
8542 ;;
8543 esac
8544 fi
8545 ;;
8546
8547 irix5* | irix6* | nonstopux*)
8548 if test "$GCC" = yes; then
8549 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'
8550 else
8551 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'
8552 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8553 fi
8554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555 hardcode_libdir_separator=:
8556 link_all_deplibs=yes
8557 ;;
8558
8559 netbsd* | netbsdelf*-gnu)
8560 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8562 else
8563 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8564 fi
8565 hardcode_libdir_flag_spec='-R$libdir'
8566 hardcode_direct=yes
8567 hardcode_shlibpath_var=no
8568 ;;
8569
8570 newsos6)
8571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8572 hardcode_direct=yes
8573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8574 hardcode_libdir_separator=:
8575 hardcode_shlibpath_var=no
8576 ;;
8577
8578 openbsd*)
8579 hardcode_direct=yes
8580 hardcode_shlibpath_var=no
8581 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8583 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8585 export_dynamic_flag_spec='${wl}-E'
8586 else
8587 case $host_os in
8588 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8590 hardcode_libdir_flag_spec='-R$libdir'
8591 ;;
8592 *)
8593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8595 ;;
8596 esac
8597 fi
8598 ;;
8599
8600 os2*)
8601 hardcode_libdir_flag_spec='-L$libdir'
8602 hardcode_minus_L=yes
8603 allow_undefined_flag=unsupported
8604 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'
8605 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8606 ;;
8607
8608 osf3*)
8609 if test "$GCC" = yes; then
8610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8611 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'
8612 else
8613 allow_undefined_flag=' -expect_unresolved \*'
8614 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'
8615 fi
8616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8617 hardcode_libdir_separator=:
8618 ;;
8619
8620 osf4* | osf5*) # as osf3* with the addition of -msym flag
8621 if test "$GCC" = yes; then
8622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8623 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'
8624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8625 else
8626 allow_undefined_flag=' -expect_unresolved \*'
8627 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'
8628 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8629 $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'
8630
8631 # Both c and cxx compiler support -rpath directly
8632 hardcode_libdir_flag_spec='-rpath $libdir'
8633 fi
8634 hardcode_libdir_separator=:
8635 ;;
8636
8637 solaris*)
8638 no_undefined_flag=' -z text'
8639 if test "$GCC" = yes; then
8640 wlarc='${wl}'
8641 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8642 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8643 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8644 else
8645 wlarc=''
8646 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8648 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8649 fi
8650 hardcode_libdir_flag_spec='-R$libdir'
8651 hardcode_shlibpath_var=no
8652 case $host_os in
8653 solaris2.[0-5] | solaris2.[0-5].*) ;;
8654 *)
8655 # The compiler driver will combine linker options so we
8656 # cannot just pass the convience library names through
8657 # without $wl, iff we do not link with $LD.
8658 # Luckily, gcc supports the same syntax we need for Sun Studio.
8659 # Supported since Solaris 2.6 (maybe 2.5.1?)
8660 case $wlarc in
8661 '')
8662 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8663 *)
8664 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8665 esac ;;
8666 esac
8667 link_all_deplibs=yes
8668 ;;
8669
8670 sunos4*)
8671 if test "x$host_vendor" = xsequent; then
8672 # Use $CC to link under sequent, because it throws in some extra .o
8673 # files that make .init and .fini sections work.
8674 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8675 else
8676 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8677 fi
8678 hardcode_libdir_flag_spec='-L$libdir'
8679 hardcode_direct=yes
8680 hardcode_minus_L=yes
8681 hardcode_shlibpath_var=no
8682 ;;
8683
8684 sysv4)
8685 case $host_vendor in
8686 sni)
8687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688 hardcode_direct=yes # is this really true???
8689 ;;
8690 siemens)
8691 ## LD is ld it makes a PLAMLIB
8692 ## CC just makes a GrossModule.
8693 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8694 reload_cmds='$CC -r -o $output$reload_objs'
8695 hardcode_direct=no
8696 ;;
8697 motorola)
8698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8700 ;;
8701 esac
8702 runpath_var='LD_RUN_PATH'
8703 hardcode_shlibpath_var=no
8704 ;;
8705
8706 sysv4.3*)
8707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8708 hardcode_shlibpath_var=no
8709 export_dynamic_flag_spec='-Bexport'
8710 ;;
8711
8712 sysv4*MP*)
8713 if test -d /usr/nec; then
8714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8715 hardcode_shlibpath_var=no
8716 runpath_var=LD_RUN_PATH
8717 hardcode_runpath_var=yes
8718 ld_shlibs=yes
8719 fi
8720 ;;
8721
8722 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8723 no_undefined_flag='${wl}-z,text'
8724 archive_cmds_need_lc=no
8725 hardcode_shlibpath_var=no
8726 runpath_var='LD_RUN_PATH'
8727
8728 if test "$GCC" = yes; then
8729 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8730 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8731 else
8732 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8733 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8734 fi
8735 ;;
8736
8737 sysv5* | sco3.2v5* | sco5v6*)
8738 # Note: We can NOT use -z defs as we might desire, because we do not
8739 # link with -lc, and that would cause any symbols used from libc to
8740 # always be unresolved, which means just about no library would
8741 # ever link correctly. If we're not using GNU ld we use -z text
8742 # though, which does catch some bad symbols but isn't as heavy-handed
8743 # as -z defs.
8744 no_undefined_flag='${wl}-z,text'
8745 allow_undefined_flag='${wl}-z,nodefs'
8746 archive_cmds_need_lc=no
8747 hardcode_shlibpath_var=no
8748 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8749 hardcode_libdir_separator=':'
8750 link_all_deplibs=yes
8751 export_dynamic_flag_spec='${wl}-Bexport'
8752 runpath_var='LD_RUN_PATH'
8753
8754 if test "$GCC" = yes; then
8755 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8756 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8757 else
8758 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8759 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8760 fi
8761 ;;
8762
8763 uts4*)
8764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8765 hardcode_libdir_flag_spec='-L$libdir'
8766 hardcode_shlibpath_var=no
8767 ;;
8768
8769 *)
8770 ld_shlibs=no
8771 ;;
8772 esac
8773 fi
8774
8775{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8776echo "${ECHO_T}$ld_shlibs" >&6; }
8777test "$ld_shlibs" = no && can_build_shared=no
8778
8779#
8780# Do we need to explicitly link libc?
8781#
8782case "x$archive_cmds_need_lc" in
8783x|xyes)
8784 # Assume -lc should be added
8785 archive_cmds_need_lc=yes
8786
8787 if test "$enable_shared" = yes && test "$GCC" = yes; then
8788 case $archive_cmds in
8789 *'~'*)
8790 # FIXME: we may have to deal with multi-command sequences.
8791 ;;
8792 '$CC '*)
8793 # Test whether the compiler implicitly links with -lc since on some
8794 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8795 # to ld, don't add -lc before -lgcc.
8796 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8797echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8798 $rm conftest*
8799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8800
8801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8802 (eval $ac_compile) 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } 2>conftest.err; then
8806 soname=conftest
8807 lib=conftest
8808 libobjs=conftest.$ac_objext
8809 deplibs=
8810 wl=$lt_prog_compiler_wl
8811 pic_flag=$lt_prog_compiler_pic
8812 compiler_flags=-v
8813 linker_flags=-v
8814 verstring=
8815 output_objdir=.
8816 libname=conftest
8817 lt_save_allow_undefined_flag=$allow_undefined_flag
8818 allow_undefined_flag=
8819 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8820 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8821 ac_status=$?
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }
8824 then
8825 archive_cmds_need_lc=no
8826 else
8827 archive_cmds_need_lc=yes
8828 fi
8829 allow_undefined_flag=$lt_save_allow_undefined_flag
8830 else
8831 cat conftest.err 1>&5
8832 fi
8833 $rm conftest*
8834 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8835echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8836 ;;
8837 esac
8838 fi
8839 ;;
8840esac
8841
8842{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8843echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8844library_names_spec=
8845libname_spec='lib$name'
8846soname_spec=
8847shrext_cmds=".so"
8848postinstall_cmds=
8849postuninstall_cmds=
8850finish_cmds=
8851finish_eval=
8852shlibpath_var=
8853shlibpath_overrides_runpath=unknown
8854version_type=none
8855dynamic_linker="$host_os ld.so"
8856sys_lib_dlsearch_path_spec="/lib /usr/lib"
8857if test "$GCC" = yes; then
8858 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8859 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8860 # if the path contains ";" then we assume it to be the separator
8861 # otherwise default to the standard path separator (i.e. ":") - it is
8862 # assumed that no part of a normal pathname contains ";" but that should
8863 # okay in the real world where ";" in dirpaths is itself problematic.
8864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8865 else
8866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8867 fi
8868else
8869 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8870fi
8871need_lib_prefix=unknown
8872hardcode_into_libs=no
8873
8874# when you set need_version to no, make sure it does not cause -set_version
8875# flags to be left without arguments
8876need_version=unknown
8877
8878case $host_os in
8879aix3*)
8880 version_type=linux
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8882 shlibpath_var=LIBPATH
8883
8884 # AIX 3 has no versioning support, so we append a major version to the name.
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 ;;
8887
8888aix4* | aix5*)
8889 version_type=linux
8890 need_lib_prefix=no
8891 need_version=no
8892 hardcode_into_libs=yes
8893 if test "$host_cpu" = ia64; then
8894 # AIX 5 supports IA64
8895 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 else
8898 # With GCC up to 2.95.x, collect2 would create an import file
8899 # for dependence libraries. The import file would start with
8900 # the line `#! .'. This would cause the generated library to
8901 # depend on `.', always an invalid library. This was fixed in
8902 # development snapshots of GCC prior to 3.0.
8903 case $host_os in
8904 aix4 | aix4.[01] | aix4.[01].*)
8905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8906 echo ' yes '
8907 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8908 :
8909 else
8910 can_build_shared=no
8911 fi
8912 ;;
8913 esac
8914 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8915 # soname into executable. Probably we can add versioning support to
8916 # collect2, so additional links can be useful in future.
8917 if test "$aix_use_runtimelinking" = yes; then
8918 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8919 # instead of lib<name>.a to let people know that these are not
8920 # typical AIX shared libraries.
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 else
8923 # We preserve .a as extension for shared libraries through AIX4.2
8924 # and later when we are not doing run time linking.
8925 library_names_spec='${libname}${release}.a $libname.a'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 fi
8928 shlibpath_var=LIBPATH
8929 fi
8930 ;;
8931
8932amigaos*)
8933 library_names_spec='$libname.ixlibrary $libname.a'
8934 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8935 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'
8936 ;;
8937
8938beos*)
8939 library_names_spec='${libname}${shared_ext}'
8940 dynamic_linker="$host_os ld.so"
8941 shlibpath_var=LIBRARY_PATH
8942 ;;
8943
8944bsdi[45]*)
8945 version_type=linux
8946 need_version=no
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8953 # the default ld.so.conf also contains /usr/contrib/lib and
8954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8955 # libtool to hard-code these into programs
8956 ;;
8957
8958cygwin* | mingw* | pw32*)
8959 version_type=windows
8960 shrext_cmds=".dll"
8961 need_version=no
8962 need_lib_prefix=no
8963
8964 case $GCC,$host_os in
8965 yes,cygwin* | yes,mingw* | yes,pw32*)
8966 library_names_spec='$libname.dll.a'
8967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8968 postinstall_cmds='base_file=`basename \${file}`~
8969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8970 dldir=$destdir/`dirname \$dlpath`~
8971 test -d \$dldir || mkdir -p \$dldir~
8972 $install_prog $dir/$dlname \$dldir/$dlname~
8973 chmod a+x \$dldir/$dlname'
8974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8975 dlpath=$dir/\$dldll~
8976 $rm \$dlpath'
8977 shlibpath_overrides_runpath=yes
8978
8979 case $host_os in
8980 cygwin*)
8981 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8982 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8983 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8984 ;;
8985 mingw*)
8986 # MinGW DLLs use traditional 'lib' prefix
8987 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8989 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8990 # It is most probably a Windows format PATH printed by
8991 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8992 # path with ; separators, and with drive letters. We can handle the
8993 # drive letters (cygwin fileutils understands them), so leave them,
8994 # especially as we might pass files found there to a mingw objdump,
8995 # which wouldn't understand a cygwinified path. Ahh.
8996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8997 else
8998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8999 fi
9000 ;;
9001 pw32*)
9002 # pw32 DLLs use 'pw' prefix rather than 'lib'
9003 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9004 ;;
9005 esac
9006 ;;
9007
9008 *)
9009 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9010 ;;
9011 esac
9012 dynamic_linker='Win32 ld.exe'
9013 # FIXME: first we should search . and the directory the executable is in
9014 shlibpath_var=PATH
9015 ;;
9016
9017darwin* | rhapsody*)
9018 dynamic_linker="$host_os dyld"
9019 version_type=darwin
9020 need_lib_prefix=no
9021 need_version=no
9022 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9023 soname_spec='${libname}${release}${major}$shared_ext'
9024 shlibpath_overrides_runpath=yes
9025 shlibpath_var=DYLD_LIBRARY_PATH
9026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9027 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9028 if test "$GCC" = yes; then
9029 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9030 else
9031 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9032 fi
9033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9034 ;;
9035
9036dgux*)
9037 version_type=linux
9038 need_lib_prefix=no
9039 need_version=no
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 ;;
9044
9045freebsd1*)
9046 dynamic_linker=no
9047 ;;
9048
9049freebsd* | dragonfly*)
9050 # DragonFly does not have aout. When/if they implement a new
9051 # versioning mechanism, adjust this.
9052 if test -x /usr/bin/objformat; then
9053 objformat=`/usr/bin/objformat`
9054 else
9055 case $host_os in
9056 freebsd[123]*) objformat=aout ;;
9057 *) objformat=elf ;;
9058 esac
9059 fi
9060 version_type=freebsd-$objformat
9061 case $version_type in
9062 freebsd-elf*)
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 need_version=no
9065 need_lib_prefix=no
9066 ;;
9067 freebsd-*)
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9069 need_version=yes
9070 ;;
9071 esac
9072 shlibpath_var=LD_LIBRARY_PATH
9073 case $host_os in
9074 freebsd2*)
9075 shlibpath_overrides_runpath=yes
9076 ;;
9077 freebsd3.[01]* | freebsdelf3.[01]*)
9078 shlibpath_overrides_runpath=yes
9079 hardcode_into_libs=yes
9080 ;;
9081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9085 ;;
9086 freebsd*) # from 4.6 on
9087 shlibpath_overrides_runpath=yes
9088 hardcode_into_libs=yes
9089 ;;
9090 esac
9091 ;;
9092
9093gnu*)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 hardcode_into_libs=yes
9101 ;;
9102
9103hpux9* | hpux10* | hpux11*)
9104 # Give a soname corresponding to the major version so that dld.sl refuses to
9105 # link against other versions.
9106 version_type=sunos
9107 need_lib_prefix=no
9108 need_version=no
9109 case $host_cpu in
9110 ia64*)
9111 shrext_cmds='.so'
9112 hardcode_into_libs=yes
9113 dynamic_linker="$host_os dld.so"
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 if test "X$HPUX_IA64_MODE" = X32; then
9119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9120 else
9121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9122 fi
9123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9124 ;;
9125 hppa*64*)
9126 shrext_cmds='.sl'
9127 hardcode_into_libs=yes
9128 dynamic_linker="$host_os dld.sl"
9129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9135 ;;
9136 *)
9137 shrext_cmds='.sl'
9138 dynamic_linker="$host_os dld.sl"
9139 shlibpath_var=SHLIB_PATH
9140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 ;;
9144 esac
9145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9146 postinstall_cmds='chmod 555 $lib'
9147 ;;
9148
9149interix3*)
9150 version_type=linux
9151 need_lib_prefix=no
9152 need_version=no
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=no
9158 hardcode_into_libs=yes
9159 ;;
9160
9161irix5* | irix6* | nonstopux*)
9162 case $host_os in
9163 nonstopux*) version_type=nonstopux ;;
9164 *)
9165 if test "$lt_cv_prog_gnu_ld" = yes; then
9166 version_type=linux
9167 else
9168 version_type=irix
9169 fi ;;
9170 esac
9171 need_lib_prefix=no
9172 need_version=no
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9175 case $host_os in
9176 irix5* | nonstopux*)
9177 libsuff= shlibsuff=
9178 ;;
9179 *)
9180 case $LD in # libtool.m4 will add one of these switches to LD
9181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9182 libsuff= shlibsuff= libmagic=32-bit;;
9183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9184 libsuff=32 shlibsuff=N32 libmagic=N32;;
9185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9187 *) libsuff= shlibsuff= libmagic=never-match;;
9188 esac
9189 ;;
9190 esac
9191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9192 shlibpath_overrides_runpath=no
9193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9195 hardcode_into_libs=yes
9196 ;;
9197
9198# No shared lib support for Linux oldld, aout, or coff.
9199linux*oldld* | linux*aout* | linux*coff*)
9200 dynamic_linker=no
9201 ;;
9202
9203# This must be Linux ELF.
9204linux* | k*bsd*-gnu)
9205 version_type=linux
9206 need_lib_prefix=no
9207 need_version=no
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=no
9213 # This implies no fast_install, which is unacceptable.
9214 # Some rework will be needed to allow for fast_install
9215 # before this can be enabled.
9216 hardcode_into_libs=yes
9217
9218 # Append ld.so.conf contents to the search path
9219 if test -f /etc/ld.so.conf; then
9220 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9221 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9222 fi
9223
9224 # We used to test for /lib/ld.so.1 and disable shared libraries on
9225 # powerpc, because MkLinux only supported shared libraries with the
9226 # GNU dynamic linker. Since this was broken with cross compilers,
9227 # most powerpc-linux boxes support dynamic linking these days and
9228 # people can always --disable-shared, the test was removed, and we
9229 # assume the GNU/Linux dynamic linker is in use.
9230 dynamic_linker='GNU/Linux ld.so'
9231 ;;
9232
9233netbsdelf*-gnu)
9234 version_type=linux
9235 need_lib_prefix=no
9236 need_version=no
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=no
9241 hardcode_into_libs=yes
9242 dynamic_linker='NetBSD ld.elf_so'
9243 ;;
9244
9245netbsd*)
9246 version_type=sunos
9247 need_lib_prefix=no
9248 need_version=no
9249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9252 dynamic_linker='NetBSD (a.out) ld.so'
9253 else
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 dynamic_linker='NetBSD ld.elf_so'
9257 fi
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9260 hardcode_into_libs=yes
9261 ;;
9262
9263newsos6)
9264 version_type=linux
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 shlibpath_overrides_runpath=yes
9268 ;;
9269
9270nto-qnx*)
9271 version_type=linux
9272 need_lib_prefix=no
9273 need_version=no
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes
9278 ;;
9279
9280openbsd*)
9281 version_type=sunos
9282 sys_lib_dlsearch_path_spec="/usr/lib"
9283 need_lib_prefix=no
9284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9285 case $host_os in
9286 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9287 *) need_version=no ;;
9288 esac
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9293 case $host_os in
9294 openbsd2.[89] | openbsd2.[89].*)
9295 shlibpath_overrides_runpath=no
9296 ;;
9297 *)
9298 shlibpath_overrides_runpath=yes
9299 ;;
9300 esac
9301 else
9302 shlibpath_overrides_runpath=yes
9303 fi
9304 ;;
9305
9306os2*)
9307 libname_spec='$name'
9308 shrext_cmds=".dll"
9309 need_lib_prefix=no
9310 library_names_spec='$libname${shared_ext} $libname.a'
9311 dynamic_linker='OS/2 ld.exe'
9312 shlibpath_var=LIBPATH
9313 ;;
9314
9315osf3* | osf4* | osf5*)
9316 version_type=osf
9317 need_lib_prefix=no
9318 need_version=no
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9324 ;;
9325
9326solaris*)
9327 version_type=linux
9328 need_lib_prefix=no
9329 need_version=no
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331 soname_spec='${libname}${release}${shared_ext}$major'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 shlibpath_overrides_runpath=yes
9334 hardcode_into_libs=yes
9335 # ldd complains unless libraries are executable
9336 postinstall_cmds='chmod +x $lib'
9337 ;;
9338
9339sunos4*)
9340 version_type=sunos
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9342 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9343 shlibpath_var=LD_LIBRARY_PATH
9344 shlibpath_overrides_runpath=yes
9345 if test "$with_gnu_ld" = yes; then
9346 need_lib_prefix=no
9347 fi
9348 need_version=yes
9349 ;;
9350
9351sysv4 | sysv4.3*)
9352 version_type=linux
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 case $host_vendor in
9357 sni)
9358 shlibpath_overrides_runpath=no
9359 need_lib_prefix=no
9360 export_dynamic_flag_spec='${wl}-Blargedynsym'
9361 runpath_var=LD_RUN_PATH
9362 ;;
9363 siemens)
9364 need_lib_prefix=no
9365 ;;
9366 motorola)
9367 need_lib_prefix=no
9368 need_version=no
9369 shlibpath_overrides_runpath=no
9370 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9371 ;;
9372 esac
9373 ;;
9374
9375sysv4*MP*)
9376 if test -d /usr/nec ;then
9377 version_type=linux
9378 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9379 soname_spec='$libname${shared_ext}.$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 fi
9382 ;;
9383
9384sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9385 version_type=freebsd-elf
9386 need_lib_prefix=no
9387 need_version=no
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 hardcode_into_libs=yes
9392 if test "$with_gnu_ld" = yes; then
9393 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9394 shlibpath_overrides_runpath=no
9395 else
9396 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9397 shlibpath_overrides_runpath=yes
9398 case $host_os in
9399 sco3.2v5*)
9400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9401 ;;
9402 esac
9403 fi
9404 sys_lib_dlsearch_path_spec='/usr/lib'
9405 ;;
9406
9407uts4*)
9408 version_type=linux
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410 soname_spec='${libname}${release}${shared_ext}$major'
9411 shlibpath_var=LD_LIBRARY_PATH
9412 ;;
9413
9414*)
9415 dynamic_linker=no
9416 ;;
9417esac
9418{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9419echo "${ECHO_T}$dynamic_linker" >&6; }
9420test "$dynamic_linker" = no && can_build_shared=no
9421
9422variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9423if test "$GCC" = yes; then
9424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9425fi
9426
9427{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9428echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9429hardcode_action=
9430if test -n "$hardcode_libdir_flag_spec" || \
9431 test -n "$runpath_var" || \
9432 test "X$hardcode_automatic" = "Xyes" ; then
9433
9434 # We can hardcode non-existant directories.
9435 if test "$hardcode_direct" != no &&
9436 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9437 # have to relink, otherwise we might link with an installed library
9438 # when we should be linking with a yet-to-be-installed one
9439 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9440 test "$hardcode_minus_L" != no; then
9441 # Linking always hardcodes the temporary library directory.
9442 hardcode_action=relink
9443 else
9444 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9445 hardcode_action=immediate
9446 fi
9447else
9448 # We cannot hardcode anything, or else we can only hardcode existing
9449 # directories.
9450 hardcode_action=unsupported
9451fi
9452{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9453echo "${ECHO_T}$hardcode_action" >&6; }
9454
9455if test "$hardcode_action" = relink; then
9456 # Fast installation is not supported
9457 enable_fast_install=no
9458elif test "$shlibpath_overrides_runpath" = yes ||
9459 test "$enable_shared" = no; then
9460 # Fast installation is not necessary
9461 enable_fast_install=needless
9462fi
9463
9464striplib=
9465old_striplib=
9466{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9467echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9468if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9469 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9470 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9471 { echo "$as_me:$LINENO: result: yes" >&5
9472echo "${ECHO_T}yes" >&6; }
9473else
9474# FIXME - insert some real tests, host_os isn't really good enough
9475 case $host_os in
9476 darwin*)
9477 if test -n "$STRIP" ; then
9478 striplib="$STRIP -x"
9479 { echo "$as_me:$LINENO: result: yes" >&5
9480echo "${ECHO_T}yes" >&6; }
9481 else
9482 { echo "$as_me:$LINENO: result: no" >&5
9483echo "${ECHO_T}no" >&6; }
9484fi
9485 ;;
9486 *)
9487 { echo "$as_me:$LINENO: result: no" >&5
9488echo "${ECHO_T}no" >&6; }
9489 ;;
9490 esac
9491fi
9492
9493if test "x$enable_dlopen" != xyes; then
9494 enable_dlopen=unknown
9495 enable_dlopen_self=unknown
9496 enable_dlopen_self_static=unknown
9497else
9498 lt_cv_dlopen=no
9499 lt_cv_dlopen_libs=
9500
9501 case $host_os in
9502 beos*)
9503 lt_cv_dlopen="load_add_on"
9504 lt_cv_dlopen_libs=
9505 lt_cv_dlopen_self=yes
9506 ;;
9507
9508 mingw* | pw32*)
9509 lt_cv_dlopen="LoadLibrary"
9510 lt_cv_dlopen_libs=
9511 ;;
9512
9513 cygwin*)
9514 lt_cv_dlopen="dlopen"
9515 lt_cv_dlopen_libs=
9516 ;;
9517
9518 darwin*)
9519 # if libdl is installed we need to link against it
9520 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9521echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9522if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525 ac_check_lib_save_LIBS=$LIBS
9526LIBS="-ldl $LIBS"
9527cat >conftest.$ac_ext <<_ACEOF
9528/* confdefs.h. */
9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
9532/* end confdefs.h. */
9533
9534/* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9537#ifdef __cplusplus
9538extern "C"
9539#endif
9540char dlopen ();
9541int
9542main ()
9543{
9544return dlopen ();
9545 ;
9546 return 0;
9547}
9548_ACEOF
9549rm -f conftest.$ac_objext conftest$ac_exeext
9550if { (ac_try="$ac_link"
9551case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9554esac
9555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_link") 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9564 { (case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567esac
9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_try") 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9577esac
9578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_try") 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_lib_dl_dlopen=yes
9584else
9585 echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 ac_cv_lib_dl_dlopen=no
9589fi
9590
9591rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593LIBS=$ac_check_lib_save_LIBS
9594fi
9595{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9596echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9597if test $ac_cv_lib_dl_dlopen = yes; then
9598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9599else
9600
9601 lt_cv_dlopen="dyld"
9602 lt_cv_dlopen_libs=
9603 lt_cv_dlopen_self=yes
9604
9605fi
9606
9607 ;;
9608
9609 *)
9610 { echo "$as_me:$LINENO: checking for shl_load" >&5
9611echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9612if test "${ac_cv_func_shl_load+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614else
9615 cat >conftest.$ac_ext <<_ACEOF
9616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h. */
9621/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9623#define shl_load innocuous_shl_load
9624
9625/* System header to define __stub macros and hopefully few prototypes,
9626 which can conflict with char shl_load (); below.
9627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9628 <limits.h> exists even on freestanding compilers. */
9629
9630#ifdef __STDC__
9631# include <limits.h>
9632#else
9633# include <assert.h>
9634#endif
9635
9636#undef shl_load
9637
9638/* Override any GCC internal prototype to avoid an error.
9639 Use char because int might match the return type of a GCC
9640 builtin and then its argument prototype would still apply. */
9641#ifdef __cplusplus
9642extern "C"
9643#endif
9644char shl_load ();
9645/* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
9648#if defined __stub_shl_load || defined __stub___shl_load
9649choke me
9650#endif
9651
9652int
9653main ()
9654{
9655return shl_load ();
9656 ;
9657 return 0;
9658}
9659_ACEOF
9660rm -f conftest.$ac_objext conftest$ac_exeext
9661if { (ac_try="$ac_link"
9662case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665esac
9666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_link") 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9675 { (case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678esac
9679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_try") 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; } &&
9684 { ac_try='test -s conftest$ac_exeext'
9685 { (case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688esac
9689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_try") 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; }; then
9694 ac_cv_func_shl_load=yes
9695else
9696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
9698
9699 ac_cv_func_shl_load=no
9700fi
9701
9702rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704fi
9705{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9706echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9707if test $ac_cv_func_shl_load = yes; then
9708 lt_cv_dlopen="shl_load"
9709else
9710 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9711echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9712if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9714else
9715 ac_check_lib_save_LIBS=$LIBS
9716LIBS="-ldld $LIBS"
9717cat >conftest.$ac_ext <<_ACEOF
9718/* confdefs.h. */
9719_ACEOF
9720cat confdefs.h >>conftest.$ac_ext
9721cat >>conftest.$ac_ext <<_ACEOF
9722/* end confdefs.h. */
9723
9724/* Override any GCC internal prototype to avoid an error.
9725 Use char because int might match the return type of a GCC
9726 builtin and then its argument prototype would still apply. */
9727#ifdef __cplusplus
9728extern "C"
9729#endif
9730char shl_load ();
9731int
9732main ()
9733{
9734return shl_load ();
9735 ;
9736 return 0;
9737}
9738_ACEOF
9739rm -f conftest.$ac_objext conftest$ac_exeext
9740if { (ac_try="$ac_link"
9741case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9744esac
9745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_link") 2>conftest.er1
9747 ac_status=$?
9748 grep -v '^ *+' conftest.er1 >conftest.err
9749 rm -f conftest.er1
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } &&
9753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9754 { (case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757esac
9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_try") 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; } &&
9763 { ac_try='test -s conftest$ac_exeext'
9764 { (case "(($ac_try" in
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9767esac
9768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_try") 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_cv_lib_dld_shl_load=yes
9774else
9775 echo "$as_me: failed program was:" >&5
9776sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 ac_cv_lib_dld_shl_load=no
9779fi
9780
9781rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9783LIBS=$ac_check_lib_save_LIBS
9784fi
9785{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9786echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9787if test $ac_cv_lib_dld_shl_load = yes; then
9788 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9789else
9790 { echo "$as_me:$LINENO: checking for dlopen" >&5
9791echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9792if test "${ac_cv_func_dlopen+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794else
9795 cat >conftest.$ac_ext <<_ACEOF
9796/* confdefs.h. */
9797_ACEOF
9798cat confdefs.h >>conftest.$ac_ext
9799cat >>conftest.$ac_ext <<_ACEOF
9800/* end confdefs.h. */
9801/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9803#define dlopen innocuous_dlopen
9804
9805/* System header to define __stub macros and hopefully few prototypes,
9806 which can conflict with char dlopen (); below.
9807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9808 <limits.h> exists even on freestanding compilers. */
9809
9810#ifdef __STDC__
9811# include <limits.h>
9812#else
9813# include <assert.h>
9814#endif
9815
9816#undef dlopen
9817
9818/* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply. */
9821#ifdef __cplusplus
9822extern "C"
9823#endif
9824char dlopen ();
9825/* The GNU C library defines this for functions which it implements
9826 to always fail with ENOSYS. Some functions are actually named
9827 something starting with __ and the normal name is an alias. */
9828#if defined __stub_dlopen || defined __stub___dlopen
9829choke me
9830#endif
9831
9832int
9833main ()
9834{
9835return dlopen ();
9836 ;
9837 return 0;
9838}
9839_ACEOF
9840rm -f conftest.$ac_objext conftest$ac_exeext
9841if { (ac_try="$ac_link"
9842case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845esac
9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_link") 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest$ac_exeext'
9865 { (case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_try") 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
9874 ac_cv_func_dlopen=yes
9875else
9876 echo "$as_me: failed program was:" >&5
9877sed 's/^/| /' conftest.$ac_ext >&5
9878
9879 ac_cv_func_dlopen=no
9880fi
9881
9882rm -f core conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884fi
9885{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9886echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9887if test $ac_cv_func_dlopen = yes; then
9888 lt_cv_dlopen="dlopen"
9889else
9890 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9891echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9892if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894else
9895 ac_check_lib_save_LIBS=$LIBS
9896LIBS="-ldl $LIBS"
9897cat >conftest.$ac_ext <<_ACEOF
9898/* confdefs.h. */
9899_ACEOF
9900cat confdefs.h >>conftest.$ac_ext
9901cat >>conftest.$ac_ext <<_ACEOF
9902/* end confdefs.h. */
9903
9904/* Override any GCC internal prototype to avoid an error.
9905 Use char because int might match the return type of a GCC
9906 builtin and then its argument prototype would still apply. */
9907#ifdef __cplusplus
9908extern "C"
9909#endif
9910char dlopen ();
9911int
9912main ()
9913{
9914return dlopen ();
9915 ;
9916 return 0;
9917}
9918_ACEOF
9919rm -f conftest.$ac_objext conftest$ac_exeext
9920if { (ac_try="$ac_link"
9921case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924esac
9925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_link") 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9934 { (case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937esac
9938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_try") 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest$ac_exeext'
9944 { (case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9947esac
9948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_try") 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 ac_cv_lib_dl_dlopen=yes
9954else
9955 echo "$as_me: failed program was:" >&5
9956sed 's/^/| /' conftest.$ac_ext >&5
9957
9958 ac_cv_lib_dl_dlopen=no
9959fi
9960
9961rm -f core conftest.err conftest.$ac_objext \
9962 conftest$ac_exeext conftest.$ac_ext
9963LIBS=$ac_check_lib_save_LIBS
9964fi
9965{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9966echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9967if test $ac_cv_lib_dl_dlopen = yes; then
9968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9969else
9970 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9971echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9972if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974else
9975 ac_check_lib_save_LIBS=$LIBS
9976LIBS="-lsvld $LIBS"
9977cat >conftest.$ac_ext <<_ACEOF
9978/* confdefs.h. */
9979_ACEOF
9980cat confdefs.h >>conftest.$ac_ext
9981cat >>conftest.$ac_ext <<_ACEOF
9982/* end confdefs.h. */
9983
9984/* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
9987#ifdef __cplusplus
9988extern "C"
9989#endif
9990char dlopen ();
9991int
9992main ()
9993{
9994return dlopen ();
9995 ;
9996 return 0;
9997}
9998_ACEOF
9999rm -f conftest.$ac_objext conftest$ac_exeext
10000if { (ac_try="$ac_link"
10001case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004esac
10005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_link") 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_lib_svld_dlopen=yes
10034else
10035 echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038 ac_cv_lib_svld_dlopen=no
10039fi
10040
10041rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043LIBS=$ac_check_lib_save_LIBS
10044fi
10045{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10046echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10047if test $ac_cv_lib_svld_dlopen = yes; then
10048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10049else
10050 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10051echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10052if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054else
10055 ac_check_lib_save_LIBS=$LIBS
10056LIBS="-ldld $LIBS"
10057cat >conftest.$ac_ext <<_ACEOF
10058/* confdefs.h. */
10059_ACEOF
10060cat confdefs.h >>conftest.$ac_ext
10061cat >>conftest.$ac_ext <<_ACEOF
10062/* end confdefs.h. */
10063
10064/* Override any GCC internal prototype to avoid an error.
10065 Use char because int might match the return type of a GCC
10066 builtin and then its argument prototype would still apply. */
10067#ifdef __cplusplus
10068extern "C"
10069#endif
10070char dld_link ();
10071int
10072main ()
10073{
10074return dld_link ();
10075 ;
10076 return 0;
10077}
10078_ACEOF
10079rm -f conftest.$ac_objext conftest$ac_exeext
10080if { (ac_try="$ac_link"
10081case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10084esac
10085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_link") 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10094 { (case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097esac
10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_try") 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
10104 { (case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107esac
10108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_try") 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_lib_dld_dld_link=yes
10114else
10115 echo "$as_me: failed program was:" >&5
10116sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 ac_cv_lib_dld_dld_link=no
10119fi
10120
10121rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10123LIBS=$ac_check_lib_save_LIBS
10124fi
10125{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10126echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10127if test $ac_cv_lib_dld_dld_link = yes; then
10128 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10129fi
10130
10131
10132fi
10133
10134
10135fi
10136
10137
10138fi
10139
10140
10141fi
10142
10143
10144fi
10145
10146 ;;
10147 esac
10148
10149 if test "x$lt_cv_dlopen" != xno; then
10150 enable_dlopen=yes
10151 else
10152 enable_dlopen=no
10153 fi
10154
10155 case $lt_cv_dlopen in
10156 dlopen)
10157 save_CPPFLAGS="$CPPFLAGS"
10158 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10159
10160 save_LDFLAGS="$LDFLAGS"
10161 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10162
10163 save_LIBS="$LIBS"
10164 LIBS="$lt_cv_dlopen_libs $LIBS"
10165
10166 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10167echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10168if test "${lt_cv_dlopen_self+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171 if test "$cross_compiling" = yes; then :
10172 lt_cv_dlopen_self=cross
10173else
10174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10175 lt_status=$lt_dlunknown
10176 cat > conftest.$ac_ext <<EOF
10177#line 10177 "configure"
10178#include "confdefs.h"
10179
10180#if HAVE_DLFCN_H
10181#include <dlfcn.h>
10182#endif
10183
10184#include <stdio.h>
10185
10186#ifdef RTLD_GLOBAL
10187# define LT_DLGLOBAL RTLD_GLOBAL
10188#else
10189# ifdef DL_GLOBAL
10190# define LT_DLGLOBAL DL_GLOBAL
10191# else
10192# define LT_DLGLOBAL 0
10193# endif
10194#endif
10195
10196/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10197 find out it does not work in some platform. */
10198#ifndef LT_DLLAZY_OR_NOW
10199# ifdef RTLD_LAZY
10200# define LT_DLLAZY_OR_NOW RTLD_LAZY
10201# else
10202# ifdef DL_LAZY
10203# define LT_DLLAZY_OR_NOW DL_LAZY
10204# else
10205# ifdef RTLD_NOW
10206# define LT_DLLAZY_OR_NOW RTLD_NOW
10207# else
10208# ifdef DL_NOW
10209# define LT_DLLAZY_OR_NOW DL_NOW
10210# else
10211# define LT_DLLAZY_OR_NOW 0
10212# endif
10213# endif
10214# endif
10215# endif
10216#endif
10217
10218#ifdef __cplusplus
10219extern "C" void exit (int);
10220#endif
10221
10222void fnord() { int i=42;}
10223int main ()
10224{
10225 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10226 int status = $lt_dlunknown;
10227
10228 if (self)
10229 {
10230 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10231 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10232 /* dlclose (self); */
10233 }
10234 else
10235 puts (dlerror ());
10236
10237 exit (status);
10238}
10239EOF
10240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241 (eval $ac_link) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10245 (./conftest; exit; ) >&5 2>/dev/null
10246 lt_status=$?
10247 case x$lt_status in
10248 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10249 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10250 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10251 esac
10252 else :
10253 # compilation failed
10254 lt_cv_dlopen_self=no
10255 fi
10256fi
10257rm -fr conftest*
10258
10259
10260fi
10261{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10262echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10263
10264 if test "x$lt_cv_dlopen_self" = xyes; then
10265 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10266 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10267echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10268if test "${lt_cv_dlopen_self_static+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271 if test "$cross_compiling" = yes; then :
10272 lt_cv_dlopen_self_static=cross
10273else
10274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10275 lt_status=$lt_dlunknown
10276 cat > conftest.$ac_ext <<EOF
10277#line 10277 "configure"
10278#include "confdefs.h"
10279
10280#if HAVE_DLFCN_H
10281#include <dlfcn.h>
10282#endif
10283
10284#include <stdio.h>
10285
10286#ifdef RTLD_GLOBAL
10287# define LT_DLGLOBAL RTLD_GLOBAL
10288#else
10289# ifdef DL_GLOBAL
10290# define LT_DLGLOBAL DL_GLOBAL
10291# else
10292# define LT_DLGLOBAL 0
10293# endif
10294#endif
10295
10296/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10297 find out it does not work in some platform. */
10298#ifndef LT_DLLAZY_OR_NOW
10299# ifdef RTLD_LAZY
10300# define LT_DLLAZY_OR_NOW RTLD_LAZY
10301# else
10302# ifdef DL_LAZY
10303# define LT_DLLAZY_OR_NOW DL_LAZY
10304# else
10305# ifdef RTLD_NOW
10306# define LT_DLLAZY_OR_NOW RTLD_NOW
10307# else
10308# ifdef DL_NOW
10309# define LT_DLLAZY_OR_NOW DL_NOW
10310# else
10311# define LT_DLLAZY_OR_NOW 0
10312# endif
10313# endif
10314# endif
10315# endif
10316#endif
10317
10318#ifdef __cplusplus
10319extern "C" void exit (int);
10320#endif
10321
10322void fnord() { int i=42;}
10323int main ()
10324{
10325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10326 int status = $lt_dlunknown;
10327
10328 if (self)
10329 {
10330 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10331 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10332 /* dlclose (self); */
10333 }
10334 else
10335 puts (dlerror ());
10336
10337 exit (status);
10338}
10339EOF
10340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10341 (eval $ac_link) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10345 (./conftest; exit; ) >&5 2>/dev/null
10346 lt_status=$?
10347 case x$lt_status in
10348 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10349 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10350 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10351 esac
10352 else :
10353 # compilation failed
10354 lt_cv_dlopen_self_static=no
10355 fi
10356fi
10357rm -fr conftest*
10358
10359
10360fi
10361{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10362echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10363 fi
10364
10365 CPPFLAGS="$save_CPPFLAGS"
10366 LDFLAGS="$save_LDFLAGS"
10367 LIBS="$save_LIBS"
10368 ;;
10369 esac
10370
10371 case $lt_cv_dlopen_self in
10372 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10373 *) enable_dlopen_self=unknown ;;
10374 esac
10375
10376 case $lt_cv_dlopen_self_static in
10377 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10378 *) enable_dlopen_self_static=unknown ;;
10379 esac
10380fi
10381
10382
10383# Report which library types will actually be built
10384{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10385echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10386{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10387echo "${ECHO_T}$can_build_shared" >&6; }
10388
10389{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10390echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10391test "$can_build_shared" = "no" && enable_shared=no
10392
10393# On AIX, shared libraries and static libraries use the same namespace, and
10394# are all built from PIC.
10395case $host_os in
10396aix3*)
10397 test "$enable_shared" = yes && enable_static=no
10398 if test -n "$RANLIB"; then
10399 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10400 postinstall_cmds='$RANLIB $lib'
10401 fi
10402 ;;
10403
10404aix4* | aix5*)
10405 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10406 test "$enable_shared" = yes && enable_static=no
10407 fi
10408 ;;
10409esac
10410{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10411echo "${ECHO_T}$enable_shared" >&6; }
10412
10413{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10414echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10415# Make sure either enable_shared or enable_static is yes.
10416test "$enable_shared" = yes || enable_static=yes
10417{ echo "$as_me:$LINENO: result: $enable_static" >&5
10418echo "${ECHO_T}$enable_static" >&6; }
10419
10420# The else clause should only fire when bootstrapping the
10421# libtool distribution, otherwise you forgot to ship ltmain.sh
10422# with your package, and you will get complaints that there are
10423# no rules to generate ltmain.sh.
10424if test -f "$ltmain"; then
10425 # See if we are running on zsh, and set the options which allow our commands through
10426 # without removal of \ escapes.
10427 if test -n "${ZSH_VERSION+set}" ; then
10428 setopt NO_GLOB_SUBST
10429 fi
10430 # Now quote all the things that may contain metacharacters while being
10431 # careful not to overquote the AC_SUBSTed values. We take copies of the
10432 # variables and quote the copies for generation of the libtool script.
10433 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10434 SED SHELL STRIP \
10435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10437 deplibs_check_method reload_flag reload_cmds need_locks \
10438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10439 lt_cv_sys_global_symbol_to_c_name_address \
10440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10441 old_postinstall_cmds old_postuninstall_cmds \
10442 compiler \
10443 CC \
10444 LD \
10445 lt_prog_compiler_wl \
10446 lt_prog_compiler_pic \
10447 lt_prog_compiler_static \
10448 lt_prog_compiler_no_builtin_flag \
10449 export_dynamic_flag_spec \
10450 thread_safe_flag_spec \
10451 whole_archive_flag_spec \
10452 enable_shared_with_static_runtimes \
10453 old_archive_cmds \
10454 old_archive_from_new_cmds \
10455 predep_objects \
10456 postdep_objects \
10457 predeps \
10458 postdeps \
10459 compiler_lib_search_path \
10460 archive_cmds \
10461 archive_expsym_cmds \
10462 postinstall_cmds \
10463 postuninstall_cmds \
10464 old_archive_from_expsyms_cmds \
10465 allow_undefined_flag \
10466 no_undefined_flag \
10467 export_symbols_cmds \
10468 hardcode_libdir_flag_spec \
10469 hardcode_libdir_flag_spec_ld \
10470 hardcode_libdir_separator \
10471 hardcode_automatic \
10472 module_cmds \
10473 module_expsym_cmds \
10474 lt_cv_prog_compiler_c_o \
10475 exclude_expsyms \
10476 include_expsyms; do
10477
10478 case $var in
10479 old_archive_cmds | \
10480 old_archive_from_new_cmds | \
10481 archive_cmds | \
10482 archive_expsym_cmds | \
10483 module_cmds | \
10484 module_expsym_cmds | \
10485 old_archive_from_expsyms_cmds | \
10486 export_symbols_cmds | \
10487 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10488 postinstall_cmds | postuninstall_cmds | \
10489 old_postinstall_cmds | old_postuninstall_cmds | \
10490 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10491 # Double-quote double-evaled strings.
10492 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10493 ;;
10494 *)
10495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10496 ;;
10497 esac
10498 done
10499
10500 case $lt_echo in
10501 *'\$0 --fallback-echo"')
10502 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10503 ;;
10504 esac
10505
10506cfgfile="${ofile}T"
10507 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10508 $rm -f "$cfgfile"
10509 { echo "$as_me:$LINENO: creating $ofile" >&5
10510echo "$as_me: creating $ofile" >&6;}
10511
10512 cat <<__EOF__ >> "$cfgfile"
10513#! $SHELL
10514
10515# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10516# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10517# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10518#
10519# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10520# Free Software Foundation, Inc.
10521#
10522# This file is part of GNU Libtool:
10523# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10524#
10525# This program is free software; you can redistribute it and/or modify
10526# it under the terms of the GNU General Public License as published by
10527# the Free Software Foundation; either version 2 of the License, or
10528# (at your option) any later version.
10529#
10530# This program is distributed in the hope that it will be useful, but
10531# WITHOUT ANY WARRANTY; without even the implied warranty of
10532# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10533# General Public License for more details.
10534#
10535# You should have received a copy of the GNU General Public License
10536# along with this program; if not, write to the Free Software
10537# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10538#
10539# As a special exception to the GNU General Public License, if you
10540# distribute this file as part of a program that contains a
10541# configuration script generated by Autoconf, you may include it under
10542# the same distribution terms that you use for the rest of that program.
10543
10544# A sed program that does not truncate output.
10545SED=$lt_SED
10546
10547# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10548Xsed="$SED -e 1s/^X//"
10549
10550# The HP-UX ksh and POSIX shell print the target directory to stdout
10551# if CDPATH is set.
10552(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10553
10554# The names of the tagged configurations supported by this script.
10555available_tags=
10556
10557# ### BEGIN LIBTOOL CONFIG
10558
10559# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10560
10561# Shell to use when invoking shell scripts.
10562SHELL=$lt_SHELL
10563
10564# Whether or not to build shared libraries.
10565build_libtool_libs=$enable_shared
10566
10567# Whether or not to build static libraries.
10568build_old_libs=$enable_static
10569
10570# Whether or not to add -lc for building shared libraries.
10571build_libtool_need_lc=$archive_cmds_need_lc
10572
10573# Whether or not to disallow shared libs when runtime libs are static
10574allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10575
10576# Whether or not to optimize for fast installation.
10577fast_install=$enable_fast_install
10578
10579# The host system.
10580host_alias=$host_alias
10581host=$host
10582host_os=$host_os
10583
10584# The build system.
10585build_alias=$build_alias
10586build=$build
10587build_os=$build_os
10588
10589# An echo program that does not interpret backslashes.
10590echo=$lt_echo
10591
10592# The archiver.
10593AR=$lt_AR
10594AR_FLAGS=$lt_AR_FLAGS
10595
10596# A C compiler.
10597LTCC=$lt_LTCC
10598
10599# LTCC compiler flags.
10600LTCFLAGS=$lt_LTCFLAGS
10601
10602# A language-specific compiler.
10603CC=$lt_compiler
10604
10605# Is the compiler the GNU C compiler?
10606with_gcc=$GCC
10607
10608# An ERE matcher.
10609EGREP=$lt_EGREP
10610
10611# The linker used to build libraries.
10612LD=$lt_LD
10613
10614# Whether we need hard or soft links.
10615LN_S=$lt_LN_S
10616
10617# A BSD-compatible nm program.
10618NM=$lt_NM
10619
10620# A symbol stripping program
10621STRIP=$lt_STRIP
10622
10623# Used to examine libraries when file_magic_cmd begins "file"
10624MAGIC_CMD=$MAGIC_CMD
10625
10626# Used on cygwin: DLL creation program.
10627DLLTOOL="$DLLTOOL"
10628
10629# Used on cygwin: object dumper.
10630OBJDUMP="$OBJDUMP"
10631
10632# Used on cygwin: assembler.
10633AS="$AS"
10634
10635# The name of the directory that contains temporary libtool files.
10636objdir=$objdir
10637
10638# How to create reloadable object files.
10639reload_flag=$lt_reload_flag
10640reload_cmds=$lt_reload_cmds
10641
10642# How to pass a linker flag through the compiler.
10643wl=$lt_lt_prog_compiler_wl
10644
10645# Object file suffix (normally "o").
10646objext="$ac_objext"
10647
10648# Old archive suffix (normally "a").
10649libext="$libext"
10650
10651# Shared library suffix (normally ".so").
10652shrext_cmds='$shrext_cmds'
10653
10654# Executable file suffix (normally "").
10655exeext="$exeext"
10656
10657# Additional compiler flags for building library objects.
10658pic_flag=$lt_lt_prog_compiler_pic
10659pic_mode=$pic_mode
10660
10661# What is the maximum length of a command?
10662max_cmd_len=$lt_cv_sys_max_cmd_len
10663
10664# Does compiler simultaneously support -c and -o options?
10665compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10666
10667# Must we lock files when doing compilation?
10668need_locks=$lt_need_locks
10669
10670# Do we need the lib prefix for modules?
10671need_lib_prefix=$need_lib_prefix
10672
10673# Do we need a version for libraries?
10674need_version=$need_version
10675
10676# Whether dlopen is supported.
10677dlopen_support=$enable_dlopen
10678
10679# Whether dlopen of programs is supported.
10680dlopen_self=$enable_dlopen_self
10681
10682# Whether dlopen of statically linked programs is supported.
10683dlopen_self_static=$enable_dlopen_self_static
10684
10685# Compiler flag to prevent dynamic linking.
10686link_static_flag=$lt_lt_prog_compiler_static
10687
10688# Compiler flag to turn off builtin functions.
10689no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10690
10691# Compiler flag to allow reflexive dlopens.
10692export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10693
10694# Compiler flag to generate shared objects directly from archives.
10695whole_archive_flag_spec=$lt_whole_archive_flag_spec
10696
10697# Compiler flag to generate thread-safe objects.
10698thread_safe_flag_spec=$lt_thread_safe_flag_spec
10699
10700# Library versioning type.
10701version_type=$version_type
10702
10703# Format of library name prefix.
10704libname_spec=$lt_libname_spec
10705
10706# List of archive names. First name is the real one, the rest are links.
10707# The last name is the one that the linker finds with -lNAME.
10708library_names_spec=$lt_library_names_spec
10709
10710# The coded name of the library, if different from the real name.
10711soname_spec=$lt_soname_spec
10712
10713# Commands used to build and install an old-style archive.
10714RANLIB=$lt_RANLIB
10715old_archive_cmds=$lt_old_archive_cmds
10716old_postinstall_cmds=$lt_old_postinstall_cmds
10717old_postuninstall_cmds=$lt_old_postuninstall_cmds
10718
10719# Create an old-style archive from a shared archive.
10720old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10721
10722# Create a temporary old-style archive to link instead of a shared archive.
10723old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10724
10725# Commands used to build and install a shared archive.
10726archive_cmds=$lt_archive_cmds
10727archive_expsym_cmds=$lt_archive_expsym_cmds
10728postinstall_cmds=$lt_postinstall_cmds
10729postuninstall_cmds=$lt_postuninstall_cmds
10730
10731# Commands used to build a loadable module (assumed same as above if empty)
10732module_cmds=$lt_module_cmds
10733module_expsym_cmds=$lt_module_expsym_cmds
10734
10735# Commands to strip libraries.
10736old_striplib=$lt_old_striplib
10737striplib=$lt_striplib
10738
10739# Dependencies to place before the objects being linked to create a
10740# shared library.
10741predep_objects=$lt_predep_objects
10742
10743# Dependencies to place after the objects being linked to create a
10744# shared library.
10745postdep_objects=$lt_postdep_objects
10746
10747# Dependencies to place before the objects being linked to create a
10748# shared library.
10749predeps=$lt_predeps
10750
10751# Dependencies to place after the objects being linked to create a
10752# shared library.
10753postdeps=$lt_postdeps
10754
10755# The library search path used internally by the compiler when linking
10756# a shared library.
10757compiler_lib_search_path=$lt_compiler_lib_search_path
10758
10759# Method to check whether dependent libraries are shared objects.
10760deplibs_check_method=$lt_deplibs_check_method
10761
10762# Command to use when deplibs_check_method == file_magic.
10763file_magic_cmd=$lt_file_magic_cmd
10764
10765# Flag that allows shared libraries with undefined symbols to be built.
10766allow_undefined_flag=$lt_allow_undefined_flag
10767
10768# Flag that forces no undefined symbols.
10769no_undefined_flag=$lt_no_undefined_flag
10770
10771# Commands used to finish a libtool library installation in a directory.
10772finish_cmds=$lt_finish_cmds
10773
10774# Same as above, but a single script fragment to be evaled but not shown.
10775finish_eval=$lt_finish_eval
10776
10777# Take the output of nm and produce a listing of raw symbols and C names.
10778global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10779
10780# Transform the output of nm in a proper C declaration
10781global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10782
10783# Transform the output of nm in a C name address pair
10784global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10785
10786# This is the shared library runtime path variable.
10787runpath_var=$runpath_var
10788
10789# This is the shared library path variable.
10790shlibpath_var=$shlibpath_var
10791
10792# Is shlibpath searched before the hard-coded library search path?
10793shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10794
10795# How to hardcode a shared library path into an executable.
10796hardcode_action=$hardcode_action
10797
10798# Whether we should hardcode library paths into libraries.
10799hardcode_into_libs=$hardcode_into_libs
10800
10801# Flag to hardcode \$libdir into a binary during linking.
10802# This must work even if \$libdir does not exist.
10803hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10804
10805# If ld is used when linking, flag to hardcode \$libdir into
10806# a binary during linking. This must work even if \$libdir does
10807# not exist.
10808hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10809
10810# Whether we need a single -rpath flag with a separated argument.
10811hardcode_libdir_separator=$lt_hardcode_libdir_separator
10812
10813# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10814# resulting binary.
10815hardcode_direct=$hardcode_direct
10816
10817# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10818# resulting binary.
10819hardcode_minus_L=$hardcode_minus_L
10820
10821# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10822# the resulting binary.
10823hardcode_shlibpath_var=$hardcode_shlibpath_var
10824
10825# Set to yes if building a shared library automatically hardcodes DIR into the library
10826# and all subsequent libraries and executables linked against it.
10827hardcode_automatic=$hardcode_automatic
10828
10829# Variables whose values should be saved in libtool wrapper scripts and
10830# restored at relink time.
10831variables_saved_for_relink="$variables_saved_for_relink"
10832
10833# Whether libtool must link a program against all its dependency libraries.
10834link_all_deplibs=$link_all_deplibs
10835
10836# Compile-time system search path for libraries
10837sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10838
10839# Run-time system search path for libraries
10840sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10841
10842# Fix the shell variable \$srcfile for the compiler.
10843fix_srcfile_path="$fix_srcfile_path"
10844
10845# Set to yes if exported symbols are required.
10846always_export_symbols=$always_export_symbols
10847
10848# The commands to list exported symbols.
10849export_symbols_cmds=$lt_export_symbols_cmds
10850
10851# The commands to extract the exported symbol list from a shared archive.
10852extract_expsyms_cmds=$lt_extract_expsyms_cmds
10853
10854# Symbols that should not be listed in the preloaded symbols.
10855exclude_expsyms=$lt_exclude_expsyms
10856
10857# Symbols that must always be exported.
10858include_expsyms=$lt_include_expsyms
10859
10860# ### END LIBTOOL CONFIG
10861
10862__EOF__
10863
10864
10865 case $host_os in
10866 aix3*)
10867 cat <<\EOF >> "$cfgfile"
10868
10869# AIX sometimes has problems with the GCC collect2 program. For some
10870# reason, if we set the COLLECT_NAMES environment variable, the problems
10871# vanish in a puff of smoke.
10872if test "X${COLLECT_NAMES+set}" != Xset; then
10873 COLLECT_NAMES=
10874 export COLLECT_NAMES
10875fi
10876EOF
10877 ;;
10878 esac
10879
10880 # We use sed instead of cat because bash on DJGPP gets confused if
10881 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10882 # text mode, it properly converts lines to CR/LF. This bash problem
10883 # is reportedly fixed, but why not run on old versions too?
10884 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10885
10886 mv -f "$cfgfile" "$ofile" || \
10887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10888 chmod +x "$ofile"
10889
10890else
10891 # If there is no Makefile yet, we rely on a make rule to execute
10892 # `config.status --recheck' to rerun these tests and create the
10893 # libtool script then.
10894 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10895 if test -f "$ltmain_in"; then
10896 test -f Makefile && make "$ltmain"
10897 fi
10898fi
10899
10900
10901ac_ext=c
10902ac_cpp='$CPP $CPPFLAGS'
10903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10905ac_compiler_gnu=$ac_cv_c_compiler_gnu
10906
10907CC="$lt_save_CC"
10908
10909
10910# Check whether --with-tags was given.
10911if test "${with_tags+set}" = set; then
10912 withval=$with_tags; tagnames="$withval"
10913fi
10914
10915
10916if test -f "$ltmain" && test -n "$tagnames"; then
10917 if test ! -f "${ofile}"; then
10918 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10919echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10920 fi
10921
10922 if test -z "$LTCC"; then
10923 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10924 if test -z "$LTCC"; then
10925 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10926echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10927 else
10928 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10929echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10930 fi
10931 fi
10932 if test -z "$LTCFLAGS"; then
10933 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10934 fi
10935
10936 # Extract list of available tagged configurations in $ofile.
10937 # Note that this assumes the entire list is on one line.
10938 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10939
10940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10941 for tagname in $tagnames; do
10942 IFS="$lt_save_ifs"
10943 # Check whether tagname contains only valid characters
10944 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10945 "") ;;
10946 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10947echo "$as_me: error: invalid tag name: $tagname" >&2;}
10948 { (exit 1); exit 1; }; }
10949 ;;
10950 esac
10951
10952 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10953 then
10954 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10955echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10956 { (exit 1); exit 1; }; }
10957 fi
10958
10959 # Update the list of available tags.
10960 if test -n "$tagname"; then
10961 echo appending configuration tag \"$tagname\" to $ofile
10962
10963 case $tagname in
10964 CXX)
10965 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10966 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10967 (test "X$CXX" != "Xg++"))) ; then
10968 ac_ext=cpp
10969ac_cpp='$CXXCPP $CPPFLAGS'
10970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10973
10974
10975
10976
10977archive_cmds_need_lc_CXX=no
10978allow_undefined_flag_CXX=
10979always_export_symbols_CXX=no
10980archive_expsym_cmds_CXX=
10981export_dynamic_flag_spec_CXX=
10982hardcode_direct_CXX=no
10983hardcode_libdir_flag_spec_CXX=
10984hardcode_libdir_flag_spec_ld_CXX=
10985hardcode_libdir_separator_CXX=
10986hardcode_minus_L_CXX=no
10987hardcode_shlibpath_var_CXX=unsupported
10988hardcode_automatic_CXX=no
10989module_cmds_CXX=
10990module_expsym_cmds_CXX=
10991link_all_deplibs_CXX=unknown
10992old_archive_cmds_CXX=$old_archive_cmds
10993no_undefined_flag_CXX=
10994whole_archive_flag_spec_CXX=
10995enable_shared_with_static_runtimes_CXX=no
10996
10997# Dependencies to place before and after the object being linked:
10998predep_objects_CXX=
10999postdep_objects_CXX=
11000predeps_CXX=
11001postdeps_CXX=
11002compiler_lib_search_path_CXX=
11003
11004# Source file extension for C++ test sources.
11005ac_ext=cpp
11006
11007# Object file extension for compiled C++ test sources.
11008objext=o
11009objext_CXX=$objext
11010
11011# Code to be used in simple compile tests
11012lt_simple_compile_test_code="int some_variable = 0;\n"
11013
11014# Code to be used in simple link tests
11015lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11016
11017# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11018
11019# If no C compiler was specified, use CC.
11020LTCC=${LTCC-"$CC"}
11021
11022# If no C compiler flags were specified, use CFLAGS.
11023LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11024
11025# Allow CC to be a program name with arguments.
11026compiler=$CC
11027
11028
11029# save warnings/boilerplate of simple test code
11030ac_outfile=conftest.$ac_objext
11031printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11032eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11033_lt_compiler_boilerplate=`cat conftest.err`
11034$rm conftest*
11035
11036ac_outfile=conftest.$ac_objext
11037printf "$lt_simple_link_test_code" >conftest.$ac_ext
11038eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11039_lt_linker_boilerplate=`cat conftest.err`
11040$rm conftest*
11041
11042
11043# Allow CC to be a program name with arguments.
11044lt_save_CC=$CC
11045lt_save_LD=$LD
11046lt_save_GCC=$GCC
11047GCC=$GXX
11048lt_save_with_gnu_ld=$with_gnu_ld
11049lt_save_path_LD=$lt_cv_path_LD
11050if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11051 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11052else
11053 $as_unset lt_cv_prog_gnu_ld
11054fi
11055if test -n "${lt_cv_path_LDCXX+set}"; then
11056 lt_cv_path_LD=$lt_cv_path_LDCXX
11057else
11058 $as_unset lt_cv_path_LD
11059fi
11060test -z "${LDCXX+set}" || LD=$LDCXX
11061CC=${CXX-"c++"}
11062compiler=$CC
11063compiler_CXX=$CC
11064for cc_temp in $compiler""; do
11065 case $cc_temp in
11066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11068 \-*) ;;
11069 *) break;;
11070 esac
11071done
11072cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11073
11074
11075# We don't want -fno-exception wen compiling C++ code, so set the
11076# no_builtin_flag separately
11077if test "$GXX" = yes; then
11078 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11079else
11080 lt_prog_compiler_no_builtin_flag_CXX=
11081fi
11082
11083if test "$GXX" = yes; then
11084 # Set up default GNU C++ configuration
11085
11086
11087# Check whether --with-gnu-ld was given.
11088if test "${with_gnu_ld+set}" = set; then
11089 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11090else
11091 with_gnu_ld=no
11092fi
11093
11094ac_prog=ld
11095if test "$GCC" = yes; then
11096 # Check if gcc -print-prog-name=ld gives a path.
11097 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11098echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11099 case $host in
11100 *-*-mingw*)
11101 # gcc leaves a trailing carriage return which upsets mingw
11102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11103 *)
11104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11105 esac
11106 case $ac_prog in
11107 # Accept absolute paths.
11108 [\\/]* | ?:[\\/]*)
11109 re_direlt='/[^/][^/]*/\.\./'
11110 # Canonicalize the pathname of ld
11111 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11112 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11113 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11114 done
11115 test -z "$LD" && LD="$ac_prog"
11116 ;;
11117 "")
11118 # If it fails, then pretend we aren't using GCC.
11119 ac_prog=ld
11120 ;;
11121 *)
11122 # If it is relative, then search for the first ld in PATH.
11123 with_gnu_ld=unknown
11124 ;;
11125 esac
11126elif test "$with_gnu_ld" = yes; then
11127 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11128echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11129else
11130 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11131echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11132fi
11133if test "${lt_cv_path_LD+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135else
11136 if test -z "$LD"; then
11137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11138 for ac_dir in $PATH; do
11139 IFS="$lt_save_ifs"
11140 test -z "$ac_dir" && ac_dir=.
11141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11142 lt_cv_path_LD="$ac_dir/$ac_prog"
11143 # Check to see if the program is GNU ld. I'd rather use --version,
11144 # but apparently some variants of GNU ld only accept -v.
11145 # Break only if it was the GNU/non-GNU ld that we prefer.
11146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11147 *GNU* | *'with BFD'*)
11148 test "$with_gnu_ld" != no && break
11149 ;;
11150 *)
11151 test "$with_gnu_ld" != yes && break
11152 ;;
11153 esac
11154 fi
11155 done
11156 IFS="$lt_save_ifs"
11157else
11158 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11159fi
11160fi
11161
11162LD="$lt_cv_path_LD"
11163if test -n "$LD"; then
11164 { echo "$as_me:$LINENO: result: $LD" >&5
11165echo "${ECHO_T}$LD" >&6; }
11166else
11167 { echo "$as_me:$LINENO: result: no" >&5
11168echo "${ECHO_T}no" >&6; }
11169fi
11170test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11171echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11172 { (exit 1); exit 1; }; }
11173{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11174echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11175if test "${lt_cv_prog_gnu_ld+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177else
11178 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11179case `$LD -v 2>&1 </dev/null` in
11180*GNU* | *'with BFD'*)
11181 lt_cv_prog_gnu_ld=yes
11182 ;;
11183*)
11184 lt_cv_prog_gnu_ld=no
11185 ;;
11186esac
11187fi
11188{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11189echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11190with_gnu_ld=$lt_cv_prog_gnu_ld
11191
11192
11193
11194 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11195 # archiving commands below assume that GNU ld is being used.
11196 if test "$with_gnu_ld" = yes; then
11197 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11198 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'
11199
11200 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11201 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11202
11203 # If archive_cmds runs LD, not CC, wlarc should be empty
11204 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11205 # investigate it a little bit more. (MM)
11206 wlarc='${wl}'
11207
11208 # ancient GNU ld didn't support --whole-archive et. al.
11209 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11210 grep 'no-whole-archive' > /dev/null; then
11211 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11212 else
11213 whole_archive_flag_spec_CXX=
11214 fi
11215 else
11216 with_gnu_ld=no
11217 wlarc=
11218
11219 # A generic and very simple default shared library creation
11220 # command for GNU C++ for the case where it uses the native
11221 # linker, instead of GNU ld. If possible, this setting should
11222 # overridden to take advantage of the native linker features on
11223 # the platform it is being used on.
11224 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11225 fi
11226
11227 # Commands to make compiler produce verbose output that lists
11228 # what "hidden" libraries, object files and flags are used when
11229 # linking a shared library.
11230 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11231
11232else
11233 GXX=no
11234 with_gnu_ld=no
11235 wlarc=
11236fi
11237
11238# PORTME: fill in a description of your system's C++ link characteristics
11239{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11240echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11241ld_shlibs_CXX=yes
11242case $host_os in
11243 aix3*)
11244 # FIXME: insert proper C++ library support
11245 ld_shlibs_CXX=no
11246 ;;
11247 aix4* | aix5*)
11248 if test "$host_cpu" = ia64; then
11249 # On IA64, the linker does run time linking by default, so we don't
11250 # have to do anything special.
11251 aix_use_runtimelinking=no
11252 exp_sym_flag='-Bexport'
11253 no_entry_flag=""
11254 else
11255 aix_use_runtimelinking=no
11256
11257 # Test if we are trying to use run time linking or normal
11258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11259 # need to do runtime linking.
11260 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11261 for ld_flag in $LDFLAGS; do
11262 case $ld_flag in
11263 *-brtl*)
11264 aix_use_runtimelinking=yes
11265 break
11266 ;;
11267 esac
11268 done
11269 ;;
11270 esac
11271
11272 exp_sym_flag='-bexport'
11273 no_entry_flag='-bnoentry'
11274 fi
11275
11276 # When large executables or shared objects are built, AIX ld can
11277 # have problems creating the table of contents. If linking a library
11278 # or program results in "error TOC overflow" add -mminimal-toc to
11279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11281
11282 archive_cmds_CXX=''
11283 hardcode_direct_CXX=yes
11284 hardcode_libdir_separator_CXX=':'
11285 link_all_deplibs_CXX=yes
11286
11287 if test "$GXX" = yes; then
11288 case $host_os in aix4.[012]|aix4.[012].*)
11289 # We only want to do this on AIX 4.2 and lower, the check
11290 # below for broken collect2 doesn't work under 4.3+
11291 collect2name=`${CC} -print-prog-name=collect2`
11292 if test -f "$collect2name" && \
11293 strings "$collect2name" | grep resolve_lib_name >/dev/null
11294 then
11295 # We have reworked collect2
11296 hardcode_direct_CXX=yes
11297 else
11298 # We have old collect2
11299 hardcode_direct_CXX=unsupported
11300 # It fails to find uninstalled libraries when the uninstalled
11301 # path is not listed in the libpath. Setting hardcode_minus_L
11302 # to unsupported forces relinking
11303 hardcode_minus_L_CXX=yes
11304 hardcode_libdir_flag_spec_CXX='-L$libdir'
11305 hardcode_libdir_separator_CXX=
11306 fi
11307 ;;
11308 esac
11309 shared_flag='-shared'
11310 if test "$aix_use_runtimelinking" = yes; then
11311 shared_flag="$shared_flag "'${wl}-G'
11312 fi
11313 else
11314 # not using gcc
11315 if test "$host_cpu" = ia64; then
11316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11317 # chokes on -Wl,-G. The following line is correct:
11318 shared_flag='-G'
11319 else
11320 if test "$aix_use_runtimelinking" = yes; then
11321 shared_flag='${wl}-G'
11322 else
11323 shared_flag='${wl}-bM:SRE'
11324 fi
11325 fi
11326 fi
11327
11328 # It seems that -bexpall does not export symbols beginning with
11329 # underscore (_), so it is better to generate a list of symbols to export.
11330 always_export_symbols_CXX=yes
11331 if test "$aix_use_runtimelinking" = yes; then
11332 # Warning - without using the other runtime loading flags (-brtl),
11333 # -berok will link without error, but may produce a broken library.
11334 allow_undefined_flag_CXX='-berok'
11335 # Determine the default libpath from the value encoded in an empty executable.
11336 cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */
11342
11343int
11344main ()
11345{
11346
11347 ;
11348 return 0;
11349}
11350_ACEOF
11351rm -f conftest.$ac_objext conftest$ac_exeext
11352if { (ac_try="$ac_link"
11353case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356esac
11357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_link") 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11366 { (case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11369esac
11370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_try") 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest$ac_exeext'
11376 { (case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379esac
11380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_try") 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385
11386aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11387}'`
11388# Check for a 64-bit object if we didn't find anything.
11389if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11390}'`; fi
11391else
11392 echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395
11396fi
11397
11398rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11401
11402 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11403
11404 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"
11405 else
11406 if test "$host_cpu" = ia64; then
11407 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11408 allow_undefined_flag_CXX="-z nodefs"
11409 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"
11410 else
11411 # Determine the default libpath from the value encoded in an empty executable.
11412 cat >conftest.$ac_ext <<_ACEOF
11413/* confdefs.h. */
11414_ACEOF
11415cat confdefs.h >>conftest.$ac_ext
11416cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */
11418
11419int
11420main ()
11421{
11422
11423 ;
11424 return 0;
11425}
11426_ACEOF
11427rm -f conftest.$ac_objext conftest$ac_exeext
11428if { (ac_try="$ac_link"
11429case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11432esac
11433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_link") 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11442 { (case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445esac
11446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_try") 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest$ac_exeext'
11452 { (case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11455esac
11456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_try") 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461
11462aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11463}'`
11464# Check for a 64-bit object if we didn't find anything.
11465if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11466}'`; fi
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471
11472fi
11473
11474rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11477
11478 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11479 # Warning - without using the other run time loading flags,
11480 # -berok will link without error, but may produce a broken library.
11481 no_undefined_flag_CXX=' ${wl}-bernotok'
11482 allow_undefined_flag_CXX=' ${wl}-berok'
11483 # Exported symbols can be pulled into shared objects from archives
11484 whole_archive_flag_spec_CXX='$convenience'
11485 archive_cmds_need_lc_CXX=yes
11486 # This is similar to how AIX traditionally builds its shared libraries.
11487 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'
11488 fi
11489 fi
11490 ;;
11491
11492 beos*)
11493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11494 allow_undefined_flag_CXX=unsupported
11495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11496 # support --undefined. This deserves some investigation. FIXME
11497 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11498 else
11499 ld_shlibs_CXX=no
11500 fi
11501 ;;
11502
11503 chorus*)
11504 case $cc_basename in
11505 *)
11506 # FIXME: insert proper C++ library support
11507 ld_shlibs_CXX=no
11508 ;;
11509 esac
11510 ;;
11511
11512 cygwin* | mingw* | pw32*)
11513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11514 # as there is no search path for DLLs.
11515 hardcode_libdir_flag_spec_CXX='-L$libdir'
11516 allow_undefined_flag_CXX=unsupported
11517 always_export_symbols_CXX=no
11518 enable_shared_with_static_runtimes_CXX=yes
11519
11520 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11521 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'
11522 # If the export-symbols file already is a .def file (1st line
11523 # is EXPORTS), use it as is; otherwise, prepend...
11524 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11525 cp $export_symbols $output_objdir/$soname.def;
11526 else
11527 echo EXPORTS > $output_objdir/$soname.def;
11528 cat $export_symbols >> $output_objdir/$soname.def;
11529 fi~
11530 $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'
11531 else
11532 ld_shlibs_CXX=no
11533 fi
11534 ;;
11535 darwin* | rhapsody*)
11536 case $host_os in
11537 rhapsody* | darwin1.[012])
11538 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11539 ;;
11540 *) # Darwin 1.3 on
11541 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11542 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11543 else
11544 case ${MACOSX_DEPLOYMENT_TARGET} in
11545 10.[012])
11546 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11547 ;;
11548 10.*)
11549 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11550 ;;
11551 esac
11552 fi
11553 ;;
11554 esac
11555 archive_cmds_need_lc_CXX=no
11556 hardcode_direct_CXX=no
11557 hardcode_automatic_CXX=yes
11558 hardcode_shlibpath_var_CXX=unsupported
11559 whole_archive_flag_spec_CXX=''
11560 link_all_deplibs_CXX=yes
11561
11562 if test "$GXX" = yes ; then
11563 lt_int_apple_cc_single_mod=no
11564 output_verbose_link_cmd='echo'
11565 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11566 lt_int_apple_cc_single_mod=yes
11567 fi
11568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11569 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11570 else
11571 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'
11572 fi
11573 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11575 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11576 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11577 else
11578 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11579 fi
11580 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}'
11581 else
11582 case $cc_basename in
11583 xlc*)
11584 output_verbose_link_cmd='echo'
11585 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11586 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11587 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11588 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11589 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}'
11590 ;;
11591 *)
11592 ld_shlibs_CXX=no
11593 ;;
11594 esac
11595 fi
11596 ;;
11597
11598 dgux*)
11599 case $cc_basename in
11600 ec++*)
11601 # FIXME: insert proper C++ library support
11602 ld_shlibs_CXX=no
11603 ;;
11604 ghcx*)
11605 # Green Hills C++ Compiler
11606 # FIXME: insert proper C++ library support
11607 ld_shlibs_CXX=no
11608 ;;
11609 *)
11610 # FIXME: insert proper C++ library support
11611 ld_shlibs_CXX=no
11612 ;;
11613 esac
11614 ;;
11615 freebsd[12]*)
11616 # C++ shared libraries reported to be fairly broken before switch to ELF
11617 ld_shlibs_CXX=no
11618 ;;
11619 freebsd-elf*)
11620 archive_cmds_need_lc_CXX=no
11621 ;;
11622 freebsd* | dragonfly*)
11623 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11624 # conventions
11625 ld_shlibs_CXX=yes
11626 ;;
11627 gnu*)
11628 ;;
11629 hpux9*)
11630 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11631 hardcode_libdir_separator_CXX=:
11632 export_dynamic_flag_spec_CXX='${wl}-E'
11633 hardcode_direct_CXX=yes
11634 hardcode_minus_L_CXX=yes # Not in the search PATH,
11635 # but as the default
11636 # location of the library.
11637
11638 case $cc_basename in
11639 CC*)
11640 # FIXME: insert proper C++ library support
11641 ld_shlibs_CXX=no
11642 ;;
11643 aCC*)
11644 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'
11645 # Commands to make compiler produce verbose output that lists
11646 # what "hidden" libraries, object files and flags are used when
11647 # linking a shared library.
11648 #
11649 # There doesn't appear to be a way to prevent this compiler from
11650 # explicitly linking system object files so we need to strip them
11651 # from the output so that they don't get included in the library
11652 # dependencies.
11653 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'
11654 ;;
11655 *)
11656 if test "$GXX" = yes; then
11657 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'
11658 else
11659 # FIXME: insert proper C++ library support
11660 ld_shlibs_CXX=no
11661 fi
11662 ;;
11663 esac
11664 ;;
11665 hpux10*|hpux11*)
11666 if test $with_gnu_ld = no; then
11667 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11668 hardcode_libdir_separator_CXX=:
11669
11670 case $host_cpu in
11671 hppa*64*|ia64*)
11672 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11673 ;;
11674 *)
11675 export_dynamic_flag_spec_CXX='${wl}-E'
11676 ;;
11677 esac
11678 fi
11679 case $host_cpu in
11680 hppa*64*|ia64*)
11681 hardcode_direct_CXX=no
11682 hardcode_shlibpath_var_CXX=no
11683 ;;
11684 *)
11685 hardcode_direct_CXX=yes
11686 hardcode_minus_L_CXX=yes # Not in the search PATH,
11687 # but as the default
11688 # location of the library.
11689 ;;
11690 esac
11691
11692 case $cc_basename in
11693 CC*)
11694 # FIXME: insert proper C++ library support
11695 ld_shlibs_CXX=no
11696 ;;
11697 aCC*)
11698 case $host_cpu in
11699 hppa*64*)
11700 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11701 ;;
11702 ia64*)
11703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11704 ;;
11705 *)
11706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11707 ;;
11708 esac
11709 # Commands to make compiler produce verbose output that lists
11710 # what "hidden" libraries, object files and flags are used when
11711 # linking a shared library.
11712 #
11713 # There doesn't appear to be a way to prevent this compiler from
11714 # explicitly linking system object files so we need to strip them
11715 # from the output so that they don't get included in the library
11716 # dependencies.
11717 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'
11718 ;;
11719 *)
11720 if test "$GXX" = yes; then
11721 if test $with_gnu_ld = no; then
11722 case $host_cpu in
11723 hppa*64*)
11724 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11725 ;;
11726 ia64*)
11727 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11728 ;;
11729 *)
11730 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'
11731 ;;
11732 esac
11733 fi
11734 else
11735 # FIXME: insert proper C++ library support
11736 ld_shlibs_CXX=no
11737 fi
11738 ;;
11739 esac
11740 ;;
11741 interix3*)
11742 hardcode_direct_CXX=no
11743 hardcode_shlibpath_var_CXX=no
11744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11745 export_dynamic_flag_spec_CXX='${wl}-E'
11746 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11747 # Instead, shared libraries are loaded at an image base (0x10000000 by
11748 # default) and relocated if they conflict, which is a slow very memory
11749 # consuming and fragmenting process. To avoid this, we pick a random,
11750 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11751 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11752 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'
11753 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'
11754 ;;
11755 irix5* | irix6*)
11756 case $cc_basename in
11757 CC*)
11758 # SGI C++
11759 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'
11760
11761 # Archives containing C++ object files must be created using
11762 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11763 # necessary to make sure instantiated templates are included
11764 # in the archive.
11765 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11766 ;;
11767 *)
11768 if test "$GXX" = yes; then
11769 if test "$with_gnu_ld" = no; then
11770 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'
11771 else
11772 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'
11773 fi
11774 fi
11775 link_all_deplibs_CXX=yes
11776 ;;
11777 esac
11778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11779 hardcode_libdir_separator_CXX=:
11780 ;;
11781 linux* | k*bsd*-gnu)
11782 case $cc_basename in
11783 KCC*)
11784 # Kuck and Associates, Inc. (KAI) C++ Compiler
11785
11786 # KCC will only create a shared library if the output file
11787 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11788 # to its proper name (with version) after linking.
11789 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'
11790 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'
11791 # Commands to make compiler produce verbose output that lists
11792 # what "hidden" libraries, object files and flags are used when
11793 # linking a shared library.
11794 #
11795 # There doesn't appear to be a way to prevent this compiler from
11796 # explicitly linking system object files so we need to strip them
11797 # from the output so that they don't get included in the library
11798 # dependencies.
11799 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'
11800
11801 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11803
11804 # Archives containing C++ object files must be created using
11805 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11806 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11807 ;;
11808 icpc*)
11809 # Intel C++
11810 with_gnu_ld=yes
11811 # version 8.0 and above of icpc choke on multiply defined symbols
11812 # if we add $predep_objects and $postdep_objects, however 7.1 and
11813 # earlier do not add the objects themselves.
11814 case `$CC -V 2>&1` in
11815 *"Version 7."*)
11816 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11817 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'
11818 ;;
11819 *) # Version 8.0 or newer
11820 tmp_idyn=
11821 case $host_cpu in
11822 ia64*) tmp_idyn=' -i_dynamic';;
11823 esac
11824 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11825 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'
11826 ;;
11827 esac
11828 archive_cmds_need_lc_CXX=no
11829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11831 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11832 ;;
11833 pgCC*)
11834 # Portland Group C++ compiler
11835 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11836 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'
11837
11838 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11839 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11840 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'
11841 ;;
11842 cxx*)
11843 # Compaq C++
11844 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11845 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'
11846
11847 runpath_var=LD_RUN_PATH
11848 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11849 hardcode_libdir_separator_CXX=:
11850
11851 # Commands to make compiler produce verbose output that lists
11852 # what "hidden" libraries, object files and flags are used when
11853 # linking a shared library.
11854 #
11855 # There doesn't appear to be a way to prevent this compiler from
11856 # explicitly linking system object files so we need to strip them
11857 # from the output so that they don't get included in the library
11858 # dependencies.
11859 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'
11860 ;;
11861 esac
11862 ;;
11863 lynxos*)
11864 # FIXME: insert proper C++ library support
11865 ld_shlibs_CXX=no
11866 ;;
11867 m88k*)
11868 # FIXME: insert proper C++ library support
11869 ld_shlibs_CXX=no
11870 ;;
11871 mvs*)
11872 case $cc_basename in
11873 cxx*)
11874 # FIXME: insert proper C++ library support
11875 ld_shlibs_CXX=no
11876 ;;
11877 *)
11878 # FIXME: insert proper C++ library support
11879 ld_shlibs_CXX=no
11880 ;;
11881 esac
11882 ;;
11883 netbsd* | netbsdelf*-gnu)
11884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11885 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11886 wlarc=
11887 hardcode_libdir_flag_spec_CXX='-R$libdir'
11888 hardcode_direct_CXX=yes
11889 hardcode_shlibpath_var_CXX=no
11890 fi
11891 # Workaround some broken pre-1.5 toolchains
11892 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11893 ;;
11894 openbsd2*)
11895 # C++ shared libraries are fairly broken
11896 ld_shlibs_CXX=no
11897 ;;
11898 openbsd*)
11899 hardcode_direct_CXX=yes
11900 hardcode_shlibpath_var_CXX=no
11901 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11904 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11905 export_dynamic_flag_spec_CXX='${wl}-E'
11906 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11907 fi
11908 output_verbose_link_cmd='echo'
11909 ;;
11910 osf3*)
11911 case $cc_basename in
11912 KCC*)
11913 # Kuck and Associates, Inc. (KAI) C++ Compiler
11914
11915 # KCC will only create a shared library if the output file
11916 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11917 # to its proper name (with version) after linking.
11918 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'
11919
11920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11921 hardcode_libdir_separator_CXX=:
11922
11923 # Archives containing C++ object files must be created using
11924 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11925 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11926
11927 ;;
11928 RCC*)
11929 # Rational C++ 2.4.1
11930 # FIXME: insert proper C++ library support
11931 ld_shlibs_CXX=no
11932 ;;
11933 cxx*)
11934 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11935 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'
11936
11937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11938 hardcode_libdir_separator_CXX=:
11939
11940 # Commands to make compiler produce verbose output that lists
11941 # what "hidden" libraries, object files and flags are used when
11942 # linking a shared library.
11943 #
11944 # There doesn't appear to be a way to prevent this compiler from
11945 # explicitly linking system object files so we need to strip them
11946 # from the output so that they don't get included in the library
11947 # dependencies.
11948 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'
11949 ;;
11950 *)
11951 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11952 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11953 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'
11954
11955 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11956 hardcode_libdir_separator_CXX=:
11957
11958 # Commands to make compiler produce verbose output that lists
11959 # what "hidden" libraries, object files and flags are used when
11960 # linking a shared library.
11961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11962
11963 else
11964 # FIXME: insert proper C++ library support
11965 ld_shlibs_CXX=no
11966 fi
11967 ;;
11968 esac
11969 ;;
11970 osf4* | osf5*)
11971 case $cc_basename in
11972 KCC*)
11973 # Kuck and Associates, Inc. (KAI) C++ Compiler
11974
11975 # KCC will only create a shared library if the output file
11976 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11977 # to its proper name (with version) after linking.
11978 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'
11979
11980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11981 hardcode_libdir_separator_CXX=:
11982
11983 # Archives containing C++ object files must be created using
11984 # the KAI C++ compiler.
11985 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11986 ;;
11987 RCC*)
11988 # Rational C++ 2.4.1
11989 # FIXME: insert proper C++ library support
11990 ld_shlibs_CXX=no
11991 ;;
11992 cxx*)
11993 allow_undefined_flag_CXX=' -expect_unresolved \*'
11994 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'
11995 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11996 echo "-hidden">> $lib.exp~
11997 $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~
11998 $rm $lib.exp'
11999
12000 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12001 hardcode_libdir_separator_CXX=:
12002
12003 # Commands to make compiler produce verbose output that lists
12004 # what "hidden" libraries, object files and flags are used when
12005 # linking a shared library.
12006 #
12007 # There doesn't appear to be a way to prevent this compiler from
12008 # explicitly linking system object files so we need to strip them
12009 # from the output so that they don't get included in the library
12010 # dependencies.
12011 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'
12012 ;;
12013 *)
12014 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12015 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12016 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'
12017
12018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12019 hardcode_libdir_separator_CXX=:
12020
12021 # Commands to make compiler produce verbose output that lists
12022 # what "hidden" libraries, object files and flags are used when
12023 # linking a shared library.
12024 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12025
12026 else
12027 # FIXME: insert proper C++ library support
12028 ld_shlibs_CXX=no
12029 fi
12030 ;;
12031 esac
12032 ;;
12033 psos*)
12034 # FIXME: insert proper C++ library support
12035 ld_shlibs_CXX=no
12036 ;;
12037 sunos4*)
12038 case $cc_basename in
12039 CC*)
12040 # Sun C++ 4.x
12041 # FIXME: insert proper C++ library support
12042 ld_shlibs_CXX=no
12043 ;;
12044 lcc*)
12045 # Lucid
12046 # FIXME: insert proper C++ library support
12047 ld_shlibs_CXX=no
12048 ;;
12049 *)
12050 # FIXME: insert proper C++ library support
12051 ld_shlibs_CXX=no
12052 ;;
12053 esac
12054 ;;
12055 solaris*)
12056 case $cc_basename in
12057 CC*)
12058 # Sun C++ 4.2, 5.x and Centerline C++
12059 archive_cmds_need_lc_CXX=yes
12060 no_undefined_flag_CXX=' -zdefs'
12061 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12062 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12063 $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'
12064
12065 hardcode_libdir_flag_spec_CXX='-R$libdir'
12066 hardcode_shlibpath_var_CXX=no
12067 case $host_os in
12068 solaris2.[0-5] | solaris2.[0-5].*) ;;
12069 *)
12070 # The C++ compiler is used as linker so we must use $wl
12071 # flag to pass the commands to the underlying system
12072 # linker. We must also pass each convience library through
12073 # to the system linker between allextract/defaultextract.
12074 # The C++ compiler will combine linker options so we
12075 # cannot just pass the convience library names through
12076 # without $wl.
12077 # Supported since Solaris 2.6 (maybe 2.5.1?)
12078 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12079 ;;
12080 esac
12081 link_all_deplibs_CXX=yes
12082
12083 output_verbose_link_cmd='echo'
12084
12085 # Archives containing C++ object files must be created using
12086 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12087 # necessary to make sure instantiated templates are included
12088 # in the archive.
12089 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12090 ;;
12091 gcx*)
12092 # Green Hills C++ Compiler
12093 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12094
12095 # The C++ compiler must be used to create the archive.
12096 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12097 ;;
12098 *)
12099 # GNU C++ compiler with Solaris linker
12100 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12101 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12102 if $CC --version | grep -v '^2\.7' > /dev/null; then
12103 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12104 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12105 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12106
12107 # Commands to make compiler produce verbose output that lists
12108 # what "hidden" libraries, object files and flags are used when
12109 # linking a shared library.
12110 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12111 else
12112 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12113 # platform.
12114 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12115 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12116 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12117
12118 # Commands to make compiler produce verbose output that lists
12119 # what "hidden" libraries, object files and flags are used when
12120 # linking a shared library.
12121 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12122 fi
12123
12124 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12125 fi
12126 ;;
12127 esac
12128 ;;
12129 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12130 no_undefined_flag_CXX='${wl}-z,text'
12131 archive_cmds_need_lc_CXX=no
12132 hardcode_shlibpath_var_CXX=no
12133 runpath_var='LD_RUN_PATH'
12134
12135 case $cc_basename in
12136 CC*)
12137 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12138 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12139 ;;
12140 *)
12141 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143 ;;
12144 esac
12145 ;;
12146 sysv5* | sco3.2v5* | sco5v6*)
12147 # Note: We can NOT use -z defs as we might desire, because we do not
12148 # link with -lc, and that would cause any symbols used from libc to
12149 # always be unresolved, which means just about no library would
12150 # ever link correctly. If we're not using GNU ld we use -z text
12151 # though, which does catch some bad symbols but isn't as heavy-handed
12152 # as -z defs.
12153 # For security reasons, it is highly recommended that you always
12154 # use absolute paths for naming shared libraries, and exclude the
12155 # DT_RUNPATH tag from executables and libraries. But doing so
12156 # requires that you compile everything twice, which is a pain.
12157 # So that behaviour is only enabled if SCOABSPATH is set to a
12158 # non-empty value in the environment. Most likely only useful for
12159 # creating official distributions of packages.
12160 # This is a hack until libtool officially supports absolute path
12161 # names for shared libraries.
12162 no_undefined_flag_CXX='${wl}-z,text'
12163 allow_undefined_flag_CXX='${wl}-z,nodefs'
12164 archive_cmds_need_lc_CXX=no
12165 hardcode_shlibpath_var_CXX=no
12166 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12167 hardcode_libdir_separator_CXX=':'
12168 link_all_deplibs_CXX=yes
12169 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12170 runpath_var='LD_RUN_PATH'
12171
12172 case $cc_basename in
12173 CC*)
12174 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12175 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 ;;
12177 *)
12178 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12179 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12180 ;;
12181 esac
12182 ;;
12183 tandem*)
12184 case $cc_basename in
12185 NCC*)
12186 # NonStop-UX NCC 3.20
12187 # FIXME: insert proper C++ library support
12188 ld_shlibs_CXX=no
12189 ;;
12190 *)
12191 # FIXME: insert proper C++ library support
12192 ld_shlibs_CXX=no
12193 ;;
12194 esac
12195 ;;
12196 vxworks*)
12197 # FIXME: insert proper C++ library support
12198 ld_shlibs_CXX=no
12199 ;;
12200 *)
12201 # FIXME: insert proper C++ library support
12202 ld_shlibs_CXX=no
12203 ;;
12204esac
12205{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12206echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12207test "$ld_shlibs_CXX" = no && can_build_shared=no
12208
12209GCC_CXX="$GXX"
12210LD_CXX="$LD"
12211
12212
12213cat > conftest.$ac_ext <<EOF
12214class Foo
12215{
12216public:
12217 Foo (void) { a = 0; }
12218private:
12219 int a;
12220};
12221EOF
12222
12223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224 (eval $ac_compile) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; then
12228 # Parse the compiler output and extract the necessary
12229 # objects, libraries and library flags.
12230
12231 # Sentinel used to keep track of whether or not we are before
12232 # the conftest object file.
12233 pre_test_object_deps_done=no
12234
12235 # The `*' in the case matches for architectures that use `case' in
12236 # $output_verbose_cmd can trigger glob expansion during the loop
12237 # eval without this substitution.
12238 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12239
12240 for p in `eval $output_verbose_link_cmd`; do
12241 case $p in
12242
12243 -L* | -R* | -l*)
12244 # Some compilers place space between "-{L,R}" and the path.
12245 # Remove the space.
12246 if test $p = "-L" \
12247 || test $p = "-R"; then
12248 prev=$p
12249 continue
12250 else
12251 prev=
12252 fi
12253
12254 if test "$pre_test_object_deps_done" = no; then
12255 case $p in
12256 -L* | -R*)
12257 # Internal compiler library paths should come after those
12258 # provided the user. The postdeps already come after the
12259 # user supplied libs so there is no need to process them.
12260 if test -z "$compiler_lib_search_path_CXX"; then
12261 compiler_lib_search_path_CXX="${prev}${p}"
12262 else
12263 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12264 fi
12265 ;;
12266 # The "-l" case would never come before the object being
12267 # linked, so don't bother handling this case.
12268 esac
12269 else
12270 if test -z "$postdeps_CXX"; then
12271 postdeps_CXX="${prev}${p}"
12272 else
12273 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12274 fi
12275 fi
12276 ;;
12277
12278 *.$objext)
12279 # This assumes that the test object file only shows up
12280 # once in the compiler output.
12281 if test "$p" = "conftest.$objext"; then
12282 pre_test_object_deps_done=yes
12283 continue
12284 fi
12285
12286 if test "$pre_test_object_deps_done" = no; then
12287 if test -z "$predep_objects_CXX"; then
12288 predep_objects_CXX="$p"
12289 else
12290 predep_objects_CXX="$predep_objects_CXX $p"
12291 fi
12292 else
12293 if test -z "$postdep_objects_CXX"; then
12294 postdep_objects_CXX="$p"
12295 else
12296 postdep_objects_CXX="$postdep_objects_CXX $p"
12297 fi
12298 fi
12299 ;;
12300
12301 *) ;; # Ignore the rest.
12302
12303 esac
12304 done
12305
12306 # Clean up.
12307 rm -f a.out a.exe
12308else
12309 echo "libtool.m4: error: problem compiling CXX test program"
12310fi
12311
12312$rm -f confest.$objext
12313
12314# PORTME: override above test on systems where it is broken
12315case $host_os in
12316interix3*)
12317 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12318 # hack all around it, let's just trust "g++" to DTRT.
12319 predep_objects_CXX=
12320 postdep_objects_CXX=
12321 postdeps_CXX=
12322 ;;
12323
12324solaris*)
12325 case $cc_basename in
12326 CC*)
12327 # Adding this requires a known-good setup of shared libraries for
12328 # Sun compiler versions before 5.6, else PIC objects from an old
12329 # archive will be linked into the output, leading to subtle bugs.
12330 postdeps_CXX='-lCstd -lCrun'
12331 ;;
12332 esac
12333 ;;
12334esac
12335
12336
12337case " $postdeps_CXX " in
12338*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12339esac
12340
12341lt_prog_compiler_wl_CXX=
12342lt_prog_compiler_pic_CXX=
12343lt_prog_compiler_static_CXX=
12344
12345{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12346echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12347
12348 # C++ specific cases for pic, static, wl, etc.
12349 if test "$GXX" = yes; then
12350 lt_prog_compiler_wl_CXX='-Wl,'
12351 lt_prog_compiler_static_CXX='-static'
12352
12353 case $host_os in
12354 aix*)
12355 # All AIX code is PIC.
12356 if test "$host_cpu" = ia64; then
12357 # AIX 5 now supports IA64 processor
12358 lt_prog_compiler_static_CXX='-Bstatic'
12359 fi
12360 ;;
12361 amigaos*)
12362 # FIXME: we need at least 68020 code to build shared libraries, but
12363 # adding the `-m68020' flag to GCC prevents building anything better,
12364 # like `-m68040'.
12365 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12366 ;;
12367 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12368 # PIC is the default for these OSes.
12369 ;;
12370 mingw* | os2* | pw32*)
12371 # This hack is so that the source file can tell whether it is being
12372 # built for inclusion in a dll (and should export symbols for example).
12373 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12374 ;;
12375 darwin* | rhapsody*)
12376 # PIC is the default on this platform
12377 # Common symbols not allowed in MH_DYLIB files
12378 lt_prog_compiler_pic_CXX='-fno-common'
12379 ;;
12380 *djgpp*)
12381 # DJGPP does not support shared libraries at all
12382 lt_prog_compiler_pic_CXX=
12383 ;;
12384 interix3*)
12385 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12386 # Instead, we relocate shared libraries at runtime.
12387 ;;
12388 sysv4*MP*)
12389 if test -d /usr/nec; then
12390 lt_prog_compiler_pic_CXX=-Kconform_pic
12391 fi
12392 ;;
12393 hpux*)
12394 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12395 # not for PA HP-UX.
12396 case $host_cpu in
12397 hppa*64*|ia64*)
12398 ;;
12399 *)
12400 lt_prog_compiler_pic_CXX='-fPIC'
12401 ;;
12402 esac
12403 ;;
12404 *)
12405 lt_prog_compiler_pic_CXX='-fPIC'
12406 ;;
12407 esac
12408 else
12409 case $host_os in
12410 aix4* | aix5*)
12411 # All AIX code is PIC.
12412 if test "$host_cpu" = ia64; then
12413 # AIX 5 now supports IA64 processor
12414 lt_prog_compiler_static_CXX='-Bstatic'
12415 else
12416 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12417 fi
12418 ;;
12419 chorus*)
12420 case $cc_basename in
12421 cxch68*)
12422 # Green Hills C++ Compiler
12423 # _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"
12424 ;;
12425 esac
12426 ;;
12427 darwin*)
12428 # PIC is the default on this platform
12429 # Common symbols not allowed in MH_DYLIB files
12430 case $cc_basename in
12431 xlc*)
12432 lt_prog_compiler_pic_CXX='-qnocommon'
12433 lt_prog_compiler_wl_CXX='-Wl,'
12434 ;;
12435 esac
12436 ;;
12437 dgux*)
12438 case $cc_basename in
12439 ec++*)
12440 lt_prog_compiler_pic_CXX='-KPIC'
12441 ;;
12442 ghcx*)
12443 # Green Hills C++ Compiler
12444 lt_prog_compiler_pic_CXX='-pic'
12445 ;;
12446 *)
12447 ;;
12448 esac
12449 ;;
12450 freebsd* | dragonfly*)
12451 # FreeBSD uses GNU C++
12452 ;;
12453 hpux9* | hpux10* | hpux11*)
12454 case $cc_basename in
12455 CC*)
12456 lt_prog_compiler_wl_CXX='-Wl,'
12457 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12458 if test "$host_cpu" != ia64; then
12459 lt_prog_compiler_pic_CXX='+Z'
12460 fi
12461 ;;
12462 aCC*)
12463 lt_prog_compiler_wl_CXX='-Wl,'
12464 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12465 case $host_cpu in
12466 hppa*64*|ia64*)
12467 # +Z the default
12468 ;;
12469 *)
12470 lt_prog_compiler_pic_CXX='+Z'
12471 ;;
12472 esac
12473 ;;
12474 *)
12475 ;;
12476 esac
12477 ;;
12478 interix*)
12479 # This is c89, which is MS Visual C++ (no shared libs)
12480 # Anyone wants to do a port?
12481 ;;
12482 irix5* | irix6* | nonstopux*)
12483 case $cc_basename in
12484 CC*)
12485 lt_prog_compiler_wl_CXX='-Wl,'
12486 lt_prog_compiler_static_CXX='-non_shared'
12487 # CC pic flag -KPIC is the default.
12488 ;;
12489 *)
12490 ;;
12491 esac
12492 ;;
12493 linux* | k*bsd*-gnu)
12494 case $cc_basename in
12495 KCC*)
12496 # KAI C++ Compiler
12497 lt_prog_compiler_wl_CXX='--backend -Wl,'
12498 lt_prog_compiler_pic_CXX='-fPIC'
12499 ;;
12500 icpc* | ecpc*)
12501 # Intel C++
12502 lt_prog_compiler_wl_CXX='-Wl,'
12503 lt_prog_compiler_pic_CXX='-KPIC'
12504 lt_prog_compiler_static_CXX='-static'
12505 ;;
12506 pgCC*)
12507 # Portland Group C++ compiler.
12508 lt_prog_compiler_wl_CXX='-Wl,'
12509 lt_prog_compiler_pic_CXX='-fpic'
12510 lt_prog_compiler_static_CXX='-Bstatic'
12511 ;;
12512 cxx*)
12513 # Compaq C++
12514 # Make sure the PIC flag is empty. It appears that all Alpha
12515 # Linux and Compaq Tru64 Unix objects are PIC.
12516 lt_prog_compiler_pic_CXX=
12517 lt_prog_compiler_static_CXX='-non_shared'
12518 ;;
12519 *)
12520 ;;
12521 esac
12522 ;;
12523 lynxos*)
12524 ;;
12525 m88k*)
12526 ;;
12527 mvs*)
12528 case $cc_basename in
12529 cxx*)
12530 lt_prog_compiler_pic_CXX='-W c,exportall'
12531 ;;
12532 *)
12533 ;;
12534 esac
12535 ;;
12536 netbsd* | netbsdelf*-gnu)
12537 ;;
12538 osf3* | osf4* | osf5*)
12539 case $cc_basename in
12540 KCC*)
12541 lt_prog_compiler_wl_CXX='--backend -Wl,'
12542 ;;
12543 RCC*)
12544 # Rational C++ 2.4.1
12545 lt_prog_compiler_pic_CXX='-pic'
12546 ;;
12547 cxx*)
12548 # Digital/Compaq C++
12549 lt_prog_compiler_wl_CXX='-Wl,'
12550 # Make sure the PIC flag is empty. It appears that all Alpha
12551 # Linux and Compaq Tru64 Unix objects are PIC.
12552 lt_prog_compiler_pic_CXX=
12553 lt_prog_compiler_static_CXX='-non_shared'
12554 ;;
12555 *)
12556 ;;
12557 esac
12558 ;;
12559 psos*)
12560 ;;
12561 solaris*)
12562 case $cc_basename in
12563 CC*)
12564 # Sun C++ 4.2, 5.x and Centerline C++
12565 lt_prog_compiler_pic_CXX='-KPIC'
12566 lt_prog_compiler_static_CXX='-Bstatic'
12567 lt_prog_compiler_wl_CXX='-Qoption ld '
12568 ;;
12569 gcx*)
12570 # Green Hills C++ Compiler
12571 lt_prog_compiler_pic_CXX='-PIC'
12572 ;;
12573 *)
12574 ;;
12575 esac
12576 ;;
12577 sunos4*)
12578 case $cc_basename in
12579 CC*)
12580 # Sun C++ 4.x
12581 lt_prog_compiler_pic_CXX='-pic'
12582 lt_prog_compiler_static_CXX='-Bstatic'
12583 ;;
12584 lcc*)
12585 # Lucid
12586 lt_prog_compiler_pic_CXX='-pic'
12587 ;;
12588 *)
12589 ;;
12590 esac
12591 ;;
12592 tandem*)
12593 case $cc_basename in
12594 NCC*)
12595 # NonStop-UX NCC 3.20
12596 lt_prog_compiler_pic_CXX='-KPIC'
12597 ;;
12598 *)
12599 ;;
12600 esac
12601 ;;
12602 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12603 case $cc_basename in
12604 CC*)
12605 lt_prog_compiler_wl_CXX='-Wl,'
12606 lt_prog_compiler_pic_CXX='-KPIC'
12607 lt_prog_compiler_static_CXX='-Bstatic'
12608 ;;
12609 esac
12610 ;;
12611 vxworks*)
12612 ;;
12613 *)
12614 lt_prog_compiler_can_build_shared_CXX=no
12615 ;;
12616 esac
12617 fi
12618
12619{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12620echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12621
12622#
12623# Check to make sure the PIC flag actually works.
12624#
12625if test -n "$lt_prog_compiler_pic_CXX"; then
12626
12627{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12628echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12629if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631else
12632 lt_prog_compiler_pic_works_CXX=no
12633 ac_outfile=conftest.$ac_objext
12634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12635 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12636 # Insert the option either (1) after the last *FLAGS variable, or
12637 # (2) before a word containing "conftest.", or (3) at the end.
12638 # Note that $ac_compile itself does not contain backslashes and begins
12639 # with a dollar sign (not a hyphen), so the echo should work correctly.
12640 # The option is referenced via a variable to avoid confusing sed.
12641 lt_compile=`echo "$ac_compile" | $SED \
12642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12644 -e 's:$: $lt_compiler_flag:'`
12645 (eval echo "\"\$as_me:12645: $lt_compile\"" >&5)
12646 (eval "$lt_compile" 2>conftest.err)
12647 ac_status=$?
12648 cat conftest.err >&5
12649 echo "$as_me:12649: \$? = $ac_status" >&5
12650 if (exit $ac_status) && test -s "$ac_outfile"; then
12651 # The compiler can only warn and ignore the option if not recognized
12652 # So say no if there are warnings other than the usual output.
12653 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12656 lt_prog_compiler_pic_works_CXX=yes
12657 fi
12658 fi
12659 $rm conftest*
12660
12661fi
12662{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12663echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12664
12665if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12666 case $lt_prog_compiler_pic_CXX in
12667 "" | " "*) ;;
12668 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12669 esac
12670else
12671 lt_prog_compiler_pic_CXX=
12672 lt_prog_compiler_can_build_shared_CXX=no
12673fi
12674
12675fi
12676case $host_os in
12677 # For platforms which do not support PIC, -DPIC is meaningless:
12678 *djgpp*)
12679 lt_prog_compiler_pic_CXX=
12680 ;;
12681 *)
12682 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12683 ;;
12684esac
12685
12686#
12687# Check to make sure the static flag actually works.
12688#
12689wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12690{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12691echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12692if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694else
12695 lt_prog_compiler_static_works_CXX=no
12696 save_LDFLAGS="$LDFLAGS"
12697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12698 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12700 # The linker can only warn and ignore the option if not recognized
12701 # So say no if there are warnings
12702 if test -s conftest.err; then
12703 # Append any errors to the config.log.
12704 cat conftest.err 1>&5
12705 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12707 if diff conftest.exp conftest.er2 >/dev/null; then
12708 lt_prog_compiler_static_works_CXX=yes
12709 fi
12710 else
12711 lt_prog_compiler_static_works_CXX=yes
12712 fi
12713 fi
12714 $rm conftest*
12715 LDFLAGS="$save_LDFLAGS"
12716
12717fi
12718{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12719echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12720
12721if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12722 :
12723else
12724 lt_prog_compiler_static_CXX=
12725fi
12726
12727
12728{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12729echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12730if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732else
12733 lt_cv_prog_compiler_c_o_CXX=no
12734 $rm -r conftest 2>/dev/null
12735 mkdir conftest
12736 cd conftest
12737 mkdir out
12738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12739
12740 lt_compiler_flag="-o out/conftest2.$ac_objext"
12741 # Insert the option either (1) after the last *FLAGS variable, or
12742 # (2) before a word containing "conftest.", or (3) at the end.
12743 # Note that $ac_compile itself does not contain backslashes and begins
12744 # with a dollar sign (not a hyphen), so the echo should work correctly.
12745 lt_compile=`echo "$ac_compile" | $SED \
12746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12748 -e 's:$: $lt_compiler_flag:'`
12749 (eval echo "\"\$as_me:12749: $lt_compile\"" >&5)
12750 (eval "$lt_compile" 2>out/conftest.err)
12751 ac_status=$?
12752 cat out/conftest.err >&5
12753 echo "$as_me:12753: \$? = $ac_status" >&5
12754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12755 then
12756 # The compiler can only warn and ignore the option if not recognized
12757 # So say no if there are warnings
12758 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12761 lt_cv_prog_compiler_c_o_CXX=yes
12762 fi
12763 fi
12764 chmod u+w . 2>&5
12765 $rm conftest*
12766 # SGI C++ compiler will create directory out/ii_files/ for
12767 # template instantiation
12768 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12769 $rm out/* && rmdir out
12770 cd ..
12771 rmdir conftest
12772 $rm conftest*
12773
12774fi
12775{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12776echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12777
12778
12779hard_links="nottested"
12780if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12781 # do not overwrite the value of need_locks provided by the user
12782 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12783echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12784 hard_links=yes
12785 $rm conftest*
12786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12787 touch conftest.a
12788 ln conftest.a conftest.b 2>&5 || hard_links=no
12789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12790 { echo "$as_me:$LINENO: result: $hard_links" >&5
12791echo "${ECHO_T}$hard_links" >&6; }
12792 if test "$hard_links" = no; then
12793 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12794echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12795 need_locks=warn
12796 fi
12797else
12798 need_locks=no
12799fi
12800
12801{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12802echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12803
12804 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12805 case $host_os in
12806 aix4* | aix5*)
12807 # If we're using GNU nm, then we don't want the "-C" option.
12808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12809 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12810 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'
12811 else
12812 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'
12813 fi
12814 ;;
12815 pw32*)
12816 export_symbols_cmds_CXX="$ltdll_cmds"
12817 ;;
12818 cygwin* | mingw*)
12819 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'
12820 ;;
12821 linux* | k*bsd*-gnu)
12822 link_all_deplibs_CXX=no
12823 ;;
12824 *)
12825 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12826 ;;
12827 esac
12828
12829{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12830echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12831test "$ld_shlibs_CXX" = no && can_build_shared=no
12832
12833#
12834# Do we need to explicitly link libc?
12835#
12836case "x$archive_cmds_need_lc_CXX" in
12837x|xyes)
12838 # Assume -lc should be added
12839 archive_cmds_need_lc_CXX=yes
12840
12841 if test "$enable_shared" = yes && test "$GCC" = yes; then
12842 case $archive_cmds_CXX in
12843 *'~'*)
12844 # FIXME: we may have to deal with multi-command sequences.
12845 ;;
12846 '$CC '*)
12847 # Test whether the compiler implicitly links with -lc since on some
12848 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12849 # to ld, don't add -lc before -lgcc.
12850 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12851echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12852 $rm conftest*
12853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12854
12855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12856 (eval $ac_compile) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } 2>conftest.err; then
12860 soname=conftest
12861 lib=conftest
12862 libobjs=conftest.$ac_objext
12863 deplibs=
12864 wl=$lt_prog_compiler_wl_CXX
12865 pic_flag=$lt_prog_compiler_pic_CXX
12866 compiler_flags=-v
12867 linker_flags=-v
12868 verstring=
12869 output_objdir=.
12870 libname=conftest
12871 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12872 allow_undefined_flag_CXX=
12873 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12874 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }
12878 then
12879 archive_cmds_need_lc_CXX=no
12880 else
12881 archive_cmds_need_lc_CXX=yes
12882 fi
12883 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12884 else
12885 cat conftest.err 1>&5
12886 fi
12887 $rm conftest*
12888 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12889echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12890 ;;
12891 esac
12892 fi
12893 ;;
12894esac
12895
12896{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12897echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12898library_names_spec=
12899libname_spec='lib$name'
12900soname_spec=
12901shrext_cmds=".so"
12902postinstall_cmds=
12903postuninstall_cmds=
12904finish_cmds=
12905finish_eval=
12906shlibpath_var=
12907shlibpath_overrides_runpath=unknown
12908version_type=none
12909dynamic_linker="$host_os ld.so"
12910sys_lib_dlsearch_path_spec="/lib /usr/lib"
12911if test "$GCC" = yes; then
12912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12913 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12914 # if the path contains ";" then we assume it to be the separator
12915 # otherwise default to the standard path separator (i.e. ":") - it is
12916 # assumed that no part of a normal pathname contains ";" but that should
12917 # okay in the real world where ";" in dirpaths is itself problematic.
12918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12919 else
12920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12921 fi
12922else
12923 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12924fi
12925need_lib_prefix=unknown
12926hardcode_into_libs=no
12927
12928# when you set need_version to no, make sure it does not cause -set_version
12929# flags to be left without arguments
12930need_version=unknown
12931
12932case $host_os in
12933aix3*)
12934 version_type=linux
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12936 shlibpath_var=LIBPATH
12937
12938 # AIX 3 has no versioning support, so we append a major version to the name.
12939 soname_spec='${libname}${release}${shared_ext}$major'
12940 ;;
12941
12942aix4* | aix5*)
12943 version_type=linux
12944 need_lib_prefix=no
12945 need_version=no
12946 hardcode_into_libs=yes
12947 if test "$host_cpu" = ia64; then
12948 # AIX 5 supports IA64
12949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12950 shlibpath_var=LD_LIBRARY_PATH
12951 else
12952 # With GCC up to 2.95.x, collect2 would create an import file
12953 # for dependence libraries. The import file would start with
12954 # the line `#! .'. This would cause the generated library to
12955 # depend on `.', always an invalid library. This was fixed in
12956 # development snapshots of GCC prior to 3.0.
12957 case $host_os in
12958 aix4 | aix4.[01] | aix4.[01].*)
12959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12960 echo ' yes '
12961 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12962 :
12963 else
12964 can_build_shared=no
12965 fi
12966 ;;
12967 esac
12968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12969 # soname into executable. Probably we can add versioning support to
12970 # collect2, so additional links can be useful in future.
12971 if test "$aix_use_runtimelinking" = yes; then
12972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12973 # instead of lib<name>.a to let people know that these are not
12974 # typical AIX shared libraries.
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 else
12977 # We preserve .a as extension for shared libraries through AIX4.2
12978 # and later when we are not doing run time linking.
12979 library_names_spec='${libname}${release}.a $libname.a'
12980 soname_spec='${libname}${release}${shared_ext}$major'
12981 fi
12982 shlibpath_var=LIBPATH
12983 fi
12984 ;;
12985
12986amigaos*)
12987 library_names_spec='$libname.ixlibrary $libname.a'
12988 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12989 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'
12990 ;;
12991
12992beos*)
12993 library_names_spec='${libname}${shared_ext}'
12994 dynamic_linker="$host_os ld.so"
12995 shlibpath_var=LIBRARY_PATH
12996 ;;
12997
12998bsdi[45]*)
12999 version_type=linux
13000 need_version=no
13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13002 soname_spec='${libname}${release}${shared_ext}$major'
13003 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13006 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13007 # the default ld.so.conf also contains /usr/contrib/lib and
13008 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13009 # libtool to hard-code these into programs
13010 ;;
13011
13012cygwin* | mingw* | pw32*)
13013 version_type=windows
13014 shrext_cmds=".dll"
13015 need_version=no
13016 need_lib_prefix=no
13017
13018 case $GCC,$host_os in
13019 yes,cygwin* | yes,mingw* | yes,pw32*)
13020 library_names_spec='$libname.dll.a'
13021 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13022 postinstall_cmds='base_file=`basename \${file}`~
13023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13024 dldir=$destdir/`dirname \$dlpath`~
13025 test -d \$dldir || mkdir -p \$dldir~
13026 $install_prog $dir/$dlname \$dldir/$dlname~
13027 chmod a+x \$dldir/$dlname'
13028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13029 dlpath=$dir/\$dldll~
13030 $rm \$dlpath'
13031 shlibpath_overrides_runpath=yes
13032
13033 case $host_os in
13034 cygwin*)
13035 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13037 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13038 ;;
13039 mingw*)
13040 # MinGW DLLs use traditional 'lib' prefix
13041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13043 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13044 # It is most probably a Windows format PATH printed by
13045 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13046 # path with ; separators, and with drive letters. We can handle the
13047 # drive letters (cygwin fileutils understands them), so leave them,
13048 # especially as we might pass files found there to a mingw objdump,
13049 # which wouldn't understand a cygwinified path. Ahh.
13050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13051 else
13052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13053 fi
13054 ;;
13055 pw32*)
13056 # pw32 DLLs use 'pw' prefix rather than 'lib'
13057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13058 ;;
13059 esac
13060 ;;
13061
13062 *)
13063 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13064 ;;
13065 esac
13066 dynamic_linker='Win32 ld.exe'
13067 # FIXME: first we should search . and the directory the executable is in
13068 shlibpath_var=PATH
13069 ;;
13070
13071darwin* | rhapsody*)
13072 dynamic_linker="$host_os dyld"
13073 version_type=darwin
13074 need_lib_prefix=no
13075 need_version=no
13076 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13077 soname_spec='${libname}${release}${major}$shared_ext'
13078 shlibpath_overrides_runpath=yes
13079 shlibpath_var=DYLD_LIBRARY_PATH
13080 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13081 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13082 if test "$GCC" = yes; then
13083 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13084 else
13085 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13086 fi
13087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13088 ;;
13089
13090dgux*)
13091 version_type=linux
13092 need_lib_prefix=no
13093 need_version=no
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13095 soname_spec='${libname}${release}${shared_ext}$major'
13096 shlibpath_var=LD_LIBRARY_PATH
13097 ;;
13098
13099freebsd1*)
13100 dynamic_linker=no
13101 ;;
13102
13103freebsd* | dragonfly*)
13104 # DragonFly does not have aout. When/if they implement a new
13105 # versioning mechanism, adjust this.
13106 if test -x /usr/bin/objformat; then
13107 objformat=`/usr/bin/objformat`
13108 else
13109 case $host_os in
13110 freebsd[123]*) objformat=aout ;;
13111 *) objformat=elf ;;
13112 esac
13113 fi
13114 version_type=freebsd-$objformat
13115 case $version_type in
13116 freebsd-elf*)
13117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13118 need_version=no
13119 need_lib_prefix=no
13120 ;;
13121 freebsd-*)
13122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13123 need_version=yes
13124 ;;
13125 esac
13126 shlibpath_var=LD_LIBRARY_PATH
13127 case $host_os in
13128 freebsd2*)
13129 shlibpath_overrides_runpath=yes
13130 ;;
13131 freebsd3.[01]* | freebsdelf3.[01]*)
13132 shlibpath_overrides_runpath=yes
13133 hardcode_into_libs=yes
13134 ;;
13135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13137 shlibpath_overrides_runpath=no
13138 hardcode_into_libs=yes
13139 ;;
13140 freebsd*) # from 4.6 on
13141 shlibpath_overrides_runpath=yes
13142 hardcode_into_libs=yes
13143 ;;
13144 esac
13145 ;;
13146
13147gnu*)
13148 version_type=linux
13149 need_lib_prefix=no
13150 need_version=no
13151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13152 soname_spec='${libname}${release}${shared_ext}$major'
13153 shlibpath_var=LD_LIBRARY_PATH
13154 hardcode_into_libs=yes
13155 ;;
13156
13157hpux9* | hpux10* | hpux11*)
13158 # Give a soname corresponding to the major version so that dld.sl refuses to
13159 # link against other versions.
13160 version_type=sunos
13161 need_lib_prefix=no
13162 need_version=no
13163 case $host_cpu in
13164 ia64*)
13165 shrext_cmds='.so'
13166 hardcode_into_libs=yes
13167 dynamic_linker="$host_os dld.so"
13168 shlibpath_var=LD_LIBRARY_PATH
13169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13171 soname_spec='${libname}${release}${shared_ext}$major'
13172 if test "X$HPUX_IA64_MODE" = X32; then
13173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13174 else
13175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13176 fi
13177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13178 ;;
13179 hppa*64*)
13180 shrext_cmds='.sl'
13181 hardcode_into_libs=yes
13182 dynamic_linker="$host_os dld.sl"
13183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13189 ;;
13190 *)
13191 shrext_cmds='.sl'
13192 dynamic_linker="$host_os dld.sl"
13193 shlibpath_var=SHLIB_PATH
13194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 ;;
13198 esac
13199 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13200 postinstall_cmds='chmod 555 $lib'
13201 ;;
13202
13203interix3*)
13204 version_type=linux
13205 need_lib_prefix=no
13206 need_version=no
13207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13208 soname_spec='${libname}${release}${shared_ext}$major'
13209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13210 shlibpath_var=LD_LIBRARY_PATH
13211 shlibpath_overrides_runpath=no
13212 hardcode_into_libs=yes
13213 ;;
13214
13215irix5* | irix6* | nonstopux*)
13216 case $host_os in
13217 nonstopux*) version_type=nonstopux ;;
13218 *)
13219 if test "$lt_cv_prog_gnu_ld" = yes; then
13220 version_type=linux
13221 else
13222 version_type=irix
13223 fi ;;
13224 esac
13225 need_lib_prefix=no
13226 need_version=no
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13229 case $host_os in
13230 irix5* | nonstopux*)
13231 libsuff= shlibsuff=
13232 ;;
13233 *)
13234 case $LD in # libtool.m4 will add one of these switches to LD
13235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13236 libsuff= shlibsuff= libmagic=32-bit;;
13237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13238 libsuff=32 shlibsuff=N32 libmagic=N32;;
13239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13240 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13241 *) libsuff= shlibsuff= libmagic=never-match;;
13242 esac
13243 ;;
13244 esac
13245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13246 shlibpath_overrides_runpath=no
13247 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13248 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13249 hardcode_into_libs=yes
13250 ;;
13251
13252# No shared lib support for Linux oldld, aout, or coff.
13253linux*oldld* | linux*aout* | linux*coff*)
13254 dynamic_linker=no
13255 ;;
13256
13257# This must be Linux ELF.
13258linux* | k*bsd*-gnu)
13259 version_type=linux
13260 need_lib_prefix=no
13261 need_version=no
13262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13263 soname_spec='${libname}${release}${shared_ext}$major'
13264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13265 shlibpath_var=LD_LIBRARY_PATH
13266 shlibpath_overrides_runpath=no
13267 # This implies no fast_install, which is unacceptable.
13268 # Some rework will be needed to allow for fast_install
13269 # before this can be enabled.
13270 hardcode_into_libs=yes
13271
13272 # Append ld.so.conf contents to the search path
13273 if test -f /etc/ld.so.conf; then
13274 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13275 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13276 fi
13277
13278 # We used to test for /lib/ld.so.1 and disable shared libraries on
13279 # powerpc, because MkLinux only supported shared libraries with the
13280 # GNU dynamic linker. Since this was broken with cross compilers,
13281 # most powerpc-linux boxes support dynamic linking these days and
13282 # people can always --disable-shared, the test was removed, and we
13283 # assume the GNU/Linux dynamic linker is in use.
13284 dynamic_linker='GNU/Linux ld.so'
13285 ;;
13286
13287netbsdelf*-gnu)
13288 version_type=linux
13289 need_lib_prefix=no
13290 need_version=no
13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13292 soname_spec='${libname}${release}${shared_ext}$major'
13293 shlibpath_var=LD_LIBRARY_PATH
13294 shlibpath_overrides_runpath=no
13295 hardcode_into_libs=yes
13296 dynamic_linker='NetBSD ld.elf_so'
13297 ;;
13298
13299netbsd*)
13300 version_type=sunos
13301 need_lib_prefix=no
13302 need_version=no
13303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13306 dynamic_linker='NetBSD (a.out) ld.so'
13307 else
13308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13309 soname_spec='${libname}${release}${shared_ext}$major'
13310 dynamic_linker='NetBSD ld.elf_so'
13311 fi
13312 shlibpath_var=LD_LIBRARY_PATH
13313 shlibpath_overrides_runpath=yes
13314 hardcode_into_libs=yes
13315 ;;
13316
13317newsos6)
13318 version_type=linux
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320 shlibpath_var=LD_LIBRARY_PATH
13321 shlibpath_overrides_runpath=yes
13322 ;;
13323
13324nto-qnx*)
13325 version_type=linux
13326 need_lib_prefix=no
13327 need_version=no
13328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13329 soname_spec='${libname}${release}${shared_ext}$major'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 shlibpath_overrides_runpath=yes
13332 ;;
13333
13334openbsd*)
13335 version_type=sunos
13336 sys_lib_dlsearch_path_spec="/usr/lib"
13337 need_lib_prefix=no
13338 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13339 case $host_os in
13340 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13341 *) need_version=no ;;
13342 esac
13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13345 shlibpath_var=LD_LIBRARY_PATH
13346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13347 case $host_os in
13348 openbsd2.[89] | openbsd2.[89].*)
13349 shlibpath_overrides_runpath=no
13350 ;;
13351 *)
13352 shlibpath_overrides_runpath=yes
13353 ;;
13354 esac
13355 else
13356 shlibpath_overrides_runpath=yes
13357 fi
13358 ;;
13359
13360os2*)
13361 libname_spec='$name'
13362 shrext_cmds=".dll"
13363 need_lib_prefix=no
13364 library_names_spec='$libname${shared_ext} $libname.a'
13365 dynamic_linker='OS/2 ld.exe'
13366 shlibpath_var=LIBPATH
13367 ;;
13368
13369osf3* | osf4* | osf5*)
13370 version_type=osf
13371 need_lib_prefix=no
13372 need_version=no
13373 soname_spec='${libname}${release}${shared_ext}$major'
13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13375 shlibpath_var=LD_LIBRARY_PATH
13376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13378 ;;
13379
13380solaris*)
13381 version_type=linux
13382 need_lib_prefix=no
13383 need_version=no
13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13385 soname_spec='${libname}${release}${shared_ext}$major'
13386 shlibpath_var=LD_LIBRARY_PATH
13387 shlibpath_overrides_runpath=yes
13388 hardcode_into_libs=yes
13389 # ldd complains unless libraries are executable
13390 postinstall_cmds='chmod +x $lib'
13391 ;;
13392
13393sunos4*)
13394 version_type=sunos
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 shlibpath_overrides_runpath=yes
13399 if test "$with_gnu_ld" = yes; then
13400 need_lib_prefix=no
13401 fi
13402 need_version=yes
13403 ;;
13404
13405sysv4 | sysv4.3*)
13406 version_type=linux
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408 soname_spec='${libname}${release}${shared_ext}$major'
13409 shlibpath_var=LD_LIBRARY_PATH
13410 case $host_vendor in
13411 sni)
13412 shlibpath_overrides_runpath=no
13413 need_lib_prefix=no
13414 export_dynamic_flag_spec='${wl}-Blargedynsym'
13415 runpath_var=LD_RUN_PATH
13416 ;;
13417 siemens)
13418 need_lib_prefix=no
13419 ;;
13420 motorola)
13421 need_lib_prefix=no
13422 need_version=no
13423 shlibpath_overrides_runpath=no
13424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13425 ;;
13426 esac
13427 ;;
13428
13429sysv4*MP*)
13430 if test -d /usr/nec ;then
13431 version_type=linux
13432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13433 soname_spec='$libname${shared_ext}.$major'
13434 shlibpath_var=LD_LIBRARY_PATH
13435 fi
13436 ;;
13437
13438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13439 version_type=freebsd-elf
13440 need_lib_prefix=no
13441 need_version=no
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13443 soname_spec='${libname}${release}${shared_ext}$major'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 hardcode_into_libs=yes
13446 if test "$with_gnu_ld" = yes; then
13447 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13448 shlibpath_overrides_runpath=no
13449 else
13450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13451 shlibpath_overrides_runpath=yes
13452 case $host_os in
13453 sco3.2v5*)
13454 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13455 ;;
13456 esac
13457 fi
13458 sys_lib_dlsearch_path_spec='/usr/lib'
13459 ;;
13460
13461uts4*)
13462 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
13466 ;;
13467
13468*)
13469 dynamic_linker=no
13470 ;;
13471esac
13472{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13473echo "${ECHO_T}$dynamic_linker" >&6; }
13474test "$dynamic_linker" = no && can_build_shared=no
13475
13476variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13477if test "$GCC" = yes; then
13478 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13479fi
13480
13481{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13482echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13483hardcode_action_CXX=
13484if test -n "$hardcode_libdir_flag_spec_CXX" || \
13485 test -n "$runpath_var_CXX" || \
13486 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13487
13488 # We can hardcode non-existant directories.
13489 if test "$hardcode_direct_CXX" != no &&
13490 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13491 # have to relink, otherwise we might link with an installed library
13492 # when we should be linking with a yet-to-be-installed one
13493 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13494 test "$hardcode_minus_L_CXX" != no; then
13495 # Linking always hardcodes the temporary library directory.
13496 hardcode_action_CXX=relink
13497 else
13498 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13499 hardcode_action_CXX=immediate
13500 fi
13501else
13502 # We cannot hardcode anything, or else we can only hardcode existing
13503 # directories.
13504 hardcode_action_CXX=unsupported
13505fi
13506{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13507echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13508
13509if test "$hardcode_action_CXX" = relink; then
13510 # Fast installation is not supported
13511 enable_fast_install=no
13512elif test "$shlibpath_overrides_runpath" = yes ||
13513 test "$enable_shared" = no; then
13514 # Fast installation is not necessary
13515 enable_fast_install=needless
13516fi
13517
13518
13519# The else clause should only fire when bootstrapping the
13520# libtool distribution, otherwise you forgot to ship ltmain.sh
13521# with your package, and you will get complaints that there are
13522# no rules to generate ltmain.sh.
13523if test -f "$ltmain"; then
13524 # See if we are running on zsh, and set the options which allow our commands through
13525 # without removal of \ escapes.
13526 if test -n "${ZSH_VERSION+set}" ; then
13527 setopt NO_GLOB_SUBST
13528 fi
13529 # Now quote all the things that may contain metacharacters while being
13530 # careful not to overquote the AC_SUBSTed values. We take copies of the
13531 # variables and quote the copies for generation of the libtool script.
13532 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13533 SED SHELL STRIP \
13534 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13535 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13536 deplibs_check_method reload_flag reload_cmds need_locks \
13537 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13538 lt_cv_sys_global_symbol_to_c_name_address \
13539 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13540 old_postinstall_cmds old_postuninstall_cmds \
13541 compiler_CXX \
13542 CC_CXX \
13543 LD_CXX \
13544 lt_prog_compiler_wl_CXX \
13545 lt_prog_compiler_pic_CXX \
13546 lt_prog_compiler_static_CXX \
13547 lt_prog_compiler_no_builtin_flag_CXX \
13548 export_dynamic_flag_spec_CXX \
13549 thread_safe_flag_spec_CXX \
13550 whole_archive_flag_spec_CXX \
13551 enable_shared_with_static_runtimes_CXX \
13552 old_archive_cmds_CXX \
13553 old_archive_from_new_cmds_CXX \
13554 predep_objects_CXX \
13555 postdep_objects_CXX \
13556 predeps_CXX \
13557 postdeps_CXX \
13558 compiler_lib_search_path_CXX \
13559 archive_cmds_CXX \
13560 archive_expsym_cmds_CXX \
13561 postinstall_cmds_CXX \
13562 postuninstall_cmds_CXX \
13563 old_archive_from_expsyms_cmds_CXX \
13564 allow_undefined_flag_CXX \
13565 no_undefined_flag_CXX \
13566 export_symbols_cmds_CXX \
13567 hardcode_libdir_flag_spec_CXX \
13568 hardcode_libdir_flag_spec_ld_CXX \
13569 hardcode_libdir_separator_CXX \
13570 hardcode_automatic_CXX \
13571 module_cmds_CXX \
13572 module_expsym_cmds_CXX \
13573 lt_cv_prog_compiler_c_o_CXX \
13574 exclude_expsyms_CXX \
13575 include_expsyms_CXX; do
13576
13577 case $var in
13578 old_archive_cmds_CXX | \
13579 old_archive_from_new_cmds_CXX | \
13580 archive_cmds_CXX | \
13581 archive_expsym_cmds_CXX | \
13582 module_cmds_CXX | \
13583 module_expsym_cmds_CXX | \
13584 old_archive_from_expsyms_cmds_CXX | \
13585 export_symbols_cmds_CXX | \
13586 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13587 postinstall_cmds | postuninstall_cmds | \
13588 old_postinstall_cmds | old_postuninstall_cmds | \
13589 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13590 # Double-quote double-evaled strings.
13591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13592 ;;
13593 *)
13594 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13595 ;;
13596 esac
13597 done
13598
13599 case $lt_echo in
13600 *'\$0 --fallback-echo"')
13601 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13602 ;;
13603 esac
13604
13605cfgfile="$ofile"
13606
13607 cat <<__EOF__ >> "$cfgfile"
13608# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13609
13610# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13611
13612# Shell to use when invoking shell scripts.
13613SHELL=$lt_SHELL
13614
13615# Whether or not to build shared libraries.
13616build_libtool_libs=$enable_shared
13617
13618# Whether or not to build static libraries.
13619build_old_libs=$enable_static
13620
13621# Whether or not to add -lc for building shared libraries.
13622build_libtool_need_lc=$archive_cmds_need_lc_CXX
13623
13624# Whether or not to disallow shared libs when runtime libs are static
13625allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13626
13627# Whether or not to optimize for fast installation.
13628fast_install=$enable_fast_install
13629
13630# The host system.
13631host_alias=$host_alias
13632host=$host
13633host_os=$host_os
13634
13635# The build system.
13636build_alias=$build_alias
13637build=$build
13638build_os=$build_os
13639
13640# An echo program that does not interpret backslashes.
13641echo=$lt_echo
13642
13643# The archiver.
13644AR=$lt_AR
13645AR_FLAGS=$lt_AR_FLAGS
13646
13647# A C compiler.
13648LTCC=$lt_LTCC
13649
13650# LTCC compiler flags.
13651LTCFLAGS=$lt_LTCFLAGS
13652
13653# A language-specific compiler.
13654CC=$lt_compiler_CXX
13655
13656# Is the compiler the GNU C compiler?
13657with_gcc=$GCC_CXX
13658
13659# An ERE matcher.
13660EGREP=$lt_EGREP
13661
13662# The linker used to build libraries.
13663LD=$lt_LD_CXX
13664
13665# Whether we need hard or soft links.
13666LN_S=$lt_LN_S
13667
13668# A BSD-compatible nm program.
13669NM=$lt_NM
13670
13671# A symbol stripping program
13672STRIP=$lt_STRIP
13673
13674# Used to examine libraries when file_magic_cmd begins "file"
13675MAGIC_CMD=$MAGIC_CMD
13676
13677# Used on cygwin: DLL creation program.
13678DLLTOOL="$DLLTOOL"
13679
13680# Used on cygwin: object dumper.
13681OBJDUMP="$OBJDUMP"
13682
13683# Used on cygwin: assembler.
13684AS="$AS"
13685
13686# The name of the directory that contains temporary libtool files.
13687objdir=$objdir
13688
13689# How to create reloadable object files.
13690reload_flag=$lt_reload_flag
13691reload_cmds=$lt_reload_cmds
13692
13693# How to pass a linker flag through the compiler.
13694wl=$lt_lt_prog_compiler_wl_CXX
13695
13696# Object file suffix (normally "o").
13697objext="$ac_objext"
13698
13699# Old archive suffix (normally "a").
13700libext="$libext"
13701
13702# Shared library suffix (normally ".so").
13703shrext_cmds='$shrext_cmds'
13704
13705# Executable file suffix (normally "").
13706exeext="$exeext"
13707
13708# Additional compiler flags for building library objects.
13709pic_flag=$lt_lt_prog_compiler_pic_CXX
13710pic_mode=$pic_mode
13711
13712# What is the maximum length of a command?
13713max_cmd_len=$lt_cv_sys_max_cmd_len
13714
13715# Does compiler simultaneously support -c and -o options?
13716compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13717
13718# Must we lock files when doing compilation?
13719need_locks=$lt_need_locks
13720
13721# Do we need the lib prefix for modules?
13722need_lib_prefix=$need_lib_prefix
13723
13724# Do we need a version for libraries?
13725need_version=$need_version
13726
13727# Whether dlopen is supported.
13728dlopen_support=$enable_dlopen
13729
13730# Whether dlopen of programs is supported.
13731dlopen_self=$enable_dlopen_self
13732
13733# Whether dlopen of statically linked programs is supported.
13734dlopen_self_static=$enable_dlopen_self_static
13735
13736# Compiler flag to prevent dynamic linking.
13737link_static_flag=$lt_lt_prog_compiler_static_CXX
13738
13739# Compiler flag to turn off builtin functions.
13740no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13741
13742# Compiler flag to allow reflexive dlopens.
13743export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13744
13745# Compiler flag to generate shared objects directly from archives.
13746whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13747
13748# Compiler flag to generate thread-safe objects.
13749thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13750
13751# Library versioning type.
13752version_type=$version_type
13753
13754# Format of library name prefix.
13755libname_spec=$lt_libname_spec
13756
13757# List of archive names. First name is the real one, the rest are links.
13758# The last name is the one that the linker finds with -lNAME.
13759library_names_spec=$lt_library_names_spec
13760
13761# The coded name of the library, if different from the real name.
13762soname_spec=$lt_soname_spec
13763
13764# Commands used to build and install an old-style archive.
13765RANLIB=$lt_RANLIB
13766old_archive_cmds=$lt_old_archive_cmds_CXX
13767old_postinstall_cmds=$lt_old_postinstall_cmds
13768old_postuninstall_cmds=$lt_old_postuninstall_cmds
13769
13770# Create an old-style archive from a shared archive.
13771old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13772
13773# Create a temporary old-style archive to link instead of a shared archive.
13774old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13775
13776# Commands used to build and install a shared archive.
13777archive_cmds=$lt_archive_cmds_CXX
13778archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13779postinstall_cmds=$lt_postinstall_cmds
13780postuninstall_cmds=$lt_postuninstall_cmds
13781
13782# Commands used to build a loadable module (assumed same as above if empty)
13783module_cmds=$lt_module_cmds_CXX
13784module_expsym_cmds=$lt_module_expsym_cmds_CXX
13785
13786# Commands to strip libraries.
13787old_striplib=$lt_old_striplib
13788striplib=$lt_striplib
13789
13790# Dependencies to place before the objects being linked to create a
13791# shared library.
13792predep_objects=$lt_predep_objects_CXX
13793
13794# Dependencies to place after the objects being linked to create a
13795# shared library.
13796postdep_objects=$lt_postdep_objects_CXX
13797
13798# Dependencies to place before the objects being linked to create a
13799# shared library.
13800predeps=$lt_predeps_CXX
13801
13802# Dependencies to place after the objects being linked to create a
13803# shared library.
13804postdeps=$lt_postdeps_CXX
13805
13806# The library search path used internally by the compiler when linking
13807# a shared library.
13808compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13809
13810# Method to check whether dependent libraries are shared objects.
13811deplibs_check_method=$lt_deplibs_check_method
13812
13813# Command to use when deplibs_check_method == file_magic.
13814file_magic_cmd=$lt_file_magic_cmd
13815
13816# Flag that allows shared libraries with undefined symbols to be built.
13817allow_undefined_flag=$lt_allow_undefined_flag_CXX
13818
13819# Flag that forces no undefined symbols.
13820no_undefined_flag=$lt_no_undefined_flag_CXX
13821
13822# Commands used to finish a libtool library installation in a directory.
13823finish_cmds=$lt_finish_cmds
13824
13825# Same as above, but a single script fragment to be evaled but not shown.
13826finish_eval=$lt_finish_eval
13827
13828# Take the output of nm and produce a listing of raw symbols and C names.
13829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13830
13831# Transform the output of nm in a proper C declaration
13832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13833
13834# Transform the output of nm in a C name address pair
13835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13836
13837# This is the shared library runtime path variable.
13838runpath_var=$runpath_var
13839
13840# This is the shared library path variable.
13841shlibpath_var=$shlibpath_var
13842
13843# Is shlibpath searched before the hard-coded library search path?
13844shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13845
13846# How to hardcode a shared library path into an executable.
13847hardcode_action=$hardcode_action_CXX
13848
13849# Whether we should hardcode library paths into libraries.
13850hardcode_into_libs=$hardcode_into_libs
13851
13852# Flag to hardcode \$libdir into a binary during linking.
13853# This must work even if \$libdir does not exist.
13854hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13855
13856# If ld is used when linking, flag to hardcode \$libdir into
13857# a binary during linking. This must work even if \$libdir does
13858# not exist.
13859hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13860
13861# Whether we need a single -rpath flag with a separated argument.
13862hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13863
13864# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13865# resulting binary.
13866hardcode_direct=$hardcode_direct_CXX
13867
13868# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13869# resulting binary.
13870hardcode_minus_L=$hardcode_minus_L_CXX
13871
13872# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13873# the resulting binary.
13874hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13875
13876# Set to yes if building a shared library automatically hardcodes DIR into the library
13877# and all subsequent libraries and executables linked against it.
13878hardcode_automatic=$hardcode_automatic_CXX
13879
13880# Variables whose values should be saved in libtool wrapper scripts and
13881# restored at relink time.
13882variables_saved_for_relink="$variables_saved_for_relink"
13883
13884# Whether libtool must link a program against all its dependency libraries.
13885link_all_deplibs=$link_all_deplibs_CXX
13886
13887# Compile-time system search path for libraries
13888sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13889
13890# Run-time system search path for libraries
13891sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13892
13893# Fix the shell variable \$srcfile for the compiler.
13894fix_srcfile_path="$fix_srcfile_path_CXX"
13895
13896# Set to yes if exported symbols are required.
13897always_export_symbols=$always_export_symbols_CXX
13898
13899# The commands to list exported symbols.
13900export_symbols_cmds=$lt_export_symbols_cmds_CXX
13901
13902# The commands to extract the exported symbol list from a shared archive.
13903extract_expsyms_cmds=$lt_extract_expsyms_cmds
13904
13905# Symbols that should not be listed in the preloaded symbols.
13906exclude_expsyms=$lt_exclude_expsyms_CXX
13907
13908# Symbols that must always be exported.
13909include_expsyms=$lt_include_expsyms_CXX
13910
13911# ### END LIBTOOL TAG CONFIG: $tagname
13912
13913__EOF__
13914
13915
13916else
13917 # If there is no Makefile yet, we rely on a make rule to execute
13918 # `config.status --recheck' to rerun these tests and create the
13919 # libtool script then.
13920 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13921 if test -f "$ltmain_in"; then
13922 test -f Makefile && make "$ltmain"
13923 fi
13924fi
13925
13926
13927ac_ext=c
13928ac_cpp='$CPP $CPPFLAGS'
13929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931ac_compiler_gnu=$ac_cv_c_compiler_gnu
13932
13933CC=$lt_save_CC
13934LDCXX=$LD
13935LD=$lt_save_LD
13936GCC=$lt_save_GCC
13937with_gnu_ldcxx=$with_gnu_ld
13938with_gnu_ld=$lt_save_with_gnu_ld
13939lt_cv_path_LDCXX=$lt_cv_path_LD
13940lt_cv_path_LD=$lt_save_path_LD
13941lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13942lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13943
13944 else
13945 tagname=""
13946 fi
13947 ;;
13948
13949 F77)
13950 if test -n "$F77" && test "X$F77" != "Xno"; then
13951
13952ac_ext=f
13953ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13954ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13955ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13956
13957
13958archive_cmds_need_lc_F77=no
13959allow_undefined_flag_F77=
13960always_export_symbols_F77=no
13961archive_expsym_cmds_F77=
13962export_dynamic_flag_spec_F77=
13963hardcode_direct_F77=no
13964hardcode_libdir_flag_spec_F77=
13965hardcode_libdir_flag_spec_ld_F77=
13966hardcode_libdir_separator_F77=
13967hardcode_minus_L_F77=no
13968hardcode_automatic_F77=no
13969module_cmds_F77=
13970module_expsym_cmds_F77=
13971link_all_deplibs_F77=unknown
13972old_archive_cmds_F77=$old_archive_cmds
13973no_undefined_flag_F77=
13974whole_archive_flag_spec_F77=
13975enable_shared_with_static_runtimes_F77=no
13976
13977# Source file extension for f77 test sources.
13978ac_ext=f
13979
13980# Object file extension for compiled f77 test sources.
13981objext=o
13982objext_F77=$objext
13983
13984# Code to be used in simple compile tests
13985lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13986
13987# Code to be used in simple link tests
13988lt_simple_link_test_code=" program t\n end\n"
13989
13990# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13991
13992# If no C compiler was specified, use CC.
13993LTCC=${LTCC-"$CC"}
13994
13995# If no C compiler flags were specified, use CFLAGS.
13996LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13997
13998# Allow CC to be a program name with arguments.
13999compiler=$CC
14000
14001
14002# save warnings/boilerplate of simple test code
14003ac_outfile=conftest.$ac_objext
14004printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14005eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14006_lt_compiler_boilerplate=`cat conftest.err`
14007$rm conftest*
14008
14009ac_outfile=conftest.$ac_objext
14010printf "$lt_simple_link_test_code" >conftest.$ac_ext
14011eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14012_lt_linker_boilerplate=`cat conftest.err`
14013$rm conftest*
14014
14015
14016# Allow CC to be a program name with arguments.
14017lt_save_CC="$CC"
14018CC=${F77-"f77"}
14019compiler=$CC
14020compiler_F77=$CC
14021for cc_temp in $compiler""; do
14022 case $cc_temp in
14023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14025 \-*) ;;
14026 *) break;;
14027 esac
14028done
14029cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14030
14031
14032{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14033echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14034{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14035echo "${ECHO_T}$can_build_shared" >&6; }
14036
14037{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14038echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14039test "$can_build_shared" = "no" && enable_shared=no
14040
14041# On AIX, shared libraries and static libraries use the same namespace, and
14042# are all built from PIC.
14043case $host_os in
14044aix3*)
14045 test "$enable_shared" = yes && enable_static=no
14046 if test -n "$RANLIB"; then
14047 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14048 postinstall_cmds='$RANLIB $lib'
14049 fi
14050 ;;
14051aix4* | aix5*)
14052 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14053 test "$enable_shared" = yes && enable_static=no
14054 fi
14055 ;;
14056esac
14057{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14058echo "${ECHO_T}$enable_shared" >&6; }
14059
14060{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14061echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14062# Make sure either enable_shared or enable_static is yes.
14063test "$enable_shared" = yes || enable_static=yes
14064{ echo "$as_me:$LINENO: result: $enable_static" >&5
14065echo "${ECHO_T}$enable_static" >&6; }
14066
14067GCC_F77="$G77"
14068LD_F77="$LD"
14069
14070lt_prog_compiler_wl_F77=
14071lt_prog_compiler_pic_F77=
14072lt_prog_compiler_static_F77=
14073
14074{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14075echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14076
14077 if test "$GCC" = yes; then
14078 lt_prog_compiler_wl_F77='-Wl,'
14079 lt_prog_compiler_static_F77='-static'
14080
14081 case $host_os in
14082 aix*)
14083 # All AIX code is PIC.
14084 if test "$host_cpu" = ia64; then
14085 # AIX 5 now supports IA64 processor
14086 lt_prog_compiler_static_F77='-Bstatic'
14087 fi
14088 ;;
14089
14090 amigaos*)
14091 # FIXME: we need at least 68020 code to build shared libraries, but
14092 # adding the `-m68020' flag to GCC prevents building anything better,
14093 # like `-m68040'.
14094 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14095 ;;
14096
14097 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14098 # PIC is the default for these OSes.
14099 ;;
14100
14101 mingw* | pw32* | os2*)
14102 # This hack is so that the source file can tell whether it is being
14103 # built for inclusion in a dll (and should export symbols for example).
14104 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14105 ;;
14106
14107 darwin* | rhapsody*)
14108 # PIC is the default on this platform
14109 # Common symbols not allowed in MH_DYLIB files
14110 lt_prog_compiler_pic_F77='-fno-common'
14111 ;;
14112
14113 interix3*)
14114 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14115 # Instead, we relocate shared libraries at runtime.
14116 ;;
14117
14118 msdosdjgpp*)
14119 # Just because we use GCC doesn't mean we suddenly get shared libraries
14120 # on systems that don't support them.
14121 lt_prog_compiler_can_build_shared_F77=no
14122 enable_shared=no
14123 ;;
14124
14125 sysv4*MP*)
14126 if test -d /usr/nec; then
14127 lt_prog_compiler_pic_F77=-Kconform_pic
14128 fi
14129 ;;
14130
14131 hpux*)
14132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14133 # not for PA HP-UX.
14134 case $host_cpu in
14135 hppa*64*|ia64*)
14136 # +Z the default
14137 ;;
14138 *)
14139 lt_prog_compiler_pic_F77='-fPIC'
14140 ;;
14141 esac
14142 ;;
14143
14144 *)
14145 lt_prog_compiler_pic_F77='-fPIC'
14146 ;;
14147 esac
14148 else
14149 # PORTME Check for flag to pass linker flags through the system compiler.
14150 case $host_os in
14151 aix*)
14152 lt_prog_compiler_wl_F77='-Wl,'
14153 if test "$host_cpu" = ia64; then
14154 # AIX 5 now supports IA64 processor
14155 lt_prog_compiler_static_F77='-Bstatic'
14156 else
14157 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14158 fi
14159 ;;
14160 darwin*)
14161 # PIC is the default on this platform
14162 # Common symbols not allowed in MH_DYLIB files
14163 case $cc_basename in
14164 xlc*)
14165 lt_prog_compiler_pic_F77='-qnocommon'
14166 lt_prog_compiler_wl_F77='-Wl,'
14167 ;;
14168 esac
14169 ;;
14170
14171 mingw* | pw32* | os2*)
14172 # This hack is so that the source file can tell whether it is being
14173 # built for inclusion in a dll (and should export symbols for example).
14174 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14175 ;;
14176
14177 hpux9* | hpux10* | hpux11*)
14178 lt_prog_compiler_wl_F77='-Wl,'
14179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14180 # not for PA HP-UX.
14181 case $host_cpu in
14182 hppa*64*|ia64*)
14183 # +Z the default
14184 ;;
14185 *)
14186 lt_prog_compiler_pic_F77='+Z'
14187 ;;
14188 esac
14189 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14190 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14191 ;;
14192
14193 irix5* | irix6* | nonstopux*)
14194 lt_prog_compiler_wl_F77='-Wl,'
14195 # PIC (with -KPIC) is the default.
14196 lt_prog_compiler_static_F77='-non_shared'
14197 ;;
14198
14199 newsos6)
14200 lt_prog_compiler_pic_F77='-KPIC'
14201 lt_prog_compiler_static_F77='-Bstatic'
14202 ;;
14203
14204 linux* | k*bsd*-gnu)
14205 case $cc_basename in
14206 icc* | ecc*)
14207 lt_prog_compiler_wl_F77='-Wl,'
14208 lt_prog_compiler_pic_F77='-KPIC'
14209 lt_prog_compiler_static_F77='-static'
14210 ;;
14211 pgcc* | pgf77* | pgf90* | pgf95*)
14212 # Portland Group compilers (*not* the Pentium gcc compiler,
14213 # which looks to be a dead project)
14214 lt_prog_compiler_wl_F77='-Wl,'
14215 lt_prog_compiler_pic_F77='-fpic'
14216 lt_prog_compiler_static_F77='-Bstatic'
14217 ;;
14218 ccc*)
14219 lt_prog_compiler_wl_F77='-Wl,'
14220 # All Alpha code is PIC.
14221 lt_prog_compiler_static_F77='-non_shared'
14222 ;;
14223 esac
14224 ;;
14225
14226 osf3* | osf4* | osf5*)
14227 lt_prog_compiler_wl_F77='-Wl,'
14228 # All OSF/1 code is PIC.
14229 lt_prog_compiler_static_F77='-non_shared'
14230 ;;
14231
14232 solaris*)
14233 lt_prog_compiler_pic_F77='-KPIC'
14234 lt_prog_compiler_static_F77='-Bstatic'
14235 case $cc_basename in
14236 f77* | f90* | f95*)
14237 lt_prog_compiler_wl_F77='-Qoption ld ';;
14238 *)
14239 lt_prog_compiler_wl_F77='-Wl,';;
14240 esac
14241 ;;
14242
14243 sunos4*)
14244 lt_prog_compiler_wl_F77='-Qoption ld '
14245 lt_prog_compiler_pic_F77='-PIC'
14246 lt_prog_compiler_static_F77='-Bstatic'
14247 ;;
14248
14249 sysv4 | sysv4.2uw2* | sysv4.3*)
14250 lt_prog_compiler_wl_F77='-Wl,'
14251 lt_prog_compiler_pic_F77='-KPIC'
14252 lt_prog_compiler_static_F77='-Bstatic'
14253 ;;
14254
14255 sysv4*MP*)
14256 if test -d /usr/nec ;then
14257 lt_prog_compiler_pic_F77='-Kconform_pic'
14258 lt_prog_compiler_static_F77='-Bstatic'
14259 fi
14260 ;;
14261
14262 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14263 lt_prog_compiler_wl_F77='-Wl,'
14264 lt_prog_compiler_pic_F77='-KPIC'
14265 lt_prog_compiler_static_F77='-Bstatic'
14266 ;;
14267
14268 unicos*)
14269 lt_prog_compiler_wl_F77='-Wl,'
14270 lt_prog_compiler_can_build_shared_F77=no
14271 ;;
14272
14273 uts4*)
14274 lt_prog_compiler_pic_F77='-pic'
14275 lt_prog_compiler_static_F77='-Bstatic'
14276 ;;
14277
14278 *)
14279 lt_prog_compiler_can_build_shared_F77=no
14280 ;;
14281 esac
14282 fi
14283
14284{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14285echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14286
14287#
14288# Check to make sure the PIC flag actually works.
14289#
14290if test -n "$lt_prog_compiler_pic_F77"; then
14291
14292{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14293echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14294if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296else
14297 lt_prog_compiler_pic_works_F77=no
14298 ac_outfile=conftest.$ac_objext
14299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14300 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14301 # Insert the option either (1) after the last *FLAGS variable, or
14302 # (2) before a word containing "conftest.", or (3) at the end.
14303 # Note that $ac_compile itself does not contain backslashes and begins
14304 # with a dollar sign (not a hyphen), so the echo should work correctly.
14305 # The option is referenced via a variable to avoid confusing sed.
14306 lt_compile=`echo "$ac_compile" | $SED \
14307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14309 -e 's:$: $lt_compiler_flag:'`
14310 (eval echo "\"\$as_me:14310: $lt_compile\"" >&5)
14311 (eval "$lt_compile" 2>conftest.err)
14312 ac_status=$?
14313 cat conftest.err >&5
14314 echo "$as_me:14314: \$? = $ac_status" >&5
14315 if (exit $ac_status) && test -s "$ac_outfile"; then
14316 # The compiler can only warn and ignore the option if not recognized
14317 # So say no if there are warnings other than the usual output.
14318 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14320 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14321 lt_prog_compiler_pic_works_F77=yes
14322 fi
14323 fi
14324 $rm conftest*
14325
14326fi
14327{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14328echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14329
14330if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14331 case $lt_prog_compiler_pic_F77 in
14332 "" | " "*) ;;
14333 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14334 esac
14335else
14336 lt_prog_compiler_pic_F77=
14337 lt_prog_compiler_can_build_shared_F77=no
14338fi
14339
14340fi
14341case $host_os in
14342 # For platforms which do not support PIC, -DPIC is meaningless:
14343 *djgpp*)
14344 lt_prog_compiler_pic_F77=
14345 ;;
14346 *)
14347 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14348 ;;
14349esac
14350
14351#
14352# Check to make sure the static flag actually works.
14353#
14354wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14355{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14356echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14357if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359else
14360 lt_prog_compiler_static_works_F77=no
14361 save_LDFLAGS="$LDFLAGS"
14362 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14363 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14365 # The linker can only warn and ignore the option if not recognized
14366 # So say no if there are warnings
14367 if test -s conftest.err; then
14368 # Append any errors to the config.log.
14369 cat conftest.err 1>&5
14370 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14372 if diff conftest.exp conftest.er2 >/dev/null; then
14373 lt_prog_compiler_static_works_F77=yes
14374 fi
14375 else
14376 lt_prog_compiler_static_works_F77=yes
14377 fi
14378 fi
14379 $rm conftest*
14380 LDFLAGS="$save_LDFLAGS"
14381
14382fi
14383{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14384echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14385
14386if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14387 :
14388else
14389 lt_prog_compiler_static_F77=
14390fi
14391
14392
14393{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14394echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14395if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397else
14398 lt_cv_prog_compiler_c_o_F77=no
14399 $rm -r conftest 2>/dev/null
14400 mkdir conftest
14401 cd conftest
14402 mkdir out
14403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14404
14405 lt_compiler_flag="-o out/conftest2.$ac_objext"
14406 # Insert the option either (1) after the last *FLAGS variable, or
14407 # (2) before a word containing "conftest.", or (3) at the end.
14408 # Note that $ac_compile itself does not contain backslashes and begins
14409 # with a dollar sign (not a hyphen), so the echo should work correctly.
14410 lt_compile=`echo "$ac_compile" | $SED \
14411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413 -e 's:$: $lt_compiler_flag:'`
14414 (eval echo "\"\$as_me:14414: $lt_compile\"" >&5)
14415 (eval "$lt_compile" 2>out/conftest.err)
14416 ac_status=$?
14417 cat out/conftest.err >&5
14418 echo "$as_me:14418: \$? = $ac_status" >&5
14419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14420 then
14421 # The compiler can only warn and ignore the option if not recognized
14422 # So say no if there are warnings
14423 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14424 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14425 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14426 lt_cv_prog_compiler_c_o_F77=yes
14427 fi
14428 fi
14429 chmod u+w . 2>&5
14430 $rm conftest*
14431 # SGI C++ compiler will create directory out/ii_files/ for
14432 # template instantiation
14433 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14434 $rm out/* && rmdir out
14435 cd ..
14436 rmdir conftest
14437 $rm conftest*
14438
14439fi
14440{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14441echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14442
14443
14444hard_links="nottested"
14445if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14446 # do not overwrite the value of need_locks provided by the user
14447 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14448echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14449 hard_links=yes
14450 $rm conftest*
14451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14452 touch conftest.a
14453 ln conftest.a conftest.b 2>&5 || hard_links=no
14454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14455 { echo "$as_me:$LINENO: result: $hard_links" >&5
14456echo "${ECHO_T}$hard_links" >&6; }
14457 if test "$hard_links" = no; then
14458 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14459echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14460 need_locks=warn
14461 fi
14462else
14463 need_locks=no
14464fi
14465
14466{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14467echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14468
14469 runpath_var=
14470 allow_undefined_flag_F77=
14471 enable_shared_with_static_runtimes_F77=no
14472 archive_cmds_F77=
14473 archive_expsym_cmds_F77=
14474 old_archive_From_new_cmds_F77=
14475 old_archive_from_expsyms_cmds_F77=
14476 export_dynamic_flag_spec_F77=
14477 whole_archive_flag_spec_F77=
14478 thread_safe_flag_spec_F77=
14479 hardcode_libdir_flag_spec_F77=
14480 hardcode_libdir_flag_spec_ld_F77=
14481 hardcode_libdir_separator_F77=
14482 hardcode_direct_F77=no
14483 hardcode_minus_L_F77=no
14484 hardcode_shlibpath_var_F77=unsupported
14485 link_all_deplibs_F77=unknown
14486 hardcode_automatic_F77=no
14487 module_cmds_F77=
14488 module_expsym_cmds_F77=
14489 always_export_symbols_F77=no
14490 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14491 # include_expsyms should be a list of space-separated symbols to be *always*
14492 # included in the symbol list
14493 include_expsyms_F77=
14494 # exclude_expsyms can be an extended regexp of symbols to exclude
14495 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14496 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14497 # as well as any symbol that contains `d'.
14498 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14500 # platforms (ab)use it in PIC code, but their linkers get confused if
14501 # the symbol is explicitly referenced. Since portable code cannot
14502 # rely on this symbol name, it's probably fine to never include it in
14503 # preloaded symbol tables.
14504 extract_expsyms_cmds=
14505 # Just being paranoid about ensuring that cc_basename is set.
14506 for cc_temp in $compiler""; do
14507 case $cc_temp in
14508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14510 \-*) ;;
14511 *) break;;
14512 esac
14513done
14514cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14515
14516 case $host_os in
14517 cygwin* | mingw* | pw32*)
14518 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14519 # When not using gcc, we currently assume that we are using
14520 # Microsoft Visual C++.
14521 if test "$GCC" != yes; then
14522 with_gnu_ld=no
14523 fi
14524 ;;
14525 interix*)
14526 # we just hope/assume this is gcc and not c89 (= MSVC++)
14527 with_gnu_ld=yes
14528 ;;
14529 openbsd*)
14530 with_gnu_ld=no
14531 ;;
14532 esac
14533
14534 ld_shlibs_F77=yes
14535 if test "$with_gnu_ld" = yes; then
14536 # If archive_cmds runs LD, not CC, wlarc should be empty
14537 wlarc='${wl}'
14538
14539 # Set some defaults for GNU ld with shared library support. These
14540 # are reset later if shared libraries are not supported. Putting them
14541 # here allows them to be overridden if necessary.
14542 runpath_var=LD_RUN_PATH
14543 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14544 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14545 # ancient GNU ld didn't support --whole-archive et. al.
14546 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14547 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14548 else
14549 whole_archive_flag_spec_F77=
14550 fi
14551 supports_anon_versioning=no
14552 case `$LD -v 2>/dev/null` in
14553 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14554 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14555 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14556 *\ 2.11.*) ;; # other 2.11 versions
14557 *) supports_anon_versioning=yes ;;
14558 esac
14559
14560 # See if GNU ld supports shared libraries.
14561 case $host_os in
14562 aix3* | aix4* | aix5*)
14563 # On AIX/PPC, the GNU linker is very broken
14564 if test "$host_cpu" != ia64; then
14565 ld_shlibs_F77=no
14566 cat <<EOF 1>&2
14567
14568*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14569*** to be unable to reliably create shared libraries on AIX.
14570*** Therefore, libtool is disabling shared libraries support. If you
14571*** really care for shared libraries, you may want to modify your PATH
14572*** so that a non-GNU linker is found, and then restart.
14573
14574EOF
14575 fi
14576 ;;
14577
14578 amigaos*)
14579 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)'
14580 hardcode_libdir_flag_spec_F77='-L$libdir'
14581 hardcode_minus_L_F77=yes
14582
14583 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14584 # that the semantics of dynamic libraries on AmigaOS, at least up
14585 # to version 4, is to share data among multiple programs linked
14586 # with the same dynamic library. Since this doesn't match the
14587 # behavior of shared libraries on other platforms, we can't use
14588 # them.
14589 ld_shlibs_F77=no
14590 ;;
14591
14592 beos*)
14593 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14594 allow_undefined_flag_F77=unsupported
14595 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14596 # support --undefined. This deserves some investigation. FIXME
14597 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14598 else
14599 ld_shlibs_F77=no
14600 fi
14601 ;;
14602
14603 cygwin* | mingw* | pw32*)
14604 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14605 # as there is no search path for DLLs.
14606 hardcode_libdir_flag_spec_F77='-L$libdir'
14607 allow_undefined_flag_F77=unsupported
14608 always_export_symbols_F77=no
14609 enable_shared_with_static_runtimes_F77=yes
14610 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14611
14612 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14613 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14614 # If the export-symbols file already is a .def file (1st line
14615 # is EXPORTS), use it as is; otherwise, prepend...
14616 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14617 cp $export_symbols $output_objdir/$soname.def;
14618 else
14619 echo EXPORTS > $output_objdir/$soname.def;
14620 cat $export_symbols >> $output_objdir/$soname.def;
14621 fi~
14622 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14623 else
14624 ld_shlibs_F77=no
14625 fi
14626 ;;
14627
14628 interix3*)
14629 hardcode_direct_F77=no
14630 hardcode_shlibpath_var_F77=no
14631 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14632 export_dynamic_flag_spec_F77='${wl}-E'
14633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14634 # Instead, shared libraries are loaded at an image base (0x10000000 by
14635 # default) and relocated if they conflict, which is a slow very memory
14636 # consuming and fragmenting process. To avoid this, we pick a random,
14637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14638 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14639 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'
14640 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'
14641 ;;
14642
14643 linux* | k*bsd*-gnu)
14644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14645 tmp_addflag=
14646 case $cc_basename,$host_cpu in
14647 pgcc*) # Portland Group C compiler
14648 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'
14649 tmp_addflag=' $pic_flag'
14650 ;;
14651 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14652 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'
14653 tmp_addflag=' $pic_flag -Mnomain' ;;
14654 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14655 tmp_addflag=' -i_dynamic' ;;
14656 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14657 tmp_addflag=' -i_dynamic -nofor_main' ;;
14658 ifc* | ifort*) # Intel Fortran compiler
14659 tmp_addflag=' -nofor_main' ;;
14660 esac
14661 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14662
14663 if test $supports_anon_versioning = yes; then
14664 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14666 $echo "local: *; };" >> $output_objdir/$libname.ver~
14667 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14668 fi
14669 link_all_deplibs_F77=no
14670 else
14671 ld_shlibs_F77=no
14672 fi
14673 ;;
14674
14675 netbsd* | netbsdelf*-gnu)
14676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14677 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14678 wlarc=
14679 else
14680 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14681 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14682 fi
14683 ;;
14684
14685 solaris*)
14686 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14687 ld_shlibs_F77=no
14688 cat <<EOF 1>&2
14689
14690*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14691*** create shared libraries on Solaris systems. Therefore, libtool
14692*** is disabling shared libraries support. We urge you to upgrade GNU
14693*** binutils to release 2.9.1 or newer. Another option is to modify
14694*** your PATH or compiler configuration so that the native linker is
14695*** used, and then restart.
14696
14697EOF
14698 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14699 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14700 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14701 else
14702 ld_shlibs_F77=no
14703 fi
14704 ;;
14705
14706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14707 case `$LD -v 2>&1` in
14708 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14709 ld_shlibs_F77=no
14710 cat <<_LT_EOF 1>&2
14711
14712*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14713*** reliably create shared libraries on SCO systems. Therefore, libtool
14714*** is disabling shared libraries support. We urge you to upgrade GNU
14715*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14716*** your PATH or compiler configuration so that the native linker is
14717*** used, and then restart.
14718
14719_LT_EOF
14720 ;;
14721 *)
14722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14723 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14724 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14725 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14726 else
14727 ld_shlibs_F77=no
14728 fi
14729 ;;
14730 esac
14731 ;;
14732
14733 sunos4*)
14734 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14735 wlarc=
14736 hardcode_direct_F77=yes
14737 hardcode_shlibpath_var_F77=no
14738 ;;
14739
14740 *)
14741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14742 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14743 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14744 else
14745 ld_shlibs_F77=no
14746 fi
14747 ;;
14748 esac
14749
14750 if test "$ld_shlibs_F77" = no; then
14751 runpath_var=
14752 hardcode_libdir_flag_spec_F77=
14753 export_dynamic_flag_spec_F77=
14754 whole_archive_flag_spec_F77=
14755 fi
14756 else
14757 # PORTME fill in a description of your system's linker (not GNU ld)
14758 case $host_os in
14759 aix3*)
14760 allow_undefined_flag_F77=unsupported
14761 always_export_symbols_F77=yes
14762 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'
14763 # Note: this linker hardcodes the directories in LIBPATH if there
14764 # are no directories specified by -L.
14765 hardcode_minus_L_F77=yes
14766 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14767 # Neither direct hardcoding nor static linking is supported with a
14768 # broken collect2.
14769 hardcode_direct_F77=unsupported
14770 fi
14771 ;;
14772
14773 aix4* | aix5*)
14774 if test "$host_cpu" = ia64; then
14775 # On IA64, the linker does run time linking by default, so we don't
14776 # have to do anything special.
14777 aix_use_runtimelinking=no
14778 exp_sym_flag='-Bexport'
14779 no_entry_flag=""
14780 else
14781 # If we're using GNU nm, then we don't want the "-C" option.
14782 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14783 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14784 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'
14785 else
14786 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'
14787 fi
14788 aix_use_runtimelinking=no
14789
14790 # Test if we are trying to use run time linking or normal
14791 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14792 # need to do runtime linking.
14793 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14794 for ld_flag in $LDFLAGS; do
14795 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14796 aix_use_runtimelinking=yes
14797 break
14798 fi
14799 done
14800 ;;
14801 esac
14802
14803 exp_sym_flag='-bexport'
14804 no_entry_flag='-bnoentry'
14805 fi
14806
14807 # When large executables or shared objects are built, AIX ld can
14808 # have problems creating the table of contents. If linking a library
14809 # or program results in "error TOC overflow" add -mminimal-toc to
14810 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14811 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14812
14813 archive_cmds_F77=''
14814 hardcode_direct_F77=yes
14815 hardcode_libdir_separator_F77=':'
14816 link_all_deplibs_F77=yes
14817
14818 if test "$GCC" = yes; then
14819 case $host_os in aix4.[012]|aix4.[012].*)
14820 # We only want to do this on AIX 4.2 and lower, the check
14821 # below for broken collect2 doesn't work under 4.3+
14822 collect2name=`${CC} -print-prog-name=collect2`
14823 if test -f "$collect2name" && \
14824 strings "$collect2name" | grep resolve_lib_name >/dev/null
14825 then
14826 # We have reworked collect2
14827 hardcode_direct_F77=yes
14828 else
14829 # We have old collect2
14830 hardcode_direct_F77=unsupported
14831 # It fails to find uninstalled libraries when the uninstalled
14832 # path is not listed in the libpath. Setting hardcode_minus_L
14833 # to unsupported forces relinking
14834 hardcode_minus_L_F77=yes
14835 hardcode_libdir_flag_spec_F77='-L$libdir'
14836 hardcode_libdir_separator_F77=
14837 fi
14838 ;;
14839 esac
14840 shared_flag='-shared'
14841 if test "$aix_use_runtimelinking" = yes; then
14842 shared_flag="$shared_flag "'${wl}-G'
14843 fi
14844 else
14845 # not using gcc
14846 if test "$host_cpu" = ia64; then
14847 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14848 # chokes on -Wl,-G. The following line is correct:
14849 shared_flag='-G'
14850 else
14851 if test "$aix_use_runtimelinking" = yes; then
14852 shared_flag='${wl}-G'
14853 else
14854 shared_flag='${wl}-bM:SRE'
14855 fi
14856 fi
14857 fi
14858
14859 # It seems that -bexpall does not export symbols beginning with
14860 # underscore (_), so it is better to generate a list of symbols to export.
14861 always_export_symbols_F77=yes
14862 if test "$aix_use_runtimelinking" = yes; then
14863 # Warning - without using the other runtime loading flags (-brtl),
14864 # -berok will link without error, but may produce a broken library.
14865 allow_undefined_flag_F77='-berok'
14866 # Determine the default libpath from the value encoded in an empty executable.
14867 cat >conftest.$ac_ext <<_ACEOF
14868 program main
14869
14870 end
14871_ACEOF
14872rm -f conftest.$ac_objext conftest$ac_exeext
14873if { (ac_try="$ac_link"
14874case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14877esac
14878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_link") 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890esac
14891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest$ac_exeext'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900esac
14901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906
14907aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14908}'`
14909# Check for a 64-bit object if we didn't find anything.
14910if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14911}'`; fi
14912else
14913 echo "$as_me: failed program was:" >&5
14914sed 's/^/| /' conftest.$ac_ext >&5
14915
14916
14917fi
14918
14919rm -f core conftest.err conftest.$ac_objext \
14920 conftest$ac_exeext conftest.$ac_ext
14921if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14922
14923 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14924 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"
14925 else
14926 if test "$host_cpu" = ia64; then
14927 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14928 allow_undefined_flag_F77="-z nodefs"
14929 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"
14930 else
14931 # Determine the default libpath from the value encoded in an empty executable.
14932 cat >conftest.$ac_ext <<_ACEOF
14933 program main
14934
14935 end
14936_ACEOF
14937rm -f conftest.$ac_objext conftest$ac_exeext
14938if { (ac_try="$ac_link"
14939case "(($ac_try" in
14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941 *) ac_try_echo=$ac_try;;
14942esac
14943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944 (eval "$ac_link") 2>conftest.er1
14945 ac_status=$?
14946 grep -v '^ *+' conftest.er1 >conftest.err
14947 rm -f conftest.er1
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14952 { (case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14955esac
14956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_try") 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; } &&
14961 { ac_try='test -s conftest$ac_exeext'
14962 { (case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14965esac
14966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 (eval "$ac_try") 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971
14972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14973}'`
14974# Check for a 64-bit object if we didn't find anything.
14975if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14976}'`; fi
14977else
14978 echo "$as_me: failed program was:" >&5
14979sed 's/^/| /' conftest.$ac_ext >&5
14980
14981
14982fi
14983
14984rm -f core conftest.err conftest.$ac_objext \
14985 conftest$ac_exeext conftest.$ac_ext
14986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14987
14988 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14989 # Warning - without using the other run time loading flags,
14990 # -berok will link without error, but may produce a broken library.
14991 no_undefined_flag_F77=' ${wl}-bernotok'
14992 allow_undefined_flag_F77=' ${wl}-berok'
14993 # Exported symbols can be pulled into shared objects from archives
14994 whole_archive_flag_spec_F77='$convenience'
14995 archive_cmds_need_lc_F77=yes
14996 # This is similar to how AIX traditionally builds its shared libraries.
14997 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'
14998 fi
14999 fi
15000 ;;
15001
15002 amigaos*)
15003 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)'
15004 hardcode_libdir_flag_spec_F77='-L$libdir'
15005 hardcode_minus_L_F77=yes
15006 # see comment about different semantics on the GNU ld section
15007 ld_shlibs_F77=no
15008 ;;
15009
15010 bsdi[45]*)
15011 export_dynamic_flag_spec_F77=-rdynamic
15012 ;;
15013
15014 cygwin* | mingw* | pw32*)
15015 # When not using gcc, we currently assume that we are using
15016 # Microsoft Visual C++.
15017 # hardcode_libdir_flag_spec is actually meaningless, as there is
15018 # no search path for DLLs.
15019 hardcode_libdir_flag_spec_F77=' '
15020 allow_undefined_flag_F77=unsupported
15021 # Tell ltmain to make .lib files, not .a files.
15022 libext=lib
15023 # Tell ltmain to make .dll files, not .so files.
15024 shrext_cmds=".dll"
15025 # FIXME: Setting linknames here is a bad hack.
15026 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15027 # The linker will automatically build a .lib file if we build a DLL.
15028 old_archive_From_new_cmds_F77='true'
15029 # FIXME: Should let the user specify the lib program.
15030 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15031 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15032 enable_shared_with_static_runtimes_F77=yes
15033 ;;
15034
15035 darwin* | rhapsody*)
15036 case $host_os in
15037 rhapsody* | darwin1.[012])
15038 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15039 ;;
15040 *) # Darwin 1.3 on
15041 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15042 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15043 else
15044 case ${MACOSX_DEPLOYMENT_TARGET} in
15045 10.[012])
15046 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15047 ;;
15048 10.*)
15049 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15050 ;;
15051 esac
15052 fi
15053 ;;
15054 esac
15055 archive_cmds_need_lc_F77=no
15056 hardcode_direct_F77=no
15057 hardcode_automatic_F77=yes
15058 hardcode_shlibpath_var_F77=unsupported
15059 whole_archive_flag_spec_F77=''
15060 link_all_deplibs_F77=yes
15061 if test "$GCC" = yes ; then
15062 output_verbose_link_cmd='echo'
15063 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15064 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15065 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15066 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15067 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}'
15068 else
15069 case $cc_basename in
15070 xlc*)
15071 output_verbose_link_cmd='echo'
15072 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15073 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15074 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15075 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15076 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}'
15077 ;;
15078 *)
15079 ld_shlibs_F77=no
15080 ;;
15081 esac
15082 fi
15083 ;;
15084
15085 dgux*)
15086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15087 hardcode_libdir_flag_spec_F77='-L$libdir'
15088 hardcode_shlibpath_var_F77=no
15089 ;;
15090
15091 freebsd1*)
15092 ld_shlibs_F77=no
15093 ;;
15094
15095 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15096 # support. Future versions do this automatically, but an explicit c++rt0.o
15097 # does not break anything, and helps significantly (at the cost of a little
15098 # extra space).
15099 freebsd2.2*)
15100 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15101 hardcode_libdir_flag_spec_F77='-R$libdir'
15102 hardcode_direct_F77=yes
15103 hardcode_shlibpath_var_F77=no
15104 ;;
15105
15106 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15107 freebsd2*)
15108 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15109 hardcode_direct_F77=yes
15110 hardcode_minus_L_F77=yes
15111 hardcode_shlibpath_var_F77=no
15112 ;;
15113
15114 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15115 freebsd* | dragonfly*)
15116 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15117 hardcode_libdir_flag_spec_F77='-R$libdir'
15118 hardcode_direct_F77=yes
15119 hardcode_shlibpath_var_F77=no
15120 ;;
15121
15122 hpux9*)
15123 if test "$GCC" = yes; then
15124 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'
15125 else
15126 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'
15127 fi
15128 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15129 hardcode_libdir_separator_F77=:
15130 hardcode_direct_F77=yes
15131
15132 # hardcode_minus_L: Not really in the search PATH,
15133 # but as the default location of the library.
15134 hardcode_minus_L_F77=yes
15135 export_dynamic_flag_spec_F77='${wl}-E'
15136 ;;
15137
15138 hpux10*)
15139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15140 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15141 else
15142 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15143 fi
15144 if test "$with_gnu_ld" = no; then
15145 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15146 hardcode_libdir_separator_F77=:
15147
15148 hardcode_direct_F77=yes
15149 export_dynamic_flag_spec_F77='${wl}-E'
15150
15151 # hardcode_minus_L: Not really in the search PATH,
15152 # but as the default location of the library.
15153 hardcode_minus_L_F77=yes
15154 fi
15155 ;;
15156
15157 hpux11*)
15158 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15159 case $host_cpu in
15160 hppa*64*)
15161 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15162 ;;
15163 ia64*)
15164 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15165 ;;
15166 *)
15167 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15168 ;;
15169 esac
15170 else
15171 case $host_cpu in
15172 hppa*64*)
15173 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15174 ;;
15175 ia64*)
15176 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15177 ;;
15178 *)
15179 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15180 ;;
15181 esac
15182 fi
15183 if test "$with_gnu_ld" = no; then
15184 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15185 hardcode_libdir_separator_F77=:
15186
15187 case $host_cpu in
15188 hppa*64*|ia64*)
15189 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15190 hardcode_direct_F77=no
15191 hardcode_shlibpath_var_F77=no
15192 ;;
15193 *)
15194 hardcode_direct_F77=yes
15195 export_dynamic_flag_spec_F77='${wl}-E'
15196
15197 # hardcode_minus_L: Not really in the search PATH,
15198 # but as the default location of the library.
15199 hardcode_minus_L_F77=yes
15200 ;;
15201 esac
15202 fi
15203 ;;
15204
15205 irix5* | irix6* | nonstopux*)
15206 if test "$GCC" = yes; then
15207 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'
15208 else
15209 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'
15210 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15211 fi
15212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15213 hardcode_libdir_separator_F77=:
15214 link_all_deplibs_F77=yes
15215 ;;
15216
15217 netbsd* | netbsdelf*-gnu)
15218 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15219 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15220 else
15221 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15222 fi
15223 hardcode_libdir_flag_spec_F77='-R$libdir'
15224 hardcode_direct_F77=yes
15225 hardcode_shlibpath_var_F77=no
15226 ;;
15227
15228 newsos6)
15229 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15230 hardcode_direct_F77=yes
15231 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15232 hardcode_libdir_separator_F77=:
15233 hardcode_shlibpath_var_F77=no
15234 ;;
15235
15236 openbsd*)
15237 hardcode_direct_F77=yes
15238 hardcode_shlibpath_var_F77=no
15239 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15240 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15241 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15242 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15243 export_dynamic_flag_spec_F77='${wl}-E'
15244 else
15245 case $host_os in
15246 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15247 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15248 hardcode_libdir_flag_spec_F77='-R$libdir'
15249 ;;
15250 *)
15251 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15252 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15253 ;;
15254 esac
15255 fi
15256 ;;
15257
15258 os2*)
15259 hardcode_libdir_flag_spec_F77='-L$libdir'
15260 hardcode_minus_L_F77=yes
15261 allow_undefined_flag_F77=unsupported
15262 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'
15263 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15264 ;;
15265
15266 osf3*)
15267 if test "$GCC" = yes; then
15268 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15269 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'
15270 else
15271 allow_undefined_flag_F77=' -expect_unresolved \*'
15272 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'
15273 fi
15274 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15275 hardcode_libdir_separator_F77=:
15276 ;;
15277
15278 osf4* | osf5*) # as osf3* with the addition of -msym flag
15279 if test "$GCC" = yes; then
15280 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15281 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'
15282 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15283 else
15284 allow_undefined_flag_F77=' -expect_unresolved \*'
15285 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'
15286 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~
15287 $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'
15288
15289 # Both c and cxx compiler support -rpath directly
15290 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15291 fi
15292 hardcode_libdir_separator_F77=:
15293 ;;
15294
15295 solaris*)
15296 no_undefined_flag_F77=' -z text'
15297 if test "$GCC" = yes; then
15298 wlarc='${wl}'
15299 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15300 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15301 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15302 else
15303 wlarc=''
15304 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15306 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15307 fi
15308 hardcode_libdir_flag_spec_F77='-R$libdir'
15309 hardcode_shlibpath_var_F77=no
15310 case $host_os in
15311 solaris2.[0-5] | solaris2.[0-5].*) ;;
15312 *)
15313 # The compiler driver will combine linker options so we
15314 # cannot just pass the convience library names through
15315 # without $wl, iff we do not link with $LD.
15316 # Luckily, gcc supports the same syntax we need for Sun Studio.
15317 # Supported since Solaris 2.6 (maybe 2.5.1?)
15318 case $wlarc in
15319 '')
15320 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15321 *)
15322 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15323 esac ;;
15324 esac
15325 link_all_deplibs_F77=yes
15326 ;;
15327
15328 sunos4*)
15329 if test "x$host_vendor" = xsequent; then
15330 # Use $CC to link under sequent, because it throws in some extra .o
15331 # files that make .init and .fini sections work.
15332 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15333 else
15334 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15335 fi
15336 hardcode_libdir_flag_spec_F77='-L$libdir'
15337 hardcode_direct_F77=yes
15338 hardcode_minus_L_F77=yes
15339 hardcode_shlibpath_var_F77=no
15340 ;;
15341
15342 sysv4)
15343 case $host_vendor in
15344 sni)
15345 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15346 hardcode_direct_F77=yes # is this really true???
15347 ;;
15348 siemens)
15349 ## LD is ld it makes a PLAMLIB
15350 ## CC just makes a GrossModule.
15351 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15352 reload_cmds_F77='$CC -r -o $output$reload_objs'
15353 hardcode_direct_F77=no
15354 ;;
15355 motorola)
15356 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15357 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15358 ;;
15359 esac
15360 runpath_var='LD_RUN_PATH'
15361 hardcode_shlibpath_var_F77=no
15362 ;;
15363
15364 sysv4.3*)
15365 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15366 hardcode_shlibpath_var_F77=no
15367 export_dynamic_flag_spec_F77='-Bexport'
15368 ;;
15369
15370 sysv4*MP*)
15371 if test -d /usr/nec; then
15372 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15373 hardcode_shlibpath_var_F77=no
15374 runpath_var=LD_RUN_PATH
15375 hardcode_runpath_var=yes
15376 ld_shlibs_F77=yes
15377 fi
15378 ;;
15379
15380 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15381 no_undefined_flag_F77='${wl}-z,text'
15382 archive_cmds_need_lc_F77=no
15383 hardcode_shlibpath_var_F77=no
15384 runpath_var='LD_RUN_PATH'
15385
15386 if test "$GCC" = yes; then
15387 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15388 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15389 else
15390 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15391 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15392 fi
15393 ;;
15394
15395 sysv5* | sco3.2v5* | sco5v6*)
15396 # Note: We can NOT use -z defs as we might desire, because we do not
15397 # link with -lc, and that would cause any symbols used from libc to
15398 # always be unresolved, which means just about no library would
15399 # ever link correctly. If we're not using GNU ld we use -z text
15400 # though, which does catch some bad symbols but isn't as heavy-handed
15401 # as -z defs.
15402 no_undefined_flag_F77='${wl}-z,text'
15403 allow_undefined_flag_F77='${wl}-z,nodefs'
15404 archive_cmds_need_lc_F77=no
15405 hardcode_shlibpath_var_F77=no
15406 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15407 hardcode_libdir_separator_F77=':'
15408 link_all_deplibs_F77=yes
15409 export_dynamic_flag_spec_F77='${wl}-Bexport'
15410 runpath_var='LD_RUN_PATH'
15411
15412 if test "$GCC" = yes; then
15413 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15414 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15415 else
15416 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15417 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15418 fi
15419 ;;
15420
15421 uts4*)
15422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15423 hardcode_libdir_flag_spec_F77='-L$libdir'
15424 hardcode_shlibpath_var_F77=no
15425 ;;
15426
15427 *)
15428 ld_shlibs_F77=no
15429 ;;
15430 esac
15431 fi
15432
15433{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15434echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15435test "$ld_shlibs_F77" = no && can_build_shared=no
15436
15437#
15438# Do we need to explicitly link libc?
15439#
15440case "x$archive_cmds_need_lc_F77" in
15441x|xyes)
15442 # Assume -lc should be added
15443 archive_cmds_need_lc_F77=yes
15444
15445 if test "$enable_shared" = yes && test "$GCC" = yes; then
15446 case $archive_cmds_F77 in
15447 *'~'*)
15448 # FIXME: we may have to deal with multi-command sequences.
15449 ;;
15450 '$CC '*)
15451 # Test whether the compiler implicitly links with -lc since on some
15452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15453 # to ld, don't add -lc before -lgcc.
15454 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15455echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15456 $rm conftest*
15457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15458
15459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15460 (eval $ac_compile) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } 2>conftest.err; then
15464 soname=conftest
15465 lib=conftest
15466 libobjs=conftest.$ac_objext
15467 deplibs=
15468 wl=$lt_prog_compiler_wl_F77
15469 pic_flag=$lt_prog_compiler_pic_F77
15470 compiler_flags=-v
15471 linker_flags=-v
15472 verstring=
15473 output_objdir=.
15474 libname=conftest
15475 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15476 allow_undefined_flag_F77=
15477 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15478 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15479 ac_status=$?
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }
15482 then
15483 archive_cmds_need_lc_F77=no
15484 else
15485 archive_cmds_need_lc_F77=yes
15486 fi
15487 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15488 else
15489 cat conftest.err 1>&5
15490 fi
15491 $rm conftest*
15492 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15493echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15494 ;;
15495 esac
15496 fi
15497 ;;
15498esac
15499
15500{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15501echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15502library_names_spec=
15503libname_spec='lib$name'
15504soname_spec=
15505shrext_cmds=".so"
15506postinstall_cmds=
15507postuninstall_cmds=
15508finish_cmds=
15509finish_eval=
15510shlibpath_var=
15511shlibpath_overrides_runpath=unknown
15512version_type=none
15513dynamic_linker="$host_os ld.so"
15514sys_lib_dlsearch_path_spec="/lib /usr/lib"
15515if test "$GCC" = yes; then
15516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15517 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15518 # if the path contains ";" then we assume it to be the separator
15519 # otherwise default to the standard path separator (i.e. ":") - it is
15520 # assumed that no part of a normal pathname contains ";" but that should
15521 # okay in the real world where ";" in dirpaths is itself problematic.
15522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15523 else
15524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15525 fi
15526else
15527 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15528fi
15529need_lib_prefix=unknown
15530hardcode_into_libs=no
15531
15532# when you set need_version to no, make sure it does not cause -set_version
15533# flags to be left without arguments
15534need_version=unknown
15535
15536case $host_os in
15537aix3*)
15538 version_type=linux
15539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15540 shlibpath_var=LIBPATH
15541
15542 # AIX 3 has no versioning support, so we append a major version to the name.
15543 soname_spec='${libname}${release}${shared_ext}$major'
15544 ;;
15545
15546aix4* | aix5*)
15547 version_type=linux
15548 need_lib_prefix=no
15549 need_version=no
15550 hardcode_into_libs=yes
15551 if test "$host_cpu" = ia64; then
15552 # AIX 5 supports IA64
15553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15554 shlibpath_var=LD_LIBRARY_PATH
15555 else
15556 # With GCC up to 2.95.x, collect2 would create an import file
15557 # for dependence libraries. The import file would start with
15558 # the line `#! .'. This would cause the generated library to
15559 # depend on `.', always an invalid library. This was fixed in
15560 # development snapshots of GCC prior to 3.0.
15561 case $host_os in
15562 aix4 | aix4.[01] | aix4.[01].*)
15563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15564 echo ' yes '
15565 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15566 :
15567 else
15568 can_build_shared=no
15569 fi
15570 ;;
15571 esac
15572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15573 # soname into executable. Probably we can add versioning support to
15574 # collect2, so additional links can be useful in future.
15575 if test "$aix_use_runtimelinking" = yes; then
15576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15577 # instead of lib<name>.a to let people know that these are not
15578 # typical AIX shared libraries.
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 else
15581 # We preserve .a as extension for shared libraries through AIX4.2
15582 # and later when we are not doing run time linking.
15583 library_names_spec='${libname}${release}.a $libname.a'
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 fi
15586 shlibpath_var=LIBPATH
15587 fi
15588 ;;
15589
15590amigaos*)
15591 library_names_spec='$libname.ixlibrary $libname.a'
15592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15593 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'
15594 ;;
15595
15596beos*)
15597 library_names_spec='${libname}${shared_ext}'
15598 dynamic_linker="$host_os ld.so"
15599 shlibpath_var=LIBRARY_PATH
15600 ;;
15601
15602bsdi[45]*)
15603 version_type=linux
15604 need_version=no
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15606 soname_spec='${libname}${release}${shared_ext}$major'
15607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15611 # the default ld.so.conf also contains /usr/contrib/lib and
15612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15613 # libtool to hard-code these into programs
15614 ;;
15615
15616cygwin* | mingw* | pw32*)
15617 version_type=windows
15618 shrext_cmds=".dll"
15619 need_version=no
15620 need_lib_prefix=no
15621
15622 case $GCC,$host_os in
15623 yes,cygwin* | yes,mingw* | yes,pw32*)
15624 library_names_spec='$libname.dll.a'
15625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15626 postinstall_cmds='base_file=`basename \${file}`~
15627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15628 dldir=$destdir/`dirname \$dlpath`~
15629 test -d \$dldir || mkdir -p \$dldir~
15630 $install_prog $dir/$dlname \$dldir/$dlname~
15631 chmod a+x \$dldir/$dlname'
15632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15633 dlpath=$dir/\$dldll~
15634 $rm \$dlpath'
15635 shlibpath_overrides_runpath=yes
15636
15637 case $host_os in
15638 cygwin*)
15639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15642 ;;
15643 mingw*)
15644 # MinGW DLLs use traditional 'lib' prefix
15645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15647 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15648 # It is most probably a Windows format PATH printed by
15649 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15650 # path with ; separators, and with drive letters. We can handle the
15651 # drive letters (cygwin fileutils understands them), so leave them,
15652 # especially as we might pass files found there to a mingw objdump,
15653 # which wouldn't understand a cygwinified path. Ahh.
15654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15655 else
15656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15657 fi
15658 ;;
15659 pw32*)
15660 # pw32 DLLs use 'pw' prefix rather than 'lib'
15661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15662 ;;
15663 esac
15664 ;;
15665
15666 *)
15667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15668 ;;
15669 esac
15670 dynamic_linker='Win32 ld.exe'
15671 # FIXME: first we should search . and the directory the executable is in
15672 shlibpath_var=PATH
15673 ;;
15674
15675darwin* | rhapsody*)
15676 dynamic_linker="$host_os dyld"
15677 version_type=darwin
15678 need_lib_prefix=no
15679 need_version=no
15680 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15681 soname_spec='${libname}${release}${major}$shared_ext'
15682 shlibpath_overrides_runpath=yes
15683 shlibpath_var=DYLD_LIBRARY_PATH
15684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15685 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15686 if test "$GCC" = yes; then
15687 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15688 else
15689 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15690 fi
15691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15692 ;;
15693
15694dgux*)
15695 version_type=linux
15696 need_lib_prefix=no
15697 need_version=no
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15699 soname_spec='${libname}${release}${shared_ext}$major'
15700 shlibpath_var=LD_LIBRARY_PATH
15701 ;;
15702
15703freebsd1*)
15704 dynamic_linker=no
15705 ;;
15706
15707freebsd* | dragonfly*)
15708 # DragonFly does not have aout. When/if they implement a new
15709 # versioning mechanism, adjust this.
15710 if test -x /usr/bin/objformat; then
15711 objformat=`/usr/bin/objformat`
15712 else
15713 case $host_os in
15714 freebsd[123]*) objformat=aout ;;
15715 *) objformat=elf ;;
15716 esac
15717 fi
15718 version_type=freebsd-$objformat
15719 case $version_type in
15720 freebsd-elf*)
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15722 need_version=no
15723 need_lib_prefix=no
15724 ;;
15725 freebsd-*)
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15727 need_version=yes
15728 ;;
15729 esac
15730 shlibpath_var=LD_LIBRARY_PATH
15731 case $host_os in
15732 freebsd2*)
15733 shlibpath_overrides_runpath=yes
15734 ;;
15735 freebsd3.[01]* | freebsdelf3.[01]*)
15736 shlibpath_overrides_runpath=yes
15737 hardcode_into_libs=yes
15738 ;;
15739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15741 shlibpath_overrides_runpath=no
15742 hardcode_into_libs=yes
15743 ;;
15744 freebsd*) # from 4.6 on
15745 shlibpath_overrides_runpath=yes
15746 hardcode_into_libs=yes
15747 ;;
15748 esac
15749 ;;
15750
15751gnu*)
15752 version_type=linux
15753 need_lib_prefix=no
15754 need_version=no
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 shlibpath_var=LD_LIBRARY_PATH
15758 hardcode_into_libs=yes
15759 ;;
15760
15761hpux9* | hpux10* | hpux11*)
15762 # Give a soname corresponding to the major version so that dld.sl refuses to
15763 # link against other versions.
15764 version_type=sunos
15765 need_lib_prefix=no
15766 need_version=no
15767 case $host_cpu in
15768 ia64*)
15769 shrext_cmds='.so'
15770 hardcode_into_libs=yes
15771 dynamic_linker="$host_os dld.so"
15772 shlibpath_var=LD_LIBRARY_PATH
15773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775 soname_spec='${libname}${release}${shared_ext}$major'
15776 if test "X$HPUX_IA64_MODE" = X32; then
15777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15778 else
15779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15780 fi
15781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15782 ;;
15783 hppa*64*)
15784 shrext_cmds='.sl'
15785 hardcode_into_libs=yes
15786 dynamic_linker="$host_os dld.sl"
15787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15793 ;;
15794 *)
15795 shrext_cmds='.sl'
15796 dynamic_linker="$host_os dld.sl"
15797 shlibpath_var=SHLIB_PATH
15798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15800 soname_spec='${libname}${release}${shared_ext}$major'
15801 ;;
15802 esac
15803 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15804 postinstall_cmds='chmod 555 $lib'
15805 ;;
15806
15807interix3*)
15808 version_type=linux
15809 need_lib_prefix=no
15810 need_version=no
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15814 shlibpath_var=LD_LIBRARY_PATH
15815 shlibpath_overrides_runpath=no
15816 hardcode_into_libs=yes
15817 ;;
15818
15819irix5* | irix6* | nonstopux*)
15820 case $host_os in
15821 nonstopux*) version_type=nonstopux ;;
15822 *)
15823 if test "$lt_cv_prog_gnu_ld" = yes; then
15824 version_type=linux
15825 else
15826 version_type=irix
15827 fi ;;
15828 esac
15829 need_lib_prefix=no
15830 need_version=no
15831 soname_spec='${libname}${release}${shared_ext}$major'
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15833 case $host_os in
15834 irix5* | nonstopux*)
15835 libsuff= shlibsuff=
15836 ;;
15837 *)
15838 case $LD in # libtool.m4 will add one of these switches to LD
15839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15840 libsuff= shlibsuff= libmagic=32-bit;;
15841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15842 libsuff=32 shlibsuff=N32 libmagic=N32;;
15843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15845 *) libsuff= shlibsuff= libmagic=never-match;;
15846 esac
15847 ;;
15848 esac
15849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15850 shlibpath_overrides_runpath=no
15851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15853 hardcode_into_libs=yes
15854 ;;
15855
15856# No shared lib support for Linux oldld, aout, or coff.
15857linux*oldld* | linux*aout* | linux*coff*)
15858 dynamic_linker=no
15859 ;;
15860
15861# This must be Linux ELF.
15862linux* | k*bsd*-gnu)
15863 version_type=linux
15864 need_lib_prefix=no
15865 need_version=no
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15867 soname_spec='${libname}${release}${shared_ext}$major'
15868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15869 shlibpath_var=LD_LIBRARY_PATH
15870 shlibpath_overrides_runpath=no
15871 # This implies no fast_install, which is unacceptable.
15872 # Some rework will be needed to allow for fast_install
15873 # before this can be enabled.
15874 hardcode_into_libs=yes
15875
15876 # Append ld.so.conf contents to the search path
15877 if test -f /etc/ld.so.conf; then
15878 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15879 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15880 fi
15881
15882 # We used to test for /lib/ld.so.1 and disable shared libraries on
15883 # powerpc, because MkLinux only supported shared libraries with the
15884 # GNU dynamic linker. Since this was broken with cross compilers,
15885 # most powerpc-linux boxes support dynamic linking these days and
15886 # people can always --disable-shared, the test was removed, and we
15887 # assume the GNU/Linux dynamic linker is in use.
15888 dynamic_linker='GNU/Linux ld.so'
15889 ;;
15890
15891netbsdelf*-gnu)
15892 version_type=linux
15893 need_lib_prefix=no
15894 need_version=no
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 shlibpath_var=LD_LIBRARY_PATH
15898 shlibpath_overrides_runpath=no
15899 hardcode_into_libs=yes
15900 dynamic_linker='NetBSD ld.elf_so'
15901 ;;
15902
15903netbsd*)
15904 version_type=sunos
15905 need_lib_prefix=no
15906 need_version=no
15907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15910 dynamic_linker='NetBSD (a.out) ld.so'
15911 else
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 dynamic_linker='NetBSD ld.elf_so'
15915 fi
15916 shlibpath_var=LD_LIBRARY_PATH
15917 shlibpath_overrides_runpath=yes
15918 hardcode_into_libs=yes
15919 ;;
15920
15921newsos6)
15922 version_type=linux
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924 shlibpath_var=LD_LIBRARY_PATH
15925 shlibpath_overrides_runpath=yes
15926 ;;
15927
15928nto-qnx*)
15929 version_type=linux
15930 need_lib_prefix=no
15931 need_version=no
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933 soname_spec='${libname}${release}${shared_ext}$major'
15934 shlibpath_var=LD_LIBRARY_PATH
15935 shlibpath_overrides_runpath=yes
15936 ;;
15937
15938openbsd*)
15939 version_type=sunos
15940 sys_lib_dlsearch_path_spec="/usr/lib"
15941 need_lib_prefix=no
15942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15943 case $host_os in
15944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15945 *) need_version=no ;;
15946 esac
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15951 case $host_os in
15952 openbsd2.[89] | openbsd2.[89].*)
15953 shlibpath_overrides_runpath=no
15954 ;;
15955 *)
15956 shlibpath_overrides_runpath=yes
15957 ;;
15958 esac
15959 else
15960 shlibpath_overrides_runpath=yes
15961 fi
15962 ;;
15963
15964os2*)
15965 libname_spec='$name'
15966 shrext_cmds=".dll"
15967 need_lib_prefix=no
15968 library_names_spec='$libname${shared_ext} $libname.a'
15969 dynamic_linker='OS/2 ld.exe'
15970 shlibpath_var=LIBPATH
15971 ;;
15972
15973osf3* | osf4* | osf5*)
15974 version_type=osf
15975 need_lib_prefix=no
15976 need_version=no
15977 soname_spec='${libname}${release}${shared_ext}$major'
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15979 shlibpath_var=LD_LIBRARY_PATH
15980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15982 ;;
15983
15984solaris*)
15985 version_type=linux
15986 need_lib_prefix=no
15987 need_version=no
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989 soname_spec='${libname}${release}${shared_ext}$major'
15990 shlibpath_var=LD_LIBRARY_PATH
15991 shlibpath_overrides_runpath=yes
15992 hardcode_into_libs=yes
15993 # ldd complains unless libraries are executable
15994 postinstall_cmds='chmod +x $lib'
15995 ;;
15996
15997sunos4*)
15998 version_type=sunos
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16001 shlibpath_var=LD_LIBRARY_PATH
16002 shlibpath_overrides_runpath=yes
16003 if test "$with_gnu_ld" = yes; then
16004 need_lib_prefix=no
16005 fi
16006 need_version=yes
16007 ;;
16008
16009sysv4 | sysv4.3*)
16010 version_type=linux
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 case $host_vendor in
16015 sni)
16016 shlibpath_overrides_runpath=no
16017 need_lib_prefix=no
16018 export_dynamic_flag_spec='${wl}-Blargedynsym'
16019 runpath_var=LD_RUN_PATH
16020 ;;
16021 siemens)
16022 need_lib_prefix=no
16023 ;;
16024 motorola)
16025 need_lib_prefix=no
16026 need_version=no
16027 shlibpath_overrides_runpath=no
16028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16029 ;;
16030 esac
16031 ;;
16032
16033sysv4*MP*)
16034 if test -d /usr/nec ;then
16035 version_type=linux
16036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16037 soname_spec='$libname${shared_ext}.$major'
16038 shlibpath_var=LD_LIBRARY_PATH
16039 fi
16040 ;;
16041
16042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16043 version_type=freebsd-elf
16044 need_lib_prefix=no
16045 need_version=no
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16047 soname_spec='${libname}${release}${shared_ext}$major'
16048 shlibpath_var=LD_LIBRARY_PATH
16049 hardcode_into_libs=yes
16050 if test "$with_gnu_ld" = yes; then
16051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16052 shlibpath_overrides_runpath=no
16053 else
16054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16055 shlibpath_overrides_runpath=yes
16056 case $host_os in
16057 sco3.2v5*)
16058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16059 ;;
16060 esac
16061 fi
16062 sys_lib_dlsearch_path_spec='/usr/lib'
16063 ;;
16064
16065uts4*)
16066 version_type=linux
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068 soname_spec='${libname}${release}${shared_ext}$major'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 ;;
16071
16072*)
16073 dynamic_linker=no
16074 ;;
16075esac
16076{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16077echo "${ECHO_T}$dynamic_linker" >&6; }
16078test "$dynamic_linker" = no && can_build_shared=no
16079
16080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16081if test "$GCC" = yes; then
16082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16083fi
16084
16085{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16086echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16087hardcode_action_F77=
16088if test -n "$hardcode_libdir_flag_spec_F77" || \
16089 test -n "$runpath_var_F77" || \
16090 test "X$hardcode_automatic_F77" = "Xyes" ; then
16091
16092 # We can hardcode non-existant directories.
16093 if test "$hardcode_direct_F77" != no &&
16094 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16095 # have to relink, otherwise we might link with an installed library
16096 # when we should be linking with a yet-to-be-installed one
16097 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16098 test "$hardcode_minus_L_F77" != no; then
16099 # Linking always hardcodes the temporary library directory.
16100 hardcode_action_F77=relink
16101 else
16102 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16103 hardcode_action_F77=immediate
16104 fi
16105else
16106 # We cannot hardcode anything, or else we can only hardcode existing
16107 # directories.
16108 hardcode_action_F77=unsupported
16109fi
16110{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16111echo "${ECHO_T}$hardcode_action_F77" >&6; }
16112
16113if test "$hardcode_action_F77" = relink; then
16114 # Fast installation is not supported
16115 enable_fast_install=no
16116elif test "$shlibpath_overrides_runpath" = yes ||
16117 test "$enable_shared" = no; then
16118 # Fast installation is not necessary
16119 enable_fast_install=needless
16120fi
16121
16122
16123# The else clause should only fire when bootstrapping the
16124# libtool distribution, otherwise you forgot to ship ltmain.sh
16125# with your package, and you will get complaints that there are
16126# no rules to generate ltmain.sh.
16127if test -f "$ltmain"; then
16128 # See if we are running on zsh, and set the options which allow our commands through
16129 # without removal of \ escapes.
16130 if test -n "${ZSH_VERSION+set}" ; then
16131 setopt NO_GLOB_SUBST
16132 fi
16133 # Now quote all the things that may contain metacharacters while being
16134 # careful not to overquote the AC_SUBSTed values. We take copies of the
16135 # variables and quote the copies for generation of the libtool script.
16136 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16137 SED SHELL STRIP \
16138 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16139 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16140 deplibs_check_method reload_flag reload_cmds need_locks \
16141 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16142 lt_cv_sys_global_symbol_to_c_name_address \
16143 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16144 old_postinstall_cmds old_postuninstall_cmds \
16145 compiler_F77 \
16146 CC_F77 \
16147 LD_F77 \
16148 lt_prog_compiler_wl_F77 \
16149 lt_prog_compiler_pic_F77 \
16150 lt_prog_compiler_static_F77 \
16151 lt_prog_compiler_no_builtin_flag_F77 \
16152 export_dynamic_flag_spec_F77 \
16153 thread_safe_flag_spec_F77 \
16154 whole_archive_flag_spec_F77 \
16155 enable_shared_with_static_runtimes_F77 \
16156 old_archive_cmds_F77 \
16157 old_archive_from_new_cmds_F77 \
16158 predep_objects_F77 \
16159 postdep_objects_F77 \
16160 predeps_F77 \
16161 postdeps_F77 \
16162 compiler_lib_search_path_F77 \
16163 archive_cmds_F77 \
16164 archive_expsym_cmds_F77 \
16165 postinstall_cmds_F77 \
16166 postuninstall_cmds_F77 \
16167 old_archive_from_expsyms_cmds_F77 \
16168 allow_undefined_flag_F77 \
16169 no_undefined_flag_F77 \
16170 export_symbols_cmds_F77 \
16171 hardcode_libdir_flag_spec_F77 \
16172 hardcode_libdir_flag_spec_ld_F77 \
16173 hardcode_libdir_separator_F77 \
16174 hardcode_automatic_F77 \
16175 module_cmds_F77 \
16176 module_expsym_cmds_F77 \
16177 lt_cv_prog_compiler_c_o_F77 \
16178 exclude_expsyms_F77 \
16179 include_expsyms_F77; do
16180
16181 case $var in
16182 old_archive_cmds_F77 | \
16183 old_archive_from_new_cmds_F77 | \
16184 archive_cmds_F77 | \
16185 archive_expsym_cmds_F77 | \
16186 module_cmds_F77 | \
16187 module_expsym_cmds_F77 | \
16188 old_archive_from_expsyms_cmds_F77 | \
16189 export_symbols_cmds_F77 | \
16190 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16191 postinstall_cmds | postuninstall_cmds | \
16192 old_postinstall_cmds | old_postuninstall_cmds | \
16193 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16194 # Double-quote double-evaled strings.
16195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16196 ;;
16197 *)
16198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16199 ;;
16200 esac
16201 done
16202
16203 case $lt_echo in
16204 *'\$0 --fallback-echo"')
16205 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16206 ;;
16207 esac
16208
16209cfgfile="$ofile"
16210
16211 cat <<__EOF__ >> "$cfgfile"
16212# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16213
16214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16215
16216# Shell to use when invoking shell scripts.
16217SHELL=$lt_SHELL
16218
16219# Whether or not to build shared libraries.
16220build_libtool_libs=$enable_shared
16221
16222# Whether or not to build static libraries.
16223build_old_libs=$enable_static
16224
16225# Whether or not to add -lc for building shared libraries.
16226build_libtool_need_lc=$archive_cmds_need_lc_F77
16227
16228# Whether or not to disallow shared libs when runtime libs are static
16229allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16230
16231# Whether or not to optimize for fast installation.
16232fast_install=$enable_fast_install
16233
16234# The host system.
16235host_alias=$host_alias
16236host=$host
16237host_os=$host_os
16238
16239# The build system.
16240build_alias=$build_alias
16241build=$build
16242build_os=$build_os
16243
16244# An echo program that does not interpret backslashes.
16245echo=$lt_echo
16246
16247# The archiver.
16248AR=$lt_AR
16249AR_FLAGS=$lt_AR_FLAGS
16250
16251# A C compiler.
16252LTCC=$lt_LTCC
16253
16254# LTCC compiler flags.
16255LTCFLAGS=$lt_LTCFLAGS
16256
16257# A language-specific compiler.
16258CC=$lt_compiler_F77
16259
16260# Is the compiler the GNU C compiler?
16261with_gcc=$GCC_F77
16262
16263# An ERE matcher.
16264EGREP=$lt_EGREP
16265
16266# The linker used to build libraries.
16267LD=$lt_LD_F77
16268
16269# Whether we need hard or soft links.
16270LN_S=$lt_LN_S
16271
16272# A BSD-compatible nm program.
16273NM=$lt_NM
16274
16275# A symbol stripping program
16276STRIP=$lt_STRIP
16277
16278# Used to examine libraries when file_magic_cmd begins "file"
16279MAGIC_CMD=$MAGIC_CMD
16280
16281# Used on cygwin: DLL creation program.
16282DLLTOOL="$DLLTOOL"
16283
16284# Used on cygwin: object dumper.
16285OBJDUMP="$OBJDUMP"
16286
16287# Used on cygwin: assembler.
16288AS="$AS"
16289
16290# The name of the directory that contains temporary libtool files.
16291objdir=$objdir
16292
16293# How to create reloadable object files.
16294reload_flag=$lt_reload_flag
16295reload_cmds=$lt_reload_cmds
16296
16297# How to pass a linker flag through the compiler.
16298wl=$lt_lt_prog_compiler_wl_F77
16299
16300# Object file suffix (normally "o").
16301objext="$ac_objext"
16302
16303# Old archive suffix (normally "a").
16304libext="$libext"
16305
16306# Shared library suffix (normally ".so").
16307shrext_cmds='$shrext_cmds'
16308
16309# Executable file suffix (normally "").
16310exeext="$exeext"
16311
16312# Additional compiler flags for building library objects.
16313pic_flag=$lt_lt_prog_compiler_pic_F77
16314pic_mode=$pic_mode
16315
16316# What is the maximum length of a command?
16317max_cmd_len=$lt_cv_sys_max_cmd_len
16318
16319# Does compiler simultaneously support -c and -o options?
16320compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16321
16322# Must we lock files when doing compilation?
16323need_locks=$lt_need_locks
16324
16325# Do we need the lib prefix for modules?
16326need_lib_prefix=$need_lib_prefix
16327
16328# Do we need a version for libraries?
16329need_version=$need_version
16330
16331# Whether dlopen is supported.
16332dlopen_support=$enable_dlopen
16333
16334# Whether dlopen of programs is supported.
16335dlopen_self=$enable_dlopen_self
16336
16337# Whether dlopen of statically linked programs is supported.
16338dlopen_self_static=$enable_dlopen_self_static
16339
16340# Compiler flag to prevent dynamic linking.
16341link_static_flag=$lt_lt_prog_compiler_static_F77
16342
16343# Compiler flag to turn off builtin functions.
16344no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16345
16346# Compiler flag to allow reflexive dlopens.
16347export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16348
16349# Compiler flag to generate shared objects directly from archives.
16350whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16351
16352# Compiler flag to generate thread-safe objects.
16353thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16354
16355# Library versioning type.
16356version_type=$version_type
16357
16358# Format of library name prefix.
16359libname_spec=$lt_libname_spec
16360
16361# List of archive names. First name is the real one, the rest are links.
16362# The last name is the one that the linker finds with -lNAME.
16363library_names_spec=$lt_library_names_spec
16364
16365# The coded name of the library, if different from the real name.
16366soname_spec=$lt_soname_spec
16367
16368# Commands used to build and install an old-style archive.
16369RANLIB=$lt_RANLIB
16370old_archive_cmds=$lt_old_archive_cmds_F77
16371old_postinstall_cmds=$lt_old_postinstall_cmds
16372old_postuninstall_cmds=$lt_old_postuninstall_cmds
16373
16374# Create an old-style archive from a shared archive.
16375old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16376
16377# Create a temporary old-style archive to link instead of a shared archive.
16378old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16379
16380# Commands used to build and install a shared archive.
16381archive_cmds=$lt_archive_cmds_F77
16382archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16383postinstall_cmds=$lt_postinstall_cmds
16384postuninstall_cmds=$lt_postuninstall_cmds
16385
16386# Commands used to build a loadable module (assumed same as above if empty)
16387module_cmds=$lt_module_cmds_F77
16388module_expsym_cmds=$lt_module_expsym_cmds_F77
16389
16390# Commands to strip libraries.
16391old_striplib=$lt_old_striplib
16392striplib=$lt_striplib
16393
16394# Dependencies to place before the objects being linked to create a
16395# shared library.
16396predep_objects=$lt_predep_objects_F77
16397
16398# Dependencies to place after the objects being linked to create a
16399# shared library.
16400postdep_objects=$lt_postdep_objects_F77
16401
16402# Dependencies to place before the objects being linked to create a
16403# shared library.
16404predeps=$lt_predeps_F77
16405
16406# Dependencies to place after the objects being linked to create a
16407# shared library.
16408postdeps=$lt_postdeps_F77
16409
16410# The library search path used internally by the compiler when linking
16411# a shared library.
16412compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16413
16414# Method to check whether dependent libraries are shared objects.
16415deplibs_check_method=$lt_deplibs_check_method
16416
16417# Command to use when deplibs_check_method == file_magic.
16418file_magic_cmd=$lt_file_magic_cmd
16419
16420# Flag that allows shared libraries with undefined symbols to be built.
16421allow_undefined_flag=$lt_allow_undefined_flag_F77
16422
16423# Flag that forces no undefined symbols.
16424no_undefined_flag=$lt_no_undefined_flag_F77
16425
16426# Commands used to finish a libtool library installation in a directory.
16427finish_cmds=$lt_finish_cmds
16428
16429# Same as above, but a single script fragment to be evaled but not shown.
16430finish_eval=$lt_finish_eval
16431
16432# Take the output of nm and produce a listing of raw symbols and C names.
16433global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16434
16435# Transform the output of nm in a proper C declaration
16436global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16437
16438# Transform the output of nm in a C name address pair
16439global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16440
16441# This is the shared library runtime path variable.
16442runpath_var=$runpath_var
16443
16444# This is the shared library path variable.
16445shlibpath_var=$shlibpath_var
16446
16447# Is shlibpath searched before the hard-coded library search path?
16448shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16449
16450# How to hardcode a shared library path into an executable.
16451hardcode_action=$hardcode_action_F77
16452
16453# Whether we should hardcode library paths into libraries.
16454hardcode_into_libs=$hardcode_into_libs
16455
16456# Flag to hardcode \$libdir into a binary during linking.
16457# This must work even if \$libdir does not exist.
16458hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16459
16460# If ld is used when linking, flag to hardcode \$libdir into
16461# a binary during linking. This must work even if \$libdir does
16462# not exist.
16463hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16464
16465# Whether we need a single -rpath flag with a separated argument.
16466hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16467
16468# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16469# resulting binary.
16470hardcode_direct=$hardcode_direct_F77
16471
16472# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16473# resulting binary.
16474hardcode_minus_L=$hardcode_minus_L_F77
16475
16476# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16477# the resulting binary.
16478hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16479
16480# Set to yes if building a shared library automatically hardcodes DIR into the library
16481# and all subsequent libraries and executables linked against it.
16482hardcode_automatic=$hardcode_automatic_F77
16483
16484# Variables whose values should be saved in libtool wrapper scripts and
16485# restored at relink time.
16486variables_saved_for_relink="$variables_saved_for_relink"
16487
16488# Whether libtool must link a program against all its dependency libraries.
16489link_all_deplibs=$link_all_deplibs_F77
16490
16491# Compile-time system search path for libraries
16492sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16493
16494# Run-time system search path for libraries
16495sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16496
16497# Fix the shell variable \$srcfile for the compiler.
16498fix_srcfile_path="$fix_srcfile_path_F77"
16499
16500# Set to yes if exported symbols are required.
16501always_export_symbols=$always_export_symbols_F77
16502
16503# The commands to list exported symbols.
16504export_symbols_cmds=$lt_export_symbols_cmds_F77
16505
16506# The commands to extract the exported symbol list from a shared archive.
16507extract_expsyms_cmds=$lt_extract_expsyms_cmds
16508
16509# Symbols that should not be listed in the preloaded symbols.
16510exclude_expsyms=$lt_exclude_expsyms_F77
16511
16512# Symbols that must always be exported.
16513include_expsyms=$lt_include_expsyms_F77
16514
16515# ### END LIBTOOL TAG CONFIG: $tagname
16516
16517__EOF__
16518
16519
16520else
16521 # If there is no Makefile yet, we rely on a make rule to execute
16522 # `config.status --recheck' to rerun these tests and create the
16523 # libtool script then.
16524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16525 if test -f "$ltmain_in"; then
16526 test -f Makefile && make "$ltmain"
16527 fi
16528fi
16529
16530
16531ac_ext=c
16532ac_cpp='$CPP $CPPFLAGS'
16533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16535ac_compiler_gnu=$ac_cv_c_compiler_gnu
16536
16537CC="$lt_save_CC"
16538
16539 else
16540 tagname=""
16541 fi
16542 ;;
16543
16544 GCJ)
16545 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16546
16547
16548# Source file extension for Java test sources.
16549ac_ext=java
16550
16551# Object file extension for compiled Java test sources.
16552objext=o
16553objext_GCJ=$objext
16554
16555# Code to be used in simple compile tests
16556lt_simple_compile_test_code="class foo {}\n"
16557
16558# Code to be used in simple link tests
16559lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16560
16561# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16562
16563# If no C compiler was specified, use CC.
16564LTCC=${LTCC-"$CC"}
16565
16566# If no C compiler flags were specified, use CFLAGS.
16567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16568
16569# Allow CC to be a program name with arguments.
16570compiler=$CC
16571
16572
16573# save warnings/boilerplate of simple test code
16574ac_outfile=conftest.$ac_objext
16575printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16576eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16577_lt_compiler_boilerplate=`cat conftest.err`
16578$rm conftest*
16579
16580ac_outfile=conftest.$ac_objext
16581printf "$lt_simple_link_test_code" >conftest.$ac_ext
16582eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16583_lt_linker_boilerplate=`cat conftest.err`
16584$rm conftest*
16585
16586
16587# Allow CC to be a program name with arguments.
16588lt_save_CC="$CC"
16589CC=${GCJ-"gcj"}
16590compiler=$CC
16591compiler_GCJ=$CC
16592for cc_temp in $compiler""; do
16593 case $cc_temp in
16594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16596 \-*) ;;
16597 *) break;;
16598 esac
16599done
16600cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16601
16602
16603# GCJ did not exist at the time GCC didn't implicitly link libc in.
16604archive_cmds_need_lc_GCJ=no
16605
16606old_archive_cmds_GCJ=$old_archive_cmds
16607
16608
16609lt_prog_compiler_no_builtin_flag_GCJ=
16610
16611if test "$GCC" = yes; then
16612 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16613
16614
16615{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16616echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16617if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619else
16620 lt_cv_prog_compiler_rtti_exceptions=no
16621 ac_outfile=conftest.$ac_objext
16622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16623 lt_compiler_flag="-fno-rtti -fno-exceptions"
16624 # Insert the option either (1) after the last *FLAGS variable, or
16625 # (2) before a word containing "conftest.", or (3) at the end.
16626 # Note that $ac_compile itself does not contain backslashes and begins
16627 # with a dollar sign (not a hyphen), so the echo should work correctly.
16628 # The option is referenced via a variable to avoid confusing sed.
16629 lt_compile=`echo "$ac_compile" | $SED \
16630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16632 -e 's:$: $lt_compiler_flag:'`
16633 (eval echo "\"\$as_me:16633: $lt_compile\"" >&5)
16634 (eval "$lt_compile" 2>conftest.err)
16635 ac_status=$?
16636 cat conftest.err >&5
16637 echo "$as_me:16637: \$? = $ac_status" >&5
16638 if (exit $ac_status) && test -s "$ac_outfile"; then
16639 # The compiler can only warn and ignore the option if not recognized
16640 # So say no if there are warnings other than the usual output.
16641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16644 lt_cv_prog_compiler_rtti_exceptions=yes
16645 fi
16646 fi
16647 $rm conftest*
16648
16649fi
16650{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16651echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16652
16653if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16654 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16655else
16656 :
16657fi
16658
16659fi
16660
16661lt_prog_compiler_wl_GCJ=
16662lt_prog_compiler_pic_GCJ=
16663lt_prog_compiler_static_GCJ=
16664
16665{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16666echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16667
16668 if test "$GCC" = yes; then
16669 lt_prog_compiler_wl_GCJ='-Wl,'
16670 lt_prog_compiler_static_GCJ='-static'
16671
16672 case $host_os in
16673 aix*)
16674 # All AIX code is PIC.
16675 if test "$host_cpu" = ia64; then
16676 # AIX 5 now supports IA64 processor
16677 lt_prog_compiler_static_GCJ='-Bstatic'
16678 fi
16679 ;;
16680
16681 amigaos*)
16682 # FIXME: we need at least 68020 code to build shared libraries, but
16683 # adding the `-m68020' flag to GCC prevents building anything better,
16684 # like `-m68040'.
16685 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16686 ;;
16687
16688 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16689 # PIC is the default for these OSes.
16690 ;;
16691
16692 mingw* | pw32* | os2*)
16693 # This hack is so that the source file can tell whether it is being
16694 # built for inclusion in a dll (and should export symbols for example).
16695 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16696 ;;
16697
16698 darwin* | rhapsody*)
16699 # PIC is the default on this platform
16700 # Common symbols not allowed in MH_DYLIB files
16701 lt_prog_compiler_pic_GCJ='-fno-common'
16702 ;;
16703
16704 interix3*)
16705 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16706 # Instead, we relocate shared libraries at runtime.
16707 ;;
16708
16709 msdosdjgpp*)
16710 # Just because we use GCC doesn't mean we suddenly get shared libraries
16711 # on systems that don't support them.
16712 lt_prog_compiler_can_build_shared_GCJ=no
16713 enable_shared=no
16714 ;;
16715
16716 sysv4*MP*)
16717 if test -d /usr/nec; then
16718 lt_prog_compiler_pic_GCJ=-Kconform_pic
16719 fi
16720 ;;
16721
16722 hpux*)
16723 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16724 # not for PA HP-UX.
16725 case $host_cpu in
16726 hppa*64*|ia64*)
16727 # +Z the default
16728 ;;
16729 *)
16730 lt_prog_compiler_pic_GCJ='-fPIC'
16731 ;;
16732 esac
16733 ;;
16734
16735 *)
16736 lt_prog_compiler_pic_GCJ='-fPIC'
16737 ;;
16738 esac
16739 else
16740 # PORTME Check for flag to pass linker flags through the system compiler.
16741 case $host_os in
16742 aix*)
16743 lt_prog_compiler_wl_GCJ='-Wl,'
16744 if test "$host_cpu" = ia64; then
16745 # AIX 5 now supports IA64 processor
16746 lt_prog_compiler_static_GCJ='-Bstatic'
16747 else
16748 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16749 fi
16750 ;;
16751 darwin*)
16752 # PIC is the default on this platform
16753 # Common symbols not allowed in MH_DYLIB files
16754 case $cc_basename in
16755 xlc*)
16756 lt_prog_compiler_pic_GCJ='-qnocommon'
16757 lt_prog_compiler_wl_GCJ='-Wl,'
16758 ;;
16759 esac
16760 ;;
16761
16762 mingw* | pw32* | os2*)
16763 # This hack is so that the source file can tell whether it is being
16764 # built for inclusion in a dll (and should export symbols for example).
16765 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16766 ;;
16767
16768 hpux9* | hpux10* | hpux11*)
16769 lt_prog_compiler_wl_GCJ='-Wl,'
16770 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16771 # not for PA HP-UX.
16772 case $host_cpu in
16773 hppa*64*|ia64*)
16774 # +Z the default
16775 ;;
16776 *)
16777 lt_prog_compiler_pic_GCJ='+Z'
16778 ;;
16779 esac
16780 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16781 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16782 ;;
16783
16784 irix5* | irix6* | nonstopux*)
16785 lt_prog_compiler_wl_GCJ='-Wl,'
16786 # PIC (with -KPIC) is the default.
16787 lt_prog_compiler_static_GCJ='-non_shared'
16788 ;;
16789
16790 newsos6)
16791 lt_prog_compiler_pic_GCJ='-KPIC'
16792 lt_prog_compiler_static_GCJ='-Bstatic'
16793 ;;
16794
16795 linux* | k*bsd*-gnu)
16796 case $cc_basename in
16797 icc* | ecc*)
16798 lt_prog_compiler_wl_GCJ='-Wl,'
16799 lt_prog_compiler_pic_GCJ='-KPIC'
16800 lt_prog_compiler_static_GCJ='-static'
16801 ;;
16802 pgcc* | pgf77* | pgf90* | pgf95*)
16803 # Portland Group compilers (*not* the Pentium gcc compiler,
16804 # which looks to be a dead project)
16805 lt_prog_compiler_wl_GCJ='-Wl,'
16806 lt_prog_compiler_pic_GCJ='-fpic'
16807 lt_prog_compiler_static_GCJ='-Bstatic'
16808 ;;
16809 ccc*)
16810 lt_prog_compiler_wl_GCJ='-Wl,'
16811 # All Alpha code is PIC.
16812 lt_prog_compiler_static_GCJ='-non_shared'
16813 ;;
16814 esac
16815 ;;
16816
16817 osf3* | osf4* | osf5*)
16818 lt_prog_compiler_wl_GCJ='-Wl,'
16819 # All OSF/1 code is PIC.
16820 lt_prog_compiler_static_GCJ='-non_shared'
16821 ;;
16822
16823 solaris*)
16824 lt_prog_compiler_pic_GCJ='-KPIC'
16825 lt_prog_compiler_static_GCJ='-Bstatic'
16826 case $cc_basename in
16827 f77* | f90* | f95*)
16828 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16829 *)
16830 lt_prog_compiler_wl_GCJ='-Wl,';;
16831 esac
16832 ;;
16833
16834 sunos4*)
16835 lt_prog_compiler_wl_GCJ='-Qoption ld '
16836 lt_prog_compiler_pic_GCJ='-PIC'
16837 lt_prog_compiler_static_GCJ='-Bstatic'
16838 ;;
16839
16840 sysv4 | sysv4.2uw2* | sysv4.3*)
16841 lt_prog_compiler_wl_GCJ='-Wl,'
16842 lt_prog_compiler_pic_GCJ='-KPIC'
16843 lt_prog_compiler_static_GCJ='-Bstatic'
16844 ;;
16845
16846 sysv4*MP*)
16847 if test -d /usr/nec ;then
16848 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16849 lt_prog_compiler_static_GCJ='-Bstatic'
16850 fi
16851 ;;
16852
16853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16854 lt_prog_compiler_wl_GCJ='-Wl,'
16855 lt_prog_compiler_pic_GCJ='-KPIC'
16856 lt_prog_compiler_static_GCJ='-Bstatic'
16857 ;;
16858
16859 unicos*)
16860 lt_prog_compiler_wl_GCJ='-Wl,'
16861 lt_prog_compiler_can_build_shared_GCJ=no
16862 ;;
16863
16864 uts4*)
16865 lt_prog_compiler_pic_GCJ='-pic'
16866 lt_prog_compiler_static_GCJ='-Bstatic'
16867 ;;
16868
16869 *)
16870 lt_prog_compiler_can_build_shared_GCJ=no
16871 ;;
16872 esac
16873 fi
16874
16875{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16876echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16877
16878#
16879# Check to make sure the PIC flag actually works.
16880#
16881if test -n "$lt_prog_compiler_pic_GCJ"; then
16882
16883{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16884echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16885if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887else
16888 lt_prog_compiler_pic_works_GCJ=no
16889 ac_outfile=conftest.$ac_objext
16890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16891 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16892 # Insert the option either (1) after the last *FLAGS variable, or
16893 # (2) before a word containing "conftest.", or (3) at the end.
16894 # Note that $ac_compile itself does not contain backslashes and begins
16895 # with a dollar sign (not a hyphen), so the echo should work correctly.
16896 # The option is referenced via a variable to avoid confusing sed.
16897 lt_compile=`echo "$ac_compile" | $SED \
16898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900 -e 's:$: $lt_compiler_flag:'`
16901 (eval echo "\"\$as_me:16901: $lt_compile\"" >&5)
16902 (eval "$lt_compile" 2>conftest.err)
16903 ac_status=$?
16904 cat conftest.err >&5
16905 echo "$as_me:16905: \$? = $ac_status" >&5
16906 if (exit $ac_status) && test -s "$ac_outfile"; then
16907 # The compiler can only warn and ignore the option if not recognized
16908 # So say no if there are warnings other than the usual output.
16909 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16912 lt_prog_compiler_pic_works_GCJ=yes
16913 fi
16914 fi
16915 $rm conftest*
16916
16917fi
16918{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16919echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16920
16921if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16922 case $lt_prog_compiler_pic_GCJ in
16923 "" | " "*) ;;
16924 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16925 esac
16926else
16927 lt_prog_compiler_pic_GCJ=
16928 lt_prog_compiler_can_build_shared_GCJ=no
16929fi
16930
16931fi
16932case $host_os in
16933 # For platforms which do not support PIC, -DPIC is meaningless:
16934 *djgpp*)
16935 lt_prog_compiler_pic_GCJ=
16936 ;;
16937 *)
16938 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16939 ;;
16940esac
16941
16942#
16943# Check to make sure the static flag actually works.
16944#
16945wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16946{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16947echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16948if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16950else
16951 lt_prog_compiler_static_works_GCJ=no
16952 save_LDFLAGS="$LDFLAGS"
16953 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16954 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16955 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16956 # The linker can only warn and ignore the option if not recognized
16957 # So say no if there are warnings
16958 if test -s conftest.err; then
16959 # Append any errors to the config.log.
16960 cat conftest.err 1>&5
16961 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16963 if diff conftest.exp conftest.er2 >/dev/null; then
16964 lt_prog_compiler_static_works_GCJ=yes
16965 fi
16966 else
16967 lt_prog_compiler_static_works_GCJ=yes
16968 fi
16969 fi
16970 $rm conftest*
16971 LDFLAGS="$save_LDFLAGS"
16972
16973fi
16974{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16975echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16976
16977if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16978 :
16979else
16980 lt_prog_compiler_static_GCJ=
16981fi
16982
16983
16984{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16985echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16986if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16988else
16989 lt_cv_prog_compiler_c_o_GCJ=no
16990 $rm -r conftest 2>/dev/null
16991 mkdir conftest
16992 cd conftest
16993 mkdir out
16994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16995
16996 lt_compiler_flag="-o out/conftest2.$ac_objext"
16997 # Insert the option either (1) after the last *FLAGS variable, or
16998 # (2) before a word containing "conftest.", or (3) at the end.
16999 # Note that $ac_compile itself does not contain backslashes and begins
17000 # with a dollar sign (not a hyphen), so the echo should work correctly.
17001 lt_compile=`echo "$ac_compile" | $SED \
17002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17004 -e 's:$: $lt_compiler_flag:'`
17005 (eval echo "\"\$as_me:17005: $lt_compile\"" >&5)
17006 (eval "$lt_compile" 2>out/conftest.err)
17007 ac_status=$?
17008 cat out/conftest.err >&5
17009 echo "$as_me:17009: \$? = $ac_status" >&5
17010 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17011 then
17012 # The compiler can only warn and ignore the option if not recognized
17013 # So say no if there are warnings
17014 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17015 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17016 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17017 lt_cv_prog_compiler_c_o_GCJ=yes
17018 fi
17019 fi
17020 chmod u+w . 2>&5
17021 $rm conftest*
17022 # SGI C++ compiler will create directory out/ii_files/ for
17023 # template instantiation
17024 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17025 $rm out/* && rmdir out
17026 cd ..
17027 rmdir conftest
17028 $rm conftest*
17029
17030fi
17031{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17032echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17033
17034
17035hard_links="nottested"
17036if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17037 # do not overwrite the value of need_locks provided by the user
17038 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17039echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17040 hard_links=yes
17041 $rm conftest*
17042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17043 touch conftest.a
17044 ln conftest.a conftest.b 2>&5 || hard_links=no
17045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17046 { echo "$as_me:$LINENO: result: $hard_links" >&5
17047echo "${ECHO_T}$hard_links" >&6; }
17048 if test "$hard_links" = no; then
17049 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17050echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17051 need_locks=warn
17052 fi
17053else
17054 need_locks=no
17055fi
17056
17057{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17058echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17059
17060 runpath_var=
17061 allow_undefined_flag_GCJ=
17062 enable_shared_with_static_runtimes_GCJ=no
17063 archive_cmds_GCJ=
17064 archive_expsym_cmds_GCJ=
17065 old_archive_From_new_cmds_GCJ=
17066 old_archive_from_expsyms_cmds_GCJ=
17067 export_dynamic_flag_spec_GCJ=
17068 whole_archive_flag_spec_GCJ=
17069 thread_safe_flag_spec_GCJ=
17070 hardcode_libdir_flag_spec_GCJ=
17071 hardcode_libdir_flag_spec_ld_GCJ=
17072 hardcode_libdir_separator_GCJ=
17073 hardcode_direct_GCJ=no
17074 hardcode_minus_L_GCJ=no
17075 hardcode_shlibpath_var_GCJ=unsupported
17076 link_all_deplibs_GCJ=unknown
17077 hardcode_automatic_GCJ=no
17078 module_cmds_GCJ=
17079 module_expsym_cmds_GCJ=
17080 always_export_symbols_GCJ=no
17081 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17082 # include_expsyms should be a list of space-separated symbols to be *always*
17083 # included in the symbol list
17084 include_expsyms_GCJ=
17085 # exclude_expsyms can be an extended regexp of symbols to exclude
17086 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17087 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17088 # as well as any symbol that contains `d'.
17089 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17090 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17091 # platforms (ab)use it in PIC code, but their linkers get confused if
17092 # the symbol is explicitly referenced. Since portable code cannot
17093 # rely on this symbol name, it's probably fine to never include it in
17094 # preloaded symbol tables.
17095 extract_expsyms_cmds=
17096 # Just being paranoid about ensuring that cc_basename is set.
17097 for cc_temp in $compiler""; do
17098 case $cc_temp in
17099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17101 \-*) ;;
17102 *) break;;
17103 esac
17104done
17105cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17106
17107 case $host_os in
17108 cygwin* | mingw* | pw32*)
17109 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17110 # When not using gcc, we currently assume that we are using
17111 # Microsoft Visual C++.
17112 if test "$GCC" != yes; then
17113 with_gnu_ld=no
17114 fi
17115 ;;
17116 interix*)
17117 # we just hope/assume this is gcc and not c89 (= MSVC++)
17118 with_gnu_ld=yes
17119 ;;
17120 openbsd*)
17121 with_gnu_ld=no
17122 ;;
17123 esac
17124
17125 ld_shlibs_GCJ=yes
17126 if test "$with_gnu_ld" = yes; then
17127 # If archive_cmds runs LD, not CC, wlarc should be empty
17128 wlarc='${wl}'
17129
17130 # Set some defaults for GNU ld with shared library support. These
17131 # are reset later if shared libraries are not supported. Putting them
17132 # here allows them to be overridden if necessary.
17133 runpath_var=LD_RUN_PATH
17134 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17135 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17136 # ancient GNU ld didn't support --whole-archive et. al.
17137 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17138 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17139 else
17140 whole_archive_flag_spec_GCJ=
17141 fi
17142 supports_anon_versioning=no
17143 case `$LD -v 2>/dev/null` in
17144 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17145 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17146 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17147 *\ 2.11.*) ;; # other 2.11 versions
17148 *) supports_anon_versioning=yes ;;
17149 esac
17150
17151 # See if GNU ld supports shared libraries.
17152 case $host_os in
17153 aix3* | aix4* | aix5*)
17154 # On AIX/PPC, the GNU linker is very broken
17155 if test "$host_cpu" != ia64; then
17156 ld_shlibs_GCJ=no
17157 cat <<EOF 1>&2
17158
17159*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17160*** to be unable to reliably create shared libraries on AIX.
17161*** Therefore, libtool is disabling shared libraries support. If you
17162*** really care for shared libraries, you may want to modify your PATH
17163*** so that a non-GNU linker is found, and then restart.
17164
17165EOF
17166 fi
17167 ;;
17168
17169 amigaos*)
17170 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)'
17171 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17172 hardcode_minus_L_GCJ=yes
17173
17174 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17175 # that the semantics of dynamic libraries on AmigaOS, at least up
17176 # to version 4, is to share data among multiple programs linked
17177 # with the same dynamic library. Since this doesn't match the
17178 # behavior of shared libraries on other platforms, we can't use
17179 # them.
17180 ld_shlibs_GCJ=no
17181 ;;
17182
17183 beos*)
17184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17185 allow_undefined_flag_GCJ=unsupported
17186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17187 # support --undefined. This deserves some investigation. FIXME
17188 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17189 else
17190 ld_shlibs_GCJ=no
17191 fi
17192 ;;
17193
17194 cygwin* | mingw* | pw32*)
17195 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17196 # as there is no search path for DLLs.
17197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198 allow_undefined_flag_GCJ=unsupported
17199 always_export_symbols_GCJ=no
17200 enable_shared_with_static_runtimes_GCJ=yes
17201 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17202
17203 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17204 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17205 # If the export-symbols file already is a .def file (1st line
17206 # is EXPORTS), use it as is; otherwise, prepend...
17207 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17208 cp $export_symbols $output_objdir/$soname.def;
17209 else
17210 echo EXPORTS > $output_objdir/$soname.def;
17211 cat $export_symbols >> $output_objdir/$soname.def;
17212 fi~
17213 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17214 else
17215 ld_shlibs_GCJ=no
17216 fi
17217 ;;
17218
17219 interix3*)
17220 hardcode_direct_GCJ=no
17221 hardcode_shlibpath_var_GCJ=no
17222 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17223 export_dynamic_flag_spec_GCJ='${wl}-E'
17224 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17225 # Instead, shared libraries are loaded at an image base (0x10000000 by
17226 # default) and relocated if they conflict, which is a slow very memory
17227 # consuming and fragmenting process. To avoid this, we pick a random,
17228 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17229 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17230 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'
17231 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'
17232 ;;
17233
17234 linux* | k*bsd*-gnu)
17235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17236 tmp_addflag=
17237 case $cc_basename,$host_cpu in
17238 pgcc*) # Portland Group C compiler
17239 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'
17240 tmp_addflag=' $pic_flag'
17241 ;;
17242 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17243 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'
17244 tmp_addflag=' $pic_flag -Mnomain' ;;
17245 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17246 tmp_addflag=' -i_dynamic' ;;
17247 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17248 tmp_addflag=' -i_dynamic -nofor_main' ;;
17249 ifc* | ifort*) # Intel Fortran compiler
17250 tmp_addflag=' -nofor_main' ;;
17251 esac
17252 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17253
17254 if test $supports_anon_versioning = yes; then
17255 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17256 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17257 $echo "local: *; };" >> $output_objdir/$libname.ver~
17258 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17259 fi
17260 link_all_deplibs_GCJ=no
17261 else
17262 ld_shlibs_GCJ=no
17263 fi
17264 ;;
17265
17266 netbsd* | netbsdelf*-gnu)
17267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17268 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17269 wlarc=
17270 else
17271 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17272 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17273 fi
17274 ;;
17275
17276 solaris*)
17277 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17278 ld_shlibs_GCJ=no
17279 cat <<EOF 1>&2
17280
17281*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17282*** create shared libraries on Solaris systems. Therefore, libtool
17283*** is disabling shared libraries support. We urge you to upgrade GNU
89354eef 17284*** binutils to release 2.9.1 or newer. Another option is to modify
17285*** your PATH or compiler configuration so that the native linker is
17286*** used, and then restart.
17287
17288EOF
f58aa3e1 17289 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17290 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17291 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17292 else
17293 ld_shlibs_GCJ=no
17294 fi
17295 ;;
89354eef 17296
f58aa3e1 17297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17298 case `$LD -v 2>&1` in
17299 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17300 ld_shlibs_GCJ=no
17301 cat <<_LT_EOF 1>&2
89354eef 17302
f58aa3e1 17303*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17304*** reliably create shared libraries on SCO systems. Therefore, libtool
17305*** is disabling shared libraries support. We urge you to upgrade GNU
17306*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17307*** your PATH or compiler configuration so that the native linker is
17308*** used, and then restart.
89354eef 17309
f58aa3e1 17310_LT_EOF
17311 ;;
17312 *)
17313 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17314 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17315 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17316 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17317 else
17318 ld_shlibs_GCJ=no
17319 fi
17320 ;;
17321 esac
89354eef 17322 ;;
f58aa3e1 17323
17324 sunos4*)
17325 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17326 wlarc=
17327 hardcode_direct_GCJ=yes
17328 hardcode_shlibpath_var_GCJ=no
17329 ;;
17330
89354eef 17331 *)
f58aa3e1 17332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17333 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17334 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
89354eef 17335 else
f58aa3e1 17336 ld_shlibs_GCJ=no
89354eef 17337 fi
17338 ;;
17339 esac
89354eef 17340
f58aa3e1 17341 if test "$ld_shlibs_GCJ" = no; then
17342 runpath_var=
17343 hardcode_libdir_flag_spec_GCJ=
17344 export_dynamic_flag_spec_GCJ=
17345 whole_archive_flag_spec_GCJ=
89354eef 17346 fi
f58aa3e1 17347 else
17348 # PORTME fill in a description of your system's linker (not GNU ld)
17349 case $host_os in
17350 aix3*)
17351 allow_undefined_flag_GCJ=unsupported
17352 always_export_symbols_GCJ=yes
17353 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'
17354 # Note: this linker hardcodes the directories in LIBPATH if there
17355 # are no directories specified by -L.
17356 hardcode_minus_L_GCJ=yes
17357 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17358 # Neither direct hardcoding nor static linking is supported with a
17359 # broken collect2.
17360 hardcode_direct_GCJ=unsupported
17361 fi
17362 ;;
89354eef 17363
f58aa3e1 17364 aix4* | aix5*)
17365 if test "$host_cpu" = ia64; then
17366 # On IA64, the linker does run time linking by default, so we don't
17367 # have to do anything special.
17368 aix_use_runtimelinking=no
17369 exp_sym_flag='-Bexport'
17370 no_entry_flag=""
17371 else
17372 # If we're using GNU nm, then we don't want the "-C" option.
17373 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17374 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17375 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'
89354eef 17376 else
f58aa3e1 17377 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'
89354eef 17378 fi
f58aa3e1 17379 aix_use_runtimelinking=no
17380
17381 # Test if we are trying to use run time linking or normal
17382 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17383 # need to do runtime linking.
17384 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17385 for ld_flag in $LDFLAGS; do
17386 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17387 aix_use_runtimelinking=yes
17388 break
17389 fi
17390 done
17391 ;;
17392 esac
89354eef 17393
f58aa3e1 17394 exp_sym_flag='-bexport'
17395 no_entry_flag='-bnoentry'
17396 fi
17397
17398 # When large executables or shared objects are built, AIX ld can
17399 # have problems creating the table of contents. If linking a library
17400 # or program results in "error TOC overflow" add -mminimal-toc to
17401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17403
17404 archive_cmds_GCJ=''
17405 hardcode_direct_GCJ=yes
17406 hardcode_libdir_separator_GCJ=':'
17407 link_all_deplibs_GCJ=yes
17408
17409 if test "$GCC" = yes; then
17410 case $host_os in aix4.[012]|aix4.[012].*)
17411 # We only want to do this on AIX 4.2 and lower, the check
17412 # below for broken collect2 doesn't work under 4.3+
17413 collect2name=`${CC} -print-prog-name=collect2`
17414 if test -f "$collect2name" && \
17415 strings "$collect2name" | grep resolve_lib_name >/dev/null
17416 then
17417 # We have reworked collect2
17418 hardcode_direct_GCJ=yes
17419 else
17420 # We have old collect2
17421 hardcode_direct_GCJ=unsupported
17422 # It fails to find uninstalled libraries when the uninstalled
17423 # path is not listed in the libpath. Setting hardcode_minus_L
17424 # to unsupported forces relinking
17425 hardcode_minus_L_GCJ=yes
17426 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17427 hardcode_libdir_separator_GCJ=
17428 fi
17429 ;;
17430 esac
17431 shared_flag='-shared'
89354eef 17432 if test "$aix_use_runtimelinking" = yes; then
f58aa3e1 17433 shared_flag="$shared_flag "'${wl}-G'
17434 fi
17435 else
17436 # not using gcc
17437 if test "$host_cpu" = ia64; then
17438 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17439 # chokes on -Wl,-G. The following line is correct:
17440 shared_flag='-G'
89354eef 17441 else
f58aa3e1 17442 if test "$aix_use_runtimelinking" = yes; then
17443 shared_flag='${wl}-G'
17444 else
17445 shared_flag='${wl}-bM:SRE'
17446 fi
89354eef 17447 fi
17448 fi
89354eef 17449
f58aa3e1 17450 # It seems that -bexpall does not export symbols beginning with
17451 # underscore (_), so it is better to generate a list of symbols to export.
17452 always_export_symbols_GCJ=yes
17453 if test "$aix_use_runtimelinking" = yes; then
17454 # Warning - without using the other runtime loading flags (-brtl),
89354eef 17455 # -berok will link without error, but may produce a broken library.
f58aa3e1 17456 allow_undefined_flag_GCJ='-berok'
17457 # Determine the default libpath from the value encoded in an empty executable.
17458 cat >conftest.$ac_ext <<_ACEOF
17459/* confdefs.h. */
17460_ACEOF
17461cat confdefs.h >>conftest.$ac_ext
17462cat >>conftest.$ac_ext <<_ACEOF
17463/* end confdefs.h. */
89354eef 17464
f58aa3e1 17465int
17466main ()
17467{
89354eef 17468
f58aa3e1 17469 ;
17470 return 0;
17471}
17472_ACEOF
17473rm -f conftest.$ac_objext conftest$ac_exeext
17474if { (ac_try="$ac_link"
17475case "(($ac_try" in
17476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477 *) ac_try_echo=$ac_try;;
17478esac
17479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480 (eval "$ac_link") 2>conftest.er1
17481 ac_status=$?
17482 grep -v '^ *+' conftest.er1 >conftest.err
17483 rm -f conftest.er1
17484 cat conftest.err >&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
17487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17488 { (case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17491esac
17492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493 (eval "$ac_try") 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest$ac_exeext'
17498 { (case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501esac
17502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_try") 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; }; then
89354eef 17507
f58aa3e1 17508aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17509}'`
17510# Check for a 64-bit object if we didn't find anything.
17511if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17512}'`; fi
17513else
17514 echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
89354eef 17516
89354eef 17517
f58aa3e1 17518fi
89354eef 17519
f58aa3e1 17520rm -f core conftest.err conftest.$ac_objext \
17521 conftest$ac_exeext conftest.$ac_ext
17522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
89354eef 17523
f58aa3e1 17524 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17525 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"
17526 else
17527 if test "$host_cpu" = ia64; then
17528 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17529 allow_undefined_flag_GCJ="-z nodefs"
17530 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"
17531 else
17532 # Determine the default libpath from the value encoded in an empty executable.
17533 cat >conftest.$ac_ext <<_ACEOF
17534/* confdefs.h. */
17535_ACEOF
17536cat confdefs.h >>conftest.$ac_ext
17537cat >>conftest.$ac_ext <<_ACEOF
17538/* end confdefs.h. */
89354eef 17539
f58aa3e1 17540int
17541main ()
17542{
89354eef 17543
f58aa3e1 17544 ;
17545 return 0;
17546}
17547_ACEOF
17548rm -f conftest.$ac_objext conftest$ac_exeext
17549if { (ac_try="$ac_link"
17550case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553esac
17554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_link") 2>conftest.er1
17556 ac_status=$?
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
17562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17563 { (case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17566esac
17567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_try") 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest$ac_exeext'
17573 { (case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17576esac
17577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_try") 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17582
17583aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17584}'`
17585# Check for a 64-bit object if we didn't find anything.
17586if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17587}'`; fi
17588else
17589 echo "$as_me: failed program was:" >&5
17590sed 's/^/| /' conftest.$ac_ext >&5
17591
17592
17593fi
17594
17595rm -f core conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17597if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17598
17599 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17600 # Warning - without using the other run time loading flags,
17601 # -berok will link without error, but may produce a broken library.
17602 no_undefined_flag_GCJ=' ${wl}-bernotok'
17603 allow_undefined_flag_GCJ=' ${wl}-berok'
17604 # Exported symbols can be pulled into shared objects from archives
17605 whole_archive_flag_spec_GCJ='$convenience'
17606 archive_cmds_need_lc_GCJ=yes
17607 # This is similar to how AIX traditionally builds its shared libraries.
17608 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'
17609 fi
17610 fi
17611 ;;
17612
17613 amigaos*)
17614 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)'
17615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17616 hardcode_minus_L_GCJ=yes
17617 # see comment about different semantics on the GNU ld section
17618 ld_shlibs_GCJ=no
17619 ;;
17620
17621 bsdi[45]*)
17622 export_dynamic_flag_spec_GCJ=-rdynamic
17623 ;;
17624
17625 cygwin* | mingw* | pw32*)
17626 # When not using gcc, we currently assume that we are using
17627 # Microsoft Visual C++.
17628 # hardcode_libdir_flag_spec is actually meaningless, as there is
17629 # no search path for DLLs.
17630 hardcode_libdir_flag_spec_GCJ=' '
17631 allow_undefined_flag_GCJ=unsupported
17632 # Tell ltmain to make .lib files, not .a files.
17633 libext=lib
17634 # Tell ltmain to make .dll files, not .so files.
17635 shrext_cmds=".dll"
17636 # FIXME: Setting linknames here is a bad hack.
17637 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17638 # The linker will automatically build a .lib file if we build a DLL.
17639 old_archive_From_new_cmds_GCJ='true'
17640 # FIXME: Should let the user specify the lib program.
17641 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17642 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17643 enable_shared_with_static_runtimes_GCJ=yes
17644 ;;
17645
17646 darwin* | rhapsody*)
17647 case $host_os in
17648 rhapsody* | darwin1.[012])
17649 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17650 ;;
17651 *) # Darwin 1.3 on
17652 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17653 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17654 else
17655 case ${MACOSX_DEPLOYMENT_TARGET} in
17656 10.[012])
17657 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17658 ;;
17659 10.*)
17660 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17661 ;;
17662 esac
17663 fi
17664 ;;
17665 esac
17666 archive_cmds_need_lc_GCJ=no
17667 hardcode_direct_GCJ=no
17668 hardcode_automatic_GCJ=yes
17669 hardcode_shlibpath_var_GCJ=unsupported
17670 whole_archive_flag_spec_GCJ=''
17671 link_all_deplibs_GCJ=yes
17672 if test "$GCC" = yes ; then
17673 output_verbose_link_cmd='echo'
17674 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17675 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17676 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17677 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17678 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}'
89354eef 17679 else
f58aa3e1 17680 case $cc_basename in
17681 xlc*)
17682 output_verbose_link_cmd='echo'
17683 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17684 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17685 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17686 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17687 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}'
17688 ;;
17689 *)
17690 ld_shlibs_GCJ=no
17691 ;;
17692 esac
89354eef 17693 fi
f58aa3e1 17694 ;;
17695
17696 dgux*)
17697 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17698 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17699 hardcode_shlibpath_var_GCJ=no
17700 ;;
17701
17702 freebsd1*)
17703 ld_shlibs_GCJ=no
17704 ;;
17705
17706 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17707 # support. Future versions do this automatically, but an explicit c++rt0.o
17708 # does not break anything, and helps significantly (at the cost of a little
17709 # extra space).
17710 freebsd2.2*)
17711 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17712 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17713 hardcode_direct_GCJ=yes
17714 hardcode_shlibpath_var_GCJ=no
17715 ;;
17716
17717 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17718 freebsd2*)
17719 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17720 hardcode_direct_GCJ=yes
17721 hardcode_minus_L_GCJ=yes
17722 hardcode_shlibpath_var_GCJ=no
17723 ;;
17724
17725 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17726 freebsd* | dragonfly*)
17727 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17728 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17729 hardcode_direct_GCJ=yes
17730 hardcode_shlibpath_var_GCJ=no
17731 ;;
17732
17733 hpux9*)
17734 if test "$GCC" = yes; then
17735 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'
17736 else
17737 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'
17738 fi
17739 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17740 hardcode_libdir_separator_GCJ=:
17741 hardcode_direct_GCJ=yes
17742
17743 # hardcode_minus_L: Not really in the search PATH,
17744 # but as the default location of the library.
17745 hardcode_minus_L_GCJ=yes
17746 export_dynamic_flag_spec_GCJ='${wl}-E'
17747 ;;
89354eef 17748
f58aa3e1 17749 hpux10*)
17750 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17751 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17752 else
17753 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17754 fi
17755 if test "$with_gnu_ld" = no; then
17756 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17757 hardcode_libdir_separator_GCJ=:
89354eef 17758
f58aa3e1 17759 hardcode_direct_GCJ=yes
17760 export_dynamic_flag_spec_GCJ='${wl}-E'
89354eef 17761
f58aa3e1 17762 # hardcode_minus_L: Not really in the search PATH,
17763 # but as the default location of the library.
17764 hardcode_minus_L_GCJ=yes
17765 fi
17766 ;;
89354eef 17767
f58aa3e1 17768 hpux11*)
17769 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17770 case $host_cpu in
17771 hppa*64*)
17772 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17773 ;;
17774 ia64*)
17775 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17776 ;;
17777 *)
17778 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17779 ;;
17780 esac
17781 else
17782 case $host_cpu in
17783 hppa*64*)
17784 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785 ;;
17786 ia64*)
17787 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17788 ;;
17789 *)
17790 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17791 ;;
17792 esac
17793 fi
17794 if test "$with_gnu_ld" = no; then
17795 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17796 hardcode_libdir_separator_GCJ=:
17797
17798 case $host_cpu in
17799 hppa*64*|ia64*)
17800 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17801 hardcode_direct_GCJ=no
17802 hardcode_shlibpath_var_GCJ=no
17803 ;;
17804 *)
17805 hardcode_direct_GCJ=yes
17806 export_dynamic_flag_spec_GCJ='${wl}-E'
17807
17808 # hardcode_minus_L: Not really in the search PATH,
17809 # but as the default location of the library.
17810 hardcode_minus_L_GCJ=yes
17811 ;;
17812 esac
17813 fi
17814 ;;
89354eef 17815
f58aa3e1 17816 irix5* | irix6* | nonstopux*)
17817 if test "$GCC" = yes; then
17818 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'
17819 else
17820 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'
17821 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17822 fi
17823 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17824 hardcode_libdir_separator_GCJ=:
17825 link_all_deplibs_GCJ=yes
17826 ;;
89354eef 17827
f58aa3e1 17828 netbsd* | netbsdelf*-gnu)
17829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17830 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17831 else
17832 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17833 fi
17834 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17835 hardcode_direct_GCJ=yes
17836 hardcode_shlibpath_var_GCJ=no
17837 ;;
89354eef 17838
f58aa3e1 17839 newsos6)
17840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17841 hardcode_direct_GCJ=yes
17842 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17843 hardcode_libdir_separator_GCJ=:
17844 hardcode_shlibpath_var_GCJ=no
17845 ;;
89354eef 17846
f58aa3e1 17847 openbsd*)
17848 hardcode_direct_GCJ=yes
17849 hardcode_shlibpath_var_GCJ=no
17850 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17851 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17852 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17853 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17854 export_dynamic_flag_spec_GCJ='${wl}-E'
17855 else
17856 case $host_os in
17857 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17858 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17859 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17860 ;;
17861 *)
17862 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17863 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17864 ;;
17865 esac
17866 fi
17867 ;;
89354eef 17868
f58aa3e1 17869 os2*)
17870 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17871 hardcode_minus_L_GCJ=yes
17872 allow_undefined_flag_GCJ=unsupported
17873 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'
17874 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17875 ;;
89354eef 17876
f58aa3e1 17877 osf3*)
17878 if test "$GCC" = yes; then
17879 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17880 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'
17881 else
17882 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17883 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'
17884 fi
17885 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17886 hardcode_libdir_separator_GCJ=:
17887 ;;
89354eef 17888
f58aa3e1 17889 osf4* | osf5*) # as osf3* with the addition of -msym flag
17890 if test "$GCC" = yes; then
17891 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17892 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'
17893 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17894 else
17895 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17896 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'
17897 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~
17898 $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'
89354eef 17899
f58aa3e1 17900 # Both c and cxx compiler support -rpath directly
17901 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17902 fi
17903 hardcode_libdir_separator_GCJ=:
17904 ;;
89354eef 17905
f58aa3e1 17906 solaris*)
17907 no_undefined_flag_GCJ=' -z text'
17908 if test "$GCC" = yes; then
17909 wlarc='${wl}'
17910 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17911 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17912 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17913 else
17914 wlarc=''
17915 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17916 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17918 fi
17919 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17920 hardcode_shlibpath_var_GCJ=no
17921 case $host_os in
17922 solaris2.[0-5] | solaris2.[0-5].*) ;;
17923 *)
17924 # The compiler driver will combine linker options so we
17925 # cannot just pass the convience library names through
17926 # without $wl, iff we do not link with $LD.
17927 # Luckily, gcc supports the same syntax we need for Sun Studio.
17928 # Supported since Solaris 2.6 (maybe 2.5.1?)
17929 case $wlarc in
17930 '')
17931 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17932 *)
17933 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17934 esac ;;
17935 esac
17936 link_all_deplibs_GCJ=yes
17937 ;;
89354eef 17938
f58aa3e1 17939 sunos4*)
17940 if test "x$host_vendor" = xsequent; then
17941 # Use $CC to link under sequent, because it throws in some extra .o
17942 # files that make .init and .fini sections work.
17943 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17944 else
17945 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17946 fi
17947 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17948 hardcode_direct_GCJ=yes
17949 hardcode_minus_L_GCJ=yes
17950 hardcode_shlibpath_var_GCJ=no
17951 ;;
89354eef 17952
f58aa3e1 17953 sysv4)
17954 case $host_vendor in
17955 sni)
17956 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17957 hardcode_direct_GCJ=yes # is this really true???
17958 ;;
17959 siemens)
17960 ## LD is ld it makes a PLAMLIB
17961 ## CC just makes a GrossModule.
17962 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17963 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17964 hardcode_direct_GCJ=no
17965 ;;
17966 motorola)
17967 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17968 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17969 ;;
17970 esac
17971 runpath_var='LD_RUN_PATH'
17972 hardcode_shlibpath_var_GCJ=no
17973 ;;
89354eef 17974
f58aa3e1 17975 sysv4.3*)
17976 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17977 hardcode_shlibpath_var_GCJ=no
17978 export_dynamic_flag_spec_GCJ='-Bexport'
17979 ;;
89354eef 17980
f58aa3e1 17981 sysv4*MP*)
17982 if test -d /usr/nec; then
17983 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17984 hardcode_shlibpath_var_GCJ=no
17985 runpath_var=LD_RUN_PATH
17986 hardcode_runpath_var=yes
17987 ld_shlibs_GCJ=yes
17988 fi
17989 ;;
89354eef 17990
f58aa3e1 17991 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17992 no_undefined_flag_GCJ='${wl}-z,text'
17993 archive_cmds_need_lc_GCJ=no
17994 hardcode_shlibpath_var_GCJ=no
17995 runpath_var='LD_RUN_PATH'
89354eef 17996
f58aa3e1 17997 if test "$GCC" = yes; then
17998 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17999 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18000 else
18001 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18002 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 fi
18004 ;;
89354eef 18005
f58aa3e1 18006 sysv5* | sco3.2v5* | sco5v6*)
18007 # Note: We can NOT use -z defs as we might desire, because we do not
18008 # link with -lc, and that would cause any symbols used from libc to
18009 # always be unresolved, which means just about no library would
18010 # ever link correctly. If we're not using GNU ld we use -z text
18011 # though, which does catch some bad symbols but isn't as heavy-handed
18012 # as -z defs.
18013 no_undefined_flag_GCJ='${wl}-z,text'
18014 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18015 archive_cmds_need_lc_GCJ=no
18016 hardcode_shlibpath_var_GCJ=no
18017 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18018 hardcode_libdir_separator_GCJ=':'
18019 link_all_deplibs_GCJ=yes
18020 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18021 runpath_var='LD_RUN_PATH'
18022
18023 if test "$GCC" = yes; then
18024 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18025 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18026 else
18027 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18028 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18029 fi
18030 ;;
89354eef 18031
f58aa3e1 18032 uts4*)
18033 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18034 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18035 hardcode_shlibpath_var_GCJ=no
18036 ;;
89354eef 18037
f58aa3e1 18038 *)
18039 ld_shlibs_GCJ=no
18040 ;;
18041 esac
89354eef 18042 fi
89354eef 18043
f58aa3e1 18044{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18045echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18046test "$ld_shlibs_GCJ" = no && can_build_shared=no
89354eef 18047
f58aa3e1 18048#
18049# Do we need to explicitly link libc?
18050#
18051case "x$archive_cmds_need_lc_GCJ" in
18052x|xyes)
18053 # Assume -lc should be added
18054 archive_cmds_need_lc_GCJ=yes
18055
18056 if test "$enable_shared" = yes && test "$GCC" = yes; then
18057 case $archive_cmds_GCJ in
18058 *'~'*)
18059 # FIXME: we may have to deal with multi-command sequences.
18060 ;;
18061 '$CC '*)
18062 # Test whether the compiler implicitly links with -lc since on some
18063 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18064 # to ld, don't add -lc before -lgcc.
18065 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18066echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18067 $rm conftest*
18068 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18069
18070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18071 (eval $ac_compile) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } 2>conftest.err; then
18075 soname=conftest
18076 lib=conftest
18077 libobjs=conftest.$ac_objext
18078 deplibs=
18079 wl=$lt_prog_compiler_wl_GCJ
18080 pic_flag=$lt_prog_compiler_pic_GCJ
18081 compiler_flags=-v
18082 linker_flags=-v
18083 verstring=
18084 output_objdir=.
18085 libname=conftest
18086 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18087 allow_undefined_flag_GCJ=
18088 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18089 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }
18093 then
18094 archive_cmds_need_lc_GCJ=no
18095 else
18096 archive_cmds_need_lc_GCJ=yes
18097 fi
18098 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18099 else
18100 cat conftest.err 1>&5
18101 fi
18102 $rm conftest*
18103 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18104echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18105 ;;
18106 esac
18107 fi
18108 ;;
18109esac
89354eef 18110
f58aa3e1 18111{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18112echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
89354eef 18113library_names_spec=
18114libname_spec='lib$name'
18115soname_spec=
f58aa3e1 18116shrext_cmds=".so"
89354eef 18117postinstall_cmds=
18118postuninstall_cmds=
18119finish_cmds=
18120finish_eval=
18121shlibpath_var=
18122shlibpath_overrides_runpath=unknown
18123version_type=none
18124dynamic_linker="$host_os ld.so"
18125sys_lib_dlsearch_path_spec="/lib /usr/lib"
f58aa3e1 18126if test "$GCC" = yes; then
18127 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18128 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18129 # if the path contains ";" then we assume it to be the separator
18130 # otherwise default to the standard path separator (i.e. ":") - it is
18131 # assumed that no part of a normal pathname contains ";" but that should
18132 # okay in the real world where ";" in dirpaths is itself problematic.
18133 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18134 else
18135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18136 fi
18137else
18138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18139fi
18140need_lib_prefix=unknown
18141hardcode_into_libs=no
18142
18143# when you set need_version to no, make sure it does not cause -set_version
18144# flags to be left without arguments
18145need_version=unknown
89354eef 18146
18147case $host_os in
18148aix3*)
18149 version_type=linux
f58aa3e1 18150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
89354eef 18151 shlibpath_var=LIBPATH
18152
f58aa3e1 18153 # AIX 3 has no versioning support, so we append a major version to the name.
18154 soname_spec='${libname}${release}${shared_ext}$major'
89354eef 18155 ;;
18156
18157aix4* | aix5*)
18158 version_type=linux
f58aa3e1 18159 need_lib_prefix=no
18160 need_version=no
18161 hardcode_into_libs=yes
89354eef 18162 if test "$host_cpu" = ia64; then
18163 # AIX 5 supports IA64
f58aa3e1 18164 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
89354eef 18165 shlibpath_var=LD_LIBRARY_PATH
18166 else
18167 # With GCC up to 2.95.x, collect2 would create an import file
18168 # for dependence libraries. The import file would start with
18169 # the line `#! .'. This would cause the generated library to
18170 # depend on `.', always an invalid library. This was fixed in
18171 # development snapshots of GCC prior to 3.0.
18172 case $host_os in
18173 aix4 | aix4.[01] | aix4.[01].*)
f58aa3e1 18174 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18175 echo ' yes '
18176 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18177 :
18178 else
18179 can_build_shared=no
18180 fi
18181 ;;
89354eef 18182 esac
f58aa3e1 18183 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18184 # soname into executable. Probably we can add versioning support to
18185 # collect2, so additional links can be useful in future.
89354eef 18186 if test "$aix_use_runtimelinking" = yes; then
18187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18188 # instead of lib<name>.a to let people know that these are not
18189 # typical AIX shared libraries.
f58aa3e1 18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
89354eef 18191 else
18192 # We preserve .a as extension for shared libraries through AIX4.2
18193 # and later when we are not doing run time linking.
18194 library_names_spec='${libname}${release}.a $libname.a'
f58aa3e1 18195 soname_spec='${libname}${release}${shared_ext}$major'
89354eef 18196 fi
18197 shlibpath_var=LIBPATH
18198 fi
18199 ;;
18200
18201amigaos*)
18202 library_names_spec='$libname.ixlibrary $libname.a'
18203 # Create ${libname}_ixlibrary.a entries in /sys/libs.
f58aa3e1 18204 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'
89354eef 18205 ;;
18206
18207beos*)
f58aa3e1 18208 library_names_spec='${libname}${shared_ext}'
89354eef 18209 dynamic_linker="$host_os ld.so"
18210 shlibpath_var=LIBRARY_PATH
18211 ;;
18212
f58aa3e1 18213bsdi[45]*)
89354eef 18214 version_type=linux
18215 need_version=no
f58aa3e1 18216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18217 soname_spec='${libname}${release}${shared_ext}$major'
89354eef 18218 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18221 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
89354eef 18222 # the default ld.so.conf also contains /usr/contrib/lib and
18223 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18224 # libtool to hard-code these into programs
18225 ;;
18226
18227cygwin* | mingw* | pw32*)
18228 version_type=windows
f58aa3e1 18229 shrext_cmds=".dll"
89354eef 18230 need_version=no
18231 need_lib_prefix=no
f58aa3e1 18232
89354eef 18233 case $GCC,$host_os in
f58aa3e1 18234 yes,cygwin* | yes,mingw* | yes,pw32*)
89354eef 18235 library_names_spec='$libname.dll.a'
f58aa3e1 18236 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18237 postinstall_cmds='base_file=`basename \${file}`~
18238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
89354eef 18239 dldir=$destdir/`dirname \$dlpath`~
18240 test -d \$dldir || mkdir -p \$dldir~
f58aa3e1 18241 $install_prog $dir/$dlname \$dldir/$dlname~
18242 chmod a+x \$dldir/$dlname'
18243 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
89354eef 18244 dlpath=$dir/\$dldll~
18245 $rm \$dlpath'
f58aa3e1 18246 shlibpath_overrides_runpath=yes
18247
18248 case $host_os in
18249 cygwin*)
18250 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18251 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18252 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18253 ;;
18254 mingw*)
18255 # MinGW DLLs use traditional 'lib' prefix
18256 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18257 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18258 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18259 # It is most probably a Windows format PATH printed by
18260 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18261 # path with ; separators, and with drive letters. We can handle the
18262 # drive letters (cygwin fileutils understands them), so leave them,
18263 # especially as we might pass files found there to a mingw objdump,
18264 # which wouldn't understand a cygwinified path. Ahh.
18265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18266 else
18267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18268 fi
18269 ;;
18270 pw32*)
18271 # pw32 DLLs use 'pw' prefix rather than 'lib'
18272 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18273 ;;
18274 esac
89354eef 18275 ;;
f58aa3e1 18276
89354eef 18277 *)
f58aa3e1 18278 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
89354eef 18279 ;;
18280 esac
18281 dynamic_linker='Win32 ld.exe'
18282 # FIXME: first we should search . and the directory the executable is in
18283 shlibpath_var=PATH
18284 ;;
18285
18286darwin* | rhapsody*)
18287 dynamic_linker="$host_os dyld"
18288 version_type=darwin
18289 need_lib_prefix=no
18290 need_version=no
f58aa3e1 18291 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18292 soname_spec='${libname}${release}${major}$shared_ext'
89354eef 18293 shlibpath_overrides_runpath=yes
18294 shlibpath_var=DYLD_LIBRARY_PATH
f58aa3e1 18295 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18296 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18297 if test "$GCC" = yes; then
18298 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18299 else
18300 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18301 fi
18302 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18303 ;;
18304
18305dgux*)
18306 version_type=linux
18307 need_lib_prefix=no
18308 need_version=no
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18310 soname_spec='${libname}${release}${shared_ext}$major'
18311 shlibpath_var=LD_LIBRARY_PATH
89354eef 18312 ;;
18313
18314freebsd1*)
18315 dynamic_linker=no
18316 ;;
18317
f58aa3e1 18318freebsd* | dragonfly*)
18319 # DragonFly does not have aout. When/if they implement a new
18320 # versioning mechanism, adjust this.
18321 if test -x /usr/bin/objformat; then
18322 objformat=`/usr/bin/objformat`
18323 else
18324 case $host_os in
18325 freebsd[123]*) objformat=aout ;;
18326 *) objformat=elf ;;
18327 esac
18328 fi
89354eef 18329 version_type=freebsd-$objformat
18330 case $version_type in
18331 freebsd-elf*)
f58aa3e1 18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
89354eef 18333 need_version=no
18334 need_lib_prefix=no
18335 ;;
18336 freebsd-*)
f58aa3e1 18337 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
89354eef 18338 need_version=yes
18339 ;;
18340 esac
18341 shlibpath_var=LD_LIBRARY_PATH
18342 case $host_os in
18343 freebsd2*)
18344 shlibpath_overrides_runpath=yes
18345 ;;
f58aa3e1 18346 freebsd3.[01]* | freebsdelf3.[01]*)
18347 shlibpath_overrides_runpath=yes
18348 hardcode_into_libs=yes
18349 ;;
18350 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18351 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
89354eef 18352 shlibpath_overrides_runpath=no
18353 hardcode_into_libs=yes
18354 ;;
f58aa3e1 18355 freebsd*) # from 4.6 on
18356 shlibpath_overrides_runpath=yes
18357 hardcode_into_libs=yes
18358 ;;
18359 esac
18360 ;;
18361
18362gnu*)
18363 version_type=linux
18364 need_lib_prefix=no
18365 need_version=no
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18367 soname_spec='${libname}${release}${shared_ext}$major'
18368 shlibpath_var=LD_LIBRARY_PATH
18369 hardcode_into_libs=yes
18370 ;;
18371
18372hpux9* | hpux10* | hpux11*)
18373 # Give a soname corresponding to the major version so that dld.sl refuses to
18374 # link against other versions.
18375 version_type=sunos
18376 need_lib_prefix=no
18377 need_version=no
18378 case $host_cpu in
18379 ia64*)
18380 shrext_cmds='.so'
18381 hardcode_into_libs=yes
18382 dynamic_linker="$host_os dld.so"
18383 shlibpath_var=LD_LIBRARY_PATH
18384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18386 soname_spec='${libname}${release}${shared_ext}$major'
18387 if test "X$HPUX_IA64_MODE" = X32; then
18388 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18389 else
18390 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18391 fi
18392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18393 ;;
18394 hppa*64*)
18395 shrext_cmds='.sl'
18396 hardcode_into_libs=yes
18397 dynamic_linker="$host_os dld.sl"
18398 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18403 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18404 ;;
18405 *)
18406 shrext_cmds='.sl'
18407 dynamic_linker="$host_os dld.sl"
18408 shlibpath_var=SHLIB_PATH
18409 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411 soname_spec='${libname}${release}${shared_ext}$major'
18412 ;;
89354eef 18413 esac
f58aa3e1 18414 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18415 postinstall_cmds='chmod 555 $lib'
89354eef 18416 ;;
18417
f58aa3e1 18418interix3*)
89354eef 18419 version_type=linux
18420 need_lib_prefix=no
18421 need_version=no
f58aa3e1 18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
89354eef 18425 shlibpath_var=LD_LIBRARY_PATH
f58aa3e1 18426 shlibpath_overrides_runpath=no
89354eef 18427 hardcode_into_libs=yes
18428 ;;
18429
f58aa3e1 18430irix5* | irix6* | nonstopux*)
18431 case $host_os in
18432 nonstopux*) version_type=nonstopux ;;
18433 *)
18434 if test "$lt_cv_prog_gnu_ld" = yes; then
18435 version_type=linux
18436 else
18437 version_type=irix
18438 fi ;;
18439 esac
89354eef 18440 need_lib_prefix=no
18441 need_version=no
f58aa3e1 18442 soname_spec='${libname}${release}${shared_ext}$major'
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
89354eef 18444 case $host_os in
f58aa3e1 18445 irix5* | nonstopux*)
89354eef 18446 libsuff= shlibsuff=
18447 ;;
18448 *)
18449 case $LD in # libtool.m4 will add one of these switches to LD
f58aa3e1 18450 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18451 libsuff= shlibsuff= libmagic=32-bit;;
18452 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18453 libsuff=32 shlibsuff=N32 libmagic=N32;;
18454 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18455 libsuff=64 shlibsuff=64 libmagic=64-bit;;
89354eef 18456 *) libsuff= shlibsuff= libmagic=never-match;;
18457 esac
18458 ;;
18459 esac
18460 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18461 shlibpath_overrides_runpath=no
18462 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18463 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
f58aa3e1 18464 hardcode_into_libs=yes
89354eef 18465 ;;
18466
18467# No shared lib support for Linux oldld, aout, or coff.
f58aa3e1 18468linux*oldld* | linux*aout* | linux*coff*)
89354eef 18469 dynamic_linker=no
18470 ;;
18471
18472# This must be Linux ELF.
f58aa3e1 18473linux* | k*bsd*-gnu)
89354eef 18474 version_type=linux
18475 need_lib_prefix=no
18476 need_version=no
f58aa3e1 18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478 soname_spec='${libname}${release}${shared_ext}$major'
89354eef 18479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18480 shlibpath_var=LD_LIBRARY_PATH
18481 shlibpath_overrides_runpath=no
18482 # This implies no fast_install, which is unacceptable.
18483 # Some rework will be needed to allow for fast_install
18484 # before this can be enabled.
18485 hardcode_into_libs=yes
18486
f58aa3e1 18487 # Append ld.so.conf contents to the search path
18488 if test -f /etc/ld.so.conf; then
18489 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18491 fi
18492
89354eef 18493 # We used to test for /lib/ld.so.1 and disable shared libraries on
18494 # powerpc, because MkLinux only supported shared libraries with the
18495 # GNU dynamic linker. Since this was broken with cross compilers,
18496 # most powerpc-linux boxes support dynamic linking these days and
18497 # people can always --disable-shared, the test was removed, and we
18498 # assume the GNU/Linux dynamic linker is in use.
18499 dynamic_linker='GNU/Linux ld.so'
18500 ;;
18501
f58aa3e1 18502netbsdelf*-gnu)
18503 version_type=linux
18504 need_lib_prefix=no
18505 need_version=no
18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18507 soname_spec='${libname}${release}${shared_ext}$major'
18508 shlibpath_var=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath=no
18510 hardcode_into_libs=yes
18511 dynamic_linker='NetBSD ld.elf_so'
18512 ;;
18513
89354eef 18514netbsd*)
18515 version_type=sunos
18516 need_lib_prefix=no
18517 need_version=no
18518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
f58aa3e1 18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
89354eef 18520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18521 dynamic_linker='NetBSD (a.out) ld.so'
18522 else
f58aa3e1 18523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18524 soname_spec='${libname}${release}${shared_ext}$major'
89354eef 18525 dynamic_linker='NetBSD ld.elf_so'
18526 fi
18527 shlibpath_var=LD_LIBRARY_PATH
18528 shlibpath_overrides_runpath=yes
18529 hardcode_into_libs=yes
18530 ;;
18531
18532newsos6)
18533 version_type=linux
f58aa3e1 18534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18535 shlibpath_var=LD_LIBRARY_PATH
18536 shlibpath_overrides_runpath=yes
18537 ;;
18538
18539nto-qnx*)
18540 version_type=linux
18541 need_lib_prefix=no
18542 need_version=no
18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544 soname_spec='${libname}${release}${shared_ext}$major'
89354eef 18545 shlibpath_var=LD_LIBRARY_PATH
18546 shlibpath_overrides_runpath=yes
18547 ;;
18548
18549openbsd*)
18550 version_type=sunos
f58aa3e1 18551 sys_lib_dlsearch_path_spec="/usr/lib"
89354eef 18552 need_lib_prefix=no
f58aa3e1 18553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18554 case $host_os in
18555 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18556 *) need_version=no ;;
18557 esac
18558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18560 shlibpath_var=LD_LIBRARY_PATH
89354eef 18561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
f58aa3e1 18562 case $host_os in
18563 openbsd2.[89] | openbsd2.[89].*)
18564 shlibpath_overrides_runpath=no
18565 ;;
18566 *)
18567 shlibpath_overrides_runpath=yes
18568 ;;
18569 esac
18570 else
18571 shlibpath_overrides_runpath=yes
18572 fi
18573 ;;
18574
18575os2*)
18576 libname_spec='$name'
18577 shrext_cmds=".dll"
18578 need_lib_prefix=no
18579 library_names_spec='$libname${shared_ext} $libname.a'
18580 dynamic_linker='OS/2 ld.exe'
18581 shlibpath_var=LIBPATH
18582 ;;
18583
18584osf3* | osf4* | osf5*)
18585 version_type=osf
18586 need_lib_prefix=no
18587 need_version=no
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590 shlibpath_var=LD_LIBRARY_PATH
18591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18593 ;;
18594
18595solaris*)
18596 version_type=linux
18597 need_lib_prefix=no
18598 need_version=no
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600 soname_spec='${libname}${release}${shared_ext}$major'
18601 shlibpath_var=LD_LIBRARY_PATH
18602 shlibpath_overrides_runpath=yes
18603 hardcode_into_libs=yes
18604 # ldd complains unless libraries are executable
18605 postinstall_cmds='chmod +x $lib'
18606 ;;
18607
18608sunos4*)
18609 version_type=sunos
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 shlibpath_overrides_runpath=yes
18614 if test "$with_gnu_ld" = yes; then
18615 need_lib_prefix=no
18616 fi
18617 need_version=yes
18618 ;;
18619
18620sysv4 | sysv4.3*)
18621 version_type=linux
18622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18623 soname_spec='${libname}${release}${shared_ext}$major'
18624 shlibpath_var=LD_LIBRARY_PATH
18625 case $host_vendor in
18626 sni)
89354eef 18627 shlibpath_overrides_runpath=no
f58aa3e1 18628 need_lib_prefix=no
18629 export_dynamic_flag_spec='${wl}-Blargedynsym'
18630 runpath_var=LD_RUN_PATH
89354eef 18631 ;;
f58aa3e1 18632 siemens)
18633 need_lib_prefix=no
89354eef 18634 ;;
f58aa3e1 18635 motorola)
18636 need_lib_prefix=no
18637 need_version=no
18638 shlibpath_overrides_runpath=no
18639 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18640 ;;
18641 esac
18642 ;;
18643
18644sysv4*MP*)
18645 if test -d /usr/nec ;then
18646 version_type=linux
18647 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18648 soname_spec='$libname${shared_ext}.$major'
18649 shlibpath_var=LD_LIBRARY_PATH
18650 fi
18651 ;;
18652
18653sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18654 version_type=freebsd-elf
18655 need_lib_prefix=no
18656 need_version=no
18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18658 soname_spec='${libname}${release}${shared_ext}$major'
18659 shlibpath_var=LD_LIBRARY_PATH
18660 hardcode_into_libs=yes
18661 if test "$with_gnu_ld" = yes; then
18662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18663 shlibpath_overrides_runpath=no
89354eef 18664 else
f58aa3e1 18665 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
89354eef 18666 shlibpath_overrides_runpath=yes
f58aa3e1 18667 case $host_os in
18668 sco3.2v5*)
18669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18670 ;;
18671 esac
89354eef 18672 fi
f58aa3e1 18673 sys_lib_dlsearch_path_spec='/usr/lib'
18674 ;;
18675
18676uts4*)
18677 version_type=linux
18678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18679 soname_spec='${libname}${release}${shared_ext}$major'
89354eef 18680 shlibpath_var=LD_LIBRARY_PATH
18681 ;;
18682
f58aa3e1 18683*)
18684 dynamic_linker=no
18685 ;;
18686esac
18687{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18688echo "${ECHO_T}$dynamic_linker" >&6; }
18689test "$dynamic_linker" = no && can_build_shared=no
18690
18691variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18692if test "$GCC" = yes; then
18693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18694fi
18695
18696{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18697echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18698hardcode_action_GCJ=
18699if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18700 test -n "$runpath_var_GCJ" || \
18701 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18702
18703 # We can hardcode non-existant directories.
18704 if test "$hardcode_direct_GCJ" != no &&
18705 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18706 # have to relink, otherwise we might link with an installed library
18707 # when we should be linking with a yet-to-be-installed one
18708 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18709 test "$hardcode_minus_L_GCJ" != no; then
18710 # Linking always hardcodes the temporary library directory.
18711 hardcode_action_GCJ=relink
18712 else
18713 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18714 hardcode_action_GCJ=immediate
18715 fi
18716else
18717 # We cannot hardcode anything, or else we can only hardcode existing
18718 # directories.
18719 hardcode_action_GCJ=unsupported
18720fi
18721{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18722echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18723
18724if test "$hardcode_action_GCJ" = relink; then
18725 # Fast installation is not supported
18726 enable_fast_install=no
18727elif test "$shlibpath_overrides_runpath" = yes ||
18728 test "$enable_shared" = no; then
18729 # Fast installation is not necessary
18730 enable_fast_install=needless
18731fi
18732
18733
18734# The else clause should only fire when bootstrapping the
18735# libtool distribution, otherwise you forgot to ship ltmain.sh
18736# with your package, and you will get complaints that there are
18737# no rules to generate ltmain.sh.
18738if test -f "$ltmain"; then
18739 # See if we are running on zsh, and set the options which allow our commands through
18740 # without removal of \ escapes.
18741 if test -n "${ZSH_VERSION+set}" ; then
18742 setopt NO_GLOB_SUBST
18743 fi
18744 # Now quote all the things that may contain metacharacters while being
18745 # careful not to overquote the AC_SUBSTed values. We take copies of the
18746 # variables and quote the copies for generation of the libtool script.
18747 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18748 SED SHELL STRIP \
18749 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18750 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18751 deplibs_check_method reload_flag reload_cmds need_locks \
18752 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18753 lt_cv_sys_global_symbol_to_c_name_address \
18754 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18755 old_postinstall_cmds old_postuninstall_cmds \
18756 compiler_GCJ \
18757 CC_GCJ \
18758 LD_GCJ \
18759 lt_prog_compiler_wl_GCJ \
18760 lt_prog_compiler_pic_GCJ \
18761 lt_prog_compiler_static_GCJ \
18762 lt_prog_compiler_no_builtin_flag_GCJ \
18763 export_dynamic_flag_spec_GCJ \
18764 thread_safe_flag_spec_GCJ \
18765 whole_archive_flag_spec_GCJ \
18766 enable_shared_with_static_runtimes_GCJ \
18767 old_archive_cmds_GCJ \
18768 old_archive_from_new_cmds_GCJ \
18769 predep_objects_GCJ \
18770 postdep_objects_GCJ \
18771 predeps_GCJ \
18772 postdeps_GCJ \
18773 compiler_lib_search_path_GCJ \
18774 archive_cmds_GCJ \
18775 archive_expsym_cmds_GCJ \
18776 postinstall_cmds_GCJ \
18777 postuninstall_cmds_GCJ \
18778 old_archive_from_expsyms_cmds_GCJ \
18779 allow_undefined_flag_GCJ \
18780 no_undefined_flag_GCJ \
18781 export_symbols_cmds_GCJ \
18782 hardcode_libdir_flag_spec_GCJ \
18783 hardcode_libdir_flag_spec_ld_GCJ \
18784 hardcode_libdir_separator_GCJ \
18785 hardcode_automatic_GCJ \
18786 module_cmds_GCJ \
18787 module_expsym_cmds_GCJ \
18788 lt_cv_prog_compiler_c_o_GCJ \
18789 exclude_expsyms_GCJ \
18790 include_expsyms_GCJ; do
18791
18792 case $var in
18793 old_archive_cmds_GCJ | \
18794 old_archive_from_new_cmds_GCJ | \
18795 archive_cmds_GCJ | \
18796 archive_expsym_cmds_GCJ | \
18797 module_cmds_GCJ | \
18798 module_expsym_cmds_GCJ | \
18799 old_archive_from_expsyms_cmds_GCJ | \
18800 export_symbols_cmds_GCJ | \
18801 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18802 postinstall_cmds | postuninstall_cmds | \
18803 old_postinstall_cmds | old_postuninstall_cmds | \
18804 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18805 # Double-quote double-evaled strings.
18806 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18807 ;;
18808 *)
18809 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18810 ;;
18811 esac
18812 done
18813
18814 case $lt_echo in
18815 *'\$0 --fallback-echo"')
18816 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18817 ;;
18818 esac
18819
18820cfgfile="$ofile"
18821
18822 cat <<__EOF__ >> "$cfgfile"
18823# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18824
18825# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18826
18827# Shell to use when invoking shell scripts.
18828SHELL=$lt_SHELL
18829
18830# Whether or not to build shared libraries.
18831build_libtool_libs=$enable_shared
18832
18833# Whether or not to build static libraries.
18834build_old_libs=$enable_static
18835
18836# Whether or not to add -lc for building shared libraries.
18837build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18838
18839# Whether or not to disallow shared libs when runtime libs are static
18840allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18841
18842# Whether or not to optimize for fast installation.
18843fast_install=$enable_fast_install
18844
18845# The host system.
18846host_alias=$host_alias
18847host=$host
18848host_os=$host_os
18849
18850# The build system.
18851build_alias=$build_alias
18852build=$build
18853build_os=$build_os
18854
18855# An echo program that does not interpret backslashes.
18856echo=$lt_echo
18857
18858# The archiver.
18859AR=$lt_AR
18860AR_FLAGS=$lt_AR_FLAGS
18861
18862# A C compiler.
18863LTCC=$lt_LTCC
18864
18865# LTCC compiler flags.
18866LTCFLAGS=$lt_LTCFLAGS
18867
18868# A language-specific compiler.
18869CC=$lt_compiler_GCJ
18870
18871# Is the compiler the GNU C compiler?
18872with_gcc=$GCC_GCJ
18873
18874# An ERE matcher.
18875EGREP=$lt_EGREP
18876
18877# The linker used to build libraries.
18878LD=$lt_LD_GCJ
18879
18880# Whether we need hard or soft links.
18881LN_S=$lt_LN_S
18882
18883# A BSD-compatible nm program.
18884NM=$lt_NM
18885
18886# A symbol stripping program
18887STRIP=$lt_STRIP
18888
18889# Used to examine libraries when file_magic_cmd begins "file"
18890MAGIC_CMD=$MAGIC_CMD
18891
18892# Used on cygwin: DLL creation program.
18893DLLTOOL="$DLLTOOL"
18894
18895# Used on cygwin: object dumper.
18896OBJDUMP="$OBJDUMP"
18897
18898# Used on cygwin: assembler.
18899AS="$AS"
18900
18901# The name of the directory that contains temporary libtool files.
18902objdir=$objdir
18903
18904# How to create reloadable object files.
18905reload_flag=$lt_reload_flag
18906reload_cmds=$lt_reload_cmds
18907
18908# How to pass a linker flag through the compiler.
18909wl=$lt_lt_prog_compiler_wl_GCJ
18910
18911# Object file suffix (normally "o").
18912objext="$ac_objext"
89354eef 18913
f58aa3e1 18914# Old archive suffix (normally "a").
18915libext="$libext"
89354eef 18916
f58aa3e1 18917# Shared library suffix (normally ".so").
18918shrext_cmds='$shrext_cmds'
89354eef 18919
f58aa3e1 18920# Executable file suffix (normally "").
18921exeext="$exeext"
89354eef 18922
f58aa3e1 18923# Additional compiler flags for building library objects.
18924pic_flag=$lt_lt_prog_compiler_pic_GCJ
18925pic_mode=$pic_mode
89354eef 18926
f58aa3e1 18927# What is the maximum length of a command?
18928max_cmd_len=$lt_cv_sys_max_cmd_len
89354eef 18929
f58aa3e1 18930# Does compiler simultaneously support -c and -o options?
18931compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
89354eef 18932
f58aa3e1 18933# Must we lock files when doing compilation?
18934need_locks=$lt_need_locks
89354eef 18935
f58aa3e1 18936# Do we need the lib prefix for modules?
18937need_lib_prefix=$need_lib_prefix
89354eef 18938
f58aa3e1 18939# Do we need a version for libraries?
18940need_version=$need_version
89354eef 18941
f58aa3e1 18942# Whether dlopen is supported.
18943dlopen_support=$enable_dlopen
89354eef 18944
f58aa3e1 18945# Whether dlopen of programs is supported.
18946dlopen_self=$enable_dlopen_self
89354eef 18947
f58aa3e1 18948# Whether dlopen of statically linked programs is supported.
18949dlopen_self_static=$enable_dlopen_self_static
89354eef 18950
f58aa3e1 18951# Compiler flag to prevent dynamic linking.
18952link_static_flag=$lt_lt_prog_compiler_static_GCJ
89354eef 18953
f58aa3e1 18954# Compiler flag to turn off builtin functions.
18955no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
89354eef 18956
f58aa3e1 18957# Compiler flag to allow reflexive dlopens.
18958export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
89354eef 18959
f58aa3e1 18960# Compiler flag to generate shared objects directly from archives.
18961whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
89354eef 18962
f58aa3e1 18963# Compiler flag to generate thread-safe objects.
18964thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
89354eef 18965
f58aa3e1 18966# Library versioning type.
18967version_type=$version_type
89354eef 18968
f58aa3e1 18969# Format of library name prefix.
18970libname_spec=$lt_libname_spec
89354eef 18971
f58aa3e1 18972# List of archive names. First name is the real one, the rest are links.
18973# The last name is the one that the linker finds with -lNAME.
18974library_names_spec=$lt_library_names_spec
89354eef 18975
f58aa3e1 18976# The coded name of the library, if different from the real name.
18977soname_spec=$lt_soname_spec
49ba971d 18978
f58aa3e1 18979# Commands used to build and install an old-style archive.
18980RANLIB=$lt_RANLIB
18981old_archive_cmds=$lt_old_archive_cmds_GCJ
18982old_postinstall_cmds=$lt_old_postinstall_cmds
18983old_postuninstall_cmds=$lt_old_postuninstall_cmds
89354eef 18984
f58aa3e1 18985# Create an old-style archive from a shared archive.
18986old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18987
18988# Create a temporary old-style archive to link instead of a shared archive.
18989old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18990
18991# Commands used to build and install a shared archive.
18992archive_cmds=$lt_archive_cmds_GCJ
18993archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18994postinstall_cmds=$lt_postinstall_cmds
18995postuninstall_cmds=$lt_postuninstall_cmds
49ba971d 18996
f58aa3e1 18997# Commands used to build a loadable module (assumed same as above if empty)
18998module_cmds=$lt_module_cmds_GCJ
18999module_expsym_cmds=$lt_module_expsym_cmds_GCJ
89354eef 19000
f58aa3e1 19001# Commands to strip libraries.
19002old_striplib=$lt_old_striplib
19003striplib=$lt_striplib
49ba971d 19004
f58aa3e1 19005# Dependencies to place before the objects being linked to create a
19006# shared library.
19007predep_objects=$lt_predep_objects_GCJ
89354eef 19008
f58aa3e1 19009# Dependencies to place after the objects being linked to create a
19010# shared library.
19011postdep_objects=$lt_postdep_objects_GCJ
49ba971d 19012
f58aa3e1 19013# Dependencies to place before the objects being linked to create a
19014# shared library.
19015predeps=$lt_predeps_GCJ
89354eef 19016
f58aa3e1 19017# Dependencies to place after the objects being linked to create a
19018# shared library.
19019postdeps=$lt_postdeps_GCJ
49ba971d 19020
f58aa3e1 19021# The library search path used internally by the compiler when linking
19022# a shared library.
19023compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
89354eef 19024
f58aa3e1 19025# Method to check whether dependent libraries are shared objects.
19026deplibs_check_method=$lt_deplibs_check_method
49ba971d 19027
f58aa3e1 19028# Command to use when deplibs_check_method == file_magic.
19029file_magic_cmd=$lt_file_magic_cmd
89354eef 19030
f58aa3e1 19031# Flag that allows shared libraries with undefined symbols to be built.
19032allow_undefined_flag=$lt_allow_undefined_flag_GCJ
89354eef 19033
f58aa3e1 19034# Flag that forces no undefined symbols.
19035no_undefined_flag=$lt_no_undefined_flag_GCJ
89354eef 19036
f58aa3e1 19037# Commands used to finish a libtool library installation in a directory.
19038finish_cmds=$lt_finish_cmds
89354eef 19039
f58aa3e1 19040# Same as above, but a single script fragment to be evaled but not shown.
19041finish_eval=$lt_finish_eval
89354eef 19042
f58aa3e1 19043# Take the output of nm and produce a listing of raw symbols and C names.
19044global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
89354eef 19045
f58aa3e1 19046# Transform the output of nm in a proper C declaration
19047global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
89354eef 19048
f58aa3e1 19049# Transform the output of nm in a C name address pair
19050global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
89354eef 19051
f58aa3e1 19052# This is the shared library runtime path variable.
19053runpath_var=$runpath_var
89354eef 19054
f58aa3e1 19055# This is the shared library path variable.
19056shlibpath_var=$shlibpath_var
89354eef 19057
f58aa3e1 19058# Is shlibpath searched before the hard-coded library search path?
19059shlibpath_overrides_runpath=$shlibpath_overrides_runpath
89354eef 19060
f58aa3e1 19061# How to hardcode a shared library path into an executable.
19062hardcode_action=$hardcode_action_GCJ
89354eef 19063
f58aa3e1 19064# Whether we should hardcode library paths into libraries.
19065hardcode_into_libs=$hardcode_into_libs
89354eef 19066
f58aa3e1 19067# Flag to hardcode \$libdir into a binary during linking.
19068# This must work even if \$libdir does not exist.
19069hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
89354eef 19070
f58aa3e1 19071# If ld is used when linking, flag to hardcode \$libdir into
19072# a binary during linking. This must work even if \$libdir does
19073# not exist.
19074hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
89354eef 19075
f58aa3e1 19076# Whether we need a single -rpath flag with a separated argument.
19077hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19078
19079# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19080# resulting binary.
19081hardcode_direct=$hardcode_direct_GCJ
19082
19083# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19084# resulting binary.
19085hardcode_minus_L=$hardcode_minus_L_GCJ
19086
19087# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19088# the resulting binary.
19089hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19090
19091# Set to yes if building a shared library automatically hardcodes DIR into the library
19092# and all subsequent libraries and executables linked against it.
19093hardcode_automatic=$hardcode_automatic_GCJ
19094
19095# Variables whose values should be saved in libtool wrapper scripts and
19096# restored at relink time.
19097variables_saved_for_relink="$variables_saved_for_relink"
19098
19099# Whether libtool must link a program against all its dependency libraries.
19100link_all_deplibs=$link_all_deplibs_GCJ
19101
19102# Compile-time system search path for libraries
19103sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19104
19105# Run-time system search path for libraries
19106sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19107
19108# Fix the shell variable \$srcfile for the compiler.
19109fix_srcfile_path="$fix_srcfile_path_GCJ"
89354eef 19110
f58aa3e1 19111# Set to yes if exported symbols are required.
19112always_export_symbols=$always_export_symbols_GCJ
89354eef 19113
f58aa3e1 19114# The commands to list exported symbols.
19115export_symbols_cmds=$lt_export_symbols_cmds_GCJ
89354eef 19116
f58aa3e1 19117# The commands to extract the exported symbol list from a shared archive.
19118extract_expsyms_cmds=$lt_extract_expsyms_cmds
89354eef 19119
f58aa3e1 19120# Symbols that should not be listed in the preloaded symbols.
19121exclude_expsyms=$lt_exclude_expsyms_GCJ
89354eef 19122
f58aa3e1 19123# Symbols that must always be exported.
19124include_expsyms=$lt_include_expsyms_GCJ
89354eef 19125
f58aa3e1 19126# ### END LIBTOOL TAG CONFIG: $tagname
89354eef 19127
f58aa3e1 19128__EOF__
89354eef 19129
89354eef 19130
f58aa3e1 19131else
19132 # If there is no Makefile yet, we rely on a make rule to execute
19133 # `config.status --recheck' to rerun these tests and create the
19134 # libtool script then.
19135 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19136 if test -f "$ltmain_in"; then
19137 test -f Makefile && make "$ltmain"
89354eef 19138 fi
19139fi
89354eef 19140
89354eef 19141
f58aa3e1 19142ac_ext=c
19143ac_cpp='$CPP $CPPFLAGS'
19144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19146ac_compiler_gnu=$ac_cv_c_compiler_gnu
89354eef 19147
f58aa3e1 19148CC="$lt_save_CC"
89354eef 19149
f58aa3e1 19150 else
19151 tagname=""
19152 fi
19153 ;;
89354eef 19154
f58aa3e1 19155 RC)
89354eef 19156
89354eef 19157
f58aa3e1 19158# Source file extension for RC test sources.
19159ac_ext=rc
89354eef 19160
f58aa3e1 19161# Object file extension for compiled RC test sources.
19162objext=o
19163objext_RC=$objext
89354eef 19164
f58aa3e1 19165# Code to be used in simple compile tests
19166lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
89354eef 19167
f58aa3e1 19168# Code to be used in simple link tests
19169lt_simple_link_test_code="$lt_simple_compile_test_code"
89354eef 19170
f58aa3e1 19171# ltmain only uses $CC for tagged configurations so make sure $CC is set.
89354eef 19172
f58aa3e1 19173# If no C compiler was specified, use CC.
19174LTCC=${LTCC-"$CC"}
89354eef 19175
f58aa3e1 19176# If no C compiler flags were specified, use CFLAGS.
19177LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
89354eef 19178
f58aa3e1 19179# Allow CC to be a program name with arguments.
19180compiler=$CC
89354eef 19181
89354eef 19182
f58aa3e1 19183# save warnings/boilerplate of simple test code
19184ac_outfile=conftest.$ac_objext
19185printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19186eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19187_lt_compiler_boilerplate=`cat conftest.err`
19188$rm conftest*
89354eef 19189
f58aa3e1 19190ac_outfile=conftest.$ac_objext
19191printf "$lt_simple_link_test_code" >conftest.$ac_ext
19192eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19193_lt_linker_boilerplate=`cat conftest.err`
19194$rm conftest*
89354eef 19195
89354eef 19196
f58aa3e1 19197# Allow CC to be a program name with arguments.
19198lt_save_CC="$CC"
19199CC=${RC-"windres"}
19200compiler=$CC
19201compiler_RC=$CC
19202for cc_temp in $compiler""; do
19203 case $cc_temp in
19204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19206 \-*) ;;
19207 *) break;;
89354eef 19208 esac
f58aa3e1 19209done
19210cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
89354eef 19211
f58aa3e1 19212lt_cv_prog_compiler_c_o_RC=yes
19213
19214# The else clause should only fire when bootstrapping the
89354eef 19215# libtool distribution, otherwise you forgot to ship ltmain.sh
19216# with your package, and you will get complaints that there are
19217# no rules to generate ltmain.sh.
19218if test -f "$ltmain"; then
f58aa3e1 19219 # See if we are running on zsh, and set the options which allow our commands through
19220 # without removal of \ escapes.
19221 if test -n "${ZSH_VERSION+set}" ; then
19222 setopt NO_GLOB_SUBST
19223 fi
89354eef 19224 # Now quote all the things that may contain metacharacters while being
19225 # careful not to overquote the AC_SUBSTed values. We take copies of the
19226 # variables and quote the copies for generation of the libtool script.
f58aa3e1 19227 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19228 SED SHELL STRIP \
19229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19231 deplibs_check_method reload_flag reload_cmds need_locks \
19232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19233 lt_cv_sys_global_symbol_to_c_name_address \
89354eef 19234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
f58aa3e1 19235 old_postinstall_cmds old_postuninstall_cmds \
19236 compiler_RC \
19237 CC_RC \
19238 LD_RC \
19239 lt_prog_compiler_wl_RC \
19240 lt_prog_compiler_pic_RC \
19241 lt_prog_compiler_static_RC \
19242 lt_prog_compiler_no_builtin_flag_RC \
19243 export_dynamic_flag_spec_RC \
19244 thread_safe_flag_spec_RC \
19245 whole_archive_flag_spec_RC \
19246 enable_shared_with_static_runtimes_RC \
19247 old_archive_cmds_RC \
19248 old_archive_from_new_cmds_RC \
19249 predep_objects_RC \
19250 postdep_objects_RC \
19251 predeps_RC \
19252 postdeps_RC \
19253 compiler_lib_search_path_RC \
19254 archive_cmds_RC \
19255 archive_expsym_cmds_RC \
19256 postinstall_cmds_RC \
19257 postuninstall_cmds_RC \
19258 old_archive_from_expsyms_cmds_RC \
19259 allow_undefined_flag_RC \
19260 no_undefined_flag_RC \
19261 export_symbols_cmds_RC \
19262 hardcode_libdir_flag_spec_RC \
19263 hardcode_libdir_flag_spec_ld_RC \
19264 hardcode_libdir_separator_RC \
19265 hardcode_automatic_RC \
19266 module_cmds_RC \
19267 module_expsym_cmds_RC \
19268 lt_cv_prog_compiler_c_o_RC \
19269 exclude_expsyms_RC \
19270 include_expsyms_RC; do
89354eef 19271
19272 case $var in
f58aa3e1 19273 old_archive_cmds_RC | \
19274 old_archive_from_new_cmds_RC | \
19275 archive_cmds_RC | \
19276 archive_expsym_cmds_RC | \
19277 module_cmds_RC | \
19278 module_expsym_cmds_RC | \
19279 old_archive_from_expsyms_cmds_RC | \
19280 export_symbols_cmds_RC | \
19281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
89354eef 19282 postinstall_cmds | postuninstall_cmds | \
f58aa3e1 19283 old_postinstall_cmds | old_postuninstall_cmds | \
19284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
89354eef 19285 # Double-quote double-evaled strings.
19286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19287 ;;
19288 *)
19289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19290 ;;
19291 esac
19292 done
19293
f58aa3e1 19294 case $lt_echo in
19295 *'\$0 --fallback-echo"')
19296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19297 ;;
19298 esac
89354eef 19299
f58aa3e1 19300cfgfile="$ofile"
89354eef 19301
f58aa3e1 19302 cat <<__EOF__ >> "$cfgfile"
19303# ### BEGIN LIBTOOL TAG CONFIG: $tagname
89354eef 19304
19305# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19306
19307# Shell to use when invoking shell scripts.
19308SHELL=$lt_SHELL
19309
19310# Whether or not to build shared libraries.
19311build_libtool_libs=$enable_shared
19312
19313# Whether or not to build static libraries.
19314build_old_libs=$enable_static
19315
19316# Whether or not to add -lc for building shared libraries.
f58aa3e1 19317build_libtool_need_lc=$archive_cmds_need_lc_RC
19318
19319# Whether or not to disallow shared libs when runtime libs are static
19320allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
89354eef 19321
19322# Whether or not to optimize for fast installation.
19323fast_install=$enable_fast_install
19324
19325# The host system.
19326host_alias=$host_alias
19327host=$host
f58aa3e1 19328host_os=$host_os
19329
19330# The build system.
19331build_alias=$build_alias
19332build=$build
19333build_os=$build_os
89354eef 19334
19335# An echo program that does not interpret backslashes.
19336echo=$lt_echo
19337
19338# The archiver.
19339AR=$lt_AR
19340AR_FLAGS=$lt_AR_FLAGS
19341
f58aa3e1 19342# A C compiler.
19343LTCC=$lt_LTCC
19344
19345# LTCC compiler flags.
19346LTCFLAGS=$lt_LTCFLAGS
19347
19348# A language-specific compiler.
19349CC=$lt_compiler_RC
89354eef 19350
19351# Is the compiler the GNU C compiler?
f58aa3e1 19352with_gcc=$GCC_RC
19353
19354# An ERE matcher.
19355EGREP=$lt_EGREP
89354eef 19356
19357# The linker used to build libraries.
f58aa3e1 19358LD=$lt_LD_RC
89354eef 19359
19360# Whether we need hard or soft links.
19361LN_S=$lt_LN_S
19362
19363# A BSD-compatible nm program.
19364NM=$lt_NM
19365
19366# A symbol stripping program
f58aa3e1 19367STRIP=$lt_STRIP
89354eef 19368
19369# Used to examine libraries when file_magic_cmd begins "file"
19370MAGIC_CMD=$MAGIC_CMD
19371
19372# Used on cygwin: DLL creation program.
19373DLLTOOL="$DLLTOOL"
19374
19375# Used on cygwin: object dumper.
19376OBJDUMP="$OBJDUMP"
19377
19378# Used on cygwin: assembler.
19379AS="$AS"
19380
19381# The name of the directory that contains temporary libtool files.
19382objdir=$objdir
19383
19384# How to create reloadable object files.
19385reload_flag=$lt_reload_flag
19386reload_cmds=$lt_reload_cmds
19387
19388# How to pass a linker flag through the compiler.
f58aa3e1 19389wl=$lt_lt_prog_compiler_wl_RC
89354eef 19390
19391# Object file suffix (normally "o").
19392objext="$ac_objext"
19393
19394# Old archive suffix (normally "a").
19395libext="$libext"
19396
f58aa3e1 19397# Shared library suffix (normally ".so").
19398shrext_cmds='$shrext_cmds'
19399
89354eef 19400# Executable file suffix (normally "").
19401exeext="$exeext"
19402
19403# Additional compiler flags for building library objects.
f58aa3e1 19404pic_flag=$lt_lt_prog_compiler_pic_RC
89354eef 19405pic_mode=$pic_mode
19406
f58aa3e1 19407# What is the maximum length of a command?
19408max_cmd_len=$lt_cv_sys_max_cmd_len
89354eef 19409
f58aa3e1 19410# Does compiler simultaneously support -c and -o options?
19411compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
89354eef 19412
f58aa3e1 19413# Must we lock files when doing compilation?
89354eef 19414need_locks=$lt_need_locks
19415
19416# Do we need the lib prefix for modules?
19417need_lib_prefix=$need_lib_prefix
19418
19419# Do we need a version for libraries?
19420need_version=$need_version
19421
19422# Whether dlopen is supported.
19423dlopen_support=$enable_dlopen
19424
19425# Whether dlopen of programs is supported.
19426dlopen_self=$enable_dlopen_self
19427
19428# Whether dlopen of statically linked programs is supported.
19429dlopen_self_static=$enable_dlopen_self_static
19430
19431# Compiler flag to prevent dynamic linking.
f58aa3e1 19432link_static_flag=$lt_lt_prog_compiler_static_RC
89354eef 19433
19434# Compiler flag to turn off builtin functions.
f58aa3e1 19435no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
89354eef 19436
19437# Compiler flag to allow reflexive dlopens.
f58aa3e1 19438export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
89354eef 19439
19440# Compiler flag to generate shared objects directly from archives.
f58aa3e1 19441whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
89354eef 19442
19443# Compiler flag to generate thread-safe objects.
f58aa3e1 19444thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
89354eef 19445
19446# Library versioning type.
19447version_type=$version_type
19448
19449# Format of library name prefix.
19450libname_spec=$lt_libname_spec
19451
19452# List of archive names. First name is the real one, the rest are links.
19453# The last name is the one that the linker finds with -lNAME.
19454library_names_spec=$lt_library_names_spec
19455
19456# The coded name of the library, if different from the real name.
19457soname_spec=$lt_soname_spec
19458
19459# Commands used to build and install an old-style archive.
19460RANLIB=$lt_RANLIB
f58aa3e1 19461old_archive_cmds=$lt_old_archive_cmds_RC
89354eef 19462old_postinstall_cmds=$lt_old_postinstall_cmds
19463old_postuninstall_cmds=$lt_old_postuninstall_cmds
19464
19465# Create an old-style archive from a shared archive.
f58aa3e1 19466old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
89354eef 19467
19468# Create a temporary old-style archive to link instead of a shared archive.
f58aa3e1 19469old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
89354eef 19470
19471# Commands used to build and install a shared archive.
f58aa3e1 19472archive_cmds=$lt_archive_cmds_RC
19473archive_expsym_cmds=$lt_archive_expsym_cmds_RC
89354eef 19474postinstall_cmds=$lt_postinstall_cmds
19475postuninstall_cmds=$lt_postuninstall_cmds
19476
f58aa3e1 19477# Commands used to build a loadable module (assumed same as above if empty)
19478module_cmds=$lt_module_cmds_RC
19479module_expsym_cmds=$lt_module_expsym_cmds_RC
19480
89354eef 19481# Commands to strip libraries.
19482old_striplib=$lt_old_striplib
19483striplib=$lt_striplib
19484
f58aa3e1 19485# Dependencies to place before the objects being linked to create a
19486# shared library.
19487predep_objects=$lt_predep_objects_RC
19488
19489# Dependencies to place after the objects being linked to create a
19490# shared library.
19491postdep_objects=$lt_postdep_objects_RC
19492
19493# Dependencies to place before the objects being linked to create a
19494# shared library.
19495predeps=$lt_predeps_RC
19496
19497# Dependencies to place after the objects being linked to create a
19498# shared library.
19499postdeps=$lt_postdeps_RC
19500
19501# The library search path used internally by the compiler when linking
19502# a shared library.
19503compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19504
89354eef 19505# Method to check whether dependent libraries are shared objects.
19506deplibs_check_method=$lt_deplibs_check_method
19507
19508# Command to use when deplibs_check_method == file_magic.
19509file_magic_cmd=$lt_file_magic_cmd
19510
19511# Flag that allows shared libraries with undefined symbols to be built.
f58aa3e1 19512allow_undefined_flag=$lt_allow_undefined_flag_RC
89354eef 19513
19514# Flag that forces no undefined symbols.
f58aa3e1 19515no_undefined_flag=$lt_no_undefined_flag_RC
89354eef 19516
19517# Commands used to finish a libtool library installation in a directory.
19518finish_cmds=$lt_finish_cmds
19519
19520# Same as above, but a single script fragment to be evaled but not shown.
19521finish_eval=$lt_finish_eval
19522
19523# Take the output of nm and produce a listing of raw symbols and C names.
f58aa3e1 19524global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
89354eef 19525
19526# Transform the output of nm in a proper C declaration
f58aa3e1 19527global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
89354eef 19528
19529# Transform the output of nm in a C name address pair
f58aa3e1 19530global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
89354eef 19531
19532# This is the shared library runtime path variable.
19533runpath_var=$runpath_var
19534
19535# This is the shared library path variable.
19536shlibpath_var=$shlibpath_var
19537
19538# Is shlibpath searched before the hard-coded library search path?
19539shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19540
19541# How to hardcode a shared library path into an executable.
f58aa3e1 19542hardcode_action=$hardcode_action_RC
89354eef 19543
19544# Whether we should hardcode library paths into libraries.
19545hardcode_into_libs=$hardcode_into_libs
19546
19547# Flag to hardcode \$libdir into a binary during linking.
19548# This must work even if \$libdir does not exist.
f58aa3e1 19549hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19550
19551# If ld is used when linking, flag to hardcode \$libdir into
19552# a binary during linking. This must work even if \$libdir does
19553# not exist.
19554hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
89354eef 19555
19556# Whether we need a single -rpath flag with a separated argument.
f58aa3e1 19557hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
89354eef 19558
f58aa3e1 19559# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
89354eef 19560# resulting binary.
f58aa3e1 19561hardcode_direct=$hardcode_direct_RC
89354eef 19562
19563# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19564# resulting binary.
f58aa3e1 19565hardcode_minus_L=$hardcode_minus_L_RC
89354eef 19566
19567# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19568# the resulting binary.
f58aa3e1 19569hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19570
19571# Set to yes if building a shared library automatically hardcodes DIR into the library
19572# and all subsequent libraries and executables linked against it.
19573hardcode_automatic=$hardcode_automatic_RC
89354eef 19574
19575# Variables whose values should be saved in libtool wrapper scripts and
19576# restored at relink time.
19577variables_saved_for_relink="$variables_saved_for_relink"
19578
19579# Whether libtool must link a program against all its dependency libraries.
f58aa3e1 19580link_all_deplibs=$link_all_deplibs_RC
89354eef 19581
19582# Compile-time system search path for libraries
19583sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19584
19585# Run-time system search path for libraries
19586sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19587
19588# Fix the shell variable \$srcfile for the compiler.
f58aa3e1 19589fix_srcfile_path="$fix_srcfile_path_RC"
89354eef 19590
19591# Set to yes if exported symbols are required.
f58aa3e1 19592always_export_symbols=$always_export_symbols_RC
89354eef 19593
19594# The commands to list exported symbols.
f58aa3e1 19595export_symbols_cmds=$lt_export_symbols_cmds_RC
89354eef 19596
19597# The commands to extract the exported symbol list from a shared archive.
19598extract_expsyms_cmds=$lt_extract_expsyms_cmds
19599
19600# Symbols that should not be listed in the preloaded symbols.
f58aa3e1 19601exclude_expsyms=$lt_exclude_expsyms_RC
89354eef 19602
19603# Symbols that must always be exported.
f58aa3e1 19604include_expsyms=$lt_include_expsyms_RC
89354eef 19605
f58aa3e1 19606# ### END LIBTOOL TAG CONFIG: $tagname
89354eef 19607
19608__EOF__
19609
89354eef 19610
f58aa3e1 19611else
19612 # If there is no Makefile yet, we rely on a make rule to execute
19613 # `config.status --recheck' to rerun these tests and create the
19614 # libtool script then.
19615 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19616 if test -f "$ltmain_in"; then
19617 test -f Makefile && make "$ltmain"
19618 fi
89354eef 19619fi
89354eef 19620
89354eef 19621
f58aa3e1 19622ac_ext=c
19623ac_cpp='$CPP $CPPFLAGS'
19624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19626ac_compiler_gnu=$ac_cv_c_compiler_gnu
89354eef 19627
f58aa3e1 19628CC="$lt_save_CC"
89354eef 19629
f58aa3e1 19630 ;;
19631
19632 *)
19633 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19634echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19635 { (exit 1); exit 1; }; }
19636 ;;
19637 esac
89354eef 19638
f58aa3e1 19639 # Append the new tag name to the list of available tags.
19640 if test -n "$tagname" ; then
19641 available_tags="$available_tags $tagname"
19642 fi
19643 fi
19644 done
19645 IFS="$lt_save_ifs"
89354eef 19646
f58aa3e1 19647 # Now substitute the updated list of available tags.
19648 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19649 mv "${ofile}T" "$ofile"
19650 chmod +x "$ofile"
19651 else
19652 rm -f "${ofile}T"
19653 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19654echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19655 { (exit 1); exit 1; }; }
19656 fi
19657fi
89354eef 19658
19659
19660
19661# This can be used to rebuild libtool when needed
19662LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19663
19664# Always use our own libtool.
19665LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19666
19667# Prevent multiple expansion
19668
19669
19670
19671
19672
f58aa3e1 19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691{ echo "$as_me:$LINENO: checking for libraries containing socket functions" >&5
19692echo $ECHO_N "checking for libraries containing socket functions... $ECHO_C" >&6; }
c004766d 19693if test "${ac_cv_socket_libs+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19695else
19696
19697 oCFLAGS=$CFLAGS
19698
19699 cat >conftest.$ac_ext <<_ACEOF
49ba971d 19700/* confdefs.h. */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h. */
c004766d 19705
19706 #include <sys/types.h>
19707 #include <sys/socket.h>
19708 #include <netinet/in.h>
19709 #include <arpa/inet.h>
19710
c004766d 19711int
19712main ()
19713{
19714
19715 struct in_addr add;
19716 int sd = socket(AF_INET, SOCK_STREAM, 0);
19717 inet_ntoa(add);
19718
19719 ;
19720 return 0;
19721}
19722_ACEOF
19723rm -f conftest.$ac_objext conftest$ac_exeext
f58aa3e1 19724if { (ac_try="$ac_link"
19725case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19728esac
19729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_link") 2>conftest.er1
c004766d 19731 ac_status=$?
f58aa3e1 19732 grep -v '^ *+' conftest.er1 >conftest.err
19733 rm -f conftest.er1
19734 cat conftest.err >&5
c004766d 19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } &&
f58aa3e1 19737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19738 { (case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19741esac
19742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_try") 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } &&
19747 { ac_try='test -s conftest$ac_exeext'
19748 { (case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19751esac
19752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_try") 2>&5
c004766d 19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_socket_libs=-lc
19758else
19759 echo "$as_me: failed program was:" >&5
49ba971d 19760sed 's/^/| /' conftest.$ac_ext >&5
19761
f58aa3e1 19762 ac_cv_socket_libs=no
c004766d 19763fi
f58aa3e1 19764
19765rm -f core conftest.err conftest.$ac_objext \
19766 conftest$ac_exeext conftest.$ac_ext
c004766d 19767
19768 if test x"$ac_cv_socket_libs" = "xno"
19769 then
19770 CFLAGS="$oCFLAGS -lsocket"
19771 cat >conftest.$ac_ext <<_ACEOF
49ba971d 19772/* confdefs.h. */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h. */
c004766d 19777
19778 #include <sys/types.h>
19779 #include <sys/socket.h>
19780 #include <netinet/in.h>
19781 #include <arpa/inet.h>
19782
c004766d 19783int
19784main ()
19785{
19786
19787 struct in_addr add;
19788 int sd = socket(AF_INET, SOCK_STREAM, 0);
19789 inet_ntoa(add);
19790
19791 ;
19792 return 0;
19793}
19794_ACEOF
19795rm -f conftest.$ac_objext conftest$ac_exeext
f58aa3e1 19796if { (ac_try="$ac_link"
19797case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
c004766d 19803 ac_status=$?
f58aa3e1 19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
c004766d 19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
f58aa3e1 19809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest$ac_exeext'
19820 { (case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_try") 2>&5
c004766d 19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 ac_cv_socket_libs=-lsocket
19830else
19831 echo "$as_me: failed program was:" >&5
49ba971d 19832sed 's/^/| /' conftest.$ac_ext >&5
19833
f58aa3e1 19834 ac_cv_socket_libs=no
c004766d 19835fi
f58aa3e1 19836
19837rm -f core conftest.err conftest.$ac_objext \
19838 conftest$ac_exeext conftest.$ac_ext
c004766d 19839 fi
19840
19841 if test x"$ac_cv_socket_libs" = "xno"
19842 then
19843 CFLAGS="$oCFLAGS -lsocket -lnsl"
19844 cat >conftest.$ac_ext <<_ACEOF
49ba971d 19845/* confdefs.h. */
19846_ACEOF
19847cat confdefs.h >>conftest.$ac_ext
19848cat >>conftest.$ac_ext <<_ACEOF
19849/* end confdefs.h. */
c004766d 19850
19851 #include <sys/types.h>
19852 #include <sys/socket.h>
19853 #include <netinet/in.h>
19854 #include <arpa/inet.h>
19855
c004766d 19856int
19857main ()
19858{
19859
19860 struct in_addr add;
19861 int sd = socket(AF_INET, SOCK_STREAM, 0);
19862 inet_ntoa(add);
19863
19864 ;
19865 return 0;
19866}
19867_ACEOF
19868rm -f conftest.$ac_objext conftest$ac_exeext
f58aa3e1 19869if { (ac_try="$ac_link"
19870case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19873esac
19874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_link") 2>conftest.er1
c004766d 19876 ac_status=$?
f58aa3e1 19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
c004766d 19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } &&
f58aa3e1 19882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19883 { (case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19886esac
19887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_try") 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest$ac_exeext'
19893 { (case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896esac
19897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_try") 2>&5
c004766d 19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 ac_cv_socket_libs="-lsocket -lnsl"
19903else
19904 echo "$as_me: failed program was:" >&5
49ba971d 19905sed 's/^/| /' conftest.$ac_ext >&5
19906
f58aa3e1 19907 ac_cv_socket_libs=no
c004766d 19908fi
f58aa3e1 19909
19910rm -f core conftest.err conftest.$ac_objext \
19911 conftest$ac_exeext conftest.$ac_ext
c004766d 19912 fi
19913
19914 CFLAGS=$oCFLAGS
19915
19916fi
f58aa3e1 19917{ echo "$as_me:$LINENO: result: $ac_cv_socket_libs" >&5
19918echo "${ECHO_T}$ac_cv_socket_libs" >&6; }
c004766d 19919
19920 if test x"$ac_cv_socket_libs" = "xno"
19921 then
19922 { { echo "$as_me:$LINENO: error: Cannot find socket libraries" >&5
19923echo "$as_me: error: Cannot find socket libraries" >&2;}
19924 { (exit 1); exit 1; }; }
19925 elif test x"$ac_cv_socket_libs" = "x-lc"
19926 then
19927 ETR_SOCKET_LIBS=""
19928 else
19929 ETR_SOCKET_LIBS="$ac_cv_socket_libs"
19930 fi
19931
19932
19933
19934
f58aa3e1 19935{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19936echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
89354eef 19937if test "${ac_cv_header_stdc+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19939else
19940 cat >conftest.$ac_ext <<_ACEOF
49ba971d 19941/* confdefs.h. */
19942_ACEOF
19943cat confdefs.h >>conftest.$ac_ext
19944cat >>conftest.$ac_ext <<_ACEOF
19945/* end confdefs.h. */
89354eef 19946#include <stdlib.h>
19947#include <stdarg.h>
19948#include <string.h>
19949#include <float.h>
19950
49ba971d 19951int
19952main ()
19953{
19954
19955 ;
19956 return 0;
19957}
89354eef 19958_ACEOF
49ba971d 19959rm -f conftest.$ac_objext
f58aa3e1 19960if { (ac_try="$ac_compile"
19961case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964esac
19965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_compile") 2>conftest.er1
89354eef 19967 ac_status=$?
f58aa3e1 19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
89354eef 19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49ba971d 19972 (exit $ac_status); } &&
f58aa3e1 19973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19974 { (case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977esac
19978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; } &&
19983 { ac_try='test -s conftest.$ac_objext'
19984 { (case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987esac
19988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_try") 2>&5
49ba971d 19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; }; then
89354eef 19993 ac_cv_header_stdc=yes
19994else
19995 echo "$as_me: failed program was:" >&5
49ba971d 19996sed 's/^/| /' conftest.$ac_ext >&5
19997
f58aa3e1 19998 ac_cv_header_stdc=no
89354eef 19999fi
f58aa3e1 20000
20001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89354eef 20002
20003if test $ac_cv_header_stdc = yes; then
20004 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20005 cat >conftest.$ac_ext <<_ACEOF
49ba971d 20006/* confdefs.h. */
20007_ACEOF
20008cat confdefs.h >>conftest.$ac_ext
20009cat >>conftest.$ac_ext <<_ACEOF
20010/* end confdefs.h. */
89354eef 20011#include <string.h>
20012
20013_ACEOF
20014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49ba971d 20015 $EGREP "memchr" >/dev/null 2>&1; then
89354eef 20016 :
20017else
20018 ac_cv_header_stdc=no
20019fi
20020rm -f conftest*
20021
20022fi
20023
20024if test $ac_cv_header_stdc = yes; then
20025 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20026 cat >conftest.$ac_ext <<_ACEOF
49ba971d 20027/* confdefs.h. */
20028_ACEOF
20029cat confdefs.h >>conftest.$ac_ext
20030cat >>conftest.$ac_ext <<_ACEOF
20031/* end confdefs.h. */
89354eef 20032#include <stdlib.h>
20033
20034_ACEOF
20035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49ba971d 20036 $EGREP "free" >/dev/null 2>&1; then
89354eef 20037 :
20038else
20039 ac_cv_header_stdc=no
20040fi
20041rm -f conftest*
20042
20043fi
20044
20045if test $ac_cv_header_stdc = yes; then
20046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20047 if test "$cross_compiling" = yes; then
20048 :
20049else
20050 cat >conftest.$ac_ext <<_ACEOF
49ba971d 20051/* confdefs.h. */
20052_ACEOF
20053cat confdefs.h >>conftest.$ac_ext
20054cat >>conftest.$ac_ext <<_ACEOF
20055/* end confdefs.h. */
89354eef 20056#include <ctype.h>
f58aa3e1 20057#include <stdlib.h>
89354eef 20058#if ((' ' & 0x0FF) == 0x020)
20059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20061#else
49ba971d 20062# define ISLOWER(c) \
f58aa3e1 20063 (('a' <= (c) && (c) <= 'i') \
20064 || ('j' <= (c) && (c) <= 'r') \
20065 || ('s' <= (c) && (c) <= 'z'))
89354eef 20066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20067#endif
20068
20069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20070int
20071main ()
20072{
20073 int i;
20074 for (i = 0; i < 256; i++)
20075 if (XOR (islower (i), ISLOWER (i))
f58aa3e1 20076 || toupper (i) != TOUPPER (i))
20077 return 2;
20078 return 0;
89354eef 20079}
20080_ACEOF
20081rm -f conftest$ac_exeext
f58aa3e1 20082if { (ac_try="$ac_link"
20083case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086esac
20087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_link") 2>&5
89354eef 20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f58aa3e1 20092 { (case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095esac
20096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_try") 2>&5
89354eef 20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 :
20102else
20103 echo "$as_me: program exited with status $ac_status" >&5
20104echo "$as_me: failed program was:" >&5
49ba971d 20105sed 's/^/| /' conftest.$ac_ext >&5
20106
89354eef 20107( exit $ac_status )
20108ac_cv_header_stdc=no
20109fi
f58aa3e1 20110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
89354eef 20111fi
f58aa3e1 20112
20113
89354eef 20114fi
20115fi
f58aa3e1 20116{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20117echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
89354eef 20118if test $ac_cv_header_stdc = yes; then
20119
20120cat >>confdefs.h <<\_ACEOF
20121#define STDC_HEADERS 1
20122_ACEOF
20123
20124fi
20125
20126
20127
20128for ac_header in sys/poll.h
20129do
20130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f58aa3e1 20131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89354eef 20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20136fi
f58aa3e1 20137ac_res=`eval echo '${'$as_ac_Header'}'`
20138 { echo "$as_me:$LINENO: result: $ac_res" >&5
20139echo "${ECHO_T}$ac_res" >&6; }
89354eef 20140else
20141 # Is the header compilable?
f58aa3e1 20142{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
89354eef 20144cat >conftest.$ac_ext <<_ACEOF
49ba971d 20145/* confdefs.h. */
20146_ACEOF
20147cat confdefs.h >>conftest.$ac_ext
20148cat >>conftest.$ac_ext <<_ACEOF
20149/* end confdefs.h. */
89354eef 20150$ac_includes_default
20151#include <$ac_header>
20152_ACEOF
20153rm -f conftest.$ac_objext
f58aa3e1 20154if { (ac_try="$ac_compile"
20155case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20158esac
20159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160 (eval "$ac_compile") 2>conftest.er1
89354eef 20161 ac_status=$?
f58aa3e1 20162 grep -v '^ *+' conftest.er1 >conftest.err
20163 rm -f conftest.er1
20164 cat conftest.err >&5
89354eef 20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } &&
f58aa3e1 20167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20168 { (case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20171esac
20172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_try") 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try='test -s conftest.$ac_objext'
20178 { (case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181esac
20182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_try") 2>&5
89354eef 20184 ac_status=$?
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; }; then
20187 ac_header_compiler=yes
20188else
20189 echo "$as_me: failed program was:" >&5
49ba971d 20190sed 's/^/| /' conftest.$ac_ext >&5
20191
f58aa3e1 20192 ac_header_compiler=no
89354eef 20193fi
f58aa3e1 20194
20195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20196{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20197echo "${ECHO_T}$ac_header_compiler" >&6; }
89354eef 20198
20199# Is the header present?
f58aa3e1 20200{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
89354eef 20202cat >conftest.$ac_ext <<_ACEOF
49ba971d 20203/* confdefs.h. */
20204_ACEOF
20205cat confdefs.h >>conftest.$ac_ext
20206cat >>conftest.$ac_ext <<_ACEOF
20207/* end confdefs.h. */
89354eef 20208#include <$ac_header>
20209_ACEOF
f58aa3e1 20210if { (ac_try="$ac_cpp conftest.$ac_ext"
20211case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214esac
20215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89354eef 20217 ac_status=$?
49ba971d 20218 grep -v '^ *+' conftest.er1 >conftest.err
89354eef 20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } >/dev/null; then
20223 if test -s conftest.err; then
20224 ac_cpp_err=$ac_c_preproc_warn_flag
f58aa3e1 20225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
89354eef 20226 else
20227 ac_cpp_err=
20228 fi
20229else
20230 ac_cpp_err=yes
20231fi
20232if test -z "$ac_cpp_err"; then
20233 ac_header_preproc=yes
20234else
20235 echo "$as_me: failed program was:" >&5
49ba971d 20236sed 's/^/| /' conftest.$ac_ext >&5
20237
89354eef 20238 ac_header_preproc=no
20239fi
f58aa3e1 20240
89354eef 20241rm -f conftest.err conftest.$ac_ext
f58aa3e1 20242{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20243echo "${ECHO_T}$ac_header_preproc" >&6; }
89354eef 20244
20245# So? What about this header?
f58aa3e1 20246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20247 yes:no: )
89354eef 20248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20249echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f58aa3e1 20250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20251echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20252 ac_header_preproc=yes
49ba971d 20253 ;;
f58aa3e1 20254 no:yes:* )
89354eef 20255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20256echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f58aa3e1 20257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20258echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20260echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20262echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
89354eef 20263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49ba971d 20264echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f58aa3e1 20265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20266echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20267
49ba971d 20268 ;;
89354eef 20269esac
f58aa3e1 20270{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89354eef 20273 echo $ECHO_N "(cached) $ECHO_C" >&6
20274else
f58aa3e1 20275 eval "$as_ac_Header=\$ac_header_preproc"
89354eef 20276fi
f58aa3e1 20277ac_res=`eval echo '${'$as_ac_Header'}'`
20278 { echo "$as_me:$LINENO: result: $ac_res" >&5
20279echo "${ECHO_T}$ac_res" >&6; }
89354eef 20280
20281fi
20282if test `eval echo '${'$as_ac_Header'}'` = yes; then
20283 cat >>confdefs.h <<_ACEOF
20284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20285_ACEOF
20286 have_poll_sys_h=yes
20287else
20288 have_sys_poll_h=no
20289fi
20290
20291done
20292
20293
20294
20295
20296
20297
20298for ac_header in fcntl.h sys/time.h unistd.h strings.h
20299do
20300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f58aa3e1 20301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89354eef 20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20306fi
f58aa3e1 20307ac_res=`eval echo '${'$as_ac_Header'}'`
20308 { echo "$as_me:$LINENO: result: $ac_res" >&5
20309echo "${ECHO_T}$ac_res" >&6; }
89354eef 20310else
20311 # Is the header compilable?
f58aa3e1 20312{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
89354eef 20314cat >conftest.$ac_ext <<_ACEOF
49ba971d 20315/* confdefs.h. */
20316_ACEOF
20317cat confdefs.h >>conftest.$ac_ext
20318cat >>conftest.$ac_ext <<_ACEOF
20319/* end confdefs.h. */
89354eef 20320$ac_includes_default
20321#include <$ac_header>
20322_ACEOF
20323rm -f conftest.$ac_objext
f58aa3e1 20324if { (ac_try="$ac_compile"
20325case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20328esac
20329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20330 (eval "$ac_compile") 2>conftest.er1
89354eef 20331 ac_status=$?
f58aa3e1 20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
89354eef 20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } &&
f58aa3e1 20337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20338 { (case "(($ac_try" in
20339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340 *) ac_try_echo=$ac_try;;
20341esac
20342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343 (eval "$ac_try") 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; } &&
20347 { ac_try='test -s conftest.$ac_objext'
20348 { (case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20351esac
20352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_try") 2>&5
89354eef 20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 ac_header_compiler=yes
20358else
20359 echo "$as_me: failed program was:" >&5
49ba971d 20360sed 's/^/| /' conftest.$ac_ext >&5
20361
f58aa3e1 20362 ac_header_compiler=no
89354eef 20363fi
f58aa3e1 20364
20365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20366{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20367echo "${ECHO_T}$ac_header_compiler" >&6; }
89354eef 20368
20369# Is the header present?
f58aa3e1 20370{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
89354eef 20372cat >conftest.$ac_ext <<_ACEOF
49ba971d 20373/* confdefs.h. */
20374_ACEOF
20375cat confdefs.h >>conftest.$ac_ext
20376cat >>conftest.$ac_ext <<_ACEOF
20377/* end confdefs.h. */
89354eef 20378#include <$ac_header>
20379_ACEOF
f58aa3e1 20380if { (ac_try="$ac_cpp conftest.$ac_ext"
20381case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20384esac
20385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89354eef 20387 ac_status=$?
49ba971d 20388 grep -v '^ *+' conftest.er1 >conftest.err
89354eef 20389 rm -f conftest.er1
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } >/dev/null; then
20393 if test -s conftest.err; then
20394 ac_cpp_err=$ac_c_preproc_warn_flag
f58aa3e1 20395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
89354eef 20396 else
20397 ac_cpp_err=
20398 fi
20399else
20400 ac_cpp_err=yes
20401fi
20402if test -z "$ac_cpp_err"; then
20403 ac_header_preproc=yes
20404else
20405 echo "$as_me: failed program was:" >&5
49ba971d 20406sed 's/^/| /' conftest.$ac_ext >&5
20407
89354eef 20408 ac_header_preproc=no
20409fi
f58aa3e1 20410
89354eef 20411rm -f conftest.err conftest.$ac_ext
f58aa3e1 20412{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20413echo "${ECHO_T}$ac_header_preproc" >&6; }
89354eef 20414
20415# So? What about this header?
f58aa3e1 20416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20417 yes:no: )
49ba971d 20418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f58aa3e1 20420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20422 ac_header_preproc=yes
49ba971d 20423 ;;
f58aa3e1 20424 no:yes:* )
49ba971d 20425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f58aa3e1 20427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20428echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20432echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
49ba971d 20433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f58aa3e1 20435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20437
49ba971d 20438 ;;
20439esac
f58aa3e1 20440{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49ba971d 20443 echo $ECHO_N "(cached) $ECHO_C" >&6
d7ad87fe 20444else
f58aa3e1 20445 eval "$as_ac_Header=\$ac_header_preproc"
d7ad87fe 20446fi
f58aa3e1 20447ac_res=`eval echo '${'$as_ac_Header'}'`
20448 { echo "$as_me:$LINENO: result: $ac_res" >&5
20449echo "${ECHO_T}$ac_res" >&6; }
49ba971d 20450
20451fi
20452if test `eval echo '${'$as_ac_Header'}'` = yes; then
20453 cat >>confdefs.h <<_ACEOF
20454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20455_ACEOF
d7ad87fe 20456
20457fi
20458
49ba971d 20459done
20460
d7ad87fe 20461
f58aa3e1 20462{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20463echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
89354eef 20464if test "${ac_cv_c_const+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20466else
20467 cat >conftest.$ac_ext <<_ACEOF
49ba971d 20468/* confdefs.h. */
20469_ACEOF
20470cat confdefs.h >>conftest.$ac_ext
20471cat >>conftest.$ac_ext <<_ACEOF
20472/* end confdefs.h. */
89354eef 20473
89354eef 20474int
20475main ()
20476{
20477/* FIXME: Include the comments suggested by Paul. */
20478#ifndef __cplusplus
20479 /* Ultrix mips cc rejects this. */
20480 typedef int charset[2];
20481 const charset x;
20482 /* SunOS 4.1.1 cc rejects this. */
20483 char const *const *ccp;
20484 char **p;
20485 /* NEC SVR4.0.2 mips cc rejects this. */
20486 struct point {int x, y;};
20487 static struct point const zero = {0,0};
20488 /* AIX XL C 1.02.0.0 rejects this.
20489 It does not let you subtract one const X* pointer from another in
20490 an arm of an if-expression whose if-part is not a constant
20491 expression */
20492 const char *g = "string";
20493 ccp = &g + (g ? g-g : 0);
20494 /* HPUX 7.0 cc rejects these. */
20495 ++ccp;
20496 p = (char**) ccp;
20497 ccp = (char const *const *) p;
20498 { /* SCO 3.2v4 cc rejects this. */
20499 char *t;
20500 char const *s = 0 ? (char *) 0 : (char const *) 0;
20501
20502 *t++ = 0;
f58aa3e1 20503 if (s) return 0;
89354eef 20504 }
20505 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20506 int x[] = {25, 17};
20507 const int *foo = &x[0];
20508 ++foo;
20509 }
20510 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20511 typedef const int *iptr;
20512 iptr p = 0;
20513 ++p;
20514 }
20515 { /* AIX XL C 1.02.0.0 rejects this saying
20516 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20517 struct s { int j; const int *ap[3]; };
20518 struct s *b; b->j = 5;
20519 }
20520 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20521 const int foo = 10;
f58aa3e1 20522 if (!foo) return 0;
89354eef 20523 }
f58aa3e1 20524 return !x[0] && !zero.x;
89354eef 20525#endif
20526
20527 ;
20528 return 0;
20529}
20530_ACEOF
20531rm -f conftest.$ac_objext
f58aa3e1 20532if { (ac_try="$ac_compile"
20533case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20536esac
20537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_compile") 2>conftest.er1
89354eef 20539 ac_status=$?
f58aa3e1 20540 grep -v '^ *+' conftest.er1 >conftest.err
20541 rm -f conftest.er1
20542 cat conftest.err >&5
89354eef 20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } &&
f58aa3e1 20545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20546 { (case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20549esac
20550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_try") 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; } &&
20555 { ac_try='test -s conftest.$ac_objext'
20556 { (case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20559esac
20560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_try") 2>&5
89354eef 20562 ac_status=$?
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; }; then
20565 ac_cv_c_const=yes
20566else
20567 echo "$as_me: failed program was:" >&5
49ba971d 20568sed 's/^/| /' conftest.$ac_ext >&5
20569
f58aa3e1 20570 ac_cv_c_const=no
89354eef 20571fi
f58aa3e1 20572
20573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89354eef 20574fi
f58aa3e1 20575{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20576echo "${ECHO_T}$ac_cv_c_const" >&6; }
89354eef 20577if test $ac_cv_c_const = no; then
20578
20579cat >>confdefs.h <<\_ACEOF
20580#define const
20581_ACEOF
20582
20583fi
20584
f58aa3e1 20585{ echo "$as_me:$LINENO: checking for size_t" >&5
20586echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
89354eef 20587if test "${ac_cv_type_size_t+set}" = set; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20589else
20590 cat >conftest.$ac_ext <<_ACEOF
49ba971d 20591/* confdefs.h. */
20592_ACEOF
20593cat confdefs.h >>conftest.$ac_ext
20594cat >>conftest.$ac_ext <<_ACEOF
20595/* end confdefs.h. */
89354eef 20596$ac_includes_default
f58aa3e1 20597typedef size_t ac__type_new_;
89354eef 20598int
20599main ()
20600{
f58aa3e1 20601if ((ac__type_new_ *) 0)
89354eef 20602 return 0;
f58aa3e1 20603if (sizeof (ac__type_new_))
89354eef 20604 return 0;
20605 ;
20606 return 0;
20607}
20608_ACEOF
20609rm -f conftest.$ac_objext
f58aa3e1 20610if { (ac_try="$ac_compile"
20611case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614esac
20615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_compile") 2>conftest.er1
89354eef 20617 ac_status=$?
f58aa3e1 20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
89354eef 20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
f58aa3e1 20623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627esac
20628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest.$ac_objext'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637esac
20638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
89354eef 20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 ac_cv_type_size_t=yes
20644else
20645 echo "$as_me: failed program was:" >&5
49ba971d 20646sed 's/^/| /' conftest.$ac_ext >&5
20647
f58aa3e1 20648 ac_cv_type_size_t=no
89354eef 20649fi
f58aa3e1 20650
20651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89354eef 20652fi
f58aa3e1 20653{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20654echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
89354eef 20655if test $ac_cv_type_size_t = yes; then
20656 :
20657else
20658
20659cat >>confdefs.h <<_ACEOF
f58aa3e1 20660#define size_t unsigned int
89354eef 20661_ACEOF
20662
20663fi
20664
f58aa3e1 20665{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20666echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
89354eef 20667if test "${ac_cv_header_time+set}" = set; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669else
20670 cat >conftest.$ac_ext <<_ACEOF
49ba971d 20671/* confdefs.h. */
20672_ACEOF
20673cat confdefs.h >>conftest.$ac_ext
20674cat >>conftest.$ac_ext <<_ACEOF
20675/* end confdefs.h. */
89354eef 20676#include <sys/types.h>
20677#include <sys/time.h>
20678#include <time.h>
20679
89354eef 20680int
20681main ()
20682{
20683if ((struct tm *) 0)
20684return 0;
20685 ;
20686 return 0;
20687}
20688_ACEOF
20689rm -f conftest.$ac_objext
f58aa3e1 20690if { (ac_try="$ac_compile"
20691case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20694esac
20695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_compile") 2>conftest.er1
89354eef 20697 ac_status=$?
f58aa3e1 20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
89354eef 20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
f58aa3e1 20703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707esac
20708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
20714 { (case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717esac
20718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_try") 2>&5
89354eef 20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723 ac_cv_header_time=yes
20724else
20725 echo "$as_me: failed program was:" >&5
49ba971d 20726sed 's/^/| /' conftest.$ac_ext >&5
20727
f58aa3e1 20728 ac_cv_header_time=no
89354eef 20729fi
f58aa3e1 20730
20731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89354eef 20732fi
f58aa3e1 20733{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20734echo "${ECHO_T}$ac_cv_header_time" >&6; }
89354eef 20735if test $ac_cv_header_time = yes; then
20736
20737cat >>confdefs.h <<\_ACEOF
20738#define TIME_WITH_SYS_TIME 1
20739_ACEOF
20740
20741fi
20742
89354eef 20743
c3fda854 20744
20745
20746for ac_func in snprintf vsnprintf
20747do
20748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f58aa3e1 20749{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
c3fda854 20752 echo $ECHO_N "(cached) $ECHO_C" >&6
20753else
20754 cat >conftest.$ac_ext <<_ACEOF
49ba971d 20755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h. */
f58aa3e1 20760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20762#define $ac_func innocuous_$ac_func
20763
c3fda854 20764/* System header to define __stub macros and hopefully few prototypes,
49ba971d 20765 which can conflict with char $ac_func (); below.
20766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20767 <limits.h> exists even on freestanding compilers. */
f58aa3e1 20768
49ba971d 20769#ifdef __STDC__
20770# include <limits.h>
20771#else
20772# include <assert.h>
20773#endif
f58aa3e1 20774
20775#undef $ac_func
20776
20777/* Override any GCC internal prototype to avoid an error.
20778 Use char because int might match the return type of a GCC
20779 builtin and then its argument prototype would still apply. */
c3fda854 20780#ifdef __cplusplus
20781extern "C"
20782#endif
c3fda854 20783char $ac_func ();
c3fda854 20784/* The GNU C library defines this for functions which it implements
20785 to always fail with ENOSYS. Some functions are actually named
20786 something starting with __ and the normal name is an alias. */
f58aa3e1 20787#if defined __stub_$ac_func || defined __stub___$ac_func
c3fda854 20788choke me
c3fda854 20789#endif
20790
49ba971d 20791int
20792main ()
20793{
f58aa3e1 20794return $ac_func ();
c3fda854 20795 ;
20796 return 0;
20797}
20798_ACEOF
20799rm -f conftest.$ac_objext conftest$ac_exeext
f58aa3e1 20800if { (ac_try="$ac_link"
20801case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804esac
20805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_link") 2>conftest.er1
c3fda854 20807 ac_status=$?
f58aa3e1 20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
c3fda854 20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
f58aa3e1 20813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20814 { (case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20817esac
20818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_try") 2>&5
20820 ac_status=$?
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; } &&
20823 { ac_try='test -s conftest$ac_exeext'
20824 { (case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20827esac
20828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_try") 2>&5
c3fda854 20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; }; then
20833 eval "$as_ac_var=yes"
20834else
20835 echo "$as_me: failed program was:" >&5
49ba971d 20836sed 's/^/| /' conftest.$ac_ext >&5
20837
f58aa3e1 20838 eval "$as_ac_var=no"
c3fda854 20839fi
f58aa3e1 20840
20841rm -f core conftest.err conftest.$ac_objext \
20842 conftest$ac_exeext conftest.$ac_ext
c3fda854 20843fi
f58aa3e1 20844ac_res=`eval echo '${'$as_ac_var'}'`
20845 { echo "$as_me:$LINENO: result: $ac_res" >&5
20846echo "${ECHO_T}$ac_res" >&6; }
c3fda854 20847if test `eval echo '${'$as_ac_var'}'` = yes; then
20848 cat >>confdefs.h <<_ACEOF
20849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20850_ACEOF
20851
20852fi
20853done
20854
f58aa3e1 20855{ echo "$as_me:$LINENO: checking for working snprintf" >&5
20856echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
c3fda854 20857if test "${ac_cv_have_working_snprintf+set}" = set; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20859else
20860 if test "$cross_compiling" = yes; then
20861 ac_cv_have_working_snprintf=cross
20862else
20863 cat >conftest.$ac_ext <<_ACEOF
49ba971d 20864/* confdefs.h. */
20865_ACEOF
20866cat confdefs.h >>conftest.$ac_ext
20867cat >>conftest.$ac_ext <<_ACEOF
20868/* end confdefs.h. */
c3fda854 20869#include <stdio.h>
20870
20871int main(void)
20872{
20873 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20874 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20875 int i;
20876 i = snprintf (bufs, 2, "%s", "111");
20877 if (strcmp (bufs, "1")) exit (1);
20878 if (i != 3) exit (1);
20879 i = snprintf (bufd, 2, "%d", 111);
20880 if (strcmp (bufd, "1")) exit (1);
20881 if (i != 3) exit (1);
20882 exit(0);
20883}
20884_ACEOF
20885rm -f conftest$ac_exeext
f58aa3e1 20886if { (ac_try="$ac_link"
20887case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20890esac
20891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_link") 2>&5
c3fda854 20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f58aa3e1 20896 { (case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20899esac
20900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_try") 2>&5
c3fda854 20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905 ac_cv_have_working_snprintf=yes
20906else
20907 echo "$as_me: program exited with status $ac_status" >&5
20908echo "$as_me: failed program was:" >&5
49ba971d 20909sed 's/^/| /' conftest.$ac_ext >&5
20910
c3fda854 20911( exit $ac_status )
20912ac_cv_have_working_snprintf=no
20913fi
f58aa3e1 20914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c3fda854 20915fi
f58aa3e1 20916
20917
c3fda854 20918fi
20919
f58aa3e1 20920{ echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
20921echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
20922{ echo "$as_me:$LINENO: checking for working vsnprintf" >&5
20923echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
c3fda854 20924if test "${ac_cv_have_working_vsnprintf+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926else
20927 if test "$cross_compiling" = yes; then
20928 ac_cv_have_working_vsnprintf=cross
20929else
20930 cat >conftest.$ac_ext <<_ACEOF
49ba971d 20931/* confdefs.h. */
20932_ACEOF
20933cat confdefs.h >>conftest.$ac_ext
20934cat >>conftest.$ac_ext <<_ACEOF
20935/* end confdefs.h. */
c3fda854 20936#include <stdio.h>
20937#include <stdarg.h>
20938
20939int my_vsnprintf (char *buf, const char *tmpl, ...)
20940{
20941 int i;
20942 va_list args;
20943 va_start (args, tmpl);
20944 i = vsnprintf (buf, 2, tmpl, args);
20945 va_end (args);
20946 return i;
20947}
20948
20949int main(void)
20950{
20951 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20952 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20953 int i;
20954 i = my_vsnprintf (bufs, "%s", "111");
20955 if (strcmp (bufs, "1")) exit (1);
20956 if (i != 3) exit (1);
20957 i = my_vsnprintf (bufd, "%d", 111);
20958 if (strcmp (bufd, "1")) exit (1);
20959 if (i != 3) exit (1);
20960 exit(0);
20961}
20962_ACEOF
20963rm -f conftest$ac_exeext
f58aa3e1 20964if { (ac_try="$ac_link"
20965case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20968esac
20969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_link") 2>&5
c3fda854 20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f58aa3e1 20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977esac
20978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
c3fda854 20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_have_working_vsnprintf=yes
20984else
20985 echo "$as_me: program exited with status $ac_status" >&5
20986echo "$as_me: failed program was:" >&5
49ba971d 20987sed 's/^/| /' conftest.$ac_ext >&5
20988
c3fda854 20989( exit $ac_status )
20990ac_cv_have_working_vsnprintf=no
20991fi
f58aa3e1 20992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c3fda854 20993fi
f58aa3e1 20994
20995
c3fda854 20996fi
20997
f58aa3e1 20998{ echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
20999echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
c3fda854 21000if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
f58aa3e1 21001 case " $LIBOBJS " in
21002 *" snprintf.$ac_objext "* ) ;;
21003 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21004 ;;
21005esac
21006
c3fda854 21007 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21008echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21009
21010cat >>confdefs.h <<\_ACEOF
21011#define PREFER_PORTABLE_SNPRINTF 1
21012_ACEOF
21013
21014fi
21015
89354eef 21016if test "$have_sys_poll_h" = "no"; then
21017
21018for ac_func in select
21019do
21020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f58aa3e1 21021{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
89354eef 21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21025else
21026 cat >conftest.$ac_ext <<_ACEOF
49ba971d 21027/* confdefs.h. */
21028_ACEOF
21029cat confdefs.h >>conftest.$ac_ext
21030cat >>conftest.$ac_ext <<_ACEOF
21031/* end confdefs.h. */
f58aa3e1 21032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21034#define $ac_func innocuous_$ac_func
21035
89354eef 21036/* System header to define __stub macros and hopefully few prototypes,
49ba971d 21037 which can conflict with char $ac_func (); below.
21038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21039 <limits.h> exists even on freestanding compilers. */
f58aa3e1 21040
49ba971d 21041#ifdef __STDC__
21042# include <limits.h>
21043#else
21044# include <assert.h>
21045#endif
f58aa3e1 21046
21047#undef $ac_func
21048
21049/* Override any GCC internal prototype to avoid an error.
21050 Use char because int might match the return type of a GCC
21051 builtin and then its argument prototype would still apply. */
89354eef 21052#ifdef __cplusplus
21053extern "C"
21054#endif
89354eef 21055char $ac_func ();
89354eef 21056/* The GNU C library defines this for functions which it implements
21057 to always fail with ENOSYS. Some functions are actually named
21058 something starting with __ and the normal name is an alias. */
f58aa3e1 21059#if defined __stub_$ac_func || defined __stub___$ac_func
89354eef 21060choke me
89354eef 21061#endif
21062
49ba971d 21063int
21064main ()
21065{
f58aa3e1 21066return $ac_func ();
89354eef 21067 ;
21068 return 0;
21069}
21070_ACEOF
21071rm -f conftest.$ac_objext conftest$ac_exeext
f58aa3e1 21072if { (ac_try="$ac_link"
21073case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21076esac
21077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078 (eval "$ac_link") 2>conftest.er1
89354eef 21079 ac_status=$?
f58aa3e1 21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
89354eef 21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
f58aa3e1 21085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21086 { (case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21089esac
21090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_try") 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; } &&
21095 { ac_try='test -s conftest$ac_exeext'
21096 { (case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21099esac
21100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_try") 2>&5
89354eef 21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; }; then
21105 eval "$as_ac_var=yes"
21106else
21107 echo "$as_me: failed program was:" >&5
49ba971d 21108sed 's/^/| /' conftest.$ac_ext >&5
21109
f58aa3e1 21110 eval "$as_ac_var=no"
89354eef 21111fi
f58aa3e1 21112
21113rm -f core conftest.err conftest.$ac_objext \
21114 conftest$ac_exeext conftest.$ac_ext
89354eef 21115fi
f58aa3e1 21116ac_res=`eval echo '${'$as_ac_var'}'`
21117 { echo "$as_me:$LINENO: result: $ac_res" >&5
21118echo "${ECHO_T}$ac_res" >&6; }
89354eef 21119if test `eval echo '${'$as_ac_var'}'` = yes; then
21120 cat >>confdefs.h <<_ACEOF
21121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21122_ACEOF
21123 have_select=yes
21124else
21125 have_select=no
21126fi
21127done
21128
21129 if test "$have_select" = "no"; then
21130 { { echo "$as_me:$LINENO: error: No select() implementation found" >&5
21131echo "$as_me: error: No select() implementation found" >&2;}
21132 { (exit 1); exit 1; }; }
21133 fi
21134fi
21135
21136
f3a6a023 21137
21138for ac_func in inet_aton inet_pton
89354eef 21139do
21140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f58aa3e1 21141{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21143if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
89354eef 21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145else
21146 cat >conftest.$ac_ext <<_ACEOF
49ba971d 21147/* confdefs.h. */
21148_ACEOF
21149cat confdefs.h >>conftest.$ac_ext
21150cat >>conftest.$ac_ext <<_ACEOF
21151/* end confdefs.h. */
f58aa3e1 21152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21154#define $ac_func innocuous_$ac_func
21155
89354eef 21156/* System header to define __stub macros and hopefully few prototypes,
49ba971d 21157 which can conflict with char $ac_func (); below.
21158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21159 <limits.h> exists even on freestanding compilers. */
f58aa3e1 21160
49ba971d 21161#ifdef __STDC__
21162# include <limits.h>
21163#else
21164# include <assert.h>
21165#endif
f58aa3e1 21166
21167#undef $ac_func
21168
21169/* Override any GCC internal prototype to avoid an error.
21170 Use char because int might match the return type of a GCC
21171 builtin and then its argument prototype would still apply. */
89354eef 21172#ifdef __cplusplus
21173extern "C"
21174#endif
89354eef 21175char $ac_func ();
89354eef 21176/* The GNU C library defines this for functions which it implements
21177 to always fail with ENOSYS. Some functions are actually named
21178 something starting with __ and the normal name is an alias. */
f58aa3e1 21179#if defined __stub_$ac_func || defined __stub___$ac_func
89354eef 21180choke me
89354eef 21181#endif
21182
49ba971d 21183int
21184main ()
21185{
f58aa3e1 21186return $ac_func ();
89354eef 21187 ;
21188 return 0;
21189}
21190_ACEOF
21191rm -f conftest.$ac_objext conftest$ac_exeext
f58aa3e1 21192if { (ac_try="$ac_link"
21193case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21196esac
21197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_link") 2>conftest.er1
89354eef 21199 ac_status=$?
f58aa3e1 21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
89354eef 21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } &&
f58aa3e1 21205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21206 { (case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21209esac
21210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211 (eval "$ac_try") 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } &&
21215 { ac_try='test -s conftest$ac_exeext'
21216 { (case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21219esac
21220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_try") 2>&5
89354eef 21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; }; then
21225 eval "$as_ac_var=yes"
21226else
21227 echo "$as_me: failed program was:" >&5
49ba971d 21228sed 's/^/| /' conftest.$ac_ext >&5
21229
f58aa3e1 21230 eval "$as_ac_var=no"
89354eef 21231fi
f58aa3e1 21232
21233rm -f core conftest.err conftest.$ac_objext \
21234 conftest$ac_exeext conftest.$ac_ext
89354eef 21235fi
f58aa3e1 21236ac_res=`eval echo '${'$as_ac_var'}'`
21237 { echo "$as_me:$LINENO: result: $ac_res" >&5
21238echo "${ECHO_T}$ac_res" >&6; }
89354eef 21239if test `eval echo '${'$as_ac_var'}'` = yes; then
21240 cat >>confdefs.h <<_ACEOF
21241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21242_ACEOF
21243
21244fi
21245done
21246
21247
21248
21249
21250for ac_func in gethostbyname gethostbyname2
21251do
21252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
f58aa3e1 21253{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21255if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
89354eef 21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21257else
21258 cat >conftest.$ac_ext <<_ACEOF
49ba971d 21259/* confdefs.h. */
21260_ACEOF
21261cat confdefs.h >>conftest.$ac_ext
21262cat >>conftest.$ac_ext <<_ACEOF
21263/* end confdefs.h. */
f58aa3e1 21264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21266#define $ac_func innocuous_$ac_func
21267
89354eef 21268/* System header to define __stub macros and hopefully few prototypes,
49ba971d 21269 which can conflict with char $ac_func (); below.
21270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21271 <limits.h> exists even on freestanding compilers. */
f58aa3e1 21272
49ba971d 21273#ifdef __STDC__
21274# include <limits.h>
21275#else
21276# include <assert.h>
21277#endif
f58aa3e1 21278
21279#undef $ac_func
21280
21281/* Override any GCC internal prototype to avoid an error.
21282 Use char because int might match the return type of a GCC
21283 builtin and then its argument prototype would still apply. */
89354eef 21284#ifdef __cplusplus
21285extern "C"
21286#endif
89354eef 21287char $ac_func ();
89354eef 21288/* The GNU C library defines this for functions which it implements
21289 to always fail with ENOSYS. Some functions are actually named
21290 something starting with __ and the normal name is an alias. */
f58aa3e1 21291#if defined __stub_$ac_func || defined __stub___$ac_func
89354eef 21292choke me
89354eef 21293#endif
21294
49ba971d 21295int
21296main ()
21297{
f58aa3e1 21298return $ac_func ();
89354eef 21299 ;
21300 return 0;
21301}
21302_ACEOF
21303rm -f conftest.$ac_objext conftest$ac_exeext
f58aa3e1 21304if { (ac_try="$ac_link"
21305case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21308esac
21309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_link") 2>conftest.er1
89354eef 21311 ac_status=$?
f58aa3e1 21312 grep -v '^ *+' conftest.er1 >conftest.err
21313 rm -f conftest.er1
21314 cat conftest.err >&5
89354eef 21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } &&
f58aa3e1 21317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21318 { (case "(($ac_try" in
21319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320 *) ac_try_echo=$ac_try;;
21321esac
21322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21323 (eval "$ac_try") 2>&5
21324 ac_status=$?
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; } &&
21327 { ac_try='test -s conftest$ac_exeext'
21328 { (case "(($ac_try" in
21329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330 *) ac_try_echo=$ac_try;;
21331esac
21332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21333 (eval "$ac_try") 2>&5
89354eef 21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21337 eval "$as_ac_var=yes"
21338else
21339 echo "$as_me: failed program was:" >&5
49ba971d 21340sed 's/^/| /' conftest.$ac_ext >&5
21341
f58aa3e1 21342 eval "$as_ac_var=no"
89354eef 21343fi
f58aa3e1 21344
21345rm -f core conftest.err conftest.$ac_objext \
21346 conftest$ac_exeext conftest.$ac_ext
89354eef 21347fi
f58aa3e1 21348ac_res=`eval echo '${'$as_ac_var'}'`
21349 { echo "$as_me:$LINENO: result: $ac_res" >&5
21350echo "${ECHO_T}$ac_res" >&6; }
89354eef 21351if test `eval echo '${'$as_ac_var'}'` = yes; then
21352 cat >>confdefs.h <<_ACEOF
21353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21354_ACEOF
21355
21356fi
21357done
21358
21359
f58aa3e1 21360{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21361echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
89354eef 21362if test "${ac_cv_c_bigendian+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21364else
21365 # See if sys/param.h defines the BYTE_ORDER macro.
21366cat >conftest.$ac_ext <<_ACEOF
49ba971d 21367/* confdefs.h. */
21368_ACEOF
21369cat confdefs.h >>conftest.$ac_ext
21370cat >>conftest.$ac_ext <<_ACEOF
21371/* end confdefs.h. */
89354eef 21372#include <sys/types.h>
21373#include <sys/param.h>
21374
89354eef 21375int
21376main ()
21377{
21378#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21379 bogus endian macros
21380#endif
21381
21382 ;
21383 return 0;
21384}
21385_ACEOF
21386rm -f conftest.$ac_objext
f58aa3e1 21387if { (ac_try="$ac_compile"
21388case "(($ac_try" in
21389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390 *) ac_try_echo=$ac_try;;
21391esac
21392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_compile") 2>conftest.er1
89354eef 21394 ac_status=$?
f58aa3e1 21395 grep -v '^ *+' conftest.er1 >conftest.err
21396 rm -f conftest.er1
21397 cat conftest.err >&5
89354eef 21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } &&
f58aa3e1 21400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21401 { (case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21404esac
21405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_try") 2>&5
21407 ac_status=$?
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); }; } &&
21410 { ac_try='test -s conftest.$ac_objext'
21411 { (case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21414esac
21415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_try") 2>&5
89354eef 21417 ac_status=$?
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; }; then
21420 # It does; now see whether it defined to BIG_ENDIAN or not.
21421cat >conftest.$ac_ext <<_ACEOF
49ba971d 21422/* confdefs.h. */
21423_ACEOF
21424cat confdefs.h >>conftest.$ac_ext
21425cat >>conftest.$ac_ext <<_ACEOF
21426/* end confdefs.h. */
89354eef 21427#include <sys/types.h>
21428#include <sys/param.h>
21429
89354eef 21430int
21431main ()
21432{
21433#if BYTE_ORDER != BIG_ENDIAN
21434 not big endian
21435#endif
21436
21437 ;
21438 return 0;
21439}
21440_ACEOF
21441rm -f conftest.$ac_objext
f58aa3e1 21442if { (ac_try="$ac_compile"
21443case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21446esac
21447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_compile") 2>conftest.er1
89354eef 21449 ac_status=$?
f58aa3e1 21450 grep -v '^ *+' conftest.er1 >conftest.err
21451 rm -f conftest.er1
21452 cat conftest.err >&5
89354eef 21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } &&
f58aa3e1 21455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21456 { (case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21459esac
21460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461 (eval "$ac_try") 2>&5
21462 ac_status=$?
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; } &&
21465 { ac_try='test -s conftest.$ac_objext'
21466 { (case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21469esac
21470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_try") 2>&5
89354eef 21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 ac_cv_c_bigendian=yes
21476else
21477 echo "$as_me: failed program was:" >&5
49ba971d 21478sed 's/^/| /' conftest.$ac_ext >&5
21479
f58aa3e1 21480 ac_cv_c_bigendian=no
89354eef 21481fi
f58aa3e1 21482
21483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89354eef 21484else
21485 echo "$as_me: failed program was:" >&5
49ba971d 21486sed 's/^/| /' conftest.$ac_ext >&5
21487
f58aa3e1 21488 # It does not; compile a test program.
89354eef 21489if test "$cross_compiling" = yes; then
49ba971d 21490 # try to guess the endianness by grepping values into an object file
89354eef 21491 ac_cv_c_bigendian=unknown
21492 cat >conftest.$ac_ext <<_ACEOF
49ba971d 21493/* confdefs.h. */
21494_ACEOF
21495cat confdefs.h >>conftest.$ac_ext
21496cat >>conftest.$ac_ext <<_ACEOF
21497/* end confdefs.h. */
f58aa3e1 21498short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21499short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
89354eef 21500void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
f58aa3e1 21501short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21502short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
89354eef 21503void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
89354eef 21504int
21505main ()
21506{
21507 _ascii (); _ebcdic ();
21508 ;
21509 return 0;
21510}
21511_ACEOF
21512rm -f conftest.$ac_objext
f58aa3e1 21513if { (ac_try="$ac_compile"
21514case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21517esac
21518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_compile") 2>conftest.er1
89354eef 21520 ac_status=$?
f58aa3e1 21521 grep -v '^ *+' conftest.er1 >conftest.err
21522 rm -f conftest.er1
21523 cat conftest.err >&5
89354eef 21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } &&
f58aa3e1 21526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21527 { (case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530esac
21531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_try") 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; } &&
21536 { ac_try='test -s conftest.$ac_objext'
21537 { (case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540esac
21541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_try") 2>&5
89354eef 21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
49ba971d 21546 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
89354eef 21547 ac_cv_c_bigendian=yes
21548fi
49ba971d 21549if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
89354eef 21550 if test "$ac_cv_c_bigendian" = unknown; then
21551 ac_cv_c_bigendian=no
21552 else
21553 # finding both strings is unlikely to happen, but who knows?
21554 ac_cv_c_bigendian=unknown
21555 fi
21556fi
21557else
21558 echo "$as_me: failed program was:" >&5
49ba971d 21559sed 's/^/| /' conftest.$ac_ext >&5
21560
f58aa3e1 21561
89354eef 21562fi
f58aa3e1 21563
21564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89354eef 21565else
21566 cat >conftest.$ac_ext <<_ACEOF
49ba971d 21567/* confdefs.h. */
21568_ACEOF
21569cat confdefs.h >>conftest.$ac_ext
21570cat >>conftest.$ac_ext <<_ACEOF
21571/* end confdefs.h. */
f58aa3e1 21572$ac_includes_default
89354eef 21573int
21574main ()
21575{
f58aa3e1 21576
89354eef 21577 /* Are we little or big endian? From Harbison&Steele. */
21578 union
21579 {
f58aa3e1 21580 long int l;
21581 char c[sizeof (long int)];
89354eef 21582 } u;
21583 u.l = 1;
f58aa3e1 21584 return u.c[sizeof (long int) - 1] == 1;
21585
21586 ;
21587 return 0;
89354eef 21588}
21589_ACEOF
21590rm -f conftest$ac_exeext
f58aa3e1 21591if { (ac_try="$ac_link"
21592case "(($ac_try" in
21593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594 *) ac_try_echo=$ac_try;;
21595esac
21596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597 (eval "$ac_link") 2>&5
89354eef 21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
f58aa3e1 21601 { (case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21604esac
21605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_try") 2>&5
89354eef 21607 ac_status=$?
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; }; then
21610 ac_cv_c_bigendian=no
21611else
21612 echo "$as_me: program exited with status $ac_status" >&5
21613echo "$as_me: failed program was:" >&5
49ba971d 21614sed 's/^/| /' conftest.$ac_ext >&5
21615
89354eef 21616( exit $ac_status )
21617ac_cv_c_bigendian=yes
21618fi
f58aa3e1 21619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
89354eef 21620fi
f58aa3e1 21621
21622
89354eef 21623fi
f58aa3e1 21624
21625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89354eef 21626fi
f58aa3e1 21627{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21628echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
89354eef 21629case $ac_cv_c_bigendian in
21630 yes)
21631
21632cat >>confdefs.h <<\_ACEOF
21633#define WORDS_BIGENDIAN 1
21634_ACEOF
21635 ;;
21636 no)
21637 ;;
21638 *)
49ba971d 21639 { { echo "$as_me:$LINENO: error: unknown endianness
89354eef 21640presetting ac_cv_c_bigendian=no (or yes) will help" >&5
49ba971d 21641echo "$as_me: error: unknown endianness
89354eef 21642presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21643 { (exit 1); exit 1; }; } ;;
21644esac
21645
21646
f58aa3e1 21647{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
21648echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
89354eef 21649if test "${ac_cv_lib_socket_socket+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651else
21652 ac_check_lib_save_LIBS=$LIBS
21653LIBS="-lsocket $LIBS"
21654cat >conftest.$ac_ext <<_ACEOF
49ba971d 21655/* confdefs.h. */
21656_ACEOF
21657cat confdefs.h >>conftest.$ac_ext
21658cat >>conftest.$ac_ext <<_ACEOF
21659/* end confdefs.h. */
89354eef 21660
f58aa3e1 21661/* Override any GCC internal prototype to avoid an error.
21662 Use char because int might match the return type of a GCC
21663 builtin and then its argument prototype would still apply. */
89354eef 21664#ifdef __cplusplus
21665extern "C"
21666#endif
89354eef 21667char socket ();
89354eef 21668int
21669main ()
21670{
f58aa3e1 21671return socket ();
89354eef 21672 ;
21673 return 0;
21674}
21675_ACEOF
21676rm -f conftest.$ac_objext conftest$ac_exeext
f58aa3e1 21677if { (ac_try="$ac_link"
21678case "(($ac_try" in
21679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680 *) ac_try_echo=$ac_try;;
21681esac
21682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683 (eval "$ac_link") 2>conftest.er1
89354eef 21684 ac_status=$?
f58aa3e1 21685 grep -v '^ *+' conftest.er1 >conftest.err
21686 rm -f conftest.er1
21687 cat conftest.err >&5
89354eef 21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } &&
f58aa3e1 21690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21691 { (case "(($ac_try" in
21692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693 *) ac_try_echo=$ac_try;;
21694esac
21695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21696 (eval "$ac_try") 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; } &&
21700 { ac_try='test -s conftest$ac_exeext'
21701 { (case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704esac
21705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_try") 2>&5
89354eef 21707 ac_status=$?
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; }; then
21710 ac_cv_lib_socket_socket=yes
21711else
21712 echo "$as_me: failed program was:" >&5
49ba971d 21713sed 's/^/| /' conftest.$ac_ext >&5
21714
f58aa3e1 21715 ac_cv_lib_socket_socket=no
89354eef 21716fi
f58aa3e1 21717
21718rm -f core conftest.err conftest.$ac_objext \
21719 conftest$ac_exeext conftest.$ac_ext
89354eef 21720LIBS=$ac_check_lib_save_LIBS
21721fi
f58aa3e1 21722{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
21723echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
89354eef 21724if test $ac_cv_lib_socket_socket = yes; then
21725 LSOCKET=-lsocket
21726
21727fi
21728
f58aa3e1 21729{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21730echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
89354eef 21731if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733else
21734 ac_check_lib_save_LIBS=$LIBS
21735LIBS="-lnsl $LIBS"
21736cat >conftest.$ac_ext <<_ACEOF
49ba971d 21737/* confdefs.h. */
21738_ACEOF
21739cat confdefs.h >>conftest.$ac_ext
21740cat >>conftest.$ac_ext <<_ACEOF
21741/* end confdefs.h. */
89354eef 21742
f58aa3e1 21743/* Override any GCC internal prototype to avoid an error.
21744 Use char because int might match the return type of a GCC
21745 builtin and then its argument prototype would still apply. */
89354eef 21746#ifdef __cplusplus
21747extern "C"
21748#endif
89354eef 21749char gethostbyname ();
89354eef 21750int
21751main ()
21752{
f58aa3e1 21753return gethostbyname ();
89354eef 21754 ;
21755 return 0;
21756}
21757_ACEOF
21758rm -f conftest.$ac_objext conftest$ac_exeext
f58aa3e1 21759if { (ac_try="$ac_link"
21760case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21763esac
21764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_link") 2>conftest.er1
89354eef 21766 ac_status=$?
f58aa3e1 21767 grep -v '^ *+' conftest.er1 >conftest.err
21768 rm -f conftest.er1
21769 cat conftest.err >&5
89354eef 21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } &&
f58aa3e1 21772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21773 { (case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21776esac
21777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_try") 2>&5
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; } &&
21782 { ac_try='test -s conftest$ac_exeext'
21783 { (case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21786esac
21787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_try") 2>&5
89354eef 21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; }; then
21792 ac_cv_lib_nsl_gethostbyname=yes
21793else
21794 echo "$as_me: failed program was:" >&5
49ba971d 21795sed 's/^/| /' conftest.$ac_ext >&5
21796
f58aa3e1 21797 ac_cv_lib_nsl_gethostbyname=no
89354eef 21798fi
f58aa3e1 21799
21800rm -f core conftest.err conftest.$ac_objext \
21801 conftest$ac_exeext conftest.$ac_ext
89354eef 21802LIBS=$ac_check_lib_save_LIBS
21803fi
f58aa3e1 21804{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21805echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
89354eef 21806if test $ac_cv_lib_nsl_gethostbyname = yes; then
21807 LNSL=-lnsl
21808
21809fi
21810
21811
13931fb2 21812
a72c9e1a 21813LTLIBOBJS=`echo "$LIBOBJS" |
21814 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
21815
21816
49ba971d 21817
f58aa3e1 21818# Check whether --with-werror was given.
49ba971d 21819if test "${with_werror+set}" = set; then
f58aa3e1 21820 withval=$with_werror; CFLAGS="$CFLAGS -Werror"
21821fi
21822
21823
21824ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/Doxyfile"
49ba971d 21825
89354eef 21826cat >confcache <<\_ACEOF
21827# This file is a shell script that caches the results of configure
21828# tests run on this system so they can be shared between configure
21829# scripts and configure runs, see configure's option --config-cache.
21830# It is not useful on other systems. If it contains results you don't
21831# want to keep, you may remove or edit it.
21832#
21833# config.status only pays attention to the cache file if you give it
21834# the --recheck option to rerun configure.
21835#
49ba971d 21836# `ac_cv_env_foo' variables (set or unset) will be overridden when
89354eef 21837# loading this file, other *unset* `ac_cv_foo' will be assigned the
21838# following values.
21839
21840_ACEOF
21841
21842# The following way of writing the cache mishandles newlines in values,
21843# but we know of no workaround that is simple, portable, and efficient.
f58aa3e1 21844# So, we kill variables containing newlines.
89354eef 21845# Ultrix sh set writes to stderr and can't be redirected directly,
21846# and sets the high bit in the cache file unless we assign to the vars.
f58aa3e1 21847(
21848 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21849 eval ac_val=\$$ac_var
21850 case $ac_val in #(
21851 *${as_nl}*)
21852 case $ac_var in #(
21853 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21854echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21855 esac
21856 case $ac_var in #(
21857 _ | IFS | as_nl) ;; #(
21858 *) $as_unset $ac_var ;;
21859 esac ;;
21860 esac
21861 done
21862
89354eef 21863 (set) 2>&1 |
f58aa3e1 21864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21865 *${as_nl}ac_space=\ *)
89354eef 21866 # `set' does not quote correctly, so add quotes (double-quote
21867 # substitution turns \\\\ into \\, and sed turns \\ into \).
21868 sed -n \
f58aa3e1 21869 "s/'/'\\\\''/g;
21870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21871 ;; #(
89354eef 21872 *)
21873 # `set' quotes correctly as required by POSIX, so do not add quotes.
f58aa3e1 21874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
89354eef 21875 ;;
f58aa3e1 21876 esac |
21877 sort
21878) |
89354eef 21879 sed '
f58aa3e1 21880 /^ac_cv_env_/b end
89354eef 21881 t clear
f58aa3e1 21882 :clear
89354eef 21883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21884 t end
f58aa3e1 21885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21886 :end' >>confcache
21887if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21888 if test -w "$cache_file"; then
21889 test "x$cache_file" != "x/dev/null" &&
21890 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21891echo "$as_me: updating cache $cache_file" >&6;}
89354eef 21892 cat confcache >$cache_file
21893 else
f58aa3e1 21894 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21895echo "$as_me: not updating unwritable cache $cache_file" >&6;}
89354eef 21896 fi
21897fi
21898rm -f confcache
21899
21900test "x$prefix" = xNONE && prefix=$ac_default_prefix
21901# Let make expand exec_prefix.
21902test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21903
89354eef 21904DEFS=-DHAVE_CONFIG_H
21905
49ba971d 21906ac_libobjs=
21907ac_ltlibobjs=
21908for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21909 # 1. Remove the extension, and $U if already installed.
f58aa3e1 21910 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21911 ac_i=`echo "$ac_i" | sed "$ac_script"`
21912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21913 # will be set to the directory where LIBOBJS objects are built.
21914 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21915 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
49ba971d 21916done
21917LIBOBJS=$ac_libobjs
21918
21919LTLIBOBJS=$ac_ltlibobjs
21920
21921
89354eef 21922if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21923 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21924Usually this means the macro was only invoked conditionally." >&5
21925echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21926Usually this means the macro was only invoked conditionally." >&2;}
21927 { (exit 1); exit 1; }; }
21928fi
21929if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21930 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21931Usually this means the macro was only invoked conditionally." >&5
21932echo "$as_me: error: conditional \"AMDEP\" was never defined.
21933Usually this means the macro was only invoked conditionally." >&2;}
21934 { (exit 1); exit 1; }; }
21935fi
f58aa3e1 21936if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21937 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21938Usually this means the macro was only invoked conditionally." >&5
21939echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21940Usually this means the macro was only invoked conditionally." >&2;}
21941 { (exit 1); exit 1; }; }
21942fi
21943if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21944 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21945Usually this means the macro was only invoked conditionally." >&5
21946echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21947Usually this means the macro was only invoked conditionally." >&2;}
21948 { (exit 1); exit 1; }; }
21949fi
89354eef 21950
21951: ${CONFIG_STATUS=./config.status}
21952ac_clean_files_save=$ac_clean_files
21953ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21954{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21955echo "$as_me: creating $CONFIG_STATUS" >&6;}
21956cat >$CONFIG_STATUS <<_ACEOF
21957#! $SHELL
21958# Generated by $as_me.
21959# Run this file to recreate the current configuration.
21960# Compiler output produced by configure, useful for debugging
21961# configure, is in config.log if it exists.
21962
21963debug=false
49ba971d 21964ac_cs_recheck=false
21965ac_cs_silent=false
89354eef 21966SHELL=\${CONFIG_SHELL-$SHELL}
21967_ACEOF
21968
21969cat >>$CONFIG_STATUS <<\_ACEOF
89354eef 21970## --------------------- ##
21971## M4sh Initialization. ##
21972## --------------------- ##
21973
21974# Be Bourne compatible
21975if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21976 emulate sh
21977 NULLCMD=:
49ba971d 21978 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21979 # is contrary to our usage. Disable this feature.
21980 alias -g '${1+"$@"}'='"$@"'
f58aa3e1 21981 setopt NO_GLOB_SUBST
21982else
21983 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21984fi
21985BIN_SH=xpg4; export BIN_SH # for Tru64
21986DUALCASE=1; export DUALCASE # for MKS sh
21987
21988
21989# PATH needs CR
21990# Avoid depending upon Character Ranges.
21991as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21992as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21993as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21994as_cr_digits='0123456789'
21995as_cr_alnum=$as_cr_Letters$as_cr_digits
21996
21997# The user is always right.
21998if test "${PATH_SEPARATOR+set}" != set; then
21999 echo "#! /bin/sh" >conf$$.sh
22000 echo "exit 0" >>conf$$.sh
22001 chmod +x conf$$.sh
22002 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22003 PATH_SEPARATOR=';'
22004 else
22005 PATH_SEPARATOR=:
22006 fi
22007 rm -f conf$$.sh
89354eef 22008fi
22009
89354eef 22010# Support unset when possible.
f58aa3e1 22011if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
89354eef 22012 as_unset=unset
22013else
22014 as_unset=false
22015fi
22016
49ba971d 22017
f58aa3e1 22018# IFS
22019# We need space, tab and new line, in precisely that order. Quoting is
22020# there to prevent editors from complaining about space-tab.
22021# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22022# splitting by setting IFS to empty value.)
22023as_nl='
22024'
22025IFS=" "" $as_nl"
22026
22027# Find who we are. Look in the path if we contain no directory separator.
22028case $0 in
22029 *[\\/]* ) as_myself=$0 ;;
22030 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22031for as_dir in $PATH
22032do
22033 IFS=$as_save_IFS
22034 test -z "$as_dir" && as_dir=.
22035 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22036done
22037IFS=$as_save_IFS
22038
22039 ;;
22040esac
22041# We did not find ourselves, most probably we were run as `sh COMMAND'
22042# in which case we are not to be found in the path.
22043if test "x$as_myself" = x; then
22044 as_myself=$0
22045fi
22046if test ! -f "$as_myself"; then
22047 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22048 { (exit 1); exit 1; }
22049fi
22050
49ba971d 22051# Work around bugs in pre-3.0 UWIN ksh.
f58aa3e1 22052for as_var in ENV MAIL MAILPATH
22053do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22054done
49ba971d 22055PS1='$ '
22056PS2='> '
22057PS4='+ '
22058
22059# NLS nuisances.
22060for as_var in \
22061 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22062 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22063 LC_TELEPHONE LC_TIME
22064do
f58aa3e1 22065 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49ba971d 22066 eval $as_var=C; export $as_var
22067 else
f58aa3e1 22068 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49ba971d 22069 fi
22070done
22071
22072# Required to use basename.
f58aa3e1 22073if expr a : '\(a\)' >/dev/null 2>&1 &&
22074 test "X`expr 00001 : '.*\(...\)'`" = X001; then
49ba971d 22075 as_expr=expr
22076else
22077 as_expr=false
22078fi
22079
f58aa3e1 22080if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
49ba971d 22081 as_basename=basename
22082else
22083 as_basename=false
22084fi
89354eef 22085
22086
22087# Name of the executable.
f58aa3e1 22088as_me=`$as_basename -- "$0" ||
89354eef 22089$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22090 X"$0" : 'X\(//\)$' \| \
f58aa3e1 22091 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
89354eef 22092echo X/"$0" |
f58aa3e1 22093 sed '/^.*\/\([^/][^/]*\)\/*$/{
22094 s//\1/
22095 q
22096 }
22097 /^X\/\(\/\/\)$/{
22098 s//\1/
22099 q
22100 }
22101 /^X\/\(\/\).*/{
22102 s//\1/
22103 q
22104 }
22105 s/.*/./; q'`
22106
22107# CDPATH.
22108$as_unset CDPATH
89354eef 22109
22110
89354eef 22111
89354eef 22112 as_lineno_1=$LINENO
22113 as_lineno_2=$LINENO
89354eef 22114 test "x$as_lineno_1" != "x$as_lineno_2" &&
f58aa3e1 22115 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
89354eef 22116
22117 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22118 # uniformly replaced by the line number. The first 'sed' inserts a
f58aa3e1 22119 # line-number line after each line using $LINENO; the second 'sed'
22120 # does the real work. The second script uses 'N' to pair each
22121 # line-number line with the line containing $LINENO, and appends
22122 # trailing '-' during substitution so that $LINENO is not a special
22123 # case at line end.
89354eef 22124 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
f58aa3e1 22125 # scripts with optimization help from Paolo Bonzini. Blame Lee
22126 # E. McMahon (1931-1989) for sed's syntax. :-)
22127 sed -n '
22128 p
22129 /[$]LINENO/=
22130 ' <$as_myself |
89354eef 22131 sed '
f58aa3e1 22132 s/[$]LINENO.*/&-/
22133 t lineno
22134 b
22135 :lineno
89354eef 22136 N
f58aa3e1 22137 :loop
22138 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
89354eef 22139 t loop
f58aa3e1 22140 s/-\n.*//
89354eef 22141 ' >$as_me.lineno &&
f58aa3e1 22142 chmod +x "$as_me.lineno" ||
22143 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
89354eef 22144 { (exit 1); exit 1; }; }
22145
22146 # Don't try to exec as it changes $[0], causing all sort of problems
22147 # (the dirname of $[0] is not the place where we might find the
f58aa3e1 22148 # original and so on. Autoconf is especially sensitive to this).
22149 . "./$as_me.lineno"
89354eef 22150 # Exit status is that of the last command.
22151 exit
22152}
22153
22154
f58aa3e1 22155if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22156 as_dirname=dirname
22157else
22158 as_dirname=false
22159fi
22160
22161ECHO_C= ECHO_N= ECHO_T=
22162case `echo -n x` in
22163-n*)
22164 case `echo 'x\c'` in
22165 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22166 *) ECHO_C='\c';;
22167 esac;;
22168*)
22169 ECHO_N='-n';;
89354eef 22170esac
22171
f58aa3e1 22172if expr a : '\(a\)' >/dev/null 2>&1 &&
22173 test "X`expr 00001 : '.*\(...\)'`" = X001; then
89354eef 22174 as_expr=expr
22175else
22176 as_expr=false
22177fi
22178
22179rm -f conf$$ conf$$.exe conf$$.file
f58aa3e1 22180if test -d conf$$.dir; then
22181 rm -f conf$$.dir/conf$$.file
22182else
22183 rm -f conf$$.dir
22184 mkdir conf$$.dir
22185fi
89354eef 22186echo >conf$$.file
22187if ln -s conf$$.file conf$$ 2>/dev/null; then
f58aa3e1 22188 as_ln_s='ln -s'
22189 # ... but there are two gotchas:
22190 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22191 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22192 # In both cases, we have to default to `cp -p'.
22193 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
89354eef 22194 as_ln_s='cp -p'
89354eef 22195elif ln conf$$.file conf$$ 2>/dev/null; then
22196 as_ln_s=ln
22197else
22198 as_ln_s='cp -p'
22199fi
f58aa3e1 22200rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22201rmdir conf$$.dir 2>/dev/null
89354eef 22202
49ba971d 22203if mkdir -p . 2>/dev/null; then
22204 as_mkdir_p=:
22205else
f58aa3e1 22206 test -d ./-p && rmdir ./-p
49ba971d 22207 as_mkdir_p=false
22208fi
22209
f58aa3e1 22210# Find out whether ``test -x'' works. Don't use a zero-byte file, as
22211# systems may use methods other than mode bits to determine executability.
22212cat >conf$$.file <<_ASEOF
22213#! /bin/sh
22214exit 0
22215_ASEOF
22216chmod +x conf$$.file
22217if test -x conf$$.file >/dev/null 2>&1; then
22218 as_executable_p="test -x"
22219else
22220 as_executable_p=:
22221fi
22222rm -f conf$$.file
89354eef 22223
22224# Sed expression to map a string onto a valid CPP name.
f58aa3e1 22225as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
89354eef 22226
22227# Sed expression to map a string onto a valid variable name.
f58aa3e1 22228as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
89354eef 22229
89354eef 22230
22231exec 6>&1
22232
f58aa3e1 22233# Save the log message, to keep $[0] and so on meaningful, and to
89354eef 22234# report actual input values of CONFIG_FILES etc. instead of their
f58aa3e1 22235# values after options handling.
22236ac_log="
89354eef 22237This file was extended by libopm $as_me 0.1, which was
f58aa3e1 22238generated by GNU Autoconf 2.60. Invocation command line was
89354eef 22239
22240 CONFIG_FILES = $CONFIG_FILES
22241 CONFIG_HEADERS = $CONFIG_HEADERS
22242 CONFIG_LINKS = $CONFIG_LINKS
22243 CONFIG_COMMANDS = $CONFIG_COMMANDS
22244 $ $0 $@
22245
f58aa3e1 22246on `(hostname || uname -n) 2>/dev/null | sed 1q`
22247"
22248
89354eef 22249_ACEOF
22250
f58aa3e1 22251cat >>$CONFIG_STATUS <<_ACEOF
89354eef 22252# Files that config.status was made for.
f58aa3e1 22253config_files="$ac_config_files"
22254config_headers="$ac_config_headers"
22255config_commands="$ac_config_commands"
89354eef 22256
f58aa3e1 22257_ACEOF
89354eef 22258
22259cat >>$CONFIG_STATUS <<\_ACEOF
89354eef 22260ac_cs_usage="\
22261\`$as_me' instantiates files from templates according to the
22262current configuration.
22263
22264Usage: $0 [OPTIONS] [FILE]...
22265
22266 -h, --help print this help, then exit
22267 -V, --version print version number, then exit
49ba971d 22268 -q, --quiet do not print progress messages
89354eef 22269 -d, --debug don't remove temporary files
22270 --recheck update $as_me by reconfiguring in the same conditions
22271 --file=FILE[:TEMPLATE]
f58aa3e1 22272 instantiate the configuration file FILE
89354eef 22273 --header=FILE[:TEMPLATE]
f58aa3e1 22274 instantiate the configuration header FILE
89354eef 22275
22276Configuration files:
22277$config_files
22278
22279Configuration headers:
22280$config_headers
22281
22282Configuration commands:
22283$config_commands
22284
22285Report bugs to <bug-autoconf@gnu.org>."
89354eef 22286
f58aa3e1 22287_ACEOF
89354eef 22288cat >>$CONFIG_STATUS <<_ACEOF
22289ac_cs_version="\\
22290libopm config.status 0.1
f58aa3e1 22291configured by $0, generated by GNU Autoconf 2.60,
22292 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
89354eef 22293
f58aa3e1 22294Copyright (C) 2006 Free Software Foundation, Inc.
89354eef 22295This config.status script is free software; the Free Software Foundation
22296gives unlimited permission to copy, distribute and modify it."
f58aa3e1 22297
22298ac_pwd='$ac_pwd'
22299srcdir='$srcdir'
22300INSTALL='$INSTALL'
89354eef 22301_ACEOF
22302
22303cat >>$CONFIG_STATUS <<\_ACEOF
22304# If no file are specified by the user, then we need to provide default
22305# value. By we need to know if files were specified by the user.
22306ac_need_defaults=:
22307while test $# != 0
22308do
22309 case $1 in
22310 --*=*)
f58aa3e1 22311 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22312 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
49ba971d 22313 ac_shift=:
22314 ;;
f58aa3e1 22315 *)
49ba971d 22316 ac_option=$1
22317 ac_optarg=$2
22318 ac_shift=shift
89354eef 22319 ;;
89354eef 22320 esac
22321
49ba971d 22322 case $ac_option in
89354eef 22323 # Handling of the options.
49ba971d 22324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22325 ac_cs_recheck=: ;;
f58aa3e1 22326 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22327 echo "$ac_cs_version"; exit ;;
22328 --debug | --debu | --deb | --de | --d | -d )
89354eef 22329 debug=: ;;
22330 --file | --fil | --fi | --f )
49ba971d 22331 $ac_shift
22332 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
89354eef 22333 ac_need_defaults=false;;
22334 --header | --heade | --head | --hea )
49ba971d 22335 $ac_shift
22336 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
89354eef 22337 ac_need_defaults=false;;
f58aa3e1 22338 --he | --h)
22339 # Conflict between --help and --header
22340 { echo "$as_me: error: ambiguous option: $1
22341Try \`$0 --help' for more information." >&2
22342 { (exit 1); exit 1; }; };;
22343 --help | --hel | -h )
22344 echo "$ac_cs_usage"; exit ;;
49ba971d 22345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22347 ac_cs_silent=: ;;
89354eef 22348
22349 # This is an error.
f58aa3e1 22350 -*) { echo "$as_me: error: unrecognized option: $1
22351Try \`$0 --help' for more information." >&2
89354eef 22352 { (exit 1); exit 1; }; } ;;
22353
f58aa3e1 22354 *) ac_config_targets="$ac_config_targets $1"
22355 ac_need_defaults=false ;;
89354eef 22356
22357 esac
22358 shift
22359done
22360
49ba971d 22361ac_configure_extra_args=
22362
22363if $ac_cs_silent; then
22364 exec 6>/dev/null
22365 ac_configure_extra_args="$ac_configure_extra_args --silent"
22366fi
22367
22368_ACEOF
22369cat >>$CONFIG_STATUS <<_ACEOF
22370if \$ac_cs_recheck; then
f58aa3e1 22371 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22372 CONFIG_SHELL=$SHELL
22373 export CONFIG_SHELL
22374 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49ba971d 22375fi
22376
89354eef 22377_ACEOF
f58aa3e1 22378cat >>$CONFIG_STATUS <<\_ACEOF
22379exec 5>>config.log
22380{
22381 echo
22382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22383## Running $as_me. ##
22384_ASBOX
22385 echo "$ac_log"
22386} >&5
89354eef 22387
f58aa3e1 22388_ACEOF
89354eef 22389cat >>$CONFIG_STATUS <<_ACEOF
22390#
f58aa3e1 22391# INIT-COMMANDS
89354eef 22392#
89354eef 22393AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22394
22395_ACEOF
22396
89354eef 22397cat >>$CONFIG_STATUS <<\_ACEOF
f58aa3e1 22398
22399# Handling of arguments.
89354eef 22400for ac_config_target in $ac_config_targets
22401do
f58aa3e1 22402 case $ac_config_target in
22403 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
22404 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22405 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22406 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22407 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22408 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
22409
89354eef 22410 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22411echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22412 { (exit 1); exit 1; }; };;
22413 esac
22414done
22415
f58aa3e1 22416
89354eef 22417# If the user did not use the arguments to specify the items to instantiate,
22418# then the envvar interface is used. Set only those that are not.
22419# We use the long form for the default assignment because of an extremely
22420# bizarre bug on SunOS 4.1.3.
22421if $ac_need_defaults; then
22422 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22423 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22424 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22425fi
22426
49ba971d 22427# Have a temporary directory for convenience. Make it in the build tree
f58aa3e1 22428# simply because there is no reason against having it here, and in addition,
49ba971d 22429# creating and moving files from /tmp can sometimes cause problems.
f58aa3e1 22430# Hook for its removal unless debugging.
22431# Note that there is a small window in which the directory will not be cleaned:
22432# after its creation but before its name has been assigned to `$tmp'.
89354eef 22433$debug ||
22434{
f58aa3e1 22435 tmp=
22436 trap 'exit_status=$?
22437 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22438' 0
89354eef 22439 trap '{ (exit 1); exit 1; }' 1 2 13 15
22440}
89354eef 22441# Create a (secure) tmp directory for tmp files.
49ba971d 22442
89354eef 22443{
f58aa3e1 22444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
89354eef 22445 test -n "$tmp" && test -d "$tmp"
22446} ||
22447{
f58aa3e1 22448 tmp=./conf$$-$RANDOM
22449 (umask 077 && mkdir "$tmp")
89354eef 22450} ||
22451{
49ba971d 22452 echo "$me: cannot create a temporary directory in ." >&2
89354eef 22453 { (exit 1); exit 1; }
22454}
22455
89354eef 22456#
f58aa3e1 22457# Set up the sed scripts for CONFIG_FILES section.
89354eef 22458#
22459
22460# No need to generate the scripts if there are no CONFIG_FILES.
22461# This happens for instance when ./config.status config.h
f58aa3e1 22462if test -n "$CONFIG_FILES"; then
22463
22464_ACEOF
22465
22466
22467
22468ac_delim='%!_!# '
22469for ac_last_try in false false false false false :; do
22470 cat >conf$$subs.sed <<_ACEOF
22471SHELL!$SHELL$ac_delim
22472PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22473PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22474PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22475PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22476PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22477PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22478exec_prefix!$exec_prefix$ac_delim
22479prefix!$prefix$ac_delim
22480program_transform_name!$program_transform_name$ac_delim
22481bindir!$bindir$ac_delim
22482sbindir!$sbindir$ac_delim
22483libexecdir!$libexecdir$ac_delim
22484datarootdir!$datarootdir$ac_delim
22485datadir!$datadir$ac_delim
22486sysconfdir!$sysconfdir$ac_delim
22487sharedstatedir!$sharedstatedir$ac_delim
22488localstatedir!$localstatedir$ac_delim
22489includedir!$includedir$ac_delim
22490oldincludedir!$oldincludedir$ac_delim
22491docdir!$docdir$ac_delim
22492infodir!$infodir$ac_delim
22493htmldir!$htmldir$ac_delim
22494dvidir!$dvidir$ac_delim
22495pdfdir!$pdfdir$ac_delim
22496psdir!$psdir$ac_delim
22497libdir!$libdir$ac_delim
22498localedir!$localedir$ac_delim
22499mandir!$mandir$ac_delim
22500DEFS!$DEFS$ac_delim
22501ECHO_C!$ECHO_C$ac_delim
22502ECHO_N!$ECHO_N$ac_delim
22503ECHO_T!$ECHO_T$ac_delim
22504LIBS!$LIBS$ac_delim
22505build_alias!$build_alias$ac_delim
22506host_alias!$host_alias$ac_delim
22507target_alias!$target_alias$ac_delim
22508INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22509INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22510INSTALL_DATA!$INSTALL_DATA$ac_delim
22511CYGPATH_W!$CYGPATH_W$ac_delim
22512PACKAGE!$PACKAGE$ac_delim
22513VERSION!$VERSION$ac_delim
22514ACLOCAL!$ACLOCAL$ac_delim
22515AUTOCONF!$AUTOCONF$ac_delim
22516AUTOMAKE!$AUTOMAKE$ac_delim
22517AUTOHEADER!$AUTOHEADER$ac_delim
22518MAKEINFO!$MAKEINFO$ac_delim
22519install_sh!$install_sh$ac_delim
22520STRIP!$STRIP$ac_delim
22521INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22522mkdir_p!$mkdir_p$ac_delim
22523AWK!$AWK$ac_delim
22524SET_MAKE!$SET_MAKE$ac_delim
22525am__leading_dot!$am__leading_dot$ac_delim
22526AMTAR!$AMTAR$ac_delim
22527am__tar!$am__tar$ac_delim
22528am__untar!$am__untar$ac_delim
22529MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22530MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22531MAINT!$MAINT$ac_delim
22532DOX_DIR_HTML!$DOX_DIR_HTML$ac_delim
22533DOX_DIR_LATEX!$DOX_DIR_LATEX$ac_delim
22534DOX_DIR_MAN!$DOX_DIR_MAN$ac_delim
22535CC!$CC$ac_delim
22536CFLAGS!$CFLAGS$ac_delim
22537LDFLAGS!$LDFLAGS$ac_delim
22538CPPFLAGS!$CPPFLAGS$ac_delim
22539ac_ct_CC!$ac_ct_CC$ac_delim
22540EXEEXT!$EXEEXT$ac_delim
22541OBJEXT!$OBJEXT$ac_delim
22542DEPDIR!$DEPDIR$ac_delim
22543am__include!$am__include$ac_delim
22544am__quote!$am__quote$ac_delim
22545AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22546AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22547AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22548CCDEPMODE!$CCDEPMODE$ac_delim
22549am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22550am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22551build!$build$ac_delim
22552build_cpu!$build_cpu$ac_delim
22553build_vendor!$build_vendor$ac_delim
22554build_os!$build_os$ac_delim
22555host!$host$ac_delim
22556host_cpu!$host_cpu$ac_delim
22557host_vendor!$host_vendor$ac_delim
22558host_os!$host_os$ac_delim
22559GREP!$GREP$ac_delim
22560EGREP!$EGREP$ac_delim
22561LN_S!$LN_S$ac_delim
22562ECHO!$ECHO$ac_delim
22563AR!$AR$ac_delim
22564RANLIB!$RANLIB$ac_delim
22565CPP!$CPP$ac_delim
22566CXX!$CXX$ac_delim
22567CXXFLAGS!$CXXFLAGS$ac_delim
22568_ACEOF
22569
22570 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22571 break
22572 elif $ac_last_try; then
22573 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22574echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22575 { (exit 1); exit 1; }; }
22576 else
22577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
89354eef 22578 fi
f58aa3e1 22579done
22580
22581ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22582if test -n "$ac_eof"; then
22583 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22584 ac_eof=`expr $ac_eof + 1`
22585fi
22586
22587cat >>$CONFIG_STATUS <<_ACEOF
22588cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22589/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22590_ACEOF
22591sed '
22592s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22593s/^/s,@/; s/!/@,|#_!!_#|/
22594:n
22595t n
22596s/'"$ac_delim"'$/,g/; t
22597s/$/\\/; p
22598N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22599' >>$CONFIG_STATUS <conf$$subs.sed
22600rm -f conf$$subs.sed
22601cat >>$CONFIG_STATUS <<_ACEOF
22602CEOF$ac_eof
22603_ACEOF
22604
22605
22606ac_delim='%!_!# '
22607for ac_last_try in false false false false false :; do
22608 cat >conf$$subs.sed <<_ACEOF
22609ac_ct_CXX!$ac_ct_CXX$ac_delim
22610CXXDEPMODE!$CXXDEPMODE$ac_delim
22611am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22612am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22613CXXCPP!$CXXCPP$ac_delim
22614F77!$F77$ac_delim
22615FFLAGS!$FFLAGS$ac_delim
22616ac_ct_F77!$ac_ct_F77$ac_delim
22617LIBTOOL!$LIBTOOL$ac_delim
22618LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22619ETR_SOCKET_LIBS!$ETR_SOCKET_LIBS$ac_delim
22620LIBOBJS!$LIBOBJS$ac_delim
22621LSOCKET!$LSOCKET$ac_delim
22622LNSL!$LNSL$ac_delim
22623LTLIBOBJS!$LTLIBOBJS$ac_delim
22624_ACEOF
22625
22626 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
22627 break
22628 elif $ac_last_try; then
22629 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22630echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22631 { (exit 1); exit 1; }; }
22632 else
22633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22634 fi
22635done
89354eef 22636
f58aa3e1 22637ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22638if test -n "$ac_eof"; then
22639 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22640 ac_eof=`expr $ac_eof + 1`
22641fi
22642
22643cat >>$CONFIG_STATUS <<_ACEOF
22644cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22645/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22646_ACEOF
22647sed '
22648s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22649s/^/s,@/; s/!/@,|#_!!_#|/
22650:n
22651t n
22652s/'"$ac_delim"'$/,g/; t
22653s/$/\\/; p
22654N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22655' >>$CONFIG_STATUS <conf$$subs.sed
22656rm -f conf$$subs.sed
22657cat >>$CONFIG_STATUS <<_ACEOF
22658:end
22659s/|#_!!_#|//g
22660CEOF$ac_eof
89354eef 22661_ACEOF
f58aa3e1 22662
22663
22664# VPATH may cause trouble with some makes, so we remove $(srcdir),
22665# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22666# trailing colons and then remove the whole line if VPATH becomes empty
22667# (actually we leave an empty line to preserve line numbers).
22668if test "x$srcdir" = x.; then
22669 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22670s/:*\$(srcdir):*/:/
22671s/:*\${srcdir}:*/:/
22672s/:*@srcdir@:*/:/
22673s/^\([^=]*=[ ]*\):*/\1/
22674s/:*$//
22675s/^[^=]*=[ ]*$//
22676}'
22677fi
22678
89354eef 22679cat >>$CONFIG_STATUS <<\_ACEOF
f58aa3e1 22680fi # test -n "$CONFIG_FILES"
22681
22682
22683for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22684do
22685 case $ac_tag in
22686 :[FHLC]) ac_mode=$ac_tag; continue;;
22687 esac
22688 case $ac_mode$ac_tag in
22689 :[FHL]*:*);;
22690 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22691echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22692 { (exit 1); exit 1; }; };;
22693 :[FH]-) ac_tag=-:-;;
22694 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22695 esac
22696 ac_save_IFS=$IFS
22697 IFS=:
22698 set x $ac_tag
22699 IFS=$ac_save_IFS
22700 shift
22701 ac_file=$1
22702 shift
22703
22704 case $ac_mode in
22705 :L) ac_source=$1;;
22706 :[FH])
22707 ac_file_inputs=
22708 for ac_f
22709 do
22710 case $ac_f in
22711 -) ac_f="$tmp/stdin";;
22712 *) # Look for the file first in the build tree, then in the source tree
22713 # (if the path is not absolute). The absolute path cannot be DOS-style,
22714 # because $ac_f cannot contain `:'.
22715 test -f "$ac_f" ||
22716 case $ac_f in
22717 [\\/$]*) false;;
22718 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22719 esac ||
22720 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22721echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22722 { (exit 1); exit 1; }; };;
22723 esac
22724 ac_file_inputs="$ac_file_inputs $ac_f"
22725 done
22726
22727 # Let's still pretend it is `configure' which instantiates (i.e., don't
22728 # use $as_me), people would be surprised to read:
22729 # /* config.h. Generated by config.status. */
22730 configure_input="Generated from "`IFS=:
22731 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22732 if test x"$ac_file" != x-; then
22733 configure_input="$ac_file. $configure_input"
22734 { echo "$as_me:$LINENO: creating $ac_file" >&5
22735echo "$as_me: creating $ac_file" >&6;}
22736 fi
22737
22738 case $ac_tag in
22739 *:-:* | *:-) cat >"$tmp/stdin";;
22740 esac
22741 ;;
89354eef 22742 esac
22743
f58aa3e1 22744 ac_dir=`$as_dirname -- "$ac_file" ||
89354eef 22745$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f58aa3e1 22746 X"$ac_file" : 'X\(//\)[^/]' \| \
22747 X"$ac_file" : 'X\(//\)$' \| \
22748 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
89354eef 22749echo X"$ac_file" |
f58aa3e1 22750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22751 s//\1/
22752 q
22753 }
22754 /^X\(\/\/\)[^/].*/{
22755 s//\1/
22756 q
22757 }
22758 /^X\(\/\/\)$/{
22759 s//\1/
22760 q
22761 }
22762 /^X\(\/\).*/{
22763 s//\1/
22764 q
22765 }
22766 s/.*/./; q'`
22767 { as_dir="$ac_dir"
22768 case $as_dir in #(
22769 -*) as_dir=./$as_dir;;
22770 esac
22771 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
49ba971d 22772 as_dirs=
f58aa3e1 22773 while :; do
22774 case $as_dir in #(
22775 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22776 *) as_qdir=$as_dir;;
22777 esac
22778 as_dirs="'$as_qdir' $as_dirs"
22779 as_dir=`$as_dirname -- "$as_dir" ||
49ba971d 22780$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f58aa3e1 22781 X"$as_dir" : 'X\(//\)[^/]' \| \
22782 X"$as_dir" : 'X\(//\)$' \| \
22783 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
49ba971d 22784echo X"$as_dir" |
f58aa3e1 22785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22786 s//\1/
22787 q
22788 }
22789 /^X\(\/\/\)[^/].*/{
22790 s//\1/
22791 q
22792 }
22793 /^X\(\/\/\)$/{
22794 s//\1/
22795 q
22796 }
22797 /^X\(\/\).*/{
22798 s//\1/
22799 q
22800 }
22801 s/.*/./; q'`
22802 test -d "$as_dir" && break
49ba971d 22803 done
f58aa3e1 22804 test -z "$as_dirs" || eval "mkdir $as_dirs"
22805 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22806echo "$as_me: error: cannot create directory $as_dir" >&2;}
49ba971d 22807 { (exit 1); exit 1; }; }; }
89354eef 22808 ac_builddir=.
22809
f58aa3e1 22810case "$ac_dir" in
22811.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22812*)
89354eef 22813 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
f58aa3e1 22814 # A ".." for each directory in $ac_dir_suffix.
22815 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22816 case $ac_top_builddir_sub in
22817 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22818 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22819 esac ;;
22820esac
22821ac_abs_top_builddir=$ac_pwd
22822ac_abs_builddir=$ac_pwd$ac_dir_suffix
22823# for backward compatibility:
22824ac_top_builddir=$ac_top_build_prefix
89354eef 22825
22826case $srcdir in
f58aa3e1 22827 .) # We are building in place.
89354eef 22828 ac_srcdir=.
f58aa3e1 22829 ac_top_srcdir=$ac_top_builddir_sub
22830 ac_abs_top_srcdir=$ac_pwd ;;
22831 [\\/]* | ?:[\\/]* ) # Absolute name.
89354eef 22832 ac_srcdir=$srcdir$ac_dir_suffix;
f58aa3e1 22833 ac_top_srcdir=$srcdir
22834 ac_abs_top_srcdir=$srcdir ;;
22835 *) # Relative name.
22836 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22837 ac_top_srcdir=$ac_top_build_prefix$srcdir
22838 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
89354eef 22839esac
f58aa3e1 22840ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22841
89354eef 22842
f58aa3e1 22843 case $ac_mode in
22844 :F)
22845 #
22846 # CONFIG_FILE
22847 #
89354eef 22848
22849 case $INSTALL in
22850 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
f58aa3e1 22851 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
89354eef 22852 esac
f58aa3e1 22853_ACEOF
89354eef 22854
f58aa3e1 22855cat >>$CONFIG_STATUS <<\_ACEOF
22856# If the template does not know about datarootdir, expand it.
22857# FIXME: This hack should be removed a few years after 2.60.
22858ac_datarootdir_hack=; ac_datarootdir_seen=
22859
22860case `sed -n '/datarootdir/ {
22861 p
22862 q
22863}
22864/@datadir@/p
22865/@docdir@/p
22866/@infodir@/p
22867/@localedir@/p
22868/@mandir@/p
22869' $ac_file_inputs` in
22870*datarootdir*) ac_datarootdir_seen=yes;;
22871*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22872 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22873echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
89354eef 22874_ACEOF
f58aa3e1 22875cat >>$CONFIG_STATUS <<_ACEOF
22876 ac_datarootdir_hack='
22877 s&@datadir@&$datadir&g
22878 s&@docdir@&$docdir&g
22879 s&@infodir@&$infodir&g
22880 s&@localedir@&$localedir&g
22881 s&@mandir@&$mandir&g
22882 s&\\\${datarootdir}&$datarootdir&g' ;;
22883esac
22884_ACEOF
22885
22886# Neutralize VPATH when `$srcdir' = `.'.
22887# Shell code in configure.ac might set extrasub.
22888# FIXME: do we really want to maintain this feature?
89354eef 22889cat >>$CONFIG_STATUS <<_ACEOF
22890 sed "$ac_vpsub
22891$extrasub
22892_ACEOF
22893cat >>$CONFIG_STATUS <<\_ACEOF
22894:t
22895/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
f58aa3e1 22896s&@configure_input@&$configure_input&;t t
22897s&@top_builddir@&$ac_top_builddir_sub&;t t
22898s&@srcdir@&$ac_srcdir&;t t
22899s&@abs_srcdir@&$ac_abs_srcdir&;t t
22900s&@top_srcdir@&$ac_top_srcdir&;t t
22901s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22902s&@builddir@&$ac_builddir&;t t
22903s&@abs_builddir@&$ac_abs_builddir&;t t
22904s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22905s&@INSTALL@&$ac_INSTALL&;t t
22906$ac_datarootdir_hack
22907" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22908
22909test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22910 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22911 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22912 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22913which seems to be undefined. Please make sure it is defined." >&5
22914echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22915which seems to be undefined. Please make sure it is defined." >&2;}
22916
22917 rm -f "$tmp/stdin"
89354eef 22918 case $ac_file in
f58aa3e1 22919 -) cat "$tmp/out"; rm -f "$tmp/out";;
22920 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
89354eef 22921 esac
f58aa3e1 22922 ;;
22923 :H)
22924 #
22925 # CONFIG_HEADER
22926 #
22927_ACEOF
89354eef 22928
f58aa3e1 22929# Transform confdefs.h into a sed script `conftest.defines', that
22930# substitutes the proper values into config.h.in to produce config.h.
22931rm -f conftest.defines conftest.tail
22932# First, append a space to every undef/define line, to ease matching.
22933echo 's/$/ /' >conftest.defines
22934# Then, protect against being on the right side of a sed subst, or in
22935# an unquoted here document, in config.status. If some macros were
22936# called several times there might be several #defines for the same
22937# symbol, which is useless. But do not sort them, since the last
22938# AC_DEFINE must be honored.
22939ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22940# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22941# NAME is the cpp macro being defined, VALUE is the value it is being given.
22942# PARAMS is the parameter list in the macro definition--in most cases, it's
22943# just an empty string.
22944ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22945ac_dB='\\)[ (].*,\\1define\\2'
22946ac_dC=' '
22947ac_dD=' ,'
22948
22949uniq confdefs.h |
22950 sed -n '
22951 t rset
22952 :rset
22953 s/^[ ]*#[ ]*define[ ][ ]*//
22954 t ok
22955 d
22956 :ok
22957 s/[\\&,]/\\&/g
22958 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22959 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22960 ' >>conftest.defines
22961
22962# Remove the space that was appended to ease matching.
22963# Then replace #undef with comments. This is necessary, for
89354eef 22964# example, in the case of _POSIX_SOURCE, which is predefined and required
22965# on some systems where configure will not decide to define it.
f58aa3e1 22966# (The regexp can be short, since the line contains either #define or #undef.)
22967echo 's/ $//
22968s,^[ #]*u.*,/* & */,' >>conftest.defines
22969
22970# Break up conftest.defines:
22971ac_max_sed_lines=50
22972
22973# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22974# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22975# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22976# et cetera.
22977ac_in='$ac_file_inputs'
22978ac_out='"$tmp/out1"'
22979ac_nxt='"$tmp/out2"'
22980
22981while :
89354eef 22982do
f58aa3e1 22983 # Write a here document:
22984 cat >>$CONFIG_STATUS <<_ACEOF
22985 # First, check the format of the line:
22986 cat >"\$tmp/defines.sed" <<\\CEOF
22987/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22988/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22989b
22990:def
22991_ACEOF
22992 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
89354eef 22993 echo 'CEOF
f58aa3e1 22994 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22995 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22996 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22997 grep . conftest.tail >/dev/null || break
89354eef 22998 rm -f conftest.defines
22999 mv conftest.tail conftest.defines
23000done
f58aa3e1 23001rm -f conftest.defines conftest.tail
89354eef 23002
f58aa3e1 23003echo "ac_result=$ac_in" >>$CONFIG_STATUS
89354eef 23004cat >>$CONFIG_STATUS <<\_ACEOF
89354eef 23005 if test x"$ac_file" != x-; then
f58aa3e1 23006 echo "/* $configure_input */" >"$tmp/config.h"
23007 cat "$ac_result" >>"$tmp/config.h"
23008 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
89354eef 23009 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23010echo "$as_me: $ac_file is unchanged" >&6;}
23011 else
89354eef 23012 rm -f $ac_file
f58aa3e1 23013 mv "$tmp/config.h" $ac_file
89354eef 23014 fi
23015 else
f58aa3e1 23016 echo "/* $configure_input */"
23017 cat "$ac_result"
89354eef 23018 fi
f58aa3e1 23019 rm -f "$tmp/out12"
23020# Compute $ac_file's index in $config_headers.
23021_am_stamp_count=1
23022for _am_header in $config_headers :; do
23023 case $_am_header in
23024 $ac_file | $ac_file:* )
23025 break ;;
23026 * )
23027 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
89354eef 23028 esac
23029done
f58aa3e1 23030echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23031$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23032 X$ac_file : 'X\(//\)[^/]' \| \
23033 X$ac_file : 'X\(//\)$' \| \
23034 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23035echo X$ac_file |
23036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23037 s//\1/
23038 q
23039 }
23040 /^X\(\/\/\)[^/].*/{
23041 s//\1/
23042 q
23043 }
23044 /^X\(\/\/\)$/{
23045 s//\1/
23046 q
23047 }
23048 /^X\(\/\).*/{
23049 s//\1/
23050 q
23051 }
23052 s/.*/./; q'`/stamp-h$_am_stamp_count
23053 ;;
89354eef 23054
f58aa3e1 23055 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23056echo "$as_me: executing $ac_file commands" >&6;}
23057 ;;
23058 esac
89354eef 23059
89354eef 23060
f58aa3e1 23061 case $ac_file$ac_mode in
23062 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
89354eef 23063 # Strip MF so we end up with the name of the file.
23064 mf=`echo "$mf" | sed -e 's/:.*$//'`
23065 # Check whether this is an Automake generated Makefile or not.
23066 # We used to match only the files named `Makefile.in', but
23067 # some people rename them; so instead we look at the file content.
23068 # Grep'ing the first line is not enough: some people post-process
23069 # each Makefile.in and add a new line on top of each file to say so.
23070 # So let's grep whole file.
23071 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
f58aa3e1 23072 dirpart=`$as_dirname -- "$mf" ||
89354eef 23073$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f58aa3e1 23074 X"$mf" : 'X\(//\)[^/]' \| \
23075 X"$mf" : 'X\(//\)$' \| \
23076 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
89354eef 23077echo X"$mf" |
f58aa3e1 23078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23079 s//\1/
23080 q
23081 }
23082 /^X\(\/\/\)[^/].*/{
23083 s//\1/
23084 q
23085 }
23086 /^X\(\/\/\)$/{
23087 s//\1/
23088 q
23089 }
23090 /^X\(\/\).*/{
23091 s//\1/
23092 q
23093 }
23094 s/.*/./; q'`
89354eef 23095 else
23096 continue
23097 fi
f58aa3e1 23098 # Extract the definition of DEPDIR, am__include, and am__quote
23099 # from the Makefile without running `make'.
23100 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
89354eef 23101 test -z "$DEPDIR" && continue
f58aa3e1 23102 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23103 test -z "am__include" && continue
23104 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
89354eef 23105 # When using ansi2knr, U may be empty or an underscore; expand it
f58aa3e1 23106 U=`sed -n 's/^U = //p' < "$mf"`
23107 # Find all dependency output files, they are included files with
23108 # $(DEPDIR) in their names. We invoke sed twice because it is the
23109 # simplest approach to changing $(DEPDIR) to its actual value in the
23110 # expansion.
23111 for file in `sed -n "
23112 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
89354eef 23113 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23114 # Make sure the directory exists.
23115 test -f "$dirpart/$file" && continue
f58aa3e1 23116 fdir=`$as_dirname -- "$file" ||
89354eef 23117$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f58aa3e1 23118 X"$file" : 'X\(//\)[^/]' \| \
23119 X"$file" : 'X\(//\)$' \| \
23120 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
89354eef 23121echo X"$file" |
f58aa3e1 23122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23123 s//\1/
23124 q
23125 }
23126 /^X\(\/\/\)[^/].*/{
23127 s//\1/
23128 q
23129 }
23130 /^X\(\/\/\)$/{
23131 s//\1/
23132 q
23133 }
23134 /^X\(\/\).*/{
23135 s//\1/
23136 q
23137 }
23138 s/.*/./; q'`
23139 { as_dir=$dirpart/$fdir
23140 case $as_dir in #(
23141 -*) as_dir=./$as_dir;;
23142 esac
23143 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
49ba971d 23144 as_dirs=
f58aa3e1 23145 while :; do
23146 case $as_dir in #(
23147 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23148 *) as_qdir=$as_dir;;
23149 esac
23150 as_dirs="'$as_qdir' $as_dirs"
23151 as_dir=`$as_dirname -- "$as_dir" ||
49ba971d 23152$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f58aa3e1 23153 X"$as_dir" : 'X\(//\)[^/]' \| \
23154 X"$as_dir" : 'X\(//\)$' \| \
23155 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
49ba971d 23156echo X"$as_dir" |
f58aa3e1 23157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23158 s//\1/
23159 q
23160 }
23161 /^X\(\/\/\)[^/].*/{
23162 s//\1/
23163 q
23164 }
23165 /^X\(\/\/\)$/{
23166 s//\1/
23167 q
23168 }
23169 /^X\(\/\).*/{
23170 s//\1/
23171 q
23172 }
23173 s/.*/./; q'`
23174 test -d "$as_dir" && break
49ba971d 23175 done
f58aa3e1 23176 test -z "$as_dirs" || eval "mkdir $as_dirs"
23177 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23178echo "$as_me: error: cannot create directory $as_dir" >&2;}
49ba971d 23179 { (exit 1); exit 1; }; }; }
89354eef 23180 # echo "creating $dirpart/$file"
23181 echo '# dummy' > "$dirpart/$file"
23182 done
23183done
23184 ;;
f58aa3e1 23185
89354eef 23186 esac
f58aa3e1 23187done # for ac_tag
89354eef 23188
89354eef 23189
23190{ (exit 0); exit 0; }
23191_ACEOF
23192chmod +x $CONFIG_STATUS
23193ac_clean_files=$ac_clean_files_save
23194
23195
23196# configure is writing to config.log, and then calls config.status.
23197# config.status does its own redirection, appending to config.log.
23198# Unfortunately, on DOS this fails, as config.log is still kept open
23199# by configure, so config.status won't be able to write to it; its
23200# output is simply discarded. So we exec the FD to /dev/null,
23201# effectively closing config.log, so it can be properly (re)opened and
23202# appended to by config.status. When coming back to configure, we
23203# need to make the FD available again.
23204if test "$no_create" != yes; then
23205 ac_cs_success=:
49ba971d 23206 ac_config_status_args=
23207 test "$silent" = yes &&
23208 ac_config_status_args="$ac_config_status_args --quiet"
89354eef 23209 exec 5>/dev/null
49ba971d 23210 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
89354eef 23211 exec 5>>config.log
23212 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23213 # would make configure fail if this is the last instruction.
23214 $ac_cs_success || { (exit 1); exit 1; }
23215fi
23216
23217
23218echo "##############################################################################"
23219echo "Everything is now configured. To compile libopm now, just type make. It"
23220echo "requires GNU Make, which may be installed as gmake on your system."
23221echo
23222echo "libopm will be installed in ${prefix}. To change this, run:"
23223echo " ./configure --prefix=DIRECTORY"
23224echo
23225echo "##############################################################################"
23226echo