blob: 97621be06c7811842c2f3a070ed64328835878df [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003# Generated by GNU Autoconf 2.60.
Lev Walkinf15320b2004-06-03 03:38:44 +00004#
Lev Walkin27fd0b62007-08-27 23:57:45 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
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=:
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+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000020 setopt NO_GLOB_SUBST
21else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +000023fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000024BIN_SH=xpg4; export BIN_SH # for Tru64
Lev Walkin8e8b5482004-06-17 23:42:48 +000025DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000026
Lev Walkinf15320b2004-06-03 03:38:44 +000027
Lev Walkin27fd0b62007-08-27 23:57:45 +000028# PATH needs CR
Lev Walkinf15320b2004-06-03 03:38:44 +000029# 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
47fi
48
Lev Walkin27fd0b62007-08-27 23:57:45 +000049# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52else
53 as_unset=false
54fi
Lev Walkinf15320b2004-06-03 03:38:44 +000055
Lev Walkin27fd0b62007-08-27 23:57:45 +000056
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
Lev Walkinf15320b2004-06-03 03:38:44 +000070for 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
Lev Walkin27fd0b62007-08-27 23:57:45 +000076IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000077
Lev Walkin27fd0b62007-08-27 23:57:45 +000078 ;;
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
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
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
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Lev Walkinf15320b2004-06-03 03:38:44 +0000108 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115else
116 as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121else
122 as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
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'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
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.
180fi
181
182if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188 :
189else
190 exitcode=1
191 echo as_func_ret_success failed.
192fi
193
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=
Lev Walkinf15320b2004-06-03 03:38:44 +0000217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +0000218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Lev Walkinf15320b2004-06-03 03:38:44 +0000219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000222 case $as_dir in
Lev Walkinf15320b2004-06-03 03:38:44 +0000223 /*)
Lev Walkin27fd0b62007-08-27 23:57:45 +0000224 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(
Lev Walkinf15320b2004-06-03 03:38:44 +0000322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
Lev Walkinf15320b2004-06-03 03:38:44 +0000324 test "x$as_lineno_1" != "x$as_lineno_2" &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000325 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" || {
Lev Walkinf15320b2004-06-03 03:38:44 +0000421
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
Lev Walkin27fd0b62007-08-27 23:57:45 +0000424 # 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.
Lev Walkinf15320b2004-06-03 03:38:44 +0000429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000430 # 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 |
Lev Walkinf15320b2004-06-03 03:38:44 +0000436 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +0000441 N
Lev Walkin27fd0b62007-08-27 23:57:45 +0000442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +0000444 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +0000445 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +0000446 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000447 chmod +x "$as_me.lineno" ||
Lev Walkinf15320b2004-06-03 03:38:44 +0000448 { 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
Lev Walkin27fd0b62007-08-27 23:57:45 +0000453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +0000455 # Exit status is that of the last command.
456 exit
457}
458
459
Lev Walkin27fd0b62007-08-27 23:57:45 +0000460if (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';;
Lev Walkinf15320b2004-06-03 03:38:44 +0000475esac
476
Lev Walkin27fd0b62007-08-27 23:57:45 +0000477if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Lev Walkinf15320b2004-06-03 03:38:44 +0000479 as_expr=expr
480else
481 as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +0000485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490fi
Lev Walkinf15320b2004-06-03 03:38:44 +0000491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000493 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 ||
Lev Walkinf15320b2004-06-03 03:38:44 +0000499 as_ln_s='cp -p'
Lev Walkinf15320b2004-06-03 03:38:44 +0000500elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502else
503 as_ln_s='cp -p'
504fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +0000507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510else
Lev Walkin8e8b5482004-06-17 23:42:48 +0000511 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000512 as_mkdir_p=false
513fi
514
Lev Walkin27fd0b62007-08-27 23:57:45 +0000515# 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
Lev Walkinf15320b2004-06-03 03:38:44 +0000528
529# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000531
532# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000534
535
Lev Walkinf15320b2004-06-03 03:38:44 +0000536
Lev Walkin8e8b5482004-06-17 23:42:48 +0000537
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 :
555elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
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
567$*
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.
574if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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, ...
581 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
582 echo_test_string="`eval $cmd`" &&
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
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
603 IFS="$lt_save_ifs"
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
612 IFS="$lt_save_ifs"
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
684
685
686
687tagnames=${tagnames+${tagnames},}CXX
688
689tagnames=${tagnames+${tagnames},}F77
690
Lev Walkin27fd0b62007-08-27 23:57:45 +0000691exec 7<&0 </dev/null 6>&1
692
Lev Walkinf15320b2004-06-03 03:38:44 +0000693# 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
Lev Walkinf15320b2004-06-03 03:38:44 +0000698#
699# Initializations.
700#
701ac_default_prefix=/usr/local
Lev Walkin27fd0b62007-08-27 23:57:45 +0000702ac_clean_files=
Lev Walkinf15320b2004-06-03 03:38:44 +0000703ac_config_libobj_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000704LIBOBJS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000705cross_compiling=no
706subdirs=
707MFLAGS=
708MAKEFLAGS=
709SHELL=${CONFIG_SHELL-/bin/sh}
710
Lev Walkinf15320b2004-06-03 03:38:44 +0000711# Identity of this package.
712PACKAGE_NAME=
713PACKAGE_TARNAME=
714PACKAGE_VERSION=
715PACKAGE_STRING=
716PACKAGE_BUGREPORT=
717
718ac_unique_file="libasn1parser/asn1p_y.y"
719# Factoring default headers for most tests.
720ac_includes_default="\
721#include <stdio.h>
722#if HAVE_SYS_TYPES_H
723# include <sys/types.h>
724#endif
725#if HAVE_SYS_STAT_H
726# include <sys/stat.h>
727#endif
728#if STDC_HEADERS
729# include <stdlib.h>
730# include <stddef.h>
731#else
732# if HAVE_STDLIB_H
733# include <stdlib.h>
734# endif
735#endif
736#if HAVE_STRING_H
737# if !STDC_HEADERS && HAVE_MEMORY_H
738# include <memory.h>
739# endif
740# include <string.h>
741#endif
742#if HAVE_STRINGS_H
743# include <strings.h>
744#endif
745#if HAVE_INTTYPES_H
746# include <inttypes.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +0000747#endif
748#if HAVE_STDINT_H
749# include <stdint.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000750#endif
751#if HAVE_UNISTD_H
752# include <unistd.h>
753#endif"
754
Lev Walkin27fd0b62007-08-27 23:57:45 +0000755ac_subst_vars='SHELL
756PATH_SEPARATOR
757PACKAGE_NAME
758PACKAGE_TARNAME
759PACKAGE_VERSION
760PACKAGE_STRING
761PACKAGE_BUGREPORT
762exec_prefix
763prefix
764program_transform_name
765bindir
766sbindir
767libexecdir
768datarootdir
769datadir
770sysconfdir
771sharedstatedir
772localstatedir
773includedir
774oldincludedir
775docdir
776infodir
777htmldir
778dvidir
779pdfdir
780psdir
781libdir
782localedir
783mandir
784DEFS
785ECHO_C
786ECHO_N
787ECHO_T
788LIBS
789build_alias
790host_alias
791target_alias
792build
793build_cpu
794build_vendor
795build_os
796host
797host_cpu
798host_vendor
799host_os
800target
801target_cpu
802target_vendor
803target_os
804INSTALL_PROGRAM
805INSTALL_SCRIPT
806INSTALL_DATA
807CYGPATH_W
808PACKAGE
809VERSION
810ACLOCAL
811AUTOCONF
812AUTOMAKE
813AUTOHEADER
814MAKEINFO
815install_sh
816STRIP
817INSTALL_STRIP_PROGRAM
818mkdir_p
819AWK
820SET_MAKE
821am__leading_dot
822AMTAR
823am__tar
824am__untar
825MAINTAINER_MODE_TRUE
826MAINTAINER_MODE_FALSE
827MAINT
828CC
829CFLAGS
830LDFLAGS
831CPPFLAGS
832ac_ct_CC
833EXEEXT
834OBJEXT
835DEPDIR
836am__include
837am__quote
838AMDEP_TRUE
839AMDEP_FALSE
840AMDEPBACKSLASH
841CCDEPMODE
842am__fastdepCC_TRUE
843am__fastdepCC_FALSE
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
862CONFIGURE_DEPENDS
863YACC
864YFLAGS
865LEX
866LEXLIB
867LEX_OUTPUT_ROOT
868ADD_CFLAGS
869LIBOBJS
870LTLIBOBJS'
Lev Walkinf15320b2004-06-03 03:38:44 +0000871ac_subst_files=''
Lev Walkin27fd0b62007-08-27 23:57:45 +0000872 ac_precious_vars='build_alias
873host_alias
874target_alias
875CC
876CFLAGS
877LDFLAGS
878CPPFLAGS
879CPP
880CXX
881CXXFLAGS
882CCC
883CXXCPP
884F77
885FFLAGS
886YACC
887YFLAGS'
888
Lev Walkinf15320b2004-06-03 03:38:44 +0000889
890# Initialize some variables set by options.
891ac_init_help=
892ac_init_version=false
893# The variables have the same names as the options, with
894# dashes changed to underlines.
895cache_file=/dev/null
896exec_prefix=NONE
897no_create=
898no_recursion=
899prefix=NONE
900program_prefix=NONE
901program_suffix=NONE
902program_transform_name=s,x,x,
903silent=
904site=
905srcdir=
906verbose=
907x_includes=NONE
908x_libraries=NONE
909
910# Installation directory options.
911# These are left unexpanded so users can "make install exec_prefix=/foo"
912# and all the variables that are supposed to be based on exec_prefix
913# by default will actually change.
914# Use braces instead of parens because sh, perl, etc. also accept them.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000915# (The list follows the same order as the GNU Coding Standards.)
Lev Walkinf15320b2004-06-03 03:38:44 +0000916bindir='${exec_prefix}/bin'
917sbindir='${exec_prefix}/sbin'
918libexecdir='${exec_prefix}/libexec'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000919datarootdir='${prefix}/share'
920datadir='${datarootdir}'
Lev Walkinf15320b2004-06-03 03:38:44 +0000921sysconfdir='${prefix}/etc'
922sharedstatedir='${prefix}/com'
923localstatedir='${prefix}/var'
Lev Walkinf15320b2004-06-03 03:38:44 +0000924includedir='${prefix}/include'
925oldincludedir='/usr/include'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000926docdir='${datarootdir}/doc/${PACKAGE}'
927infodir='${datarootdir}/info'
928htmldir='${docdir}'
929dvidir='${docdir}'
930pdfdir='${docdir}'
931psdir='${docdir}'
932libdir='${exec_prefix}/lib'
933localedir='${datarootdir}/locale'
934mandir='${datarootdir}/man'
Lev Walkinf15320b2004-06-03 03:38:44 +0000935
936ac_prev=
Lev Walkin27fd0b62007-08-27 23:57:45 +0000937ac_dashdash=
Lev Walkinf15320b2004-06-03 03:38:44 +0000938for ac_option
939do
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000942 eval $ac_prev=\$ac_option
Lev Walkinf15320b2004-06-03 03:38:44 +0000943 ac_prev=
944 continue
945 fi
946
Lev Walkin27fd0b62007-08-27 23:57:45 +0000947 case $ac_option in
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *) ac_optarg=yes ;;
950 esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
Lev Walkin27fd0b62007-08-27 23:57:45 +0000954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
962
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
977
Lev Walkin27fd0b62007-08-27 23:57:45 +0000978 -datadir | --datadir | --datadi | --datad)
Lev Walkinf15320b2004-06-03 03:38:44 +0000979 ac_prev=datadir ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000981 datadir=$ac_optarg ;;
982
Lev Walkin27fd0b62007-08-27 23:57:45 +0000983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
Lev Walkinf15320b2004-06-03 03:38:44 +0000990 -disable-* | --disable-*)
991 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
994 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
995 { (exit 1); exit 1; }; }
996 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +0000997 eval enable_$ac_feature=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001008
1009 -enable-* | --enable-*)
1010 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1013 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001016 eval enable_$ac_feature=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001017
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1026
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1029 with_gas=yes ;;
1030
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1037
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1042
Lev Walkin27fd0b62007-08-27 23:57:45 +00001043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 ac_prev=htmldir ;;
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 | --ht=*)
1047 htmldir=$ac_optarg ;;
1048
Lev Walkinf15320b2004-06-03 03:38:44 +00001049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1055
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 ac_prev=infodir ;;
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1060
1061 -libdir | --libdir | --libdi | --libd)
1062 ac_prev=libdir ;;
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1065
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1072
Lev Walkin27fd0b62007-08-27 23:57:45 +00001073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1077
Lev Walkinf15320b2004-06-03 03:38:44 +00001078 -localstatedir | --localstatedir | --localstatedi | --localstated \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001079 | --localstate | --localstat | --localsta | --localst | --locals)
Lev Walkinf15320b2004-06-03 03:38:44 +00001080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001083 localstatedir=$ac_optarg ;;
1084
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 ac_prev=mandir ;;
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1089
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1092 with_fp=no ;;
1093
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1096 no_create=yes ;;
1097
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 no_recursion=yes ;;
1101
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1110
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 ac_prev=prefix ;;
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1115
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1122
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1129
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1146
Lev Walkin27fd0b62007-08-27 23:57:45 +00001147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 ac_prev=pdfdir ;;
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1151
1152 -psdir | --psdir | --psdi | --psd | --ps)
1153 ac_prev=psdir ;;
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 psdir=$ac_optarg ;;
1156
Lev Walkinf15320b2004-06-03 03:38:44 +00001157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1159 silent=yes ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1210 { echo "$as_me: error: invalid package name: $ac_package" >&2
1211 { (exit 1); exit 1; }; }
1212 ac_package=`echo $ac_package| sed 's/-/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001213 eval with_$ac_package=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001214
1215 -without-* | --without-*)
1216 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_package=`echo $ac_package | sed 's/-/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001222 eval with_$ac_package=no ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) { echo "$as_me: error: unrecognized option: $ac_option
1243Try \`$0 --help' for more information." >&2
1244 { (exit 1); exit 1; }; }
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1251 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001253 eval $ac_envvar=\$ac_optarg
Lev Walkinf15320b2004-06-03 03:38:44 +00001254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1262 ;;
1263
1264 esac
1265done
1266
1267if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 { echo "$as_me: error: missing argument to $ac_option" >&2
1270 { (exit 1); exit 1; }; }
1271fi
1272
Lev Walkin27fd0b62007-08-27 23:57:45 +00001273# Be sure to have absolute directory names.
1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +00001278do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001279 eval ac_val=\$$ac_var
Lev Walkinf15320b2004-06-03 03:38:44 +00001280 case $ac_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001283 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001284 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1285 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001286done
1287
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
1294
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
1310
1311
Lev Walkin27fd0b62007-08-27 23:57:45 +00001312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 { echo "$as_me: error: Working directory cannot be determined" >&2
1316 { (exit 1); exit 1; }; }
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 { echo "$as_me: error: pwd does not report name of working directory" >&2
1319 { (exit 1); exit 1; }; }
1320
1321
Lev Walkinf15320b2004-06-03 03:38:44 +00001322# Find the source files, if location was not specified.
1323if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00001325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$0" ||
Lev Walkinf15320b2004-06-03 03:38:44 +00001327$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001328 X"$0" : 'X\(//\)[^/]' \| \
1329 X"$0" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +00001331echo X"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001349 srcdir=$ac_confdir
Lev Walkin27fd0b62007-08-27 23:57:45 +00001350 if test ! -r "$srcdir/$ac_unique_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001351 srcdir=..
1352 fi
1353else
1354 ac_srcdir_defaulted=no
1355fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001356if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001359 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001360fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001361ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362ac_abs_confdir=`(
1363 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001364 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001365 pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
Lev Walkinf15320b2004-06-03 03:38:44 +00001382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390\`configure' configures this package to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
Lev Walkinf15320b2004-06-03 03:38:44 +00001410Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +00001412 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +00001413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +00001414 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +00001415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
Lev Walkinf15320b2004-06-03 03:38:44 +00001427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Lev Walkin27fd0b62007-08-27 23:57:45 +00001433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
Lev Walkinf15320b2004-06-03 03:38:44 +00001443_ACEOF
1444
1445 cat <<\_ACEOF
1446
1447Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460
1461 cat <<\_ACEOF
1462
1463Optional Features:
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001466 --enable-maintainer-mode enable make rules and dependencies not useful
1467 (and sometimes confusing) to the casual installer
Lev Walkin27fd0b62007-08-27 23:57:45 +00001468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-dependency-tracking speeds up one-time build
1473 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001474 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --disable-autoconf disable automatic generation of configure script
1476 --enable-Werror abort compilation after any C compiler warning
1477
1478Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1483 both]
Lev Walkin27fd0b62007-08-27 23:57:45 +00001484 --with-tags[=TAGS] include additional configurations [automatic]
Lev Walkinf15320b2004-06-03 03:38:44 +00001485
1486Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
Lev Walkin27fd0b62007-08-27 23:57:45 +00001491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
Lev Walkinf15320b2004-06-03 03:38:44 +00001493 CPP C preprocessor
Lev Walkin8e8b5482004-06-17 23:42:48 +00001494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1496 CXXCPP C++ preprocessor
1497 F77 Fortran 77 compiler command
1498 FFLAGS Fortran 77 compiler flags
Lev Walkin27fd0b62007-08-27 23:57:45 +00001499 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1500 the first program found out of: `bison -y', `byacc', `yacc'.
1501 YFLAGS The list of arguments that will be passed by default to $YACC.
1502 This script will default YFLAGS to the empty string to avoid a
1503 default value of `-d' given by some make applications.
Lev Walkinf15320b2004-06-03 03:38:44 +00001504
1505Use these variables to override the choices made by `configure' or to help
1506it to find libraries and programs with nonstandard names/locations.
1507
1508_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001509ac_status=$?
Lev Walkinf15320b2004-06-03 03:38:44 +00001510fi
1511
1512if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
Lev Walkinf15320b2004-06-03 03:38:44 +00001514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Lev Walkin27fd0b62007-08-27 23:57:45 +00001515 test -d "$ac_dir" || continue
Lev Walkinf15320b2004-06-03 03:38:44 +00001516 ac_builddir=.
1517
Lev Walkin27fd0b62007-08-27 23:57:45 +00001518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528esac
1529ac_abs_top_builddir=$ac_pwd
1530ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531# for backward compatibility:
1532ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +00001533
1534case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001535 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +00001536 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +00001540 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001547esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +00001549
Lev Walkin27fd0b62007-08-27 23:57:45 +00001550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
Lev Walkinf15320b2004-06-03 03:38:44 +00001558 else
1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001562 done
1563fi
1564
Lev Walkin27fd0b62007-08-27 23:57:45 +00001565test -n "$ac_init_help" && exit $ac_status
Lev Walkinf15320b2004-06-03 03:38:44 +00001566if $ac_init_version; then
1567 cat <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001568configure
1569generated by GNU Autoconf 2.60
Lev Walkinf15320b2004-06-03 03:38:44 +00001570
Lev Walkin27fd0b62007-08-27 23:57:45 +00001571Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001573This configure script is free software; the Free Software Foundation
1574gives unlimited permission to copy, distribute and modify it.
1575_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001576 exit
Lev Walkinf15320b2004-06-03 03:38:44 +00001577fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001578cat >config.log <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00001579This file contains any messages produced by compilers while
1580running configure, to aid debugging if configure makes a mistake.
1581
1582It was created by $as_me, which was
Lev Walkin27fd0b62007-08-27 23:57:45 +00001583generated by GNU Autoconf 2.60. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001584
1585 $ $0 $@
1586
1587_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001588exec 5>>config.log
Lev Walkinf15320b2004-06-03 03:38:44 +00001589{
1590cat <<_ASUNAME
1591## --------- ##
1592## Platform. ##
1593## --------- ##
1594
1595hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603
1604/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001607/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Lev Walkinf15320b2004-06-03 03:38:44 +00001608/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611
1612_ASUNAME
1613
1614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615for as_dir in $PATH
1616do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1620done
Lev Walkin27fd0b62007-08-27 23:57:45 +00001621IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00001622
1623} >&5
1624
1625cat >&5 <<_ACEOF
1626
1627
1628## ----------- ##
1629## Core tests. ##
1630## ----------- ##
1631
1632_ACEOF
1633
1634
1635# Keep a trace of the command line.
1636# Strip out --no-create and --no-recursion so they do not pile up.
1637# Strip out --silent because we don't want to record it for future runs.
1638# Also quote any args containing shell meta-characters.
1639# Make two passes to allow for proper duplicate-argument suppression.
1640ac_configure_args=
1641ac_configure_args0=
1642ac_configure_args1=
Lev Walkinf15320b2004-06-03 03:38:44 +00001643ac_must_keep_next=false
1644for ac_pass in 1 2
1645do
1646 for ac_arg
1647 do
1648 case $ac_arg in
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1652 continue ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001653 *\'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 esac
1656 case $ac_pass in
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658 2)
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001661 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00001662 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00001663 case $ac_arg in
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 esac
1671 ;;
1672 -* ) ac_must_keep_next=true ;;
1673 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001674 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001675 ac_configure_args="$ac_configure_args '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00001676 ;;
1677 esac
1678 done
1679done
1680$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683# When interrupted or exit'd, cleanup temporary files, and complete
1684# config.log. We remove comments because anyway the quotes in there
1685# would cause problems or look ugly.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001686# WARNING: Use '\'' to represent an apostrophe within the trap.
1687# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Lev Walkinf15320b2004-06-03 03:38:44 +00001688trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1690 {
1691 echo
1692
1693 cat <<\_ASBOX
1694## ---------------- ##
1695## Cache variables. ##
1696## ---------------- ##
1697_ASBOX
1698 echo
1699 # The following way of writing the cache mishandles newlines in values,
Lev Walkin27fd0b62007-08-27 23:57:45 +00001700(
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1703 case $ac_val in #(
1704 *${as_nl}*)
1705 case $ac_var in #(
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 esac
1709 case $ac_var in #(
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1712 esac ;;
1713 esac
1714 done
Lev Walkinf15320b2004-06-03 03:38:44 +00001715 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +00001718 sed -n \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +00001722 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00001723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00001724 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001725 esac |
1726 sort
1727)
Lev Walkinf15320b2004-06-03 03:38:44 +00001728 echo
1729
1730 cat <<\_ASBOX
1731## ----------------- ##
1732## Output variables. ##
1733## ----------------- ##
1734_ASBOX
1735 echo
1736 for ac_var in $ac_subst_vars
1737 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00001743 done | sort
1744 echo
1745
1746 if test -n "$ac_subst_files"; then
1747 cat <<\_ASBOX
Lev Walkin27fd0b62007-08-27 23:57:45 +00001748## ------------------- ##
1749## File substitutions. ##
1750## ------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00001751_ASBOX
1752 echo
1753 for ac_var in $ac_subst_files
1754 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001755 eval ac_val=\$$ac_var
1756 case $ac_val in
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 esac
1759 echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00001760 done | sort
1761 echo
1762 fi
1763
1764 if test -s confdefs.h; then
1765 cat <<\_ASBOX
1766## ----------- ##
1767## confdefs.h. ##
1768## ----------- ##
1769_ASBOX
1770 echo
Lev Walkin27fd0b62007-08-27 23:57:45 +00001771 cat confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00001772 echo
1773 fi
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1777 } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00001778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001780 exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +00001781' 0
Lev Walkinf15320b2004-06-03 03:38:44 +00001782for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784done
1785ac_signal=0
1786
1787# confdefs.h avoids OS command line length limits that DEFS can exceed.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001788rm -f -r conftest* confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00001789
1790# Predefined preprocessor variables.
1791
1792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_NAME "$PACKAGE_NAME"
1794_ACEOF
1795
1796
1797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799_ACEOF
1800
1801
1802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_VERSION "$PACKAGE_VERSION"
1804_ACEOF
1805
1806
1807cat >>confdefs.h <<_ACEOF
1808#define PACKAGE_STRING "$PACKAGE_STRING"
1809_ACEOF
1810
1811
1812cat >>confdefs.h <<_ACEOF
1813#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814_ACEOF
1815
1816
1817# Let the site file select an alternate cache file if it wants to.
1818# Prefer explicitly selected file to automatically selected ones.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001819if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823else
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
Lev Walkinf15320b2004-06-03 03:38:44 +00001826fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001827shift
1828for ac_site_file
1829do
Lev Walkinf15320b2004-06-03 03:38:44 +00001830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1834 . "$ac_site_file"
1835 fi
1836done
1837
1838if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843echo "$as_me: loading cache $cache_file" >&6;}
1844 case $cache_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
Lev Walkinf15320b2004-06-03 03:38:44 +00001847 esac
1848 fi
1849else
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851echo "$as_me: creating cache $cache_file" >&6;}
1852 >$cache_file
1853fi
1854
1855# Check that the precious variables saved in the cache have kept the same
1856# value.
1857ac_cache_corrupted=false
Lev Walkin27fd0b62007-08-27 23:57:45 +00001858for ac_var in $ac_precious_vars; do
Lev Walkinf15320b2004-06-03 03:38:44 +00001859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860 eval ac_new_set=\$ac_env_${ac_var}_set
Lev Walkin27fd0b62007-08-27 23:57:45 +00001861 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862 eval ac_new_val=\$ac_env_${ac_var}_value
Lev Walkinf15320b2004-06-03 03:38:44 +00001863 case $ac_old_set,$ac_new_set in
1864 set,)
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1868 ,set)
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1872 ,);;
1873 *)
1874 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001876echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001878echo "$as_me: former value: $ac_old_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001880echo "$as_me: current value: $ac_new_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001881 ac_cache_corrupted=:
Lev Walkinf15320b2004-06-03 03:38:44 +00001882 fi;;
1883 esac
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1886 case $ac_new_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001888 *) ac_arg=$ac_var=$ac_new_val ;;
1889 esac
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 esac
1894 fi
1895done
1896if $ac_cache_corrupted; then
1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901 { (exit 1); exit 1; }; }
1902fi
1903
Lev Walkin27fd0b62007-08-27 23:57:45 +00001904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
Lev Walkinf15320b2004-06-03 03:38:44 +00001920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
Lev Walkinf15320b2004-06-03 03:38:44 +00001927ac_aux_dir=
Lev Walkin27fd0b62007-08-27 23:57:45 +00001928for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1929 if test -f "$ac_dir/install-sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001930 ac_aux_dir=$ac_dir
1931 ac_install_sh="$ac_aux_dir/install-sh -c"
1932 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00001933 elif test -f "$ac_dir/install.sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install.sh -c"
1936 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00001937 elif test -f "$ac_dir/shtool"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/shtool install -c"
1940 break
1941 fi
1942done
1943if test -z "$ac_aux_dir"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00001944 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1945echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001946 { (exit 1); exit 1; }; }
1947fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001948
1949# These three variables are undocumented and unsupported,
1950# and are intended to be withdrawn in a future Autoconf release.
1951# They can cause serious problems if a builder's source tree is in a directory
1952# whose full name contains unusual characters.
1953ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1954ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1955ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1956
Lev Walkinf15320b2004-06-03 03:38:44 +00001957
1958# Make sure we can run config.sub.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001959$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1960 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1961echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001962 { (exit 1); exit 1; }; }
1963
Lev Walkin27fd0b62007-08-27 23:57:45 +00001964{ echo "$as_me:$LINENO: checking build system type" >&5
1965echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001966if test "${ac_cv_build+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
Lev Walkin27fd0b62007-08-27 23:57:45 +00001969 ac_build_alias=$build_alias
1970test "x$ac_build_alias" = x &&
1971 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1972test "x$ac_build_alias" = x &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001973 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1974echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1975 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001976ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1977 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1978echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001979 { (exit 1); exit 1; }; }
1980
1981fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001982{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1983echo "${ECHO_T}$ac_cv_build" >&6; }
1984case $ac_cv_build in
1985*-*-*) ;;
1986*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1987echo "$as_me: error: invalid value of canonical build" >&2;}
1988 { (exit 1); exit 1; }; };;
1989esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001990build=$ac_cv_build
Lev Walkin27fd0b62007-08-27 23:57:45 +00001991ac_save_IFS=$IFS; IFS='-'
1992set x $ac_cv_build
1993shift
1994build_cpu=$1
1995build_vendor=$2
1996shift; shift
1997# Remember, the first character of IFS is used to create $*,
1998# except with old shells:
1999build_os=$*
2000IFS=$ac_save_IFS
2001case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002002
2003
Lev Walkin27fd0b62007-08-27 23:57:45 +00002004{ echo "$as_me:$LINENO: checking host system type" >&5
2005echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002006if test "${ac_cv_host+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002009 if test "x$host_alias" = x; then
2010 ac_cv_host=$ac_cv_build
2011else
2012 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2013 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2014echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002015 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00002016fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002017
2018fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002019{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2020echo "${ECHO_T}$ac_cv_host" >&6; }
2021case $ac_cv_host in
2022*-*-*) ;;
2023*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2024echo "$as_me: error: invalid value of canonical host" >&2;}
2025 { (exit 1); exit 1; }; };;
2026esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002027host=$ac_cv_host
Lev Walkin27fd0b62007-08-27 23:57:45 +00002028ac_save_IFS=$IFS; IFS='-'
2029set x $ac_cv_host
2030shift
2031host_cpu=$1
2032host_vendor=$2
2033shift; shift
2034# Remember, the first character of IFS is used to create $*,
2035# except with old shells:
2036host_os=$*
2037IFS=$ac_save_IFS
2038case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002039
2040
Lev Walkin27fd0b62007-08-27 23:57:45 +00002041{ echo "$as_me:$LINENO: checking target system type" >&5
2042echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002043if test "${ac_cv_target+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002046 if test "x$target_alias" = x; then
2047 ac_cv_target=$ac_cv_host
2048else
2049 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2050 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2051echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002052 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00002053fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002054
2055fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002056{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2057echo "${ECHO_T}$ac_cv_target" >&6; }
2058case $ac_cv_target in
2059*-*-*) ;;
2060*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2061echo "$as_me: error: invalid value of canonical target" >&2;}
2062 { (exit 1); exit 1; }; };;
2063esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002064target=$ac_cv_target
Lev Walkin27fd0b62007-08-27 23:57:45 +00002065ac_save_IFS=$IFS; IFS='-'
2066set x $ac_cv_target
2067shift
2068target_cpu=$1
2069target_vendor=$2
2070shift; shift
2071# Remember, the first character of IFS is used to create $*,
2072# except with old shells:
2073target_os=$*
2074IFS=$ac_save_IFS
2075case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002076
2077
2078# The aliases save the names the user supplied, while $host etc.
2079# will get canonicalized.
2080test -n "$target_alias" &&
2081 test "$program_prefix$program_suffix$program_transform_name" = \
2082 NONENONEs,x,x, &&
2083 program_prefix=${target_alias}-
2084
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002085am__api_version="1.9"
Lev Walkinf15320b2004-06-03 03:38:44 +00002086# Find a good install program. We prefer a C program (faster),
2087# so one script is as good as another. But avoid the broken or
2088# incompatible versions:
2089# SysV /etc/install, /usr/sbin/install
2090# SunOS /usr/etc/install
2091# IRIX /sbin/install
2092# AIX /bin/install
2093# AmigaOS /C/install, which installs bootblocks on floppy discs
2094# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2095# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2096# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002097# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00002098# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002099{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2100echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002101if test -z "$INSTALL"; then
2102if test "${ac_cv_path_install+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106for as_dir in $PATH
2107do
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 # Account for people who put trailing slashes in PATH elements.
2111case $as_dir/ in
2112 ./ | .// | /cC/* | \
2113 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +00002114 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002115 /usr/ucb/* ) ;;
2116 *)
2117 # OSF1 and SCO ODT 3.0 have their own names for install.
2118 # Don't use installbsd from OSF since it installs stuff as root
2119 # by default.
2120 for ac_prog in ginstall scoinst install; do
2121 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002122 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002123 if test $ac_prog = install &&
2124 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2125 # AIX install. It has an incompatible calling convention.
2126 :
2127 elif test $ac_prog = install &&
2128 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2129 # program-specific install script used by HP pwplus--don't use.
2130 :
2131 else
2132 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2133 break 3
2134 fi
2135 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002136 done
2137 done
2138 ;;
2139esac
2140done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002141IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002142
2143
2144fi
2145 if test "${ac_cv_path_install+set}" = set; then
2146 INSTALL=$ac_cv_path_install
2147 else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002148 # As a last resort, use the slow shell script. Don't cache a
2149 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +00002150 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +00002151 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +00002152 INSTALL=$ac_install_sh
2153 fi
2154fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002155{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2156echo "${ECHO_T}$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002157
2158# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2159# It thinks the first close brace ends the variable substitution.
2160test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2161
2162test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2163
2164test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2165
Lev Walkin27fd0b62007-08-27 23:57:45 +00002166{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2167echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002168# Just in case
2169sleep 1
2170echo timestamp > conftest.file
2171# Do `set' in a subshell so we don't clobber the current shell's
2172# arguments. Must try -L first in case configure is actually a
2173# symlink; some systems play weird games with the mod time of symlinks
2174# (eg FreeBSD returns the mod time of the symlink's containing
2175# directory).
2176if (
2177 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2178 if test "$*" = "X"; then
2179 # -L didn't work.
2180 set X `ls -t $srcdir/configure conftest.file`
2181 fi
2182 rm -f conftest.file
2183 if test "$*" != "X $srcdir/configure conftest.file" \
2184 && test "$*" != "X conftest.file $srcdir/configure"; then
2185
2186 # If neither matched, then we have a broken ls. This can happen
2187 # if, for instance, CONFIG_SHELL is bash and it inherits a
2188 # broken ls alias from the environment. This has actually
2189 # happened. Such a system could not be considered "sane".
2190 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2191alias in your environment" >&5
2192echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2193alias in your environment" >&2;}
2194 { (exit 1); exit 1; }; }
2195 fi
2196
2197 test "$2" = conftest.file
2198 )
2199then
2200 # Ok.
2201 :
2202else
2203 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2204Check your system clock" >&5
2205echo "$as_me: error: newly created file is older than distributed files!
2206Check your system clock" >&2;}
2207 { (exit 1); exit 1; }; }
2208fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002209{ echo "$as_me:$LINENO: result: yes" >&5
2210echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002211test "$program_prefix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002212 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002213# Use a double $ so make ignores it.
2214test "$program_suffix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002215 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002216# Double any \ or $. echo might interpret backslashes.
2217# By default was `s,x,x', remove it if useless.
2218cat <<\_ACEOF >conftest.sed
2219s/[\\$]/&&/g;s/;s,x,x,$//
2220_ACEOF
2221program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002222rm -f conftest.sed
Lev Walkinf15320b2004-06-03 03:38:44 +00002223
Lev Walkinf15320b2004-06-03 03:38:44 +00002224# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00002225am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00002226
2227test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2228# Use eval to expand $SHELL
2229if eval "$MISSING --run true"; then
2230 am_missing_run="$MISSING --run "
2231else
2232 am_missing_run=
Lev Walkin8e8b5482004-06-17 23:42:48 +00002233 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2234echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2235fi
2236
2237if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002238 # We used to keeping the `.' as first argument, in order to
2239 # allow $(mkdir_p) to be used without argument. As in
Lev Walkin8e8b5482004-06-17 23:42:48 +00002240 # $(mkdir_p) $(somedir)
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002241 # where $(somedir) is conditionally defined. However this is wrong
2242 # for two reasons:
2243 # 1. if the package is installed by a user who cannot write `.'
2244 # make install will fail,
2245 # 2. the above comment should most certainly read
2246 # $(mkdir_p) $(DESTDIR)$(somedir)
2247 # so it does not work when $(somedir) is undefined and
2248 # $(DESTDIR) is not.
2249 # To support the latter case, we have to write
2250 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2251 # so the `.' trick is pointless.
2252 mkdir_p='mkdir -p --'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002253else
2254 # On NextStep and OpenStep, the `mkdir' command does not
2255 # recognize any option. It will interpret all options as
2256 # directories to create, and then abort because `.' already
2257 # exists.
2258 for d in ./-p ./--version;
2259 do
2260 test -d $d && rmdir $d
2261 done
2262 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2263 if test -f "$ac_aux_dir/mkinstalldirs"; then
2264 mkdir_p='$(mkinstalldirs)'
2265 else
2266 mkdir_p='$(install_sh) -d'
2267 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002268fi
2269
2270for ac_prog in gawk mawk nawk awk
2271do
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002276if test "${ac_cv_prog_AWK+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 if test -n "$AWK"; then
2280 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2281else
2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002289 ac_cv_prog_AWK="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2292 fi
2293done
2294done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002295IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002296
2297fi
2298fi
2299AWK=$ac_cv_prog_AWK
2300if test -n "$AWK"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002301 { echo "$as_me:$LINENO: result: $AWK" >&5
2302echo "${ECHO_T}$AWK" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002303else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002304 { echo "$as_me:$LINENO: result: no" >&5
2305echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002306fi
2307
Lev Walkin27fd0b62007-08-27 23:57:45 +00002308
Lev Walkinf15320b2004-06-03 03:38:44 +00002309 test -n "$AWK" && break
2310done
2311
Lev Walkin27fd0b62007-08-27 23:57:45 +00002312{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2313echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2314set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2315if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00002319SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +00002320all:
Lev Walkin27fd0b62007-08-27 23:57:45 +00002321 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +00002322_ACEOF
2323# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002324case `${MAKE-make} -f conftest.make 2>/dev/null` in
2325 *@@@%%%=?*=@@@%%%*)
2326 eval ac_cv_prog_make_${ac_make}_set=yes;;
2327 *)
2328 eval ac_cv_prog_make_${ac_make}_set=no;;
2329esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002330rm -f conftest.make
2331fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002332if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2333 { echo "$as_me:$LINENO: result: yes" >&5
2334echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002335 SET_MAKE=
2336else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002337 { echo "$as_me:$LINENO: result: no" >&5
2338echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002339 SET_MAKE="MAKE=${MAKE-make}"
2340fi
2341
Lev Walkin8e8b5482004-06-17 23:42:48 +00002342rm -rf .tst 2>/dev/null
2343mkdir .tst 2>/dev/null
2344if test -d .tst; then
2345 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00002346else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002347 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00002348fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002349rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00002350
2351# test to see if srcdir already configured
Lev Walkin8e8b5482004-06-17 23:42:48 +00002352if test "`cd $srcdir && pwd`" != "`pwd`" &&
Lev Walkinf15320b2004-06-03 03:38:44 +00002353 test -f $srcdir/config.status; then
2354 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2355echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2356 { (exit 1); exit 1; }; }
2357fi
2358
Lev Walkin8e8b5482004-06-17 23:42:48 +00002359# test whether we have cygpath
2360if test -z "$CYGPATH_W"; then
2361 if (cygpath --version) >/dev/null 2>/dev/null; then
2362 CYGPATH_W='cygpath -w'
2363 else
2364 CYGPATH_W=echo
2365 fi
2366fi
2367
2368
Lev Walkinf15320b2004-06-03 03:38:44 +00002369# Define the identity of the package.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002370 PACKAGE=asn1c
Lev Walkine73dc672006-10-09 12:29:34 +00002371 VERSION=0.9.22
Lev Walkin8e8b5482004-06-17 23:42:48 +00002372
Lev Walkinf15320b2004-06-03 03:38:44 +00002373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE "$PACKAGE"
2376_ACEOF
2377
2378
2379cat >>confdefs.h <<_ACEOF
2380#define VERSION "$VERSION"
2381_ACEOF
2382
Lev Walkinf15320b2004-06-03 03:38:44 +00002383# Some tools Automake needs.
2384
Lev Walkin8e8b5482004-06-17 23:42:48 +00002385ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002386
2387
2388AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2389
2390
Lev Walkin8e8b5482004-06-17 23:42:48 +00002391AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002392
2393
2394AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2395
2396
2397MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2398
Lev Walkinf15320b2004-06-03 03:38:44 +00002399install_sh=${install_sh-"$am_aux_dir/install-sh"}
2400
Lev Walkin8e8b5482004-06-17 23:42:48 +00002401# Installed binaries are usually stripped using `strip' when the user
2402# run `make install-strip'. However `strip' might not be the right
2403# tool to use in cross-compilation environments, therefore Automake
2404# will honor the `STRIP' environment variable to overrule this program.
2405if test "$cross_compiling" != no; then
2406 if test -n "$ac_tool_prefix"; then
2407 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2408set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002411if test "${ac_cv_prog_STRIP+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413else
2414 if test -n "$STRIP"; then
2415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2416else
2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418for as_dir in $PATH
2419do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002424 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2427 fi
2428done
2429done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002430IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00002431
2432fi
2433fi
2434STRIP=$ac_cv_prog_STRIP
2435if test -n "$STRIP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002436 { echo "$as_me:$LINENO: result: $STRIP" >&5
2437echo "${ECHO_T}$STRIP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002438else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002439 { echo "$as_me:$LINENO: result: no" >&5
2440echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002441fi
2442
Lev Walkin27fd0b62007-08-27 23:57:45 +00002443
Lev Walkin8e8b5482004-06-17 23:42:48 +00002444fi
2445if test -z "$ac_cv_prog_STRIP"; then
2446 ac_ct_STRIP=$STRIP
2447 # Extract the first word of "strip", so it can be a program name with args.
2448set dummy strip; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002451if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453else
2454 if test -n "$ac_ct_STRIP"; then
2455 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2456else
2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002464 ac_cv_prog_ac_ct_STRIP="strip"
2465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2467 fi
2468done
2469done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002470IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00002471
Lev Walkin8e8b5482004-06-17 23:42:48 +00002472fi
2473fi
2474ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2475if test -n "$ac_ct_STRIP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002476 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2477echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002478else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002479 { echo "$as_me:$LINENO: result: no" >&5
2480echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002481fi
2482
Lev Walkin27fd0b62007-08-27 23:57:45 +00002483 if test "x$ac_ct_STRIP" = x; then
2484 STRIP=":"
2485 else
2486 case $cross_compiling:$ac_tool_warned in
2487yes:)
2488{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2489whose name does not start with the host triplet. If you think this
2490configuration is useful to you, please write to autoconf@gnu.org." >&5
2491echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2492whose name does not start with the host triplet. If you think this
2493configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2494ac_tool_warned=yes ;;
2495esac
2496 STRIP=$ac_ct_STRIP
2497 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002498else
2499 STRIP="$ac_cv_prog_STRIP"
2500fi
2501
2502fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002503INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2504
2505# We need awk for the "check" target. The system "awk" is bad on
2506# some platforms.
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002507# Always define AMTAR for backward compatibility.
2508
2509AMTAR=${AMTAR-"${am_missing_run}tar"}
2510
2511am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2512
2513
Lev Walkinf15320b2004-06-03 03:38:44 +00002514
2515
2516
2517
Lev Walkin27fd0b62007-08-27 23:57:45 +00002518{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2519echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2520 # Check whether --enable-maintainer-mode was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00002521if test "${enable_maintainer_mode+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002522 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Lev Walkinf15320b2004-06-03 03:38:44 +00002523else
2524 USE_MAINTAINER_MODE=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00002525fi
2526
2527 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2528echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002529
2530
2531if test $USE_MAINTAINER_MODE = yes; then
2532 MAINTAINER_MODE_TRUE=
2533 MAINTAINER_MODE_FALSE='#'
2534else
2535 MAINTAINER_MODE_TRUE='#'
2536 MAINTAINER_MODE_FALSE=
2537fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002538
Lev Walkinf15320b2004-06-03 03:38:44 +00002539 MAINT=$MAINTAINER_MODE_TRUE
2540
2541
2542
Lev Walkin27fd0b62007-08-27 23:57:45 +00002543# Check whether --enable-shared was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00002544if test "${enable_shared+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002545 enableval=$enable_shared; p=${PACKAGE-default}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002546 case $enableval in
2547 yes) enable_shared=yes ;;
2548 no) enable_shared=no ;;
2549 *)
2550 enable_shared=no
2551 # Look at the argument we got. We use all the common list separators.
2552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2553 for pkg in $enableval; do
2554 IFS="$lt_save_ifs"
2555 if test "X$pkg" = "X$p"; then
2556 enable_shared=yes
2557 fi
2558 done
2559 IFS="$lt_save_ifs"
2560 ;;
2561 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002562else
2563 enable_shared=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00002564fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002565
Lev Walkin27fd0b62007-08-27 23:57:45 +00002566
2567# Check whether --enable-static was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00002568if test "${enable_static+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002569 enableval=$enable_static; p=${PACKAGE-default}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002570 case $enableval in
2571 yes) enable_static=yes ;;
2572 no) enable_static=no ;;
2573 *)
2574 enable_static=no
2575 # Look at the argument we got. We use all the common list separators.
2576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2577 for pkg in $enableval; do
2578 IFS="$lt_save_ifs"
2579 if test "X$pkg" = "X$p"; then
2580 enable_static=yes
2581 fi
2582 done
2583 IFS="$lt_save_ifs"
2584 ;;
2585 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002586else
2587 enable_static=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00002588fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002589
Lev Walkin27fd0b62007-08-27 23:57:45 +00002590
2591# Check whether --enable-fast-install was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00002592if test "${enable_fast_install+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002593 enableval=$enable_fast_install; p=${PACKAGE-default}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002594 case $enableval in
2595 yes) enable_fast_install=yes ;;
2596 no) enable_fast_install=no ;;
2597 *)
2598 enable_fast_install=no
2599 # Look at the argument we got. We use all the common list separators.
2600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2601 for pkg in $enableval; do
2602 IFS="$lt_save_ifs"
2603 if test "X$pkg" = "X$p"; then
2604 enable_fast_install=yes
2605 fi
2606 done
2607 IFS="$lt_save_ifs"
2608 ;;
2609 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002610else
2611 enable_fast_install=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00002612fi
2613
Lev Walkinf15320b2004-06-03 03:38:44 +00002614
Lev Walkin8e8b5482004-06-17 23:42:48 +00002615DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002616
Lev Walkin27fd0b62007-08-27 23:57:45 +00002617ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002618
Lev Walkinf15320b2004-06-03 03:38:44 +00002619
2620am_make=${MAKE-make}
2621cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002622am__doit:
Lev Walkinf15320b2004-06-03 03:38:44 +00002623 @echo done
Lev Walkin8e8b5482004-06-17 23:42:48 +00002624.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002625END
2626# If we don't find an include directive, just comment out the code.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002627{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2628echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002629am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002630am__quote=
2631_am_result=none
2632# First try GNU make style include.
2633echo "include confinc" > confmf
2634# We grep out `Entering directory' and `Leaving directory'
2635# messages which can occur if `w' ends up in MAKEFLAGS.
2636# In particular we don't look at `^make:' because GNU make might
2637# be invoked under some other name (usually "gmake"), in which
2638# case it prints its new name instead of `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002639if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002640 am__include=include
2641 am__quote=
2642 _am_result=GNU
2643fi
2644# Now try BSD make style include.
2645if test "$am__include" = "#"; then
2646 echo '.include "confinc"' > confmf
2647 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2648 am__include=.include
Lev Walkin8e8b5482004-06-17 23:42:48 +00002649 am__quote="\""
Lev Walkinf15320b2004-06-03 03:38:44 +00002650 _am_result=BSD
2651 fi
2652fi
2653
2654
Lev Walkin27fd0b62007-08-27 23:57:45 +00002655{ echo "$as_me:$LINENO: result: $_am_result" >&5
2656echo "${ECHO_T}$_am_result" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002657rm -f confinc confmf
2658
Lev Walkin27fd0b62007-08-27 23:57:45 +00002659# Check whether --enable-dependency-tracking was given.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002660if test "${enable_dependency_tracking+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002661 enableval=$enable_dependency_tracking;
2662fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002663
Lev Walkin8e8b5482004-06-17 23:42:48 +00002664if test "x$enable_dependency_tracking" != xno; then
2665 am_depcomp="$ac_aux_dir/depcomp"
2666 AMDEPBACKSLASH='\'
2667fi
2668
2669
2670if test "x$enable_dependency_tracking" != xno; then
2671 AMDEP_TRUE=
2672 AMDEP_FALSE='#'
2673else
2674 AMDEP_TRUE='#'
2675 AMDEP_FALSE=
2676fi
2677
2678
2679
Lev Walkinf15320b2004-06-03 03:38:44 +00002680ac_ext=c
2681ac_cpp='$CPP $CPPFLAGS'
2682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685if test -n "$ac_tool_prefix"; then
2686 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2687set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002690if test "${ac_cv_prog_CC+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692else
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002703 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707done
2708done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002709IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002710
2711fi
2712fi
2713CC=$ac_cv_prog_CC
2714if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002715 { echo "$as_me:$LINENO: result: $CC" >&5
2716echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002717else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002718 { echo "$as_me:$LINENO: result: no" >&5
2719echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002720fi
2721
Lev Walkin27fd0b62007-08-27 23:57:45 +00002722
Lev Walkinf15320b2004-06-03 03:38:44 +00002723fi
2724if test -z "$ac_cv_prog_CC"; then
2725 ac_ct_CC=$CC
2726 # Extract the first word of "gcc", so it can be a program name with args.
2727set dummy gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002730if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
2733 if test -n "$ac_ct_CC"; then
2734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002743 ac_cv_prog_ac_ct_CC="gcc"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002749IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002750
2751fi
2752fi
2753ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002755 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002757else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002758 { echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002760fi
2761
Lev Walkin27fd0b62007-08-27 23:57:45 +00002762 if test "x$ac_ct_CC" = x; then
2763 CC=""
2764 else
2765 case $cross_compiling:$ac_tool_warned in
2766yes:)
2767{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2768whose name does not start with the host triplet. If you think this
2769configuration is useful to you, please write to autoconf@gnu.org." >&5
2770echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2771whose name does not start with the host triplet. If you think this
2772configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2773ac_tool_warned=yes ;;
2774esac
2775 CC=$ac_ct_CC
2776 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002777else
2778 CC="$ac_cv_prog_CC"
2779fi
2780
2781if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +00002784set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002787if test "${ac_cv_prog_CC+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002800 ac_cv_prog_CC="${ac_tool_prefix}cc"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002806IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002807
2808fi
2809fi
2810CC=$ac_cv_prog_CC
2811if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002812 { echo "$as_me:$LINENO: result: $CC" >&5
2813echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002814else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002815 { echo "$as_me:$LINENO: result: no" >&5
2816echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002817fi
2818
Lev Walkin27fd0b62007-08-27 23:57:45 +00002819
Lev Walkinf15320b2004-06-03 03:38:44 +00002820 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002821fi
2822if test -z "$CC"; then
2823 # Extract the first word of "cc", so it can be a program name with args.
2824set dummy cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002827if test "${ac_cv_prog_CC+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2832else
2833 ac_prog_rejected=no
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2842 ac_prog_rejected=yes
2843 continue
2844 fi
2845 ac_cv_prog_CC="cc"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849done
2850done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002851IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002852
2853if test $ac_prog_rejected = yes; then
2854 # We found a bogon in the path, so make sure we never use it.
2855 set dummy $ac_cv_prog_CC
2856 shift
2857 if test $# != 0; then
2858 # We chose a different compiler from the bogus one.
2859 # However, it has the same basename, so the bogon will be chosen
2860 # first if we set CC to just the basename; use the full file name.
2861 shift
2862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2863 fi
2864fi
2865fi
2866fi
2867CC=$ac_cv_prog_CC
2868if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002869 { echo "$as_me:$LINENO: result: $CC" >&5
2870echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002871else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002872 { echo "$as_me:$LINENO: result: no" >&5
2873echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002874fi
2875
Lev Walkin27fd0b62007-08-27 23:57:45 +00002876
Lev Walkinf15320b2004-06-03 03:38:44 +00002877fi
2878if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002880 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00002881 do
2882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002886if test "${ac_cv_prog_CC+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002905IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002906
2907fi
2908fi
2909CC=$ac_cv_prog_CC
2910if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002911 { echo "$as_me:$LINENO: result: $CC" >&5
2912echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002913else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002914 { echo "$as_me:$LINENO: result: no" >&5
2915echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002916fi
2917
Lev Walkin27fd0b62007-08-27 23:57:45 +00002918
Lev Walkinf15320b2004-06-03 03:38:44 +00002919 test -n "$CC" && break
2920 done
2921fi
2922if test -z "$CC"; then
2923 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +00002924 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00002925do
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002930if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932else
2933 if test -n "$ac_ct_CC"; then
2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2935else
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002943 ac_cv_prog_ac_ct_CC="$ac_prog"
2944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947done
2948done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002949IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002950
2951fi
2952fi
2953ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002955 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2956echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002957else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002958 { echo "$as_me:$LINENO: result: no" >&5
2959echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002960fi
2961
Lev Walkin27fd0b62007-08-27 23:57:45 +00002962
Lev Walkinf15320b2004-06-03 03:38:44 +00002963 test -n "$ac_ct_CC" && break
2964done
2965
Lev Walkin27fd0b62007-08-27 23:57:45 +00002966 if test "x$ac_ct_CC" = x; then
2967 CC=""
2968 else
2969 case $cross_compiling:$ac_tool_warned in
2970yes:)
2971{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2972whose name does not start with the host triplet. If you think this
2973configuration is useful to you, please write to autoconf@gnu.org." >&5
2974echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2975whose name does not start with the host triplet. If you think this
2976configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2977ac_tool_warned=yes ;;
2978esac
2979 CC=$ac_ct_CC
2980 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002981fi
2982
2983fi
2984
2985
2986test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2987See \`config.log' for more details." >&5
2988echo "$as_me: error: no acceptable C compiler found in \$PATH
2989See \`config.log' for more details." >&2;}
2990 { (exit 1); exit 1; }; }
2991
2992# Provide some information about the compiler.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002993echo "$as_me:$LINENO: checking for C compiler version" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002994ac_compiler=`set X $ac_compile; echo $2`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002995{ (ac_try="$ac_compiler --version >&5"
2996case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999esac
3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00003005{ (ac_try="$ac_compiler -v >&5"
3006case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009esac
3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00003015{ (ac_try="$ac_compiler -V >&5"
3016case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }
3025
3026cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003027/* confdefs.h. */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h. */
3032
3033int
3034main ()
3035{
3036
3037 ;
3038 return 0;
3039}
3040_ACEOF
3041ac_clean_files_save=$ac_clean_files
3042ac_clean_files="$ac_clean_files a.out a.exe b.out"
3043# Try to create an executable without -o first, disregard a.out.
3044# It will help us diagnose broken compilers, and finding out an intuition
3045# of exeext.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003046{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3047echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003048ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00003049#
3050# List of possible output files, starting from the most likely.
3051# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3052# only as a last resort. b.out is created by i960 compilers.
3053ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3054#
3055# The IRIX 6 linker writes into existing files which may not be
3056# executable, retaining their permissions. Remove them first so a
3057# subsequent execution test works.
3058ac_rmfiles=
3059for ac_file in $ac_files
3060do
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3063 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3064 esac
3065done
3066rm -f $ac_rmfiles
3067
3068if { (ac_try="$ac_link_default"
3069case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_link_default") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003078 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3079# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3080# in a Makefile. We should not override ac_cv_exeext if it was cached,
3081# so that the user can short-circuit this test for compilers unknown to
3082# Autoconf.
3083for ac_file in $ac_files
Lev Walkinf15320b2004-06-03 03:38:44 +00003084do
3085 test -f "$ac_file" || continue
3086 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00003087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003088 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003089 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003090 # We found the default executable, but exeext='' is most
3091 # certainly right.
3092 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003093 *.* )
Lev Walkin27fd0b62007-08-27 23:57:45 +00003094 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3095 then :; else
3096 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3097 fi
3098 # We set ac_cv_exeext here because the later test for it is not
3099 # safe: cross compilers may not add the suffix if given an `-o'
3100 # argument, so we may need to know it at that point already.
3101 # Even if this section looks crufty: it has the advantage of
3102 # actually working.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003103 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003104 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003105 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003106 esac
3107done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003108test "$ac_cv_exeext" = no && ac_cv_exeext=
3109
Lev Walkinf15320b2004-06-03 03:38:44 +00003110else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3115See \`config.log' for more details." >&5
3116echo "$as_me: error: C compiler cannot create executables
3117See \`config.log' for more details." >&2;}
3118 { (exit 77); exit 77; }; }
3119fi
3120
3121ac_exeext=$ac_cv_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003122{ echo "$as_me:$LINENO: result: $ac_file" >&5
3123echo "${ECHO_T}$ac_file" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003124
Lev Walkin27fd0b62007-08-27 23:57:45 +00003125# Check that the compiler produces executables we can run. If not, either
Lev Walkinf15320b2004-06-03 03:38:44 +00003126# the compiler is broken, or we cross compile.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003127{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3128echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003129# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3130# If not cross compiling, check that we can run a simple program.
3131if test "$cross_compiling" != yes; then
3132 if { ac_try='./$ac_file'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003133 { (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
Lev Walkinf15320b2004-06-03 03:38:44 +00003139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 cross_compiling=no
3143 else
3144 if test "$cross_compiling" = maybe; then
3145 cross_compiling=yes
3146 else
3147 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3148If you meant to cross compile, use \`--host'.
3149See \`config.log' for more details." >&5
3150echo "$as_me: error: cannot run C compiled programs.
3151If you meant to cross compile, use \`--host'.
3152See \`config.log' for more details." >&2;}
3153 { (exit 1); exit 1; }; }
3154 fi
3155 fi
3156fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003157{ echo "$as_me:$LINENO: result: yes" >&5
3158echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003159
3160rm -f a.out a.exe conftest$ac_cv_exeext b.out
3161ac_clean_files=$ac_clean_files_save
Lev Walkin27fd0b62007-08-27 23:57:45 +00003162# Check that the compiler produces executables we can run. If not, either
Lev Walkinf15320b2004-06-03 03:38:44 +00003163# the compiler is broken, or we cross compile.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003164{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3165echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3166{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3167echo "${ECHO_T}$cross_compiling" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003168
Lev Walkin27fd0b62007-08-27 23:57:45 +00003169{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3170echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3171if { (ac_try="$ac_link"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; then
3181 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3182# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3183# work properly (i.e., refer to `conftest.exe'), while it won't with
3184# `rm'.
3185for ac_file in conftest.exe conftest conftest.*; do
3186 test -f "$ac_file" || continue
3187 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00003188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003189 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00003190 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003191 * ) break;;
3192 esac
3193done
3194else
3195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3196See \`config.log' for more details." >&5
3197echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3198See \`config.log' for more details." >&2;}
3199 { (exit 1); exit 1; }; }
3200fi
3201
3202rm -f conftest$ac_cv_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003203{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3204echo "${ECHO_T}$ac_cv_exeext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003205
3206rm -f conftest.$ac_ext
3207EXEEXT=$ac_cv_exeext
3208ac_exeext=$EXEEXT
Lev Walkin27fd0b62007-08-27 23:57:45 +00003209{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3210echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003211if test "${ac_cv_objext+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
3214 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220
3221int
3222main ()
3223{
3224
3225 ;
3226 return 0;
3227}
3228_ACEOF
3229rm -f conftest.o conftest.obj
Lev Walkin27fd0b62007-08-27 23:57:45 +00003230if { (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>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003240 for ac_file in conftest.o conftest.obj conftest.*; do
3241 test -f "$ac_file" || continue;
Lev Walkinf15320b2004-06-03 03:38:44 +00003242 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00003243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003244 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3245 break;;
3246 esac
3247done
3248else
3249 echo "$as_me: failed program was:" >&5
3250sed 's/^/| /' conftest.$ac_ext >&5
3251
3252{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3253See \`config.log' for more details." >&5
3254echo "$as_me: error: cannot compute suffix of object files: cannot compile
3255See \`config.log' for more details." >&2;}
3256 { (exit 1); exit 1; }; }
3257fi
3258
3259rm -f conftest.$ac_cv_objext conftest.$ac_ext
3260fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003261{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3262echo "${ECHO_T}$ac_cv_objext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003263OBJEXT=$ac_cv_objext
3264ac_objext=$OBJEXT
Lev Walkin27fd0b62007-08-27 23:57:45 +00003265{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3266echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003267if test "${ac_cv_c_compiler_gnu+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003271/* confdefs.h. */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h. */
3276
3277int
3278main ()
3279{
3280#ifndef __GNUC__
3281 choke me
3282#endif
3283
3284 ;
3285 return 0;
3286}
3287_ACEOF
3288rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003289if { (ac_try="$ac_compile"
3290case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293esac
3294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003296 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003297 grep -v '^ *+' conftest.er1 >conftest.err
3298 rm -f conftest.er1
3299 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00003302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3303 { (case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306esac
3307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; } &&
3312 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003313 { (case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
3317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_compiler_gnu=yes
3323else
3324 echo "$as_me: failed program was:" >&5
3325sed 's/^/| /' conftest.$ac_ext >&5
3326
Lev Walkin27fd0b62007-08-27 23:57:45 +00003327 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003328fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003329
3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003331ac_cv_c_compiler_gnu=$ac_compiler_gnu
3332
3333fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003334{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3335echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003336GCC=`test $ac_compiler_gnu = yes && echo yes`
3337ac_test_CFLAGS=${CFLAGS+set}
3338ac_save_CFLAGS=$CFLAGS
Lev Walkin27fd0b62007-08-27 23:57:45 +00003339{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3340echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003341if test "${ac_cv_prog_cc_g+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003344 ac_save_c_werror_flag=$ac_c_werror_flag
3345 ac_c_werror_flag=yes
3346 ac_cv_prog_cc_g=no
3347 CFLAGS="-g"
3348 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354
3355int
3356main ()
3357{
3358
3359 ;
3360 return 0;
3361}
3362_ACEOF
3363rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003364if { (ac_try="$ac_compile"
3365case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
3369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003371 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00003377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3378 { (case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
3382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; } &&
3387 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003388 { (case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3397 ac_cv_prog_cc_g=yes
3398else
3399 echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
Lev Walkin27fd0b62007-08-27 23:57:45 +00003402 CFLAGS=""
3403 cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h. */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h. */
3409
3410int
3411main ()
3412{
3413
3414 ;
3415 return 0;
3416}
3417_ACEOF
3418rm -f conftest.$ac_objext
3419if { (ac_try="$ac_compile"
3420case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423esac
3424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_compile") 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3433 { (case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_try") 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446esac
3447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_try") 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3452 :
3453else
3454 echo "$as_me: failed program was:" >&5
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3458 CFLAGS="-g"
3459 cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
3465
3466int
3467main ()
3468{
3469
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (ac_try="$ac_compile"
3476case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479esac
3480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_compile") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3489 { (case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_try") 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; } &&
3498 { ac_try='test -s conftest.$ac_objext'
3499 { (case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502esac
3503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_try") 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 ac_cv_prog_cc_g=yes
3509else
3510 echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513
Lev Walkinf15320b2004-06-03 03:38:44 +00003514fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003515
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003517fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003518
3519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520fi
3521
3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3524fi
3525{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3526echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003527if test "$ac_test_CFLAGS" = set; then
3528 CFLAGS=$ac_save_CFLAGS
3529elif test $ac_cv_prog_cc_g = yes; then
3530 if test "$GCC" = yes; then
3531 CFLAGS="-g -O2"
3532 else
3533 CFLAGS="-g"
3534 fi
3535else
3536 if test "$GCC" = yes; then
3537 CFLAGS="-O2"
3538 else
3539 CFLAGS=
3540 fi
3541fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003542{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3543echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3544if test "${ac_cv_prog_cc_c89+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003547 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003548ac_save_CC=$CC
3549cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003550/* confdefs.h. */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h. */
3555#include <stdarg.h>
3556#include <stdio.h>
3557#include <sys/types.h>
3558#include <sys/stat.h>
3559/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3560struct buf { int x; };
3561FILE * (*rcsopen) (struct buf *, struct stat *, int);
3562static char *e (p, i)
3563 char **p;
3564 int i;
3565{
3566 return p[i];
3567}
3568static char *f (char * (*g) (char **, int), char **p, ...)
3569{
3570 char *s;
3571 va_list v;
3572 va_start (v,p);
3573 s = g (p, va_arg (v,int));
3574 va_end (v);
3575 return s;
3576}
Lev Walkin8e8b5482004-06-17 23:42:48 +00003577
3578/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3579 function prototypes and stuff, but not '\xHH' hex character constants.
3580 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +00003581 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +00003582 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3583 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +00003584 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00003585int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3586
Lev Walkin27fd0b62007-08-27 23:57:45 +00003587/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3588 inside strings and character constants. */
3589#define FOO(x) 'x'
3590int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3591
Lev Walkinf15320b2004-06-03 03:38:44 +00003592int test (int i, double x);
3593struct s1 {int (*f) (int a);};
3594struct s2 {int (*f) (double a);};
3595int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3596int argc;
3597char **argv;
3598int
3599main ()
3600{
3601return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3602 ;
3603 return 0;
3604}
3605_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00003606for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3607 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +00003608do
3609 CC="$ac_save_CC $ac_arg"
3610 rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003611if { (ac_try="$ac_compile"
3612case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615esac
3616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003618 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00003624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3625 { (case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628esac
3629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003635 { (case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638esac
3639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003644 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +00003645else
3646 echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
Lev Walkin27fd0b62007-08-27 23:57:45 +00003649
Lev Walkinf15320b2004-06-03 03:38:44 +00003650fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003651
3652rm -f core conftest.err conftest.$ac_objext
3653 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +00003654done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003655rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003656CC=$ac_save_CC
3657
3658fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003659# AC_CACHE_VAL
3660case "x$ac_cv_prog_cc_c89" in
3661 x)
3662 { echo "$as_me:$LINENO: result: none needed" >&5
3663echo "${ECHO_T}none needed" >&6; } ;;
3664 xno)
3665 { echo "$as_me:$LINENO: result: unsupported" >&5
3666echo "${ECHO_T}unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003667 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00003668 CC="$CC $ac_cv_prog_cc_c89"
3669 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3670echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003671esac
3672
Lev Walkinf15320b2004-06-03 03:38:44 +00003673
Lev Walkinf15320b2004-06-03 03:38:44 +00003674ac_ext=c
3675ac_cpp='$CPP $CPPFLAGS'
3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679
3680depcc="$CC" am_compiler_list=
3681
Lev Walkin27fd0b62007-08-27 23:57:45 +00003682{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3683echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003684if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
3687 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3688 # We make a subdir and do the tests there. Otherwise we can end up
3689 # making bogus files that we don't know about and never remove. For
3690 # instance it was reported that on HP-UX the gcc test will end up
3691 # making a dummy file named `D' -- because `-MD' means `put the output
3692 # in D'.
3693 mkdir conftest.dir
3694 # Copy depcomp to subdir because otherwise we won't find it if we're
3695 # using a relative directory.
3696 cp "$am_depcomp" conftest.dir
3697 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003698 # We will build objects and dependencies in a subdirectory because
3699 # it helps to detect inapplicable dependency modes. For instance
3700 # both Tru64's cc and ICC support -MD to output dependencies as a
3701 # side effect of compilation, but ICC will put the dependencies in
3702 # the current directory while Tru64 will put them in the object
3703 # directory.
3704 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003705
3706 am_cv_CC_dependencies_compiler_type=none
3707 if test "$am_compiler_list" = ""; then
3708 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3709 fi
3710 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003711 # Setup a source with many dependencies, because some compilers
3712 # like to wrap large dependency lists on column 80 (with \), and
3713 # we should not choose a depcomp mode which is confused by this.
3714 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003715 # We need to recreate these files for each test, as the compiler may
3716 # overwrite some of them when testing with obscure command lines.
3717 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003718 : > sub/conftest.c
3719 for i in 1 2 3 4 5 6; do
3720 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3721 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3722 # Solaris 8's {/usr,}/bin/sh.
3723 touch sub/conftst$i.h
3724 done
3725 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003726
3727 case $depmode in
3728 nosideeffect)
3729 # after this tag, mechanisms are not by side-effect, so they'll
3730 # only be used when explicitly requested
3731 if test "x$enable_dependency_tracking" = xyes; then
3732 continue
3733 else
3734 break
3735 fi
3736 ;;
3737 none) break ;;
3738 esac
3739 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3740 # mode. It turns out that the SunPro C++ compiler does not properly
3741 # handle `-M -o', and we need to detect this.
3742 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003743 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3745 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3746 >/dev/null 2>conftest.err &&
3747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3748 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003750 # icc doesn't choke on unknown options, it will just issue warnings
3751 # or remarks (even with -Werror). So we grep stderr for any message
3752 # that says an option was ignored or not supported.
3753 # When given -MP, icc 7.0 and 7.1 complain thusly:
3754 # icc: Command line warning: ignoring option '-M'; no argument required
3755 # The diagnosis changed in icc 8.0:
3756 # icc: Command line remark: option '-MP' not supported
3757 if (grep 'ignoring option' conftest.err ||
3758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3759 am_cv_CC_dependencies_compiler_type=$depmode
3760 break
3761 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003762 fi
3763 done
3764
3765 cd ..
3766 rm -rf conftest.dir
3767else
3768 am_cv_CC_dependencies_compiler_type=none
3769fi
3770
3771fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003772{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3773echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003774CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3775
3776
3777
3778if
3779 test "x$enable_dependency_tracking" != xno \
3780 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3781 am__fastdepCC_TRUE=
3782 am__fastdepCC_FALSE='#'
3783else
3784 am__fastdepCC_TRUE='#'
3785 am__fastdepCC_FALSE=
3786fi
3787
3788
Lev Walkin27fd0b62007-08-27 23:57:45 +00003789{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3790echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003791if test "${lt_cv_path_SED+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 # Loop through the user's path and test for sed and gsed.
3795# Then use that list of sed's as ones to test for truncation.
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for lt_ac_prog in sed gsed; do
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3804 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3805 fi
3806 done
3807 done
3808done
3809lt_ac_max=0
3810lt_ac_count=0
3811# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3812# along with /bin/sed that truncates output.
3813for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3814 test ! -f $lt_ac_sed && break
3815 cat /dev/null > conftest.in
3816 lt_ac_count=0
3817 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3818 # Check for GNU sed and select it if it is found.
3819 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3820 lt_cv_path_SED=$lt_ac_sed
3821 break
3822 fi
3823 while true; do
3824 cat conftest.in conftest.in >conftest.tmp
3825 mv conftest.tmp conftest.in
3826 cp conftest.in conftest.nl
3827 echo >>conftest.nl
3828 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3829 cmp -s conftest.out conftest.nl || break
3830 # 10000 chars as input seems more than enough
3831 test $lt_ac_count -gt 10 && break
3832 lt_ac_count=`expr $lt_ac_count + 1`
3833 if test $lt_ac_count -gt $lt_ac_max; then
3834 lt_ac_max=$lt_ac_count
3835 lt_cv_path_SED=$lt_ac_sed
3836 fi
3837 done
3838done
3839SED=$lt_cv_path_SED
3840
3841fi
3842
Lev Walkin27fd0b62007-08-27 23:57:45 +00003843{ echo "$as_me:$LINENO: result: $SED" >&5
3844echo "${ECHO_T}$SED" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003845
Lev Walkin27fd0b62007-08-27 23:57:45 +00003846{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3847echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3848if test "${ac_cv_path_GREP+set}" = set; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003851 # Extract the first word of "grep ggrep" to use in msg output
3852if test -z "$GREP"; then
3853set dummy grep ggrep; ac_prog_name=$2
3854if test "${ac_cv_path_GREP+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857 ac_path_GREP_found=false
3858# Loop through the user's path and test for each of PROGNAME-LIST
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_prog in grep ggrep; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3867 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3868 # Check for GNU ac_path_GREP and select it if it is found.
3869 # Check for GNU $ac_path_GREP
3870case `"$ac_path_GREP" --version 2>&1` in
3871*GNU*)
3872 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3873*)
3874 ac_count=0
3875 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3876 while :
3877 do
3878 cat "conftest.in" "conftest.in" >"conftest.tmp"
3879 mv "conftest.tmp" "conftest.in"
3880 cp "conftest.in" "conftest.nl"
3881 echo 'GREP' >> "conftest.nl"
3882 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3884 ac_count=`expr $ac_count + 1`
3885 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3886 # Best one so far, save it but keep looking for a better one
3887 ac_cv_path_GREP="$ac_path_GREP"
3888 ac_path_GREP_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003889 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003890 # 10*(2^10) chars as input seems more than enough
3891 test $ac_count -gt 10 && break
3892 done
3893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3894esac
3895
3896
3897 $ac_path_GREP_found && break 3
3898 done
3899done
3900
3901done
3902IFS=$as_save_IFS
3903
3904
Lev Walkin8e8b5482004-06-17 23:42:48 +00003905fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003906
3907GREP="$ac_cv_path_GREP"
3908if test -z "$GREP"; then
3909 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3910echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3911 { (exit 1); exit 1; }; }
3912fi
3913
3914else
3915 ac_cv_path_GREP=$GREP
3916fi
3917
3918
3919fi
3920{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3921echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3922 GREP="$ac_cv_path_GREP"
3923
3924
3925{ echo "$as_me:$LINENO: checking for egrep" >&5
3926echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3927if test "${ac_cv_path_EGREP+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3931 then ac_cv_path_EGREP="$GREP -E"
3932 else
3933 # Extract the first word of "egrep" to use in msg output
3934if test -z "$EGREP"; then
3935set dummy egrep; ac_prog_name=$2
3936if test "${ac_cv_path_EGREP+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939 ac_path_EGREP_found=false
3940# Loop through the user's path and test for each of PROGNAME-LIST
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_prog in egrep; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3949 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3950 # Check for GNU ac_path_EGREP and select it if it is found.
3951 # Check for GNU $ac_path_EGREP
3952case `"$ac_path_EGREP" --version 2>&1` in
3953*GNU*)
3954 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3955*)
3956 ac_count=0
3957 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3958 while :
3959 do
3960 cat "conftest.in" "conftest.in" >"conftest.tmp"
3961 mv "conftest.tmp" "conftest.in"
3962 cp "conftest.in" "conftest.nl"
3963 echo 'EGREP' >> "conftest.nl"
3964 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3966 ac_count=`expr $ac_count + 1`
3967 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3968 # Best one so far, save it but keep looking for a better one
3969 ac_cv_path_EGREP="$ac_path_EGREP"
3970 ac_path_EGREP_max=$ac_count
3971 fi
3972 # 10*(2^10) chars as input seems more than enough
3973 test $ac_count -gt 10 && break
3974 done
3975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3976esac
3977
3978
3979 $ac_path_EGREP_found && break 3
3980 done
3981done
3982
3983done
3984IFS=$as_save_IFS
3985
3986
3987fi
3988
3989EGREP="$ac_cv_path_EGREP"
3990if test -z "$EGREP"; then
3991 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3992echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3993 { (exit 1); exit 1; }; }
3994fi
3995
3996else
3997 ac_cv_path_EGREP=$EGREP
3998fi
3999
4000
4001 fi
4002fi
4003{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4004echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4005 EGREP="$ac_cv_path_EGREP"
Lev Walkinf15320b2004-06-03 03:38:44 +00004006
4007
4008
Lev Walkin27fd0b62007-08-27 23:57:45 +00004009# Check whether --with-gnu-ld was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00004010if test "${with_gnu_ld+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004011 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00004012else
4013 with_gnu_ld=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00004014fi
4015
Lev Walkinf15320b2004-06-03 03:38:44 +00004016ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00004017if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004018 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004019 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4020echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004021 case $host in
4022 *-*-mingw*)
4023 # gcc leaves a trailing carriage return which upsets mingw
4024 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4025 *)
4026 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4027 esac
4028 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00004029 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004030 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004031 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004032 # Canonicalize the pathname of ld
4033 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
Lev Walkinf15320b2004-06-03 03:38:44 +00004034 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004035 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00004036 done
4037 test -z "$LD" && LD="$ac_prog"
4038 ;;
4039 "")
4040 # If it fails, then pretend we aren't using GCC.
4041 ac_prog=ld
4042 ;;
4043 *)
4044 # If it is relative, then search for the first ld in PATH.
4045 with_gnu_ld=unknown
4046 ;;
4047 esac
4048elif test "$with_gnu_ld" = yes; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004049 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4050echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004051else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004052 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4053echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004054fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00004055if test "${lt_cv_path_LD+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00004060 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004061 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004062 test -z "$ac_dir" && ac_dir=.
4063 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004064 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00004065 # Check to see if the program is GNU ld. I'd rather use --version,
4066 # but apparently some GNU ld's only accept -v.
4067 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004068 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4069 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004070 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004071 ;;
4072 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00004073 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004074 ;;
4075 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004076 fi
4077 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004078 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004079else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004080 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00004081fi
4082fi
4083
Lev Walkin8e8b5482004-06-17 23:42:48 +00004084LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00004085if test -n "$LD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004086 { echo "$as_me:$LINENO: result: $LD" >&5
4087echo "${ECHO_T}$LD" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004088else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004089 { echo "$as_me:$LINENO: result: no" >&5
4090echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004091fi
4092test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4093echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4094 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004095{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4096echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004097if test "${lt_cv_prog_gnu_ld+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099else
4100 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004101case `$LD -v 2>&1 </dev/null` in
4102*GNU* | *'with BFD'*)
4103 lt_cv_prog_gnu_ld=yes
4104 ;;
4105*)
4106 lt_cv_prog_gnu_ld=no
4107 ;;
4108esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004109fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004110{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4111echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004112with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00004113
4114
Lev Walkin27fd0b62007-08-27 23:57:45 +00004115{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4116echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004117if test "${lt_cv_ld_reload_flag+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 lt_cv_ld_reload_flag='-r'
4121fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004122{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4123echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004124reload_flag=$lt_cv_ld_reload_flag
4125case $reload_flag in
4126"" | " "*) ;;
4127*) reload_flag=" $reload_flag" ;;
4128esac
4129reload_cmds='$LD$reload_flag -o $output$reload_objs'
4130
Lev Walkin27fd0b62007-08-27 23:57:45 +00004131{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4132echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004133if test "${lt_cv_path_NM+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136 if test -n "$NM"; then
4137 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004138 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00004139else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00004141 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004142 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004143 test -z "$ac_dir" && ac_dir=.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004144 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4145 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004146 # Check to see if the nm accepts a BSD-compat flag.
4147 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4148 # nm: unknown option "B" ignored
Lev Walkin8e8b5482004-06-17 23:42:48 +00004149 # Tru64's nm complains that /dev/null is an invalid object file
4150 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4151 */dev/null* | *'Invalid file or object type'*)
4152 lt_cv_path_NM="$tmp_nm -B"
Lev Walkinf15320b2004-06-03 03:38:44 +00004153 break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004154 ;;
4155 *)
4156 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4157 */dev/null*)
4158 lt_cv_path_NM="$tmp_nm -p"
4159 break
4160 ;;
4161 *)
4162 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4163 continue # so that we can try to find one that supports BSD flags
4164 ;;
4165 esac
4166 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004167 fi
4168 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004169 IFS="$lt_save_ifs"
4170 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
Lev Walkinf15320b2004-06-03 03:38:44 +00004171fi
4172fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004173{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4174echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004175NM="$lt_cv_path_NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00004176
Lev Walkin27fd0b62007-08-27 23:57:45 +00004177{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4178echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004179LN_S=$as_ln_s
4180if test "$LN_S" = "ln -s"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004181 { echo "$as_me:$LINENO: result: yes" >&5
4182echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004183else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004184 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4185echo "${ECHO_T}no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004186fi
4187
Lev Walkin27fd0b62007-08-27 23:57:45 +00004188{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4189echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004190if test "${lt_cv_deplibs_check_method+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192else
4193 lt_cv_file_magic_cmd='$MAGIC_CMD'
4194lt_cv_file_magic_test_file=
4195lt_cv_deplibs_check_method='unknown'
4196# Need to set the preceding variable on all platforms that support
4197# interlibrary dependencies.
4198# 'none' -- dependencies not supported.
4199# `unknown' -- same as none, but documents that we really don't know.
4200# 'pass_all' -- all dependencies passed with no checks.
4201# 'test_compile' -- check by making test program.
4202# 'file_magic [[regex]]' -- check by looking for files in library path
4203# which responds to the $file_magic_cmd with a given extended regex.
4204# If you have `file' or equivalent on your system and you're not sure
4205# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00004206
Lev Walkin8e8b5482004-06-17 23:42:48 +00004207case $host_os in
4208aix4* | aix5*)
4209 lt_cv_deplibs_check_method=pass_all
4210 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004211
Lev Walkin8e8b5482004-06-17 23:42:48 +00004212beos*)
4213 lt_cv_deplibs_check_method=pass_all
4214 ;;
4215
4216bsdi4*)
4217 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4218 lt_cv_file_magic_cmd='/usr/bin/file -L'
4219 lt_cv_file_magic_test_file=/shlib/libc.so
4220 ;;
4221
4222cygwin*)
4223 # func_win32_libid is a shell function defined in ltmain.sh
4224 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4225 lt_cv_file_magic_cmd='func_win32_libid'
4226 ;;
4227
4228mingw* | pw32*)
4229 # Base MSYS/MinGW do not provide the 'file' command needed by
4230 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4231 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4232 lt_cv_file_magic_cmd='$OBJDUMP -f'
4233 ;;
4234
4235darwin* | rhapsody*)
4236 lt_cv_deplibs_check_method=pass_all
4237 ;;
4238
4239freebsd* | kfreebsd*-gnu)
4240 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4241 case $host_cpu in
4242 i*86 )
4243 # Not sure whether the presence of OpenBSD here was a mistake.
4244 # Let's accept both of them until this is cleared up.
4245 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4246 lt_cv_file_magic_cmd=/usr/bin/file
4247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4248 ;;
4249 esac
4250 else
4251 lt_cv_deplibs_check_method=pass_all
4252 fi
4253 ;;
4254
4255gnu*)
4256 lt_cv_deplibs_check_method=pass_all
4257 ;;
4258
4259hpux10.20* | hpux11*)
4260 lt_cv_file_magic_cmd=/usr/bin/file
4261 case "$host_cpu" in
4262 ia64*)
4263 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4264 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4265 ;;
4266 hppa*64*)
4267 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]'
4268 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4269 ;;
4270 *)
4271 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4272 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4273 ;;
4274 esac
4275 ;;
4276
4277irix5* | irix6* | nonstopux*)
4278 case $LD in
4279 *-32|*"-32 ") libmagic=32-bit;;
4280 *-n32|*"-n32 ") libmagic=N32;;
4281 *-64|*"-64 ") libmagic=64-bit;;
4282 *) libmagic=never-match;;
4283 esac
4284 lt_cv_deplibs_check_method=pass_all
4285 ;;
4286
4287# This must be Linux ELF.
4288linux*)
4289 case $host_cpu in
4290 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
4291 lt_cv_deplibs_check_method=pass_all ;;
4292 *)
4293 # glibc up to 2.1.1 does not perform some relocations on ARM
4294 # this will be overridden with pass_all, but let us keep it just in case
4295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4296 esac
4297 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4298 lt_cv_deplibs_check_method=pass_all
4299 ;;
4300
4301netbsd*)
4302 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4304 else
4305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4306 fi
4307 ;;
4308
4309newos6*)
4310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4311 lt_cv_file_magic_cmd=/usr/bin/file
4312 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4313 ;;
4314
4315nto-qnx*)
4316 lt_cv_deplibs_check_method=unknown
4317 ;;
4318
4319openbsd*)
4320 lt_cv_file_magic_cmd=/usr/bin/file
4321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4324 else
4325 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4326 fi
4327 ;;
4328
4329osf3* | osf4* | osf5*)
4330 lt_cv_deplibs_check_method=pass_all
4331 ;;
4332
4333sco3.2v5*)
4334 lt_cv_deplibs_check_method=pass_all
4335 ;;
4336
4337solaris*)
4338 lt_cv_deplibs_check_method=pass_all
4339 ;;
4340
4341sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4342 case $host_vendor in
4343 motorola)
4344 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]'
4345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4346 ;;
4347 ncr)
4348 lt_cv_deplibs_check_method=pass_all
4349 ;;
4350 sequent)
4351 lt_cv_file_magic_cmd='/bin/file'
4352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4353 ;;
4354 sni)
4355 lt_cv_file_magic_cmd='/bin/file'
4356 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4357 lt_cv_file_magic_test_file=/lib/libc.so
4358 ;;
4359 siemens)
4360 lt_cv_deplibs_check_method=pass_all
4361 ;;
4362 esac
4363 ;;
4364
4365sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004368esac
4369
Lev Walkin8e8b5482004-06-17 23:42:48 +00004370fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004371{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4372echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004373file_magic_cmd=$lt_cv_file_magic_cmd
4374deplibs_check_method=$lt_cv_deplibs_check_method
4375test -z "$deplibs_check_method" && deplibs_check_method=unknown
4376
4377
4378
4379
4380# If no C compiler was specified, use CC.
4381LTCC=${LTCC-"$CC"}
4382
4383# Allow CC to be a program name with arguments.
4384compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00004385
4386
Lev Walkin27fd0b62007-08-27 23:57:45 +00004387# Check whether --enable-libtool-lock was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00004388if test "${enable_libtool_lock+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004389 enableval=$enable_libtool_lock;
4390fi
Lev Walkinf15320b2004-06-03 03:38:44 +00004391
Lev Walkin8e8b5482004-06-17 23:42:48 +00004392test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00004393
4394# Some flags need to be propagated to the compiler or linker for good
4395# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004396case $host in
4397ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004398 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004399 echo 'int i;' > conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00004400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004405 case `/usr/bin/file conftest.$ac_objext` in
4406 *ELF-32*)
4407 HPUX_IA64_MODE="32"
4408 ;;
4409 *ELF-64*)
4410 HPUX_IA64_MODE="64"
4411 ;;
4412 esac
4413 fi
4414 rm -rf conftest*
4415 ;;
4416*-*-irix6*)
4417 # Find out which ABI we are using.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004418 echo '#line 4418 "configure"' > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00004419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; then
4424 if test "$lt_cv_prog_gnu_ld" = yes; then
4425 case `/usr/bin/file conftest.$ac_objext` in
4426 *32-bit*)
4427 LD="${LD-ld} -melf32bsmip"
4428 ;;
4429 *N32*)
4430 LD="${LD-ld} -melf32bmipn32"
4431 ;;
4432 *64-bit*)
4433 LD="${LD-ld} -melf64bmip"
4434 ;;
4435 esac
4436 else
4437 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkinf15320b2004-06-03 03:38:44 +00004438 *32-bit*)
4439 LD="${LD-ld} -32"
4440 ;;
4441 *N32*)
4442 LD="${LD-ld} -n32"
4443 ;;
4444 *64-bit*)
4445 LD="${LD-ld} -64"
4446 ;;
4447 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00004448 fi
4449 fi
4450 rm -rf conftest*
4451 ;;
4452
4453x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4454 # Find out which ABI we are using.
4455 echo 'int i;' > conftest.$ac_ext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; then
4461 case "`/usr/bin/file conftest.o`" in
4462 *32-bit*)
4463 case $host in
4464 x86_64-*linux*)
4465 LD="${LD-ld} -m elf_i386"
4466 ;;
4467 ppc64-*linux*|powerpc64-*linux*)
4468 LD="${LD-ld} -m elf32ppclinux"
4469 ;;
4470 s390x-*linux*)
4471 LD="${LD-ld} -m elf_s390"
4472 ;;
4473 sparc64-*linux*)
4474 LD="${LD-ld} -m elf32_sparc"
4475 ;;
4476 esac
4477 ;;
4478 *64-bit*)
4479 case $host in
4480 x86_64-*linux*)
4481 LD="${LD-ld} -m elf_x86_64"
4482 ;;
4483 ppc*-*linux*|powerpc*-*linux*)
4484 LD="${LD-ld} -m elf64ppc"
4485 ;;
4486 s390*-*linux*)
4487 LD="${LD-ld} -m elf64_s390"
4488 ;;
4489 sparc*-*linux*)
4490 LD="${LD-ld} -m elf64_sparc"
4491 ;;
4492 esac
4493 ;;
4494 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004495 fi
4496 rm -rf conftest*
4497 ;;
4498
4499*-*-sco3.2v5*)
4500 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4501 SAVE_CFLAGS="$CFLAGS"
4502 CFLAGS="$CFLAGS -belf"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004503 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4504echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004505if test "${lt_cv_cc_needs_belf+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004508 ac_ext=c
4509ac_cpp='$CPP $CPPFLAGS'
4510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513
4514 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00004515/* confdefs.h. */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h. */
4520
4521int
4522main ()
4523{
4524
4525 ;
4526 return 0;
4527}
4528_ACEOF
4529rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00004530if { (ac_try="$ac_link"
4531case "(($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_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00004537 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00004538 grep -v '^ *+' conftest.er1 >conftest.err
4539 rm -f conftest.er1
4540 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00004541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00004543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4544 { (case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547esac
4548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00004550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00004554 { (case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00004560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 lt_cv_cc_needs_belf=yes
4564else
4565 echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
Lev Walkin27fd0b62007-08-27 23:57:45 +00004568 lt_cv_cc_needs_belf=no
Lev Walkinf15320b2004-06-03 03:38:44 +00004569fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004570
4571rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00004572 conftest$ac_exeext conftest.$ac_ext
4573 ac_ext=c
4574ac_cpp='$CPP $CPPFLAGS'
4575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578
Lev Walkinf15320b2004-06-03 03:38:44 +00004579fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004580{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4581echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004582 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4583 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4584 CFLAGS="$SAVE_CFLAGS"
4585 fi
4586 ;;
4587
Lev Walkinf15320b2004-06-03 03:38:44 +00004588esac
4589
Lev Walkin8e8b5482004-06-17 23:42:48 +00004590need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00004591
Lev Walkinf15320b2004-06-03 03:38:44 +00004592
Lev Walkin8e8b5482004-06-17 23:42:48 +00004593ac_ext=c
4594ac_cpp='$CPP $CPPFLAGS'
4595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkin27fd0b62007-08-27 23:57:45 +00004598{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4599echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004600# On Suns, sometimes $CPP names a directory.
4601if test -n "$CPP" && test -d "$CPP"; then
4602 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00004603fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00004604if test -z "$CPP"; then
4605 if test "${ac_cv_prog_CPP+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608 # Double quotes because CPP needs to be expanded
4609 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4610 do
4611 ac_preproc_ok=false
4612for ac_c_preproc_warn_flag in '' yes
4613do
4614 # Use a header file that comes with gcc, so configuring glibc
4615 # with a fresh cross-compiler works.
4616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4617 # <limits.h> exists even on freestanding compilers.
4618 # On the NeXT, cc -E runs the code through the compiler's parser,
4619 # not just through cpp. "Syntax error" is here to catch this case.
4620 cat >conftest.$ac_ext <<_ACEOF
4621/* confdefs.h. */
4622_ACEOF
4623cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h. */
4626#ifdef __STDC__
4627# include <limits.h>
4628#else
4629# include <assert.h>
4630#endif
4631 Syntax error
4632_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00004633if { (ac_try="$ac_cpp conftest.$ac_ext"
4634case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637esac
4638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00004640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null; then
4646 if test -s conftest.err; then
4647 ac_cpp_err=$ac_c_preproc_warn_flag
4648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4649 else
4650 ac_cpp_err=
Lev Walkinf15320b2004-06-03 03:38:44 +00004651 fi
4652else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004653 ac_cpp_err=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00004654fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00004655if test -z "$ac_cpp_err"; then
4656 :
4657else
4658 echo "$as_me: failed program was:" >&5
4659sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 # Broken: fails on valid input.
4662continue
4663fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004664
Lev Walkin8e8b5482004-06-17 23:42:48 +00004665rm -f conftest.err conftest.$ac_ext
4666
Lev Walkin27fd0b62007-08-27 23:57:45 +00004667 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00004668 # can be detected and how.
4669 cat >conftest.$ac_ext <<_ACEOF
4670/* confdefs.h. */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h. */
4675#include <ac_nonexistent.h>
4676_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00004677if { (ac_try="$ac_cpp conftest.$ac_ext"
4678case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681esac
4682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00004684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null; then
4690 if test -s conftest.err; then
4691 ac_cpp_err=$ac_c_preproc_warn_flag
4692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4693 else
4694 ac_cpp_err=
4695 fi
4696else
4697 ac_cpp_err=yes
4698fi
4699if test -z "$ac_cpp_err"; then
4700 # Broken: success on invalid input.
4701continue
4702else
4703 echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 # Passes both tests.
4707ac_preproc_ok=:
4708break
4709fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004710
Lev Walkin8e8b5482004-06-17 23:42:48 +00004711rm -f conftest.err conftest.$ac_ext
4712
4713done
4714# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4715rm -f conftest.err conftest.$ac_ext
4716if $ac_preproc_ok; then
4717 break
4718fi
4719
4720 done
4721 ac_cv_prog_CPP=$CPP
4722
4723fi
4724 CPP=$ac_cv_prog_CPP
4725else
4726 ac_cv_prog_CPP=$CPP
4727fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004728{ echo "$as_me:$LINENO: result: $CPP" >&5
4729echo "${ECHO_T}$CPP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004730ac_preproc_ok=false
4731for ac_c_preproc_warn_flag in '' yes
4732do
4733 # Use a header file that comes with gcc, so configuring glibc
4734 # with a fresh cross-compiler works.
4735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4736 # <limits.h> exists even on freestanding compilers.
4737 # On the NeXT, cc -E runs the code through the compiler's parser,
4738 # not just through cpp. "Syntax error" is here to catch this case.
4739 cat >conftest.$ac_ext <<_ACEOF
4740/* confdefs.h. */
4741_ACEOF
4742cat confdefs.h >>conftest.$ac_ext
4743cat >>conftest.$ac_ext <<_ACEOF
4744/* end confdefs.h. */
4745#ifdef __STDC__
4746# include <limits.h>
4747#else
4748# include <assert.h>
4749#endif
4750 Syntax error
4751_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00004752if { (ac_try="$ac_cpp conftest.$ac_ext"
4753case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756esac
4757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00004759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } >/dev/null; then
4765 if test -s conftest.err; then
4766 ac_cpp_err=$ac_c_preproc_warn_flag
4767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4768 else
4769 ac_cpp_err=
4770 fi
4771else
4772 ac_cpp_err=yes
4773fi
4774if test -z "$ac_cpp_err"; then
4775 :
4776else
4777 echo "$as_me: failed program was:" >&5
4778sed 's/^/| /' conftest.$ac_ext >&5
4779
4780 # Broken: fails on valid input.
4781continue
4782fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004783
Lev Walkin8e8b5482004-06-17 23:42:48 +00004784rm -f conftest.err conftest.$ac_ext
4785
Lev Walkin27fd0b62007-08-27 23:57:45 +00004786 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00004787 # can be detected and how.
4788 cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h. */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h. */
4794#include <ac_nonexistent.h>
4795_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00004796if { (ac_try="$ac_cpp conftest.$ac_ext"
4797case "(($ac_try" in
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4800esac
4801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00004803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } >/dev/null; then
4809 if test -s conftest.err; then
4810 ac_cpp_err=$ac_c_preproc_warn_flag
4811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4812 else
4813 ac_cpp_err=
4814 fi
4815else
4816 ac_cpp_err=yes
4817fi
4818if test -z "$ac_cpp_err"; then
4819 # Broken: success on invalid input.
4820continue
4821else
4822 echo "$as_me: failed program was:" >&5
4823sed 's/^/| /' conftest.$ac_ext >&5
4824
4825 # Passes both tests.
4826ac_preproc_ok=:
4827break
4828fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004829
Lev Walkin8e8b5482004-06-17 23:42:48 +00004830rm -f conftest.err conftest.$ac_ext
4831
4832done
4833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4834rm -f conftest.err conftest.$ac_ext
4835if $ac_preproc_ok; then
4836 :
4837else
4838 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4839See \`config.log' for more details." >&5
4840echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4841See \`config.log' for more details." >&2;}
4842 { (exit 1); exit 1; }; }
4843fi
4844
4845ac_ext=c
4846ac_cpp='$CPP $CPPFLAGS'
4847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850
4851
Lev Walkin27fd0b62007-08-27 23:57:45 +00004852{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4853echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004854if test "${ac_cv_header_stdc+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856else
4857 cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h. */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h. */
4863#include <stdlib.h>
4864#include <stdarg.h>
4865#include <string.h>
4866#include <float.h>
4867
4868int
4869main ()
4870{
4871
4872 ;
4873 return 0;
4874}
4875_ACEOF
4876rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00004877if { (ac_try="$ac_compile"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00004884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00004890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4891 { (case "(($ac_try" in
4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4894esac
4895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4896 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00004897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00004901 { (case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904esac
4905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00004907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_header_stdc=yes
4911else
4912 echo "$as_me: failed program was:" >&5
4913sed 's/^/| /' conftest.$ac_ext >&5
4914
Lev Walkin27fd0b62007-08-27 23:57:45 +00004915 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00004916fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004917
4918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00004919
4920if test $ac_cv_header_stdc = yes; then
4921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#include <string.h>
4929
4930_ACEOF
4931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4932 $EGREP "memchr" >/dev/null 2>&1; then
4933 :
4934else
4935 ac_cv_header_stdc=no
4936fi
4937rm -f conftest*
4938
4939fi
4940
4941if test $ac_cv_header_stdc = yes; then
4942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4943 cat >conftest.$ac_ext <<_ACEOF
4944/* confdefs.h. */
4945_ACEOF
4946cat confdefs.h >>conftest.$ac_ext
4947cat >>conftest.$ac_ext <<_ACEOF
4948/* end confdefs.h. */
4949#include <stdlib.h>
4950
4951_ACEOF
4952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4953 $EGREP "free" >/dev/null 2>&1; then
4954 :
4955else
4956 ac_cv_header_stdc=no
4957fi
4958rm -f conftest*
4959
4960fi
4961
4962if test $ac_cv_header_stdc = yes; then
4963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4964 if test "$cross_compiling" = yes; then
4965 :
4966else
4967 cat >conftest.$ac_ext <<_ACEOF
4968/* confdefs.h. */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h. */
4973#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +00004974#include <stdlib.h>
Lev Walkin8e8b5482004-06-17 23:42:48 +00004975#if ((' ' & 0x0FF) == 0x020)
4976# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4977# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4978#else
4979# define ISLOWER(c) \
4980 (('a' <= (c) && (c) <= 'i') \
4981 || ('j' <= (c) && (c) <= 'r') \
4982 || ('s' <= (c) && (c) <= 'z'))
4983# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4984#endif
4985
4986#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4987int
4988main ()
4989{
4990 int i;
4991 for (i = 0; i < 256; i++)
4992 if (XOR (islower (i), ISLOWER (i))
4993 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +00004994 return 2;
4995 return 0;
Lev Walkin8e8b5482004-06-17 23:42:48 +00004996}
4997_ACEOF
4998rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00004999if { (ac_try="$ac_link"
5000case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5003esac
5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_link") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00005009 { (case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012esac
5013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 :
5019else
5020 echo "$as_me: program exited with status $ac_status" >&5
5021echo "$as_me: failed program was:" >&5
5022sed 's/^/| /' conftest.$ac_ext >&5
5023
5024( exit $ac_status )
5025ac_cv_header_stdc=no
5026fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5028fi
5029
5030
Lev Walkin8e8b5482004-06-17 23:42:48 +00005031fi
5032fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005033{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5034echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005035if test $ac_cv_header_stdc = yes; then
5036
5037cat >>confdefs.h <<\_ACEOF
5038#define STDC_HEADERS 1
5039_ACEOF
5040
5041fi
5042
5043# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5054 inttypes.h stdint.h unistd.h
5055do
5056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +00005057{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061else
5062 cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068$ac_includes_default
5069
5070#include <$ac_header>
5071_ACEOF
5072rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00005073if { (ac_try="$ac_compile"
5074case "(($ac_try" in
5075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076 *) ac_try_echo=$ac_try;;
5077esac
5078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5079 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00005080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00005086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5087 { (case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5090esac
5091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; } &&
5096 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00005097 { (case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100esac
5101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 eval "$as_ac_Header=yes"
5107else
5108 echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
Lev Walkin27fd0b62007-08-27 23:57:45 +00005111 eval "$as_ac_Header=no"
Lev Walkin8e8b5482004-06-17 23:42:48 +00005112fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005113
5114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00005115fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005116ac_res=`eval echo '${'$as_ac_Header'}'`
5117 { echo "$as_me:$LINENO: result: $ac_res" >&5
5118echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005119if test `eval echo '${'$as_ac_Header'}'` = yes; then
5120 cat >>confdefs.h <<_ACEOF
5121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5122_ACEOF
5123
5124fi
5125
5126done
5127
5128
5129
5130for ac_header in dlfcn.h
5131do
5132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +00005133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005139ac_res=`eval echo '${'$as_ac_Header'}'`
5140 { echo "$as_me:$LINENO: result: $ac_res" >&5
5141echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005142else
5143 # Is the header compilable?
Lev Walkin27fd0b62007-08-27 23:57:45 +00005144{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5145echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005146cat >conftest.$ac_ext <<_ACEOF
5147/* confdefs.h. */
5148_ACEOF
5149cat confdefs.h >>conftest.$ac_ext
5150cat >>conftest.$ac_ext <<_ACEOF
5151/* end confdefs.h. */
5152$ac_includes_default
5153#include <$ac_header>
5154_ACEOF
5155rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00005156if { (ac_try="$ac_compile"
5157case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5160esac
5161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00005163 ac_status=$?
5164 grep -v '^ *+' conftest.er1 >conftest.err
5165 rm -f conftest.er1
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00005169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5170 { (case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173esac
5174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00005180 { (case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183esac
5184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_header_compiler=yes
5190else
5191 echo "$as_me: failed program was:" >&5
5192sed 's/^/| /' conftest.$ac_ext >&5
5193
Lev Walkin27fd0b62007-08-27 23:57:45 +00005194 ac_header_compiler=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00005195fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005196
5197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5199echo "${ECHO_T}$ac_header_compiler" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005200
5201# Is the header present?
Lev Walkin27fd0b62007-08-27 23:57:45 +00005202{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005204cat >conftest.$ac_ext <<_ACEOF
5205/* confdefs.h. */
5206_ACEOF
5207cat confdefs.h >>conftest.$ac_ext
5208cat >>conftest.$ac_ext <<_ACEOF
5209/* end confdefs.h. */
5210#include <$ac_header>
5211_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00005212if { (ac_try="$ac_cpp conftest.$ac_ext"
5213case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216esac
5217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00005219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev/null; then
5225 if test -s conftest.err; then
5226 ac_cpp_err=$ac_c_preproc_warn_flag
5227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5228 else
5229 ac_cpp_err=
5230 fi
5231else
5232 ac_cpp_err=yes
5233fi
5234if test -z "$ac_cpp_err"; then
5235 ac_header_preproc=yes
5236else
5237 echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
5240 ac_header_preproc=no
5241fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005242
Lev Walkin8e8b5482004-06-17 23:42:48 +00005243rm -f conftest.err conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00005244{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5245echo "${ECHO_T}$ac_header_preproc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005246
5247# So? What about this header?
5248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5249 yes:no: )
5250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5254 ac_header_preproc=yes
5255 ;;
5256 no:yes:* )
5257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00005269
Lev Walkin8e8b5482004-06-17 23:42:48 +00005270 ;;
5271esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00005272{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276else
5277 eval "$as_ac_Header=\$ac_header_preproc"
5278fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005279ac_res=`eval echo '${'$as_ac_Header'}'`
5280 { echo "$as_me:$LINENO: result: $ac_res" >&5
5281echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005282
5283fi
5284if test `eval echo '${'$as_ac_Header'}'` = yes; then
5285 cat >>confdefs.h <<_ACEOF
5286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5287_ACEOF
5288
5289fi
5290
5291done
5292
Lev Walkin27fd0b62007-08-27 23:57:45 +00005293ac_ext=cpp
Lev Walkin8e8b5482004-06-17 23:42:48 +00005294ac_cpp='$CXXCPP $CPPFLAGS'
5295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Lev Walkin27fd0b62007-08-27 23:57:45 +00005298if test -z "$CXX"; then
5299 if test -n "$CCC"; then
5300 CXX=$CCC
5301 else
5302 if test -n "$ac_tool_prefix"; then
5303 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Lev Walkin8e8b5482004-06-17 23:42:48 +00005304 do
5305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5306set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00005307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005309if test "${ac_cv_prog_CXX+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312 if test -n "$CXX"; then
5313 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5314else
5315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00005321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005322 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326done
5327done
Lev Walkin27fd0b62007-08-27 23:57:45 +00005328IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00005329
5330fi
5331fi
5332CXX=$ac_cv_prog_CXX
5333if test -n "$CXX"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00005334 { echo "$as_me:$LINENO: result: $CXX" >&5
5335echo "${ECHO_T}$CXX" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005336else
Lev Walkin27fd0b62007-08-27 23:57:45 +00005337 { echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005339fi
5340
Lev Walkin27fd0b62007-08-27 23:57:45 +00005341
Lev Walkin8e8b5482004-06-17 23:42:48 +00005342 test -n "$CXX" && break
5343 done
5344fi
5345if test -z "$CXX"; then
5346 ac_ct_CXX=$CXX
Lev Walkin27fd0b62007-08-27 23:57:45 +00005347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Lev Walkin8e8b5482004-06-17 23:42:48 +00005348do
5349 # Extract the first word of "$ac_prog", so it can be a program name with args.
5350set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00005351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005353if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356 if test -n "$ac_ct_CXX"; then
5357 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5358else
5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00005365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005366 ac_cv_prog_ac_ct_CXX="$ac_prog"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370done
5371done
Lev Walkin27fd0b62007-08-27 23:57:45 +00005372IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00005373
5374fi
5375fi
5376ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5377if test -n "$ac_ct_CXX"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00005378 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5379echo "${ECHO_T}$ac_ct_CXX" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005380else
Lev Walkin27fd0b62007-08-27 23:57:45 +00005381 { echo "$as_me:$LINENO: result: no" >&5
5382echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005383fi
5384
Lev Walkin27fd0b62007-08-27 23:57:45 +00005385
Lev Walkin8e8b5482004-06-17 23:42:48 +00005386 test -n "$ac_ct_CXX" && break
5387done
Lev Walkin8e8b5482004-06-17 23:42:48 +00005388
Lev Walkin27fd0b62007-08-27 23:57:45 +00005389 if test "x$ac_ct_CXX" = x; then
5390 CXX="g++"
5391 else
5392 case $cross_compiling:$ac_tool_warned in
5393yes:)
5394{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5395whose name does not start with the host triplet. If you think this
5396configuration is useful to you, please write to autoconf@gnu.org." >&5
5397echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5398whose name does not start with the host triplet. If you think this
5399configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5400ac_tool_warned=yes ;;
5401esac
5402 CXX=$ac_ct_CXX
5403 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00005404fi
5405
Lev Walkin27fd0b62007-08-27 23:57:45 +00005406 fi
5407fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00005408# Provide some information about the compiler.
Lev Walkin27fd0b62007-08-27 23:57:45 +00005409echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005410ac_compiler=`set X $ac_compile; echo $2`
Lev Walkin27fd0b62007-08-27 23:57:45 +00005411{ (ac_try="$ac_compiler --version >&5"
5412case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00005421{ (ac_try="$ac_compiler -v >&5"
5422case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425esac
5426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00005431{ (ac_try="$ac_compiler -V >&5"
5432case "(($ac_try" in
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5435esac
5436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }
5441
Lev Walkin27fd0b62007-08-27 23:57:45 +00005442{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5443echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005444if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447 cat >conftest.$ac_ext <<_ACEOF
5448/* confdefs.h. */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
5452/* end confdefs.h. */
5453
5454int
5455main ()
5456{
5457#ifndef __GNUC__
5458 choke me
5459#endif
5460
5461 ;
5462 return 0;
5463}
5464_ACEOF
5465rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00005466if { (ac_try="$ac_compile"
5467case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470esac
5471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00005473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00005479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5480 { (case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483esac
5484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; } &&
5489 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00005490 { (case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493esac
5494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; }; then
5499 ac_compiler_gnu=yes
5500else
5501 echo "$as_me: failed program was:" >&5
5502sed 's/^/| /' conftest.$ac_ext >&5
5503
Lev Walkin27fd0b62007-08-27 23:57:45 +00005504 ac_compiler_gnu=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00005505fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005506
5507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00005508ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5509
5510fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005511{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5512echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005513GXX=`test $ac_compiler_gnu = yes && echo yes`
5514ac_test_CXXFLAGS=${CXXFLAGS+set}
5515ac_save_CXXFLAGS=$CXXFLAGS
Lev Walkin27fd0b62007-08-27 23:57:45 +00005516{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5517echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005518if test "${ac_cv_prog_cxx_g+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
Lev Walkin27fd0b62007-08-27 23:57:45 +00005521 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5522 ac_cxx_werror_flag=yes
5523 ac_cv_prog_cxx_g=no
5524 CXXFLAGS="-g"
5525 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00005526/* confdefs.h. */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h. */
5531
5532int
5533main ()
5534{
5535
5536 ;
5537 return 0;
5538}
5539_ACEOF
5540rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00005541if { (ac_try="$ac_compile"
5542case "(($ac_try" in
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5545esac
5546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00005548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00005554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5555 { (case "(($ac_try" in
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5558esac
5559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; } &&
5564 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00005565 { (case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5568esac
5569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then
5574 ac_cv_prog_cxx_g=yes
5575else
5576 echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
Lev Walkin27fd0b62007-08-27 23:57:45 +00005579 CXXFLAGS=""
5580 cat >conftest.$ac_ext <<_ACEOF
5581/* confdefs.h. */
5582_ACEOF
5583cat confdefs.h >>conftest.$ac_ext
5584cat >>conftest.$ac_ext <<_ACEOF
5585/* end confdefs.h. */
5586
5587int
5588main ()
5589{
5590
5591 ;
5592 return 0;
5593}
5594_ACEOF
5595rm -f conftest.$ac_objext
5596if { (ac_try="$ac_compile"
5597case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_compile") 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5610 { (case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613esac
5614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_try") 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; } &&
5619 { ac_try='test -s conftest.$ac_objext'
5620 { (case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623esac
5624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_try") 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 :
5630else
5631 echo "$as_me: failed program was:" >&5
5632sed 's/^/| /' conftest.$ac_ext >&5
5633
5634 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5635 CXXFLAGS="-g"
5636 cat >conftest.$ac_ext <<_ACEOF
5637/* confdefs.h. */
5638_ACEOF
5639cat confdefs.h >>conftest.$ac_ext
5640cat >>conftest.$ac_ext <<_ACEOF
5641/* end confdefs.h. */
5642
5643int
5644main ()
5645{
5646
5647 ;
5648 return 0;
5649}
5650_ACEOF
5651rm -f conftest.$ac_objext
5652if { (ac_try="$ac_compile"
5653case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5656esac
5657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compile") 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5666 { (case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669esac
5670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_try") 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest.$ac_objext'
5676 { (case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_try") 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 ac_cv_prog_cxx_g=yes
5686else
5687 echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
5689
5690
Lev Walkin8e8b5482004-06-17 23:42:48 +00005691fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005692
5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00005694fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005695
5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697fi
5698
5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5701fi
5702{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5703echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005704if test "$ac_test_CXXFLAGS" = set; then
5705 CXXFLAGS=$ac_save_CXXFLAGS
5706elif test $ac_cv_prog_cxx_g = yes; then
5707 if test "$GXX" = yes; then
5708 CXXFLAGS="-g -O2"
5709 else
5710 CXXFLAGS="-g"
5711 fi
5712else
5713 if test "$GXX" = yes; then
5714 CXXFLAGS="-O2"
5715 else
5716 CXXFLAGS=
5717 fi
5718fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005719ac_ext=cpp
Lev Walkin8e8b5482004-06-17 23:42:48 +00005720ac_cpp='$CXXCPP $CPPFLAGS'
5721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5724
5725depcc="$CXX" am_compiler_list=
5726
Lev Walkin27fd0b62007-08-27 23:57:45 +00005727{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5728echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005729if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731else
5732 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5733 # We make a subdir and do the tests there. Otherwise we can end up
5734 # making bogus files that we don't know about and never remove. For
5735 # instance it was reported that on HP-UX the gcc test will end up
5736 # making a dummy file named `D' -- because `-MD' means `put the output
5737 # in D'.
5738 mkdir conftest.dir
5739 # Copy depcomp to subdir because otherwise we won't find it if we're
5740 # using a relative directory.
5741 cp "$am_depcomp" conftest.dir
5742 cd conftest.dir
5743 # We will build objects and dependencies in a subdirectory because
5744 # it helps to detect inapplicable dependency modes. For instance
5745 # both Tru64's cc and ICC support -MD to output dependencies as a
5746 # side effect of compilation, but ICC will put the dependencies in
5747 # the current directory while Tru64 will put them in the object
5748 # directory.
5749 mkdir sub
5750
5751 am_cv_CXX_dependencies_compiler_type=none
5752 if test "$am_compiler_list" = ""; then
5753 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5754 fi
5755 for depmode in $am_compiler_list; do
5756 # Setup a source with many dependencies, because some compilers
5757 # like to wrap large dependency lists on column 80 (with \), and
5758 # we should not choose a depcomp mode which is confused by this.
5759 #
5760 # We need to recreate these files for each test, as the compiler may
5761 # overwrite some of them when testing with obscure command lines.
5762 # This happens at least with the AIX C compiler.
5763 : > sub/conftest.c
5764 for i in 1 2 3 4 5 6; do
5765 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5766 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5767 # Solaris 8's {/usr,}/bin/sh.
5768 touch sub/conftst$i.h
5769 done
5770 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5771
5772 case $depmode in
5773 nosideeffect)
5774 # after this tag, mechanisms are not by side-effect, so they'll
5775 # only be used when explicitly requested
5776 if test "x$enable_dependency_tracking" = xyes; then
5777 continue
5778 else
5779 break
5780 fi
5781 ;;
5782 none) break ;;
5783 esac
5784 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5785 # mode. It turns out that the SunPro C++ compiler does not properly
5786 # handle `-M -o', and we need to detect this.
5787 if depmode=$depmode \
5788 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5789 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5790 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5791 >/dev/null 2>conftest.err &&
5792 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5793 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5794 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5795 # icc doesn't choke on unknown options, it will just issue warnings
5796 # or remarks (even with -Werror). So we grep stderr for any message
5797 # that says an option was ignored or not supported.
5798 # When given -MP, icc 7.0 and 7.1 complain thusly:
5799 # icc: Command line warning: ignoring option '-M'; no argument required
5800 # The diagnosis changed in icc 8.0:
5801 # icc: Command line remark: option '-MP' not supported
5802 if (grep 'ignoring option' conftest.err ||
5803 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5804 am_cv_CXX_dependencies_compiler_type=$depmode
5805 break
5806 fi
5807 fi
5808 done
5809
5810 cd ..
5811 rm -rf conftest.dir
5812else
5813 am_cv_CXX_dependencies_compiler_type=none
5814fi
5815
5816fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005817{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5818echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005819CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5820
5821
5822
5823if
5824 test "x$enable_dependency_tracking" != xno \
5825 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5826 am__fastdepCXX_TRUE=
5827 am__fastdepCXX_FALSE='#'
5828else
5829 am__fastdepCXX_TRUE='#'
5830 am__fastdepCXX_FALSE=
5831fi
5832
5833
Lev Walkin27fd0b62007-08-27 23:57:45 +00005834ac_ext=cpp
Lev Walkin8e8b5482004-06-17 23:42:48 +00005835ac_cpp='$CXXCPP $CPPFLAGS'
5836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Lev Walkin27fd0b62007-08-27 23:57:45 +00005839{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5840echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005841if test -z "$CXXCPP"; then
5842 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845 # Double quotes because CXXCPP needs to be expanded
5846 for CXXCPP in "$CXX -E" "/lib/cpp"
5847 do
5848 ac_preproc_ok=false
5849for ac_cxx_preproc_warn_flag in '' yes
5850do
5851 # Use a header file that comes with gcc, so configuring glibc
5852 # with a fresh cross-compiler works.
5853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5854 # <limits.h> exists even on freestanding compilers.
5855 # On the NeXT, cc -E runs the code through the compiler's parser,
5856 # not just through cpp. "Syntax error" is here to catch this case.
5857 cat >conftest.$ac_ext <<_ACEOF
5858/* confdefs.h. */
5859_ACEOF
5860cat confdefs.h >>conftest.$ac_ext
5861cat >>conftest.$ac_ext <<_ACEOF
5862/* end confdefs.h. */
5863#ifdef __STDC__
5864# include <limits.h>
5865#else
5866# include <assert.h>
5867#endif
5868 Syntax error
5869_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00005870if { (ac_try="$ac_cpp conftest.$ac_ext"
5871case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00005877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } >/dev/null; then
5883 if test -s conftest.err; then
5884 ac_cpp_err=$ac_cxx_preproc_warn_flag
5885 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5886 else
5887 ac_cpp_err=
5888 fi
5889else
5890 ac_cpp_err=yes
5891fi
5892if test -z "$ac_cpp_err"; then
5893 :
5894else
5895 echo "$as_me: failed program was:" >&5
5896sed 's/^/| /' conftest.$ac_ext >&5
5897
5898 # Broken: fails on valid input.
5899continue
5900fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005901
Lev Walkin8e8b5482004-06-17 23:42:48 +00005902rm -f conftest.err conftest.$ac_ext
5903
Lev Walkin27fd0b62007-08-27 23:57:45 +00005904 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00005905 # can be detected and how.
5906 cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912#include <ac_nonexistent.h>
5913_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00005914if { (ac_try="$ac_cpp conftest.$ac_ext"
5915case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00005921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } >/dev/null; then
5927 if test -s conftest.err; then
5928 ac_cpp_err=$ac_cxx_preproc_warn_flag
5929 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5930 else
5931 ac_cpp_err=
5932 fi
5933else
5934 ac_cpp_err=yes
5935fi
5936if test -z "$ac_cpp_err"; then
5937 # Broken: success on invalid input.
5938continue
5939else
5940 echo "$as_me: failed program was:" >&5
5941sed 's/^/| /' conftest.$ac_ext >&5
5942
5943 # Passes both tests.
5944ac_preproc_ok=:
5945break
5946fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005947
Lev Walkin8e8b5482004-06-17 23:42:48 +00005948rm -f conftest.err conftest.$ac_ext
5949
5950done
5951# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5952rm -f conftest.err conftest.$ac_ext
5953if $ac_preproc_ok; then
5954 break
5955fi
5956
5957 done
5958 ac_cv_prog_CXXCPP=$CXXCPP
5959
5960fi
5961 CXXCPP=$ac_cv_prog_CXXCPP
5962else
5963 ac_cv_prog_CXXCPP=$CXXCPP
5964fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005965{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5966echo "${ECHO_T}$CXXCPP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00005967ac_preproc_ok=false
5968for ac_cxx_preproc_warn_flag in '' yes
5969do
5970 # Use a header file that comes with gcc, so configuring glibc
5971 # with a fresh cross-compiler works.
5972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5973 # <limits.h> exists even on freestanding compilers.
5974 # On the NeXT, cc -E runs the code through the compiler's parser,
5975 # not just through cpp. "Syntax error" is here to catch this case.
5976 cat >conftest.$ac_ext <<_ACEOF
5977/* confdefs.h. */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h. */
5982#ifdef __STDC__
5983# include <limits.h>
5984#else
5985# include <assert.h>
5986#endif
5987 Syntax error
5988_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00005989if { (ac_try="$ac_cpp conftest.$ac_ext"
5990case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993esac
5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00005996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } >/dev/null; then
6002 if test -s conftest.err; then
6003 ac_cpp_err=$ac_cxx_preproc_warn_flag
6004 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6005 else
6006 ac_cpp_err=
6007 fi
6008else
6009 ac_cpp_err=yes
6010fi
6011if test -z "$ac_cpp_err"; then
6012 :
6013else
6014 echo "$as_me: failed program was:" >&5
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 # Broken: fails on valid input.
6018continue
6019fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006020
Lev Walkin8e8b5482004-06-17 23:42:48 +00006021rm -f conftest.err conftest.$ac_ext
6022
Lev Walkin27fd0b62007-08-27 23:57:45 +00006023 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00006024 # can be detected and how.
6025 cat >conftest.$ac_ext <<_ACEOF
6026/* confdefs.h. */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h. */
6031#include <ac_nonexistent.h>
6032_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006033if { (ac_try="$ac_cpp conftest.$ac_ext"
6034case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } >/dev/null; then
6046 if test -s conftest.err; then
6047 ac_cpp_err=$ac_cxx_preproc_warn_flag
6048 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6049 else
6050 ac_cpp_err=
6051 fi
6052else
6053 ac_cpp_err=yes
6054fi
6055if test -z "$ac_cpp_err"; then
6056 # Broken: success on invalid input.
6057continue
6058else
6059 echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 # Passes both tests.
6063ac_preproc_ok=:
6064break
6065fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006066
Lev Walkin8e8b5482004-06-17 23:42:48 +00006067rm -f conftest.err conftest.$ac_ext
6068
6069done
6070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6071rm -f conftest.err conftest.$ac_ext
6072if $ac_preproc_ok; then
6073 :
6074else
6075 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6076See \`config.log' for more details." >&5
6077echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6078See \`config.log' for more details." >&2;}
6079 { (exit 1); exit 1; }; }
6080fi
6081
Lev Walkin27fd0b62007-08-27 23:57:45 +00006082ac_ext=cpp
Lev Walkin8e8b5482004-06-17 23:42:48 +00006083ac_cpp='$CXXCPP $CPPFLAGS'
6084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6087
6088
6089ac_ext=f
6090ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6091ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6092ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6093if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006094 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
Lev Walkin8e8b5482004-06-17 23:42:48 +00006095 do
6096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00006098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006100if test "${ac_cv_prog_F77+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102else
6103 if test -n "$F77"; then
6104 ac_cv_prog_F77="$F77" # Let the user override the test.
6105else
6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107for as_dir in $PATH
6108do
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00006112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006113 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6116 fi
6117done
6118done
Lev Walkin27fd0b62007-08-27 23:57:45 +00006119IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00006120
6121fi
6122fi
6123F77=$ac_cv_prog_F77
6124if test -n "$F77"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006125 { echo "$as_me:$LINENO: result: $F77" >&5
6126echo "${ECHO_T}$F77" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006127else
Lev Walkin27fd0b62007-08-27 23:57:45 +00006128 { echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006130fi
6131
Lev Walkin27fd0b62007-08-27 23:57:45 +00006132
Lev Walkin8e8b5482004-06-17 23:42:48 +00006133 test -n "$F77" && break
6134 done
6135fi
6136if test -z "$F77"; then
6137 ac_ct_F77=$F77
Lev Walkin27fd0b62007-08-27 23:57:45 +00006138 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
Lev Walkin8e8b5482004-06-17 23:42:48 +00006139do
6140 # Extract the first word of "$ac_prog", so it can be a program name with args.
6141set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00006142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006144if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147 if test -n "$ac_ct_F77"; then
6148 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00006156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006157 ac_cv_prog_ac_ct_F77="$ac_prog"
6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6160 fi
6161done
6162done
Lev Walkin27fd0b62007-08-27 23:57:45 +00006163IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00006164
6165fi
6166fi
6167ac_ct_F77=$ac_cv_prog_ac_ct_F77
6168if test -n "$ac_ct_F77"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006169 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6170echo "${ECHO_T}$ac_ct_F77" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006171else
Lev Walkin27fd0b62007-08-27 23:57:45 +00006172 { echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006174fi
6175
Lev Walkin27fd0b62007-08-27 23:57:45 +00006176
Lev Walkin8e8b5482004-06-17 23:42:48 +00006177 test -n "$ac_ct_F77" && break
6178done
6179
Lev Walkin27fd0b62007-08-27 23:57:45 +00006180 if test "x$ac_ct_F77" = x; then
6181 F77=""
6182 else
6183 case $cross_compiling:$ac_tool_warned in
6184yes:)
6185{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6186whose name does not start with the host triplet. If you think this
6187configuration is useful to you, please write to autoconf@gnu.org." >&5
6188echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6189whose name does not start with the host triplet. If you think this
6190configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6191ac_tool_warned=yes ;;
6192esac
6193 F77=$ac_ct_F77
6194 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006195fi
6196
6197
6198# Provide some information about the compiler.
Lev Walkin27fd0b62007-08-27 23:57:45 +00006199echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006200ac_compiler=`set X $ac_compile; echo $2`
Lev Walkin27fd0b62007-08-27 23:57:45 +00006201{ (ac_try="$ac_compiler --version >&5"
6202case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205esac
6206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00006211{ (ac_try="$ac_compiler -v >&5"
6212case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215esac
6216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00006221{ (ac_try="$ac_compiler -V >&5"
6222case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }
6231rm -f a.out
6232
6233# If we don't use `.F' as extension, the preprocessor is not run on the
6234# input file. (Note that this only needs to work for GNU compilers.)
6235ac_save_ext=$ac_ext
6236ac_ext=F
Lev Walkin27fd0b62007-08-27 23:57:45 +00006237{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6238echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006239if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241else
6242 cat >conftest.$ac_ext <<_ACEOF
6243 program main
6244#ifndef __GNUC__
6245 choke me
6246#endif
6247
6248 end
6249_ACEOF
6250rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006251if { (ac_try="$ac_compile"
6252case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255esac
6256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00006264 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6265 { (case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268esac
6269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00006275 { (case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278esac
6279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 ac_compiler_gnu=yes
6285else
6286 echo "$as_me: failed program was:" >&5
6287sed 's/^/| /' conftest.$ac_ext >&5
6288
Lev Walkin27fd0b62007-08-27 23:57:45 +00006289 ac_compiler_gnu=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006290fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006291
6292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006293ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6294
6295fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006296{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6297echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006298ac_ext=$ac_save_ext
6299ac_test_FFLAGS=${FFLAGS+set}
6300ac_save_FFLAGS=$FFLAGS
6301FFLAGS=
Lev Walkin27fd0b62007-08-27 23:57:45 +00006302{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6303echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006304if test "${ac_cv_prog_f77_g+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306else
6307 FFLAGS=-g
6308cat >conftest.$ac_ext <<_ACEOF
6309 program main
6310
6311 end
6312_ACEOF
6313rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006314if { (ac_try="$ac_compile"
6315case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318esac
6319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00006327 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6328 { (case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; } &&
6337 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00006338 { (case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_cv_prog_f77_g=yes
6348else
6349 echo "$as_me: failed program was:" >&5
6350sed 's/^/| /' conftest.$ac_ext >&5
6351
Lev Walkin27fd0b62007-08-27 23:57:45 +00006352 ac_cv_prog_f77_g=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006353fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006354
6355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006356
6357fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006358{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6359echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006360if test "$ac_test_FFLAGS" = set; then
6361 FFLAGS=$ac_save_FFLAGS
6362elif test $ac_cv_prog_f77_g = yes; then
6363 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6364 FFLAGS="-g -O2"
6365 else
6366 FFLAGS="-g"
6367 fi
6368else
6369 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6370 FFLAGS="-O2"
6371 else
6372 FFLAGS=
6373 fi
6374fi
6375
6376G77=`test $ac_compiler_gnu = yes && echo yes`
6377ac_ext=c
6378ac_cpp='$CPP $CPPFLAGS'
6379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382
6383
6384
6385# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6386
6387# find the maximum length of command line arguments
Lev Walkin27fd0b62007-08-27 23:57:45 +00006388{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6389echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006390if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393 i=0
6394 teststring="ABCD"
6395
6396 case $build_os in
6397 msdosdjgpp*)
6398 # On DJGPP, this test can blow up pretty badly due to problems in libc
6399 # (any single argument exceeding 2000 bytes causes a buffer overrun
6400 # during glob expansion). Even if it were fixed, the result of this
6401 # check would be larger than it should be.
6402 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6403 ;;
6404
6405 gnu*)
6406 # Under GNU Hurd, this test is not required because there is
6407 # no limit to the length of command line arguments.
6408 # Libtool will interpret -1 as no limit whatsoever
6409 lt_cv_sys_max_cmd_len=-1;
6410 ;;
6411
6412 cygwin* | mingw*)
6413 # On Win9x/ME, this test blows up -- it succeeds, but takes
6414 # about 5 minutes as the teststring grows exponentially.
6415 # Worse, since 9x/ME are not pre-emptively multitasking,
6416 # you end up with a "frozen" computer, even though with patience
6417 # the test eventually succeeds (with a max line length of 256k).
6418 # Instead, let's just punt: use the minimum linelength reported by
6419 # all of the supported platforms: 8192 (on NT/2K/XP).
6420 lt_cv_sys_max_cmd_len=8192;
6421 ;;
6422
6423 amigaos*)
6424 # On AmigaOS with pdksh, this test takes hours, literally.
6425 # So we just punt and use a minimum line length of 8192.
6426 lt_cv_sys_max_cmd_len=8192;
6427 ;;
6428
6429 *)
6430 # If test is not a shell built-in, we'll probably end up computing a
6431 # maximum length that is only half of the actual maximum length, but
6432 # we can't tell.
6433 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6434 = "XX$teststring") >/dev/null 2>&1 &&
6435 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6436 lt_cv_sys_max_cmd_len=$new_result &&
6437 test $i != 17 # 1/2 MB should be enough
6438 do
6439 i=`expr $i + 1`
6440 teststring=$teststring$teststring
6441 done
6442 teststring=
6443 # Add a significant safety factor because C++ compilers can tack on massive
6444 # amounts of additional arguments before passing them to the linker.
6445 # It appears as though 1/2 is a usable value.
6446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6447 ;;
6448 esac
6449
6450fi
6451
6452if test -n $lt_cv_sys_max_cmd_len ; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006453 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6454echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006455else
Lev Walkin27fd0b62007-08-27 23:57:45 +00006456 { echo "$as_me:$LINENO: result: none" >&5
6457echo "${ECHO_T}none" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006458fi
6459
6460
6461
6462
6463# Check for command to grab the raw symbol name followed by C symbol from nm.
Lev Walkin27fd0b62007-08-27 23:57:45 +00006464{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6465echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006466if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468else
6469
6470# These are sane defaults that work on at least a few old systems.
6471# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6472
6473# Character class describing NM global symbol codes.
6474symcode='[BCDEGRST]'
6475
6476# Regexp to match symbols that can be accessed directly from C.
6477sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6478
6479# Transform the above into a raw symbol and a C symbol.
6480symxfrm='\1 \2\3 \3'
6481
6482# Transform an extracted symbol line into a proper C declaration
6483lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6484
6485# Transform an extracted symbol line into symbol name and symbol address
6486lt_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'"
6487
6488# Define system-specific variables.
6489case $host_os in
6490aix*)
6491 symcode='[BCDT]'
6492 ;;
6493cygwin* | mingw* | pw32*)
6494 symcode='[ABCDGISTW]'
6495 ;;
6496hpux*) # Its linker distinguishes data from code symbols
6497 if test "$host_cpu" = ia64; then
6498 symcode='[ABCDEGRST]'
6499 fi
6500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6501 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'"
6502 ;;
6503irix* | nonstopux*)
6504 symcode='[BCDEGRST]'
6505 ;;
6506osf*)
6507 symcode='[BCDEGQRST]'
6508 ;;
6509solaris* | sysv5*)
6510 symcode='[BDRT]'
6511 ;;
6512sysv4)
6513 symcode='[DFNSTU]'
6514 ;;
6515esac
6516
6517# Handle CRLF in mingw tool chain
6518opt_cr=
6519case $build_os in
6520mingw*)
6521 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6522 ;;
6523esac
6524
6525# If we're using GNU nm, then use its standard symbol codes.
6526case `$NM -V 2>&1` in
6527*GNU* | *'with BFD'*)
6528 symcode='[ABCDGIRSTW]' ;;
6529esac
6530
6531# Try without a prefix undercore, then with it.
6532for ac_symprfx in "" "_"; do
6533
6534 # Write the raw and C identifiers.
6535 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6536
6537 # Check to see that the pipe works correctly.
6538 pipe_works=no
6539
6540 rm -f conftest*
6541 cat > conftest.$ac_ext <<EOF
6542#ifdef __cplusplus
6543extern "C" {
6544#endif
6545char nm_test_var;
6546void nm_test_func(){}
6547#ifdef __cplusplus
6548}
6549#endif
6550int main(){nm_test_var='a';nm_test_func();return(0);}
6551EOF
6552
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; then
6558 # Now try to grab the symbols.
6559 nlist=conftest.nm
6560 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6561 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6562 ac_status=$?
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && test -s "$nlist"; then
6565 # Try sorting and uniquifying the output.
6566 if sort "$nlist" | uniq > "$nlist"T; then
6567 mv -f "$nlist"T "$nlist"
6568 else
6569 rm -f "$nlist"T
6570 fi
6571
6572 # Make sure that we snagged all the symbols we need.
6573 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6574 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6575 cat <<EOF > conftest.$ac_ext
6576#ifdef __cplusplus
6577extern "C" {
6578#endif
6579
6580EOF
6581 # Now generate the symbol file.
6582 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6583
6584 cat <<EOF >> conftest.$ac_ext
6585#if defined (__STDC__) && __STDC__
6586# define lt_ptr_t void *
6587#else
6588# define lt_ptr_t char *
6589# define const
6590#endif
6591
6592/* The mapping between symbol names and symbols. */
6593const struct {
6594 const char *name;
6595 lt_ptr_t address;
6596}
6597lt_preloaded_symbols[] =
6598{
6599EOF
6600 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6601 cat <<\EOF >> conftest.$ac_ext
6602 {0, (lt_ptr_t) 0}
6603};
6604
6605#ifdef __cplusplus
6606}
6607#endif
6608EOF
6609 # Now try linking the two files.
6610 mv conftest.$ac_objext conftstm.$ac_objext
6611 lt_save_LIBS="$LIBS"
6612 lt_save_CFLAGS="$CFLAGS"
6613 LIBS="conftstm.$ac_objext"
6614 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616 (eval $ac_link) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6620 pipe_works=yes
6621 fi
6622 LIBS="$lt_save_LIBS"
6623 CFLAGS="$lt_save_CFLAGS"
6624 else
6625 echo "cannot find nm_test_func in $nlist" >&5
6626 fi
6627 else
6628 echo "cannot find nm_test_var in $nlist" >&5
6629 fi
6630 else
6631 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6632 fi
6633 else
6634 echo "$progname: failed program was:" >&5
6635 cat conftest.$ac_ext >&5
6636 fi
6637 rm -f conftest* conftst*
6638
6639 # Do not use the global_symbol_pipe unless it works.
6640 if test "$pipe_works" = yes; then
6641 break
6642 else
6643 lt_cv_sys_global_symbol_pipe=
6644 fi
6645done
6646
6647fi
6648
6649if test -z "$lt_cv_sys_global_symbol_pipe"; then
6650 lt_cv_sys_global_symbol_to_cdecl=
6651fi
6652if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006653 { echo "$as_me:$LINENO: result: failed" >&5
6654echo "${ECHO_T}failed" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006655else
Lev Walkin27fd0b62007-08-27 23:57:45 +00006656 { echo "$as_me:$LINENO: result: ok" >&5
6657echo "${ECHO_T}ok" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006658fi
6659
Lev Walkin27fd0b62007-08-27 23:57:45 +00006660{ echo "$as_me:$LINENO: checking for objdir" >&5
6661echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006662if test "${lt_cv_objdir+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665 rm -f .libs 2>/dev/null
6666mkdir .libs 2>/dev/null
6667if test -d .libs; then
6668 lt_cv_objdir=.libs
6669else
6670 # MS-DOS does not allow filenames that begin with a dot.
6671 lt_cv_objdir=_libs
6672fi
6673rmdir .libs 2>/dev/null
6674fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006675{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6676echo "${ECHO_T}$lt_cv_objdir" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006677objdir=$lt_cv_objdir
6678
6679
6680
6681
6682
6683case $host_os in
6684aix3*)
6685 # AIX sometimes has problems with the GCC collect2 program. For some
6686 # reason, if we set the COLLECT_NAMES environment variable, the problems
6687 # vanish in a puff of smoke.
6688 if test "X${COLLECT_NAMES+set}" != Xset; then
6689 COLLECT_NAMES=
6690 export COLLECT_NAMES
6691 fi
6692 ;;
6693esac
6694
6695# Sed substitution that helps us do robust quoting. It backslashifies
6696# metacharacters that are still active within double-quoted strings.
6697Xsed='sed -e s/^X//'
6698sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6699
6700# Same as above, but do not quote variable references.
6701double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6702
6703# Sed substitution to delay expansion of an escaped shell variable in a
6704# double_quote_subst'ed string.
6705delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6706
6707# Sed substitution to avoid accidental globbing in evaled expressions
6708no_glob_subst='s/\*/\\\*/g'
6709
6710# Constants:
6711rm="rm -f"
6712
6713# Global variables:
6714default_ofile=libtool
6715can_build_shared=yes
6716
6717# All known linkers require a `.a' archive for static linking (except M$VC,
6718# which needs '.lib').
6719libext=a
6720ltmain="$ac_aux_dir/ltmain.sh"
6721ofile="$default_ofile"
6722with_gnu_ld="$lt_cv_prog_gnu_ld"
6723
6724if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6726set dummy ${ac_tool_prefix}ar; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00006727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006729if test "${ac_cv_prog_AR+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732 if test -n "$AR"; then
6733 ac_cv_prog_AR="$AR" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00006741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006742 ac_cv_prog_AR="${ac_tool_prefix}ar"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747done
Lev Walkin27fd0b62007-08-27 23:57:45 +00006748IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00006749
6750fi
6751fi
6752AR=$ac_cv_prog_AR
6753if test -n "$AR"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006754 { echo "$as_me:$LINENO: result: $AR" >&5
6755echo "${ECHO_T}$AR" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006756else
Lev Walkin27fd0b62007-08-27 23:57:45 +00006757 { echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006759fi
6760
Lev Walkin27fd0b62007-08-27 23:57:45 +00006761
Lev Walkin8e8b5482004-06-17 23:42:48 +00006762fi
6763if test -z "$ac_cv_prog_AR"; then
6764 ac_ct_AR=$AR
6765 # Extract the first word of "ar", so it can be a program name with args.
6766set dummy ar; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00006767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006769if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771else
6772 if test -n "$ac_ct_AR"; then
6773 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00006781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006782 ac_cv_prog_ac_ct_AR="ar"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787done
Lev Walkin27fd0b62007-08-27 23:57:45 +00006788IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00006789
Lev Walkin8e8b5482004-06-17 23:42:48 +00006790fi
6791fi
6792ac_ct_AR=$ac_cv_prog_ac_ct_AR
6793if test -n "$ac_ct_AR"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006794 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6795echo "${ECHO_T}$ac_ct_AR" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006796else
Lev Walkin27fd0b62007-08-27 23:57:45 +00006797 { echo "$as_me:$LINENO: result: no" >&5
6798echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006799fi
6800
Lev Walkin27fd0b62007-08-27 23:57:45 +00006801 if test "x$ac_ct_AR" = x; then
6802 AR="false"
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805yes:)
6806{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6807whose name does not start with the host triplet. If you think this
6808configuration is useful to you, please write to autoconf@gnu.org." >&5
6809echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6810whose name does not start with the host triplet. If you think this
6811configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6812ac_tool_warned=yes ;;
6813esac
6814 AR=$ac_ct_AR
6815 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006816else
6817 AR="$ac_cv_prog_AR"
6818fi
6819
6820if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6822set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00006823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006825if test "${ac_cv_prog_RANLIB+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827else
6828 if test -n "$RANLIB"; then
6829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6830else
6831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00006837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842done
6843done
Lev Walkin27fd0b62007-08-27 23:57:45 +00006844IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00006845
6846fi
6847fi
6848RANLIB=$ac_cv_prog_RANLIB
6849if test -n "$RANLIB"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006850 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6851echo "${ECHO_T}$RANLIB" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006852else
Lev Walkin27fd0b62007-08-27 23:57:45 +00006853 { echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006855fi
6856
Lev Walkin27fd0b62007-08-27 23:57:45 +00006857
Lev Walkin8e8b5482004-06-17 23:42:48 +00006858fi
6859if test -z "$ac_cv_prog_RANLIB"; then
6860 ac_ct_RANLIB=$RANLIB
6861 # Extract the first word of "ranlib", so it can be a program name with args.
6862set dummy ranlib; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00006863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006865if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868 if test -n "$ac_ct_RANLIB"; then
6869 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6870else
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00006877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006878 ac_cv_prog_ac_ct_RANLIB="ranlib"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882done
6883done
Lev Walkin27fd0b62007-08-27 23:57:45 +00006884IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00006885
Lev Walkin8e8b5482004-06-17 23:42:48 +00006886fi
6887fi
6888ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6889if test -n "$ac_ct_RANLIB"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006890 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6891echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006892else
Lev Walkin27fd0b62007-08-27 23:57:45 +00006893 { echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006895fi
6896
Lev Walkin27fd0b62007-08-27 23:57:45 +00006897 if test "x$ac_ct_RANLIB" = x; then
6898 RANLIB=":"
6899 else
6900 case $cross_compiling:$ac_tool_warned in
6901yes:)
6902{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6903whose name does not start with the host triplet. If you think this
6904configuration is useful to you, please write to autoconf@gnu.org." >&5
6905echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6906whose name does not start with the host triplet. If you think this
6907configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6908ac_tool_warned=yes ;;
6909esac
6910 RANLIB=$ac_ct_RANLIB
6911 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006912else
6913 RANLIB="$ac_cv_prog_RANLIB"
6914fi
6915
6916if test -n "$ac_tool_prefix"; then
6917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6918set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00006919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006921if test "${ac_cv_prog_STRIP+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
6924 if test -n "$STRIP"; then
6925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6926else
6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH
6929do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00006933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006934 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938done
6939done
Lev Walkin27fd0b62007-08-27 23:57:45 +00006940IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00006941
6942fi
6943fi
6944STRIP=$ac_cv_prog_STRIP
6945if test -n "$STRIP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006946 { echo "$as_me:$LINENO: result: $STRIP" >&5
6947echo "${ECHO_T}$STRIP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006948else
Lev Walkin27fd0b62007-08-27 23:57:45 +00006949 { echo "$as_me:$LINENO: result: no" >&5
6950echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006951fi
6952
Lev Walkin27fd0b62007-08-27 23:57:45 +00006953
Lev Walkin8e8b5482004-06-17 23:42:48 +00006954fi
6955if test -z "$ac_cv_prog_STRIP"; then
6956 ac_ct_STRIP=$STRIP
6957 # Extract the first word of "strip", so it can be a program name with args.
6958set dummy strip; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00006959{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006961if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963else
6964 if test -n "$ac_ct_STRIP"; then
6965 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6966else
6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00006973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006974 ac_cv_prog_ac_ct_STRIP="strip"
6975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978done
6979done
Lev Walkin27fd0b62007-08-27 23:57:45 +00006980IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00006981
Lev Walkin8e8b5482004-06-17 23:42:48 +00006982fi
6983fi
6984ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6985if test -n "$ac_ct_STRIP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00006986 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6987echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006988else
Lev Walkin27fd0b62007-08-27 23:57:45 +00006989 { echo "$as_me:$LINENO: result: no" >&5
6990echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006991fi
6992
Lev Walkin27fd0b62007-08-27 23:57:45 +00006993 if test "x$ac_ct_STRIP" = x; then
6994 STRIP=":"
6995 else
6996 case $cross_compiling:$ac_tool_warned in
6997yes:)
6998{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6999whose name does not start with the host triplet. If you think this
7000configuration is useful to you, please write to autoconf@gnu.org." >&5
7001echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7002whose name does not start with the host triplet. If you think this
7003configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7004ac_tool_warned=yes ;;
7005esac
7006 STRIP=$ac_ct_STRIP
7007 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00007008else
7009 STRIP="$ac_cv_prog_STRIP"
7010fi
7011
7012
7013old_CC="$CC"
7014old_CFLAGS="$CFLAGS"
7015
7016# Set sane defaults for various variables
7017test -z "$AR" && AR=ar
7018test -z "$AR_FLAGS" && AR_FLAGS=cru
7019test -z "$AS" && AS=as
7020test -z "$CC" && CC=cc
7021test -z "$LTCC" && LTCC=$CC
7022test -z "$DLLTOOL" && DLLTOOL=dlltool
7023test -z "$LD" && LD=ld
7024test -z "$LN_S" && LN_S="ln -s"
7025test -z "$MAGIC_CMD" && MAGIC_CMD=file
7026test -z "$NM" && NM=nm
7027test -z "$SED" && SED=sed
7028test -z "$OBJDUMP" && OBJDUMP=objdump
7029test -z "$RANLIB" && RANLIB=:
7030test -z "$STRIP" && STRIP=:
7031test -z "$ac_objext" && ac_objext=o
7032
7033# Determine commands to create old-style static archives.
7034old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7035old_postinstall_cmds='chmod 644 $oldlib'
7036old_postuninstall_cmds=
7037
7038if test -n "$RANLIB"; then
7039 case $host_os in
7040 openbsd*)
7041 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7042 ;;
7043 *)
7044 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7045 ;;
7046 esac
7047 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7048fi
7049
7050# Only perform the check for file, if the check method requires it
7051case $deplibs_check_method in
7052file_magic*)
7053 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007054 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7055echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007056if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059 case $MAGIC_CMD in
7060[\\/*] | ?:[\\/]*)
7061 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7062 ;;
7063*)
7064 lt_save_MAGIC_CMD="$MAGIC_CMD"
7065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7066 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7067 for ac_dir in $ac_dummy; do
7068 IFS="$lt_save_ifs"
7069 test -z "$ac_dir" && ac_dir=.
7070 if test -f $ac_dir/${ac_tool_prefix}file; then
7071 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7072 if test -n "$file_magic_test_file"; then
7073 case $deplibs_check_method in
7074 "file_magic "*)
7075 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7078 $EGREP "$file_magic_regex" > /dev/null; then
7079 :
7080 else
7081 cat <<EOF 1>&2
7082
7083*** Warning: the command libtool uses to detect shared libraries,
7084*** $file_magic_cmd, produces output that libtool cannot recognize.
7085*** The result is that libtool may fail to recognize shared libraries
7086*** as such. This will affect the creation of libtool libraries that
7087*** depend on shared libraries, but programs linked with such libtool
7088*** libraries will work regardless of this problem. Nevertheless, you
7089*** may want to report the problem to your system manager and/or to
7090*** bug-libtool@gnu.org
7091
7092EOF
7093 fi ;;
7094 esac
7095 fi
7096 break
7097 fi
7098 done
7099 IFS="$lt_save_ifs"
7100 MAGIC_CMD="$lt_save_MAGIC_CMD"
7101 ;;
7102esac
7103fi
7104
7105MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7106if test -n "$MAGIC_CMD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007107 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7108echo "${ECHO_T}$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007109else
Lev Walkin27fd0b62007-08-27 23:57:45 +00007110 { echo "$as_me:$LINENO: result: no" >&5
7111echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007112fi
7113
7114if test -z "$lt_cv_path_MAGIC_CMD"; then
7115 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007116 { echo "$as_me:$LINENO: checking for file" >&5
7117echo $ECHO_N "checking for file... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007118if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121 case $MAGIC_CMD in
7122[\\/*] | ?:[\\/]*)
7123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7124 ;;
7125*)
7126 lt_save_MAGIC_CMD="$MAGIC_CMD"
7127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7129 for ac_dir in $ac_dummy; do
7130 IFS="$lt_save_ifs"
7131 test -z "$ac_dir" && ac_dir=.
7132 if test -f $ac_dir/file; then
7133 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7134 if test -n "$file_magic_test_file"; then
7135 case $deplibs_check_method in
7136 "file_magic "*)
7137 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7140 $EGREP "$file_magic_regex" > /dev/null; then
7141 :
7142 else
7143 cat <<EOF 1>&2
7144
7145*** Warning: the command libtool uses to detect shared libraries,
7146*** $file_magic_cmd, produces output that libtool cannot recognize.
7147*** The result is that libtool may fail to recognize shared libraries
7148*** as such. This will affect the creation of libtool libraries that
7149*** depend on shared libraries, but programs linked with such libtool
7150*** libraries will work regardless of this problem. Nevertheless, you
7151*** may want to report the problem to your system manager and/or to
7152*** bug-libtool@gnu.org
7153
7154EOF
7155 fi ;;
7156 esac
7157 fi
7158 break
7159 fi
7160 done
7161 IFS="$lt_save_ifs"
7162 MAGIC_CMD="$lt_save_MAGIC_CMD"
7163 ;;
7164esac
7165fi
7166
7167MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7168if test -n "$MAGIC_CMD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007169 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7170echo "${ECHO_T}$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007171else
Lev Walkin27fd0b62007-08-27 23:57:45 +00007172 { echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007174fi
7175
7176 else
7177 MAGIC_CMD=:
7178 fi
7179fi
7180
7181 fi
7182 ;;
7183esac
7184
7185enable_dlopen=no
7186enable_win32_dll=no
7187
Lev Walkin27fd0b62007-08-27 23:57:45 +00007188# Check whether --enable-libtool-lock was given.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007189if test "${enable_libtool_lock+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007190 enableval=$enable_libtool_lock;
7191fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00007192
Lev Walkin8e8b5482004-06-17 23:42:48 +00007193test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7194
7195
Lev Walkin27fd0b62007-08-27 23:57:45 +00007196# Check whether --with-pic was given.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007197if test "${with_pic+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007198 withval=$with_pic; pic_mode="$withval"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007199else
7200 pic_mode=default
Lev Walkin27fd0b62007-08-27 23:57:45 +00007201fi
7202
Lev Walkin8e8b5482004-06-17 23:42:48 +00007203test -z "$pic_mode" && pic_mode=default
7204
7205# Use C for the default configuration in the libtool script
7206tagname=
7207lt_save_CC="$CC"
7208ac_ext=c
7209ac_cpp='$CPP $CPPFLAGS'
7210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212ac_compiler_gnu=$ac_cv_c_compiler_gnu
7213
7214
7215# Source file extension for C test sources.
7216ac_ext=c
7217
7218# Object file extension for compiled C test sources.
7219objext=o
7220objext=$objext
7221
7222# Code to be used in simple compile tests
7223lt_simple_compile_test_code="int some_variable = 0;\n"
7224
7225# Code to be used in simple link tests
7226lt_simple_link_test_code='int main(){return(0);}\n'
7227
7228
7229# If no C compiler was specified, use CC.
7230LTCC=${LTCC-"$CC"}
7231
7232# Allow CC to be a program name with arguments.
7233compiler=$CC
7234
7235
7236#
7237# Check for any special shared library compilation flags.
7238#
7239lt_prog_cc_shlib=
7240if test "$GCC" = no; then
7241 case $host_os in
7242 sco3.2v5*)
7243 lt_prog_cc_shlib='-belf'
7244 ;;
7245 esac
7246fi
7247if test -n "$lt_prog_cc_shlib"; then
7248 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7249echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7250 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7251 else
7252 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7253echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7254 lt_cv_prog_cc_can_build_shared=no
7255 fi
7256fi
7257
7258
7259#
7260# Check to make sure the static flag actually works.
7261#
Lev Walkin27fd0b62007-08-27 23:57:45 +00007262{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7263echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007264if test "${lt_prog_compiler_static_works+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267 lt_prog_compiler_static_works=no
7268 save_LDFLAGS="$LDFLAGS"
7269 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7270 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7271 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7272 # The compiler can only warn and ignore the option if not recognized
7273 # So say no if there are warnings
7274 if test -s conftest.err; then
7275 # Append any errors to the config.log.
7276 cat conftest.err 1>&5
7277 else
7278 lt_prog_compiler_static_works=yes
7279 fi
7280 fi
7281 $rm conftest*
7282 LDFLAGS="$save_LDFLAGS"
7283
7284fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007285{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7286echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007287
7288if test x"$lt_prog_compiler_static_works" = xyes; then
7289 :
7290else
7291 lt_prog_compiler_static=
7292fi
7293
7294
7295
7296
7297lt_prog_compiler_no_builtin_flag=
7298
7299if test "$GCC" = yes; then
7300 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7301
7302
Lev Walkin27fd0b62007-08-27 23:57:45 +00007303{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7304echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007305if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307else
7308 lt_cv_prog_compiler_rtti_exceptions=no
7309 ac_outfile=conftest.$ac_objext
7310 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7311 lt_compiler_flag="-fno-rtti -fno-exceptions"
7312 # Insert the option either (1) after the last *FLAGS variable, or
7313 # (2) before a word containing "conftest.", or (3) at the end.
7314 # Note that $ac_compile itself does not contain backslashes and begins
7315 # with a dollar sign (not a hyphen), so the echo should work correctly.
7316 # The option is referenced via a variable to avoid confusing sed.
7317 lt_compile=`echo "$ac_compile" | $SED \
7318 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7320 -e 's:$: $lt_compiler_flag:'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00007321 (eval echo "\"\$as_me:7321: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007322 (eval "$lt_compile" 2>conftest.err)
7323 ac_status=$?
7324 cat conftest.err >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00007325 echo "$as_me:7325: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007326 if (exit $ac_status) && test -s "$ac_outfile"; then
7327 # The compiler can only warn and ignore the option if not recognized
7328 # So say no if there are warnings
7329 if test ! -s conftest.err; then
7330 lt_cv_prog_compiler_rtti_exceptions=yes
7331 fi
7332 fi
7333 $rm conftest*
7334
7335fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007336{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7337echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007338
7339if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7340 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7341else
7342 :
7343fi
7344
7345fi
7346
7347lt_prog_compiler_wl=
7348lt_prog_compiler_pic=
7349lt_prog_compiler_static=
7350
Lev Walkin27fd0b62007-08-27 23:57:45 +00007351{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7352echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007353
7354 if test "$GCC" = yes; then
7355 lt_prog_compiler_wl='-Wl,'
7356 lt_prog_compiler_static='-static'
7357
7358 case $host_os in
7359 aix*)
7360 # All AIX code is PIC.
7361 if test "$host_cpu" = ia64; then
7362 # AIX 5 now supports IA64 processor
7363 lt_prog_compiler_static='-Bstatic'
7364 fi
7365 ;;
7366
7367 amigaos*)
7368 # FIXME: we need at least 68020 code to build shared libraries, but
7369 # adding the `-m68020' flag to GCC prevents building anything better,
7370 # like `-m68040'.
7371 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7372 ;;
7373
7374 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7375 # PIC is the default for these OSes.
7376 ;;
7377
7378 mingw* | pw32* | os2*)
7379 # This hack is so that the source file can tell whether it is being
7380 # built for inclusion in a dll (and should export symbols for example).
7381 lt_prog_compiler_pic='-DDLL_EXPORT'
7382 ;;
7383
7384 darwin* | rhapsody*)
7385 # PIC is the default on this platform
7386 # Common symbols not allowed in MH_DYLIB files
7387 lt_prog_compiler_pic='-fno-common'
7388 ;;
7389
7390 msdosdjgpp*)
7391 # Just because we use GCC doesn't mean we suddenly get shared libraries
7392 # on systems that don't support them.
7393 lt_prog_compiler_can_build_shared=no
7394 enable_shared=no
7395 ;;
7396
7397 sysv4*MP*)
7398 if test -d /usr/nec; then
7399 lt_prog_compiler_pic=-Kconform_pic
7400 fi
7401 ;;
7402
7403 hpux*)
7404 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7405 # not for PA HP-UX.
7406 case "$host_cpu" in
7407 hppa*64*|ia64*)
7408 # +Z the default
7409 ;;
7410 *)
7411 lt_prog_compiler_pic='-fPIC'
7412 ;;
7413 esac
7414 ;;
7415
7416 *)
7417 lt_prog_compiler_pic='-fPIC'
7418 ;;
7419 esac
7420 else
7421 # PORTME Check for flag to pass linker flags through the system compiler.
7422 case $host_os in
7423 aix*)
7424 lt_prog_compiler_wl='-Wl,'
7425 if test "$host_cpu" = ia64; then
7426 # AIX 5 now supports IA64 processor
7427 lt_prog_compiler_static='-Bstatic'
7428 else
7429 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7430 fi
7431 ;;
7432
7433 mingw* | pw32* | os2*)
7434 # This hack is so that the source file can tell whether it is being
7435 # built for inclusion in a dll (and should export symbols for example).
7436 lt_prog_compiler_pic='-DDLL_EXPORT'
7437 ;;
7438
7439 hpux9* | hpux10* | hpux11*)
7440 lt_prog_compiler_wl='-Wl,'
7441 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7442 # not for PA HP-UX.
7443 case "$host_cpu" in
7444 hppa*64*|ia64*)
7445 # +Z the default
7446 ;;
7447 *)
7448 lt_prog_compiler_pic='+Z'
7449 ;;
7450 esac
7451 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7452 lt_prog_compiler_static='${wl}-a ${wl}archive'
7453 ;;
7454
7455 irix5* | irix6* | nonstopux*)
7456 lt_prog_compiler_wl='-Wl,'
7457 # PIC (with -KPIC) is the default.
7458 lt_prog_compiler_static='-non_shared'
7459 ;;
7460
7461 newsos6)
7462 lt_prog_compiler_pic='-KPIC'
7463 lt_prog_compiler_static='-Bstatic'
7464 ;;
7465
7466 linux*)
7467 case $CC in
7468 icc* | ecc*)
7469 lt_prog_compiler_wl='-Wl,'
7470 lt_prog_compiler_pic='-KPIC'
7471 lt_prog_compiler_static='-static'
7472 ;;
7473 ccc*)
7474 lt_prog_compiler_wl='-Wl,'
7475 # All Alpha code is PIC.
7476 lt_prog_compiler_static='-non_shared'
7477 ;;
7478 esac
7479 ;;
7480
7481 osf3* | osf4* | osf5*)
7482 lt_prog_compiler_wl='-Wl,'
7483 # All OSF/1 code is PIC.
7484 lt_prog_compiler_static='-non_shared'
7485 ;;
7486
7487 sco3.2v5*)
7488 lt_prog_compiler_pic='-Kpic'
7489 lt_prog_compiler_static='-dn'
7490 ;;
7491
7492 solaris*)
7493 lt_prog_compiler_wl='-Wl,'
7494 lt_prog_compiler_pic='-KPIC'
7495 lt_prog_compiler_static='-Bstatic'
7496 ;;
7497
7498 sunos4*)
7499 lt_prog_compiler_wl='-Qoption ld '
7500 lt_prog_compiler_pic='-PIC'
7501 lt_prog_compiler_static='-Bstatic'
7502 ;;
7503
7504 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7505 lt_prog_compiler_wl='-Wl,'
7506 lt_prog_compiler_pic='-KPIC'
7507 lt_prog_compiler_static='-Bstatic'
7508 ;;
7509
7510 sysv4*MP*)
7511 if test -d /usr/nec ;then
7512 lt_prog_compiler_pic='-Kconform_pic'
7513 lt_prog_compiler_static='-Bstatic'
7514 fi
7515 ;;
7516
7517 uts4*)
7518 lt_prog_compiler_pic='-pic'
7519 lt_prog_compiler_static='-Bstatic'
7520 ;;
7521
7522 *)
7523 lt_prog_compiler_can_build_shared=no
7524 ;;
7525 esac
7526 fi
7527
Lev Walkin27fd0b62007-08-27 23:57:45 +00007528{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7529echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007530
7531#
7532# Check to make sure the PIC flag actually works.
7533#
7534if test -n "$lt_prog_compiler_pic"; then
7535
Lev Walkin27fd0b62007-08-27 23:57:45 +00007536{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7537echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007538if test "${lt_prog_compiler_pic_works+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540else
7541 lt_prog_compiler_pic_works=no
7542 ac_outfile=conftest.$ac_objext
7543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7544 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7545 # Insert the option either (1) after the last *FLAGS variable, or
7546 # (2) before a word containing "conftest.", or (3) at the end.
7547 # Note that $ac_compile itself does not contain backslashes and begins
7548 # with a dollar sign (not a hyphen), so the echo should work correctly.
7549 # The option is referenced via a variable to avoid confusing sed.
7550 lt_compile=`echo "$ac_compile" | $SED \
7551 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7553 -e 's:$: $lt_compiler_flag:'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00007554 (eval echo "\"\$as_me:7554: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007555 (eval "$lt_compile" 2>conftest.err)
7556 ac_status=$?
7557 cat conftest.err >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00007558 echo "$as_me:7558: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007559 if (exit $ac_status) && test -s "$ac_outfile"; then
7560 # The compiler can only warn and ignore the option if not recognized
7561 # So say no if there are warnings
7562 if test ! -s conftest.err; then
7563 lt_prog_compiler_pic_works=yes
7564 fi
7565 fi
7566 $rm conftest*
7567
7568fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007569{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7570echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007571
7572if test x"$lt_prog_compiler_pic_works" = xyes; then
7573 case $lt_prog_compiler_pic in
7574 "" | " "*) ;;
7575 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7576 esac
7577else
7578 lt_prog_compiler_pic=
7579 lt_prog_compiler_can_build_shared=no
7580fi
7581
7582fi
7583case "$host_os" in
7584 # For platforms which do not support PIC, -DPIC is meaningless:
7585 *djgpp*)
7586 lt_prog_compiler_pic=
7587 ;;
7588 *)
7589 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7590 ;;
7591esac
7592
Lev Walkin27fd0b62007-08-27 23:57:45 +00007593{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7594echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007595if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 lt_cv_prog_compiler_c_o=no
7599 $rm -r conftest 2>/dev/null
7600 mkdir conftest
7601 cd conftest
7602 mkdir out
7603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7604
7605 lt_compiler_flag="-o out/conftest2.$ac_objext"
7606 # Insert the option either (1) after the last *FLAGS variable, or
7607 # (2) before a word containing "conftest.", or (3) at the end.
7608 # Note that $ac_compile itself does not contain backslashes and begins
7609 # with a dollar sign (not a hyphen), so the echo should work correctly.
7610 lt_compile=`echo "$ac_compile" | $SED \
7611 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7613 -e 's:$: $lt_compiler_flag:'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00007614 (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007615 (eval "$lt_compile" 2>out/conftest.err)
7616 ac_status=$?
7617 cat out/conftest.err >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00007618 echo "$as_me:7618: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7620 then
7621 # The compiler can only warn and ignore the option if not recognized
7622 # So say no if there are warnings
7623 if test ! -s out/conftest.err; then
7624 lt_cv_prog_compiler_c_o=yes
7625 fi
7626 fi
7627 chmod u+w .
7628 $rm conftest*
7629 # SGI C++ compiler will create directory out/ii_files/ for
7630 # template instantiation
7631 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7632 $rm out/* && rmdir out
7633 cd ..
7634 rmdir conftest
7635 $rm conftest*
7636
7637fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007638{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7639echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007640
7641
7642hard_links="nottested"
7643if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7644 # do not overwrite the value of need_locks provided by the user
Lev Walkin27fd0b62007-08-27 23:57:45 +00007645 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7646echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007647 hard_links=yes
7648 $rm conftest*
7649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7650 touch conftest.a
7651 ln conftest.a conftest.b 2>&5 || hard_links=no
7652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00007653 { echo "$as_me:$LINENO: result: $hard_links" >&5
7654echo "${ECHO_T}$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007655 if test "$hard_links" = no; then
7656 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7657echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7658 need_locks=warn
7659 fi
7660else
7661 need_locks=no
7662fi
7663
Lev Walkin27fd0b62007-08-27 23:57:45 +00007664{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7665echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007666
7667 runpath_var=
7668 allow_undefined_flag=
7669 enable_shared_with_static_runtimes=no
7670 archive_cmds=
7671 archive_expsym_cmds=
7672 old_archive_From_new_cmds=
7673 old_archive_from_expsyms_cmds=
7674 export_dynamic_flag_spec=
7675 whole_archive_flag_spec=
7676 thread_safe_flag_spec=
7677 hardcode_libdir_flag_spec=
7678 hardcode_libdir_flag_spec_ld=
7679 hardcode_libdir_separator=
7680 hardcode_direct=no
7681 hardcode_minus_L=no
7682 hardcode_shlibpath_var=unsupported
7683 link_all_deplibs=unknown
7684 hardcode_automatic=no
7685 module_cmds=
7686 module_expsym_cmds=
7687 always_export_symbols=no
7688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7689 # include_expsyms should be a list of space-separated symbols to be *always*
7690 # included in the symbol list
7691 include_expsyms=
7692 # exclude_expsyms can be an extended regexp of symbols to exclude
7693 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7694 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7695 # as well as any symbol that contains `d'.
7696 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7698 # platforms (ab)use it in PIC code, but their linkers get confused if
7699 # the symbol is explicitly referenced. Since portable code cannot
7700 # rely on this symbol name, it's probably fine to never include it in
7701 # preloaded symbol tables.
7702 extract_expsyms_cmds=
7703
7704 case $host_os in
7705 cygwin* | mingw* | pw32*)
7706 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7707 # When not using gcc, we currently assume that we are using
7708 # Microsoft Visual C++.
7709 if test "$GCC" != yes; then
7710 with_gnu_ld=no
7711 fi
7712 ;;
7713 openbsd*)
7714 with_gnu_ld=no
7715 ;;
7716 esac
7717
7718 ld_shlibs=yes
7719 if test "$with_gnu_ld" = yes; then
7720 # If archive_cmds runs LD, not CC, wlarc should be empty
7721 wlarc='${wl}'
7722
7723 # See if GNU ld supports shared libraries.
7724 case $host_os in
7725 aix3* | aix4* | aix5*)
7726 # On AIX/PPC, the GNU linker is very broken
7727 if test "$host_cpu" != ia64; then
7728 ld_shlibs=no
7729 cat <<EOF 1>&2
7730
7731*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7732*** to be unable to reliably create shared libraries on AIX.
7733*** Therefore, libtool is disabling shared libraries support. If you
7734*** really care for shared libraries, you may want to modify your PATH
7735*** so that a non-GNU linker is found, and then restart.
7736
7737EOF
7738 fi
7739 ;;
7740
7741 amigaos*)
7742 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)'
7743 hardcode_libdir_flag_spec='-L$libdir'
7744 hardcode_minus_L=yes
7745
7746 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7747 # that the semantics of dynamic libraries on AmigaOS, at least up
7748 # to version 4, is to share data among multiple programs linked
7749 # with the same dynamic library. Since this doesn't match the
7750 # behavior of shared libraries on other platforms, we can't use
7751 # them.
7752 ld_shlibs=no
7753 ;;
7754
7755 beos*)
7756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7757 allow_undefined_flag=unsupported
7758 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7759 # support --undefined. This deserves some investigation. FIXME
7760 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7761 else
7762 ld_shlibs=no
7763 fi
7764 ;;
7765
7766 cygwin* | mingw* | pw32*)
7767 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7768 # as there is no search path for DLLs.
7769 hardcode_libdir_flag_spec='-L$libdir'
7770 allow_undefined_flag=unsupported
7771 always_export_symbols=no
7772 enable_shared_with_static_runtimes=yes
7773 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7774
7775 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7777 # If the export-symbols file already is a .def file (1st line
7778 # is EXPORTS), use it as is; otherwise, prepend...
7779 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7780 cp $export_symbols $output_objdir/$soname.def;
7781 else
7782 echo EXPORTS > $output_objdir/$soname.def;
7783 cat $export_symbols >> $output_objdir/$soname.def;
7784 fi~
7785 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7786 else
7787 ld_shlibs=no
7788 fi
7789 ;;
7790
7791 netbsd*)
7792 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7793 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7794 wlarc=
7795 else
7796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7798 fi
7799 ;;
7800
7801 solaris* | sysv5*)
7802 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7803 ld_shlibs=no
7804 cat <<EOF 1>&2
7805
7806*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7807*** create shared libraries on Solaris systems. Therefore, libtool
7808*** is disabling shared libraries support. We urge you to upgrade GNU
7809*** binutils to release 2.9.1 or newer. Another option is to modify
7810*** your PATH or compiler configuration so that the native linker is
7811*** used, and then restart.
7812
7813EOF
7814 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7817 else
7818 ld_shlibs=no
7819 fi
7820 ;;
7821
7822 sunos4*)
7823 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7824 wlarc=
7825 hardcode_direct=yes
7826 hardcode_shlibpath_var=no
7827 ;;
7828
7829 linux*)
7830 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7831 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7832 archive_cmds="$tmp_archive_cmds"
7833 supports_anon_versioning=no
7834 case `$LD -v 2>/dev/null` in
7835 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7836 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7837 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7838 *\ 2.11.*) ;; # other 2.11 versions
7839 *) supports_anon_versioning=yes ;;
7840 esac
7841 if test $supports_anon_versioning = yes; then
7842 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7843cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7844$echo "local: *; };" >> $output_objdir/$libname.ver~
7845 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7846 else
7847 archive_expsym_cmds="$tmp_archive_cmds"
7848 fi
7849 else
7850 ld_shlibs=no
7851 fi
7852 ;;
7853
7854 *)
7855 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7857 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7858 else
7859 ld_shlibs=no
7860 fi
7861 ;;
7862 esac
7863
7864 if test "$ld_shlibs" = yes; then
7865 runpath_var=LD_RUN_PATH
7866 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7867 export_dynamic_flag_spec='${wl}--export-dynamic'
7868 # ancient GNU ld didn't support --whole-archive et. al.
7869 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7871 else
7872 whole_archive_flag_spec=
7873 fi
7874 fi
7875 else
7876 # PORTME fill in a description of your system's linker (not GNU ld)
7877 case $host_os in
7878 aix3*)
7879 allow_undefined_flag=unsupported
7880 always_export_symbols=yes
7881 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'
7882 # Note: this linker hardcodes the directories in LIBPATH if there
7883 # are no directories specified by -L.
7884 hardcode_minus_L=yes
7885 if test "$GCC" = yes && test -z "$link_static_flag"; then
7886 # Neither direct hardcoding nor static linking is supported with a
7887 # broken collect2.
7888 hardcode_direct=unsupported
7889 fi
7890 ;;
7891
7892 aix4* | aix5*)
7893 if test "$host_cpu" = ia64; then
7894 # On IA64, the linker does run time linking by default, so we don't
7895 # have to do anything special.
7896 aix_use_runtimelinking=no
7897 exp_sym_flag='-Bexport'
7898 no_entry_flag=""
7899 else
7900 # If we're using GNU nm, then we don't want the "-C" option.
7901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7902 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7903 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'
7904 else
7905 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'
7906 fi
7907 aix_use_runtimelinking=no
7908
7909 # Test if we are trying to use run time linking or normal
7910 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7911 # need to do runtime linking.
7912 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7913 for ld_flag in $LDFLAGS; do
7914 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7915 aix_use_runtimelinking=yes
7916 break
7917 fi
7918 done
7919 esac
7920
7921 exp_sym_flag='-bexport'
7922 no_entry_flag='-bnoentry'
7923 fi
7924
7925 # When large executables or shared objects are built, AIX ld can
7926 # have problems creating the table of contents. If linking a library
7927 # or program results in "error TOC overflow" add -mminimal-toc to
7928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7930
7931 archive_cmds=''
7932 hardcode_direct=yes
7933 hardcode_libdir_separator=':'
7934 link_all_deplibs=yes
7935
7936 if test "$GCC" = yes; then
7937 case $host_os in aix4.012|aix4.012.*)
7938 # We only want to do this on AIX 4.2 and lower, the check
7939 # below for broken collect2 doesn't work under 4.3+
7940 collect2name=`${CC} -print-prog-name=collect2`
7941 if test -f "$collect2name" && \
7942 strings "$collect2name" | grep resolve_lib_name >/dev/null
7943 then
7944 # We have reworked collect2
7945 hardcode_direct=yes
7946 else
7947 # We have old collect2
7948 hardcode_direct=unsupported
7949 # It fails to find uninstalled libraries when the uninstalled
7950 # path is not listed in the libpath. Setting hardcode_minus_L
7951 # to unsupported forces relinking
7952 hardcode_minus_L=yes
7953 hardcode_libdir_flag_spec='-L$libdir'
7954 hardcode_libdir_separator=
7955 fi
7956 esac
7957 shared_flag='-shared'
7958 else
7959 # not using gcc
7960 if test "$host_cpu" = ia64; then
7961 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7962 # chokes on -Wl,-G. The following line is correct:
7963 shared_flag='-G'
7964 else
7965 if test "$aix_use_runtimelinking" = yes; then
7966 shared_flag='${wl}-G'
7967 else
7968 shared_flag='${wl}-bM:SRE'
7969 fi
7970 fi
7971 fi
7972
7973 # It seems that -bexpall does not export symbols beginning with
7974 # underscore (_), so it is better to generate a list of symbols to export.
7975 always_export_symbols=yes
7976 if test "$aix_use_runtimelinking" = yes; then
7977 # Warning - without using the other runtime loading flags (-brtl),
7978 # -berok will link without error, but may produce a broken library.
7979 allow_undefined_flag='-berok'
7980 # Determine the default libpath from the value encoded in an empty executable.
7981 cat >conftest.$ac_ext <<_ACEOF
7982/* confdefs.h. */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h. */
7987
7988int
7989main ()
7990{
7991
7992 ;
7993 return 0;
7994}
7995_ACEOF
7996rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00007997if { (ac_try="$ac_link"
7998case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001esac
8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00008004 ac_status=$?
8005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00008010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8011 { (case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014esac
8015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00008021 { (case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024esac
8025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030
8031aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8032}'`
8033# Check for a 64-bit object if we didn't find anything.
8034if 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; }
8035}'`; fi
8036else
8037 echo "$as_me: failed program was:" >&5
8038sed 's/^/| /' conftest.$ac_ext >&5
8039
Lev Walkin27fd0b62007-08-27 23:57:45 +00008040
Lev Walkin8e8b5482004-06-17 23:42:48 +00008041fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008042
8043rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008044 conftest$ac_exeext conftest.$ac_ext
8045if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8046
8047 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8048 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8049 else
8050 if test "$host_cpu" = ia64; then
8051 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8052 allow_undefined_flag="-z nodefs"
8053 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8054 else
8055 # Determine the default libpath from the value encoded in an empty executable.
8056 cat >conftest.$ac_ext <<_ACEOF
8057/* confdefs.h. */
8058_ACEOF
8059cat confdefs.h >>conftest.$ac_ext
8060cat >>conftest.$ac_ext <<_ACEOF
8061/* end confdefs.h. */
8062
8063int
8064main ()
8065{
8066
8067 ;
8068 return 0;
8069}
8070_ACEOF
8071rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00008072if { (ac_try="$ac_link"
8073case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00008079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00008085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00008096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099esac
8100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105
8106aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8107}'`
8108# Check for a 64-bit object if we didn't find anything.
8109if 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; }
8110}'`; fi
8111else
8112 echo "$as_me: failed program was:" >&5
8113sed 's/^/| /' conftest.$ac_ext >&5
8114
Lev Walkin27fd0b62007-08-27 23:57:45 +00008115
Lev Walkin8e8b5482004-06-17 23:42:48 +00008116fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008117
8118rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008119 conftest$ac_exeext conftest.$ac_ext
8120if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8121
8122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8123 # Warning - without using the other run time loading flags,
8124 # -berok will link without error, but may produce a broken library.
8125 no_undefined_flag=' ${wl}-bernotok'
8126 allow_undefined_flag=' ${wl}-berok'
8127 # -bexpall does not export symbols beginning with underscore (_)
8128 always_export_symbols=yes
8129 # Exported symbols can be pulled into shared objects from archives
8130 whole_archive_flag_spec=' '
8131 archive_cmds_need_lc=yes
8132 # This is similar to how AIX traditionally builds it's shared libraries.
8133 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8134 fi
8135 fi
8136 ;;
8137
8138 amigaos*)
8139 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)'
8140 hardcode_libdir_flag_spec='-L$libdir'
8141 hardcode_minus_L=yes
8142 # see comment about different semantics on the GNU ld section
8143 ld_shlibs=no
8144 ;;
8145
8146 bsdi4*)
8147 export_dynamic_flag_spec=-rdynamic
8148 ;;
8149
8150 cygwin* | mingw* | pw32*)
8151 # When not using gcc, we currently assume that we are using
8152 # Microsoft Visual C++.
8153 # hardcode_libdir_flag_spec is actually meaningless, as there is
8154 # no search path for DLLs.
8155 hardcode_libdir_flag_spec=' '
8156 allow_undefined_flag=unsupported
8157 # Tell ltmain to make .lib files, not .a files.
8158 libext=lib
8159 # Tell ltmain to make .dll files, not .so files.
8160 shrext_cmds=".dll"
8161 # FIXME: Setting linknames here is a bad hack.
8162 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8163 # The linker will automatically build a .lib file if we build a DLL.
8164 old_archive_From_new_cmds='true'
8165 # FIXME: Should let the user specify the lib program.
8166 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8167 fix_srcfile_path='`cygpath -w "$srcfile"`'
8168 enable_shared_with_static_runtimes=yes
8169 ;;
8170
8171 darwin* | rhapsody*)
8172 if test "$GXX" = yes ; then
8173 archive_cmds_need_lc=no
8174 case "$host_os" in
8175 rhapsody* | darwin1.[012])
8176 allow_undefined_flag='-undefined suppress'
8177 ;;
8178 *) # Darwin 1.3 on
8179 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8180 allow_undefined_flag='-flat_namespace -undefined suppress'
8181 else
8182 case ${MACOSX_DEPLOYMENT_TARGET} in
8183 10.[012])
8184 allow_undefined_flag='-flat_namespace -undefined suppress'
8185 ;;
8186 10.*)
8187 allow_undefined_flag='-undefined dynamic_lookup'
8188 ;;
8189 esac
8190 fi
8191 ;;
8192 esac
8193 lt_int_apple_cc_single_mod=no
8194 output_verbose_link_cmd='echo'
8195 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8196 lt_int_apple_cc_single_mod=yes
8197 fi
8198 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8199 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8200 else
8201 archive_cmds='$CC -r ${wl}-bind_at_load -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'
8202 fi
8203 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8204 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8205 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8206 archive_expsym_cmds='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}'
8207 else
8208 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
8209 fi
8210 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}'
8211 hardcode_direct=no
8212 hardcode_automatic=yes
8213 hardcode_shlibpath_var=unsupported
8214 whole_archive_flag_spec='-all_load $convenience'
8215 link_all_deplibs=yes
8216 else
8217 ld_shlibs=no
8218 fi
8219 ;;
8220
8221 dgux*)
8222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8223 hardcode_libdir_flag_spec='-L$libdir'
8224 hardcode_shlibpath_var=no
8225 ;;
8226
8227 freebsd1*)
8228 ld_shlibs=no
8229 ;;
8230
8231 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8232 # support. Future versions do this automatically, but an explicit c++rt0.o
8233 # does not break anything, and helps significantly (at the cost of a little
8234 # extra space).
8235 freebsd2.2*)
8236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8237 hardcode_libdir_flag_spec='-R$libdir'
8238 hardcode_direct=yes
8239 hardcode_shlibpath_var=no
8240 ;;
8241
8242 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8243 freebsd2*)
8244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8245 hardcode_direct=yes
8246 hardcode_minus_L=yes
8247 hardcode_shlibpath_var=no
8248 ;;
8249
8250 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8251 freebsd* | kfreebsd*-gnu)
8252 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8253 hardcode_libdir_flag_spec='-R$libdir'
8254 hardcode_direct=yes
8255 hardcode_shlibpath_var=no
8256 ;;
8257
8258 hpux9*)
8259 if test "$GCC" = yes; then
8260 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'
8261 else
8262 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'
8263 fi
8264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8265 hardcode_libdir_separator=:
8266 hardcode_direct=yes
8267
8268 # hardcode_minus_L: Not really in the search PATH,
8269 # but as the default location of the library.
8270 hardcode_minus_L=yes
8271 export_dynamic_flag_spec='${wl}-E'
8272 ;;
8273
8274 hpux10* | hpux11*)
8275 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8276 case "$host_cpu" in
8277 hppa*64*|ia64*)
8278 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8279 ;;
8280 *)
8281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8282 ;;
8283 esac
8284 else
8285 case "$host_cpu" in
8286 hppa*64*|ia64*)
8287 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8288 ;;
8289 *)
8290 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8291 ;;
8292 esac
8293 fi
8294 if test "$with_gnu_ld" = no; then
8295 case "$host_cpu" in
8296 hppa*64*)
8297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8298 hardcode_libdir_flag_spec_ld='+b $libdir'
8299 hardcode_libdir_separator=:
8300 hardcode_direct=no
8301 hardcode_shlibpath_var=no
8302 ;;
8303 ia64*)
8304 hardcode_libdir_flag_spec='-L$libdir'
8305 hardcode_direct=no
8306 hardcode_shlibpath_var=no
8307
8308 # hardcode_minus_L: Not really in the search PATH,
8309 # but as the default location of the library.
8310 hardcode_minus_L=yes
8311 ;;
8312 *)
8313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8314 hardcode_libdir_separator=:
8315 hardcode_direct=yes
8316 export_dynamic_flag_spec='${wl}-E'
8317
8318 # hardcode_minus_L: Not really in the search PATH,
8319 # but as the default location of the library.
8320 hardcode_minus_L=yes
8321 ;;
8322 esac
8323 fi
8324 ;;
8325
8326 irix5* | irix6* | nonstopux*)
8327 if test "$GCC" = yes; then
8328 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'
8329 else
8330 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'
8331 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8332 fi
8333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8334 hardcode_libdir_separator=:
8335 link_all_deplibs=yes
8336 ;;
8337
8338 netbsd*)
8339 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8341 else
8342 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8343 fi
8344 hardcode_libdir_flag_spec='-R$libdir'
8345 hardcode_direct=yes
8346 hardcode_shlibpath_var=no
8347 ;;
8348
8349 newsos6)
8350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8351 hardcode_direct=yes
8352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8353 hardcode_libdir_separator=:
8354 hardcode_shlibpath_var=no
8355 ;;
8356
8357 openbsd*)
8358 hardcode_direct=yes
8359 hardcode_shlibpath_var=no
8360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8363 export_dynamic_flag_spec='${wl}-E'
8364 else
8365 case $host_os in
8366 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8368 hardcode_libdir_flag_spec='-R$libdir'
8369 ;;
8370 *)
8371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8372 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8373 ;;
8374 esac
8375 fi
8376 ;;
8377
8378 os2*)
8379 hardcode_libdir_flag_spec='-L$libdir'
8380 hardcode_minus_L=yes
8381 allow_undefined_flag=unsupported
8382 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'
8383 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8384 ;;
8385
8386 osf3*)
8387 if test "$GCC" = yes; then
8388 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8389 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'
8390 else
8391 allow_undefined_flag=' -expect_unresolved \*'
8392 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'
8393 fi
8394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395 hardcode_libdir_separator=:
8396 ;;
8397
8398 osf4* | osf5*) # as osf3* with the addition of -msym flag
8399 if test "$GCC" = yes; then
8400 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8401 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'
8402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8403 else
8404 allow_undefined_flag=' -expect_unresolved \*'
8405 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'
8406 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8407 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8408
8409 # Both c and cxx compiler support -rpath directly
8410 hardcode_libdir_flag_spec='-rpath $libdir'
8411 fi
8412 hardcode_libdir_separator=:
8413 ;;
8414
8415 sco3.2v5*)
8416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_shlibpath_var=no
8418 export_dynamic_flag_spec='${wl}-Bexport'
8419 runpath_var=LD_RUN_PATH
8420 hardcode_runpath_var=yes
8421 ;;
8422
8423 solaris*)
8424 no_undefined_flag=' -z text'
8425 if test "$GCC" = yes; then
8426 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8428 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8429 else
8430 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8431 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8432 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8433 fi
8434 hardcode_libdir_flag_spec='-R$libdir'
8435 hardcode_shlibpath_var=no
8436 case $host_os in
8437 solaris2.[0-5] | solaris2.[0-5].*) ;;
8438 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8439 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8440 esac
8441 link_all_deplibs=yes
8442 ;;
8443
8444 sunos4*)
8445 if test "x$host_vendor" = xsequent; then
8446 # Use $CC to link under sequent, because it throws in some extra .o
8447 # files that make .init and .fini sections work.
8448 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8449 else
8450 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8451 fi
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 hardcode_direct=yes
8454 hardcode_minus_L=yes
8455 hardcode_shlibpath_var=no
8456 ;;
8457
8458 sysv4)
8459 case $host_vendor in
8460 sni)
8461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462 hardcode_direct=yes # is this really true???
8463 ;;
8464 siemens)
8465 ## LD is ld it makes a PLAMLIB
8466 ## CC just makes a GrossModule.
8467 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8468 reload_cmds='$CC -r -o $output$reload_objs'
8469 hardcode_direct=no
8470 ;;
8471 motorola)
8472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8473 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8474 ;;
8475 esac
8476 runpath_var='LD_RUN_PATH'
8477 hardcode_shlibpath_var=no
8478 ;;
8479
8480 sysv4.3*)
8481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8482 hardcode_shlibpath_var=no
8483 export_dynamic_flag_spec='-Bexport'
8484 ;;
8485
8486 sysv4*MP*)
8487 if test -d /usr/nec; then
8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_shlibpath_var=no
8490 runpath_var=LD_RUN_PATH
8491 hardcode_runpath_var=yes
8492 ld_shlibs=yes
8493 fi
8494 ;;
8495
8496 sysv4.2uw2*)
8497 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8498 hardcode_direct=yes
8499 hardcode_minus_L=no
8500 hardcode_shlibpath_var=no
8501 hardcode_runpath_var=yes
8502 runpath_var=LD_RUN_PATH
8503 ;;
8504
8505 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8506 no_undefined_flag='${wl}-z ${wl}text'
8507 if test "$GCC" = yes; then
8508 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8509 else
8510 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 fi
8512 runpath_var='LD_RUN_PATH'
8513 hardcode_shlibpath_var=no
8514 ;;
8515
8516 sysv5*)
8517 no_undefined_flag=' -z text'
8518 # $CC -shared without GNU ld will not create a library from C++
8519 # object files and a static libstdc++, better avoid it by now
8520 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8521 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8522 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8523 hardcode_libdir_flag_spec=
8524 hardcode_shlibpath_var=no
8525 runpath_var='LD_RUN_PATH'
8526 ;;
8527
8528 uts4*)
8529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_libdir_flag_spec='-L$libdir'
8531 hardcode_shlibpath_var=no
8532 ;;
8533
8534 *)
8535 ld_shlibs=no
8536 ;;
8537 esac
8538 fi
8539
Lev Walkin27fd0b62007-08-27 23:57:45 +00008540{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8541echo "${ECHO_T}$ld_shlibs" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008542test "$ld_shlibs" = no && can_build_shared=no
8543
8544variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8545if test "$GCC" = yes; then
8546 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8547fi
8548
8549#
8550# Do we need to explicitly link libc?
8551#
8552case "x$archive_cmds_need_lc" in
8553x|xyes)
8554 # Assume -lc should be added
8555 archive_cmds_need_lc=yes
8556
8557 if test "$enable_shared" = yes && test "$GCC" = yes; then
8558 case $archive_cmds in
8559 *'~'*)
8560 # FIXME: we may have to deal with multi-command sequences.
8561 ;;
8562 '$CC '*)
8563 # Test whether the compiler implicitly links with -lc since on some
8564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8565 # to ld, don't add -lc before -lgcc.
Lev Walkin27fd0b62007-08-27 23:57:45 +00008566 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8567echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008568 $rm conftest*
8569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8570
8571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8572 (eval $ac_compile) 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } 2>conftest.err; then
8576 soname=conftest
8577 lib=conftest
8578 libobjs=conftest.$ac_objext
8579 deplibs=
8580 wl=$lt_prog_compiler_wl
8581 compiler_flags=-v
8582 linker_flags=-v
8583 verstring=
8584 output_objdir=.
8585 libname=conftest
8586 lt_save_allow_undefined_flag=$allow_undefined_flag
8587 allow_undefined_flag=
8588 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8589 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }
8593 then
8594 archive_cmds_need_lc=no
8595 else
8596 archive_cmds_need_lc=yes
8597 fi
8598 allow_undefined_flag=$lt_save_allow_undefined_flag
8599 else
8600 cat conftest.err 1>&5
8601 fi
8602 $rm conftest*
Lev Walkin27fd0b62007-08-27 23:57:45 +00008603 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8604echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008605 ;;
8606 esac
8607 fi
8608 ;;
8609esac
8610
Lev Walkin27fd0b62007-08-27 23:57:45 +00008611{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8612echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008613library_names_spec=
8614libname_spec='lib$name'
8615soname_spec=
8616shrext_cmds=".so"
8617postinstall_cmds=
8618postuninstall_cmds=
8619finish_cmds=
8620finish_eval=
8621shlibpath_var=
8622shlibpath_overrides_runpath=unknown
8623version_type=none
8624dynamic_linker="$host_os ld.so"
8625sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626if test "$GCC" = yes; then
8627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8628 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8629 # if the path contains ";" then we assume it to be the separator
8630 # otherwise default to the standard path separator (i.e. ":") - it is
8631 # assumed that no part of a normal pathname contains ";" but that should
8632 # okay in the real world where ";" in dirpaths is itself problematic.
8633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634 else
8635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8636 fi
8637else
8638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8639fi
8640need_lib_prefix=unknown
8641hardcode_into_libs=no
8642
8643# when you set need_version to no, make sure it does not cause -set_version
8644# flags to be left without arguments
8645need_version=unknown
8646
8647case $host_os in
8648aix3*)
8649 version_type=linux
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8651 shlibpath_var=LIBPATH
8652
8653 # AIX 3 has no versioning support, so we append a major version to the name.
8654 soname_spec='${libname}${release}${shared_ext}$major'
8655 ;;
8656
8657aix4* | aix5*)
8658 version_type=linux
8659 need_lib_prefix=no
8660 need_version=no
8661 hardcode_into_libs=yes
8662 if test "$host_cpu" = ia64; then
8663 # AIX 5 supports IA64
8664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8665 shlibpath_var=LD_LIBRARY_PATH
8666 else
8667 # With GCC up to 2.95.x, collect2 would create an import file
8668 # for dependence libraries. The import file would start with
8669 # the line `#! .'. This would cause the generated library to
8670 # depend on `.', always an invalid library. This was fixed in
8671 # development snapshots of GCC prior to 3.0.
8672 case $host_os in
8673 aix4 | aix4.[01] | aix4.[01].*)
8674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8675 echo ' yes '
8676 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8677 :
8678 else
8679 can_build_shared=no
8680 fi
8681 ;;
8682 esac
8683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8684 # soname into executable. Probably we can add versioning support to
8685 # collect2, so additional links can be useful in future.
8686 if test "$aix_use_runtimelinking" = yes; then
8687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8688 # instead of lib<name>.a to let people know that these are not
8689 # typical AIX shared libraries.
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691 else
8692 # We preserve .a as extension for shared libraries through AIX4.2
8693 # and later when we are not doing run time linking.
8694 library_names_spec='${libname}${release}.a $libname.a'
8695 soname_spec='${libname}${release}${shared_ext}$major'
8696 fi
8697 shlibpath_var=LIBPATH
8698 fi
8699 ;;
8700
8701amigaos*)
8702 library_names_spec='$libname.ixlibrary $libname.a'
8703 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8704 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'
8705 ;;
8706
8707beos*)
8708 library_names_spec='${libname}${shared_ext}'
8709 dynamic_linker="$host_os ld.so"
8710 shlibpath_var=LIBRARY_PATH
8711 ;;
8712
8713bsdi4*)
8714 version_type=linux
8715 need_version=no
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717 soname_spec='${libname}${release}${shared_ext}$major'
8718 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8719 shlibpath_var=LD_LIBRARY_PATH
8720 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8721 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8722 # the default ld.so.conf also contains /usr/contrib/lib and
8723 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8724 # libtool to hard-code these into programs
8725 ;;
8726
8727cygwin* | mingw* | pw32*)
8728 version_type=windows
8729 shrext_cmds=".dll"
8730 need_version=no
8731 need_lib_prefix=no
8732
8733 case $GCC,$host_os in
8734 yes,cygwin* | yes,mingw* | yes,pw32*)
8735 library_names_spec='$libname.dll.a'
8736 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8737 postinstall_cmds='base_file=`basename \${file}`~
8738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8739 dldir=$destdir/`dirname \$dlpath`~
8740 test -d \$dldir || mkdir -p \$dldir~
8741 $install_prog $dir/$dlname \$dldir/$dlname'
8742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8743 dlpath=$dir/\$dldll~
8744 $rm \$dlpath'
8745 shlibpath_overrides_runpath=yes
8746
8747 case $host_os in
8748 cygwin*)
8749 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8750 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8751 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8752 ;;
8753 mingw*)
8754 # MinGW DLLs use traditional 'lib' prefix
8755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8757 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8758 # It is most probably a Windows format PATH printed by
8759 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8760 # path with ; separators, and with drive letters. We can handle the
8761 # drive letters (cygwin fileutils understands them), so leave them,
8762 # especially as we might pass files found there to a mingw objdump,
8763 # which wouldn't understand a cygwinified path. Ahh.
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8765 else
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8767 fi
8768 ;;
8769 pw32*)
8770 # pw32 DLLs use 'pw' prefix rather than 'lib'
8771 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8772 ;;
8773 esac
8774 ;;
8775
8776 *)
8777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8778 ;;
8779 esac
8780 dynamic_linker='Win32 ld.exe'
8781 # FIXME: first we should search . and the directory the executable is in
8782 shlibpath_var=PATH
8783 ;;
8784
8785darwin* | rhapsody*)
8786 dynamic_linker="$host_os dyld"
8787 version_type=darwin
8788 need_lib_prefix=no
8789 need_version=no
8790 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8791 soname_spec='${libname}${release}${major}$shared_ext'
8792 shlibpath_overrides_runpath=yes
8793 shlibpath_var=DYLD_LIBRARY_PATH
8794 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8795 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8796 if test "$GCC" = yes; then
8797 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"`
8798 else
8799 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8800 fi
8801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8802 ;;
8803
8804dgux*)
8805 version_type=linux
8806 need_lib_prefix=no
8807 need_version=no
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 ;;
8812
8813freebsd1*)
8814 dynamic_linker=no
8815 ;;
8816
8817kfreebsd*-gnu)
8818 version_type=linux
8819 need_lib_prefix=no
8820 need_version=no
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 shlibpath_overrides_runpath=no
8825 hardcode_into_libs=yes
8826 dynamic_linker='GNU ld.so'
8827 ;;
8828
8829freebsd*)
8830 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8831 version_type=freebsd-$objformat
8832 case $version_type in
8833 freebsd-elf*)
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8835 need_version=no
8836 need_lib_prefix=no
8837 ;;
8838 freebsd-*)
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8840 need_version=yes
8841 ;;
8842 esac
8843 shlibpath_var=LD_LIBRARY_PATH
8844 case $host_os in
8845 freebsd2*)
8846 shlibpath_overrides_runpath=yes
8847 ;;
8848 freebsd3.01* | freebsdelf3.01*)
8849 shlibpath_overrides_runpath=yes
8850 hardcode_into_libs=yes
8851 ;;
8852 *) # from 3.2 on
8853 shlibpath_overrides_runpath=no
8854 hardcode_into_libs=yes
8855 ;;
8856 esac
8857 ;;
8858
8859gnu*)
8860 version_type=linux
8861 need_lib_prefix=no
8862 need_version=no
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 shlibpath_var=LD_LIBRARY_PATH
8866 hardcode_into_libs=yes
8867 ;;
8868
8869hpux9* | hpux10* | hpux11*)
8870 # Give a soname corresponding to the major version so that dld.sl refuses to
8871 # link against other versions.
8872 version_type=sunos
8873 need_lib_prefix=no
8874 need_version=no
8875 case "$host_cpu" in
8876 ia64*)
8877 shrext_cmds='.so'
8878 hardcode_into_libs=yes
8879 dynamic_linker="$host_os dld.so"
8880 shlibpath_var=LD_LIBRARY_PATH
8881 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 if test "X$HPUX_IA64_MODE" = X32; then
8885 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8886 else
8887 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8888 fi
8889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8890 ;;
8891 hppa*64*)
8892 shrext_cmds='.sl'
8893 hardcode_into_libs=yes
8894 dynamic_linker="$host_os dld.sl"
8895 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8901 ;;
8902 *)
8903 shrext_cmds='.sl'
8904 dynamic_linker="$host_os dld.sl"
8905 shlibpath_var=SHLIB_PATH
8906 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 ;;
8910 esac
8911 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8912 postinstall_cmds='chmod 555 $lib'
8913 ;;
8914
8915irix5* | irix6* | nonstopux*)
8916 case $host_os in
8917 nonstopux*) version_type=nonstopux ;;
8918 *)
8919 if test "$lt_cv_prog_gnu_ld" = yes; then
8920 version_type=linux
8921 else
8922 version_type=irix
8923 fi ;;
8924 esac
8925 need_lib_prefix=no
8926 need_version=no
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8929 case $host_os in
8930 irix5* | nonstopux*)
8931 libsuff= shlibsuff=
8932 ;;
8933 *)
8934 case $LD in # libtool.m4 will add one of these switches to LD
8935 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8936 libsuff= shlibsuff= libmagic=32-bit;;
8937 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8938 libsuff=32 shlibsuff=N32 libmagic=N32;;
8939 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8940 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8941 *) libsuff= shlibsuff= libmagic=never-match;;
8942 esac
8943 ;;
8944 esac
8945 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8946 shlibpath_overrides_runpath=no
8947 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8948 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8949 hardcode_into_libs=yes
8950 ;;
8951
8952# No shared lib support for Linux oldld, aout, or coff.
8953linux*oldld* | linux*aout* | linux*coff*)
8954 dynamic_linker=no
8955 ;;
8956
8957# This must be Linux ELF.
8958linux*)
8959 version_type=linux
8960 need_lib_prefix=no
8961 need_version=no
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8965 shlibpath_var=LD_LIBRARY_PATH
8966 shlibpath_overrides_runpath=no
8967 # This implies no fast_install, which is unacceptable.
8968 # Some rework will be needed to allow for fast_install
8969 # before this can be enabled.
8970 hardcode_into_libs=yes
8971
8972 # Append ld.so.conf contents to the search path
8973 if test -f /etc/ld.so.conf; then
8974 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8975 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8976 fi
8977
8978 # We used to test for /lib/ld.so.1 and disable shared libraries on
8979 # powerpc, because MkLinux only supported shared libraries with the
8980 # GNU dynamic linker. Since this was broken with cross compilers,
8981 # most powerpc-linux boxes support dynamic linking these days and
8982 # people can always --disable-shared, the test was removed, and we
8983 # assume the GNU/Linux dynamic linker is in use.
8984 dynamic_linker='GNU/Linux ld.so'
8985 ;;
8986
8987knetbsd*-gnu)
8988 version_type=linux
8989 need_lib_prefix=no
8990 need_version=no
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=no
8995 hardcode_into_libs=yes
8996 dynamic_linker='GNU ld.so'
8997 ;;
8998
8999netbsd*)
9000 version_type=sunos
9001 need_lib_prefix=no
9002 need_version=no
9003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9006 dynamic_linker='NetBSD (a.out) ld.so'
9007 else
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 dynamic_linker='NetBSD ld.elf_so'
9011 fi
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=yes
9014 hardcode_into_libs=yes
9015 ;;
9016
9017newsos6)
9018 version_type=linux
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=yes
9022 ;;
9023
9024nto-qnx*)
9025 version_type=linux
9026 need_lib_prefix=no
9027 need_version=no
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9032 ;;
9033
9034openbsd*)
9035 version_type=sunos
9036 need_lib_prefix=no
9037 need_version=yes
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9042 case $host_os in
9043 openbsd2.[89] | openbsd2.[89].*)
9044 shlibpath_overrides_runpath=no
9045 ;;
9046 *)
9047 shlibpath_overrides_runpath=yes
9048 ;;
9049 esac
9050 else
9051 shlibpath_overrides_runpath=yes
9052 fi
9053 ;;
9054
9055os2*)
9056 libname_spec='$name'
9057 shrext_cmds=".dll"
9058 need_lib_prefix=no
9059 library_names_spec='$libname${shared_ext} $libname.a'
9060 dynamic_linker='OS/2 ld.exe'
9061 shlibpath_var=LIBPATH
9062 ;;
9063
9064osf3* | osf4* | osf5*)
9065 version_type=osf
9066 need_lib_prefix=no
9067 need_version=no
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9072 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9073 ;;
9074
9075sco3.2v5*)
9076 version_type=osf
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 ;;
9081
9082solaris*)
9083 version_type=linux
9084 need_lib_prefix=no
9085 need_version=no
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 shlibpath_var=LD_LIBRARY_PATH
9089 shlibpath_overrides_runpath=yes
9090 hardcode_into_libs=yes
9091 # ldd complains unless libraries are executable
9092 postinstall_cmds='chmod +x $lib'
9093 ;;
9094
9095sunos4*)
9096 version_type=sunos
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9098 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=yes
9101 if test "$with_gnu_ld" = yes; then
9102 need_lib_prefix=no
9103 fi
9104 need_version=yes
9105 ;;
9106
9107sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9108 version_type=linux
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 case $host_vendor in
9113 sni)
9114 shlibpath_overrides_runpath=no
9115 need_lib_prefix=no
9116 export_dynamic_flag_spec='${wl}-Blargedynsym'
9117 runpath_var=LD_RUN_PATH
9118 ;;
9119 siemens)
9120 need_lib_prefix=no
9121 ;;
9122 motorola)
9123 need_lib_prefix=no
9124 need_version=no
9125 shlibpath_overrides_runpath=no
9126 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9127 ;;
9128 esac
9129 ;;
9130
9131sysv4*MP*)
9132 if test -d /usr/nec ;then
9133 version_type=linux
9134 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9135 soname_spec='$libname${shared_ext}.$major'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 fi
9138 ;;
9139
9140uts4*)
9141 version_type=linux
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 ;;
9146
9147*)
9148 dynamic_linker=no
9149 ;;
9150esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00009151{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9152echo "${ECHO_T}$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009153test "$dynamic_linker" = no && can_build_shared=no
9154
Lev Walkin27fd0b62007-08-27 23:57:45 +00009155{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9156echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009157hardcode_action=
9158if test -n "$hardcode_libdir_flag_spec" || \
9159 test -n "$runpath_var " || \
9160 test "X$hardcode_automatic"="Xyes" ; then
9161
9162 # We can hardcode non-existant directories.
9163 if test "$hardcode_direct" != no &&
9164 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9165 # have to relink, otherwise we might link with an installed library
9166 # when we should be linking with a yet-to-be-installed one
9167 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9168 test "$hardcode_minus_L" != no; then
9169 # Linking always hardcodes the temporary library directory.
9170 hardcode_action=relink
9171 else
9172 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9173 hardcode_action=immediate
9174 fi
9175else
9176 # We cannot hardcode anything, or else we can only hardcode existing
9177 # directories.
9178 hardcode_action=unsupported
9179fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009180{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9181echo "${ECHO_T}$hardcode_action" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009182
9183if test "$hardcode_action" = relink; then
9184 # Fast installation is not supported
9185 enable_fast_install=no
9186elif test "$shlibpath_overrides_runpath" = yes ||
9187 test "$enable_shared" = no; then
9188 # Fast installation is not necessary
9189 enable_fast_install=needless
9190fi
9191
9192striplib=
9193old_striplib=
Lev Walkin27fd0b62007-08-27 23:57:45 +00009194{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9195echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009196if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9197 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9198 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Lev Walkin27fd0b62007-08-27 23:57:45 +00009199 { echo "$as_me:$LINENO: result: yes" >&5
9200echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009201else
9202# FIXME - insert some real tests, host_os isn't really good enough
9203 case $host_os in
9204 darwin*)
9205 if test -n "$STRIP" ; then
9206 striplib="$STRIP -x"
Lev Walkin27fd0b62007-08-27 23:57:45 +00009207 { echo "$as_me:$LINENO: result: yes" >&5
9208echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009209 else
Lev Walkin27fd0b62007-08-27 23:57:45 +00009210 { echo "$as_me:$LINENO: result: no" >&5
9211echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009212fi
9213 ;;
9214 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00009215 { echo "$as_me:$LINENO: result: no" >&5
9216echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009217 ;;
9218 esac
9219fi
9220
9221if test "x$enable_dlopen" != xyes; then
9222 enable_dlopen=unknown
9223 enable_dlopen_self=unknown
9224 enable_dlopen_self_static=unknown
9225else
9226 lt_cv_dlopen=no
9227 lt_cv_dlopen_libs=
9228
9229 case $host_os in
9230 beos*)
9231 lt_cv_dlopen="load_add_on"
9232 lt_cv_dlopen_libs=
9233 lt_cv_dlopen_self=yes
9234 ;;
9235
9236 mingw* | pw32*)
9237 lt_cv_dlopen="LoadLibrary"
9238 lt_cv_dlopen_libs=
9239 ;;
9240
9241 cygwin*)
9242 lt_cv_dlopen="dlopen"
9243 lt_cv_dlopen_libs=
9244 ;;
9245
9246 darwin*)
9247 # if libdl is installed we need to link against it
Lev Walkin27fd0b62007-08-27 23:57:45 +00009248 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9249echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009250if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252else
9253 ac_check_lib_save_LIBS=$LIBS
9254LIBS="-ldl $LIBS"
9255cat >conftest.$ac_ext <<_ACEOF
9256/* confdefs.h. */
9257_ACEOF
9258cat confdefs.h >>conftest.$ac_ext
9259cat >>conftest.$ac_ext <<_ACEOF
9260/* end confdefs.h. */
9261
Lev Walkin27fd0b62007-08-27 23:57:45 +00009262/* Override any GCC internal prototype to avoid an error.
9263 Use char because int might match the return type of a GCC
9264 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00009265#ifdef __cplusplus
9266extern "C"
9267#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +00009268char dlopen ();
9269int
9270main ()
9271{
Lev Walkin27fd0b62007-08-27 23:57:45 +00009272return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +00009273 ;
9274 return 0;
9275}
9276_ACEOF
9277rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00009278if { (ac_try="$ac_link"
9279case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9282esac
9283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00009285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00009291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9292 { (case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9295esac
9296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00009302 { (case "(($ac_try" in
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9305esac
9306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_lib_dl_dlopen=yes
9312else
9313 echo "$as_me: failed program was:" >&5
9314sed 's/^/| /' conftest.$ac_ext >&5
9315
Lev Walkin27fd0b62007-08-27 23:57:45 +00009316 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009317fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009318
9319rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00009320 conftest$ac_exeext conftest.$ac_ext
9321LIBS=$ac_check_lib_save_LIBS
9322fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009323{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9324echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009325if test $ac_cv_lib_dl_dlopen = yes; then
9326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9327else
9328
9329 lt_cv_dlopen="dyld"
9330 lt_cv_dlopen_libs=
9331 lt_cv_dlopen_self=yes
9332
9333fi
9334
9335 ;;
9336
9337 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00009338 { echo "$as_me:$LINENO: checking for shl_load" >&5
9339echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009340if test "${ac_cv_func_shl_load+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342else
9343 cat >conftest.$ac_ext <<_ACEOF
9344/* confdefs.h. */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h. */
9349/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9351#define shl_load innocuous_shl_load
9352
9353/* System header to define __stub macros and hopefully few prototypes,
9354 which can conflict with char shl_load (); below.
9355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9356 <limits.h> exists even on freestanding compilers. */
9357
9358#ifdef __STDC__
9359# include <limits.h>
9360#else
9361# include <assert.h>
9362#endif
9363
9364#undef shl_load
9365
Lev Walkin27fd0b62007-08-27 23:57:45 +00009366/* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00009369#ifdef __cplusplus
9370extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009371#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +00009372char shl_load ();
9373/* The GNU C library defines this for functions which it implements
9374 to always fail with ENOSYS. Some functions are actually named
9375 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +00009376#if defined __stub_shl_load || defined __stub___shl_load
Lev Walkin8e8b5482004-06-17 23:42:48 +00009377choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +00009378#endif
9379
9380int
9381main ()
9382{
Lev Walkin27fd0b62007-08-27 23:57:45 +00009383return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +00009384 ;
9385 return 0;
9386}
9387_ACEOF
9388rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00009389if { (ac_try="$ac_link"
9390case "(($ac_try" in
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9393esac
9394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00009396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00009402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9403 { (case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406esac
9407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00009413 { (case "(($ac_try" in
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9416esac
9417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 ac_cv_func_shl_load=yes
9423else
9424 echo "$as_me: failed program was:" >&5
9425sed 's/^/| /' conftest.$ac_ext >&5
9426
Lev Walkin27fd0b62007-08-27 23:57:45 +00009427 ac_cv_func_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009428fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009429
9430rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00009431 conftest$ac_exeext conftest.$ac_ext
9432fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009433{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9434echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009435if test $ac_cv_func_shl_load = yes; then
9436 lt_cv_dlopen="shl_load"
9437else
Lev Walkin27fd0b62007-08-27 23:57:45 +00009438 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9439echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009440if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442else
9443 ac_check_lib_save_LIBS=$LIBS
9444LIBS="-ldld $LIBS"
9445cat >conftest.$ac_ext <<_ACEOF
9446/* confdefs.h. */
9447_ACEOF
9448cat confdefs.h >>conftest.$ac_ext
9449cat >>conftest.$ac_ext <<_ACEOF
9450/* end confdefs.h. */
9451
Lev Walkin27fd0b62007-08-27 23:57:45 +00009452/* Override any GCC internal prototype to avoid an error.
9453 Use char because int might match the return type of a GCC
9454 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00009455#ifdef __cplusplus
9456extern "C"
9457#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +00009458char shl_load ();
9459int
9460main ()
9461{
Lev Walkin27fd0b62007-08-27 23:57:45 +00009462return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +00009463 ;
9464 return 0;
9465}
9466_ACEOF
9467rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00009468if { (ac_try="$ac_link"
9469case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472esac
9473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00009475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00009481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9482 { (case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9485esac
9486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; } &&
9491 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00009492 { (case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495esac
9496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_cv_lib_dld_shl_load=yes
9502else
9503 echo "$as_me: failed program was:" >&5
9504sed 's/^/| /' conftest.$ac_ext >&5
9505
Lev Walkin27fd0b62007-08-27 23:57:45 +00009506 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009507fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009508
9509rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00009510 conftest$ac_exeext conftest.$ac_ext
9511LIBS=$ac_check_lib_save_LIBS
9512fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009513{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9514echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009515if test $ac_cv_lib_dld_shl_load = yes; then
9516 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9517else
Lev Walkin27fd0b62007-08-27 23:57:45 +00009518 { echo "$as_me:$LINENO: checking for dlopen" >&5
9519echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009520if test "${ac_cv_func_dlopen+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9522else
9523 cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h. */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h. */
9529/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9531#define dlopen innocuous_dlopen
9532
9533/* System header to define __stub macros and hopefully few prototypes,
9534 which can conflict with char dlopen (); below.
9535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9536 <limits.h> exists even on freestanding compilers. */
9537
9538#ifdef __STDC__
9539# include <limits.h>
9540#else
9541# include <assert.h>
9542#endif
9543
9544#undef dlopen
9545
Lev Walkin27fd0b62007-08-27 23:57:45 +00009546/* Override any GCC internal prototype to avoid an error.
9547 Use char because int might match the return type of a GCC
9548 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00009549#ifdef __cplusplus
9550extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009551#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +00009552char dlopen ();
9553/* The GNU C library defines this for functions which it implements
9554 to always fail with ENOSYS. Some functions are actually named
9555 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +00009556#if defined __stub_dlopen || defined __stub___dlopen
Lev Walkin8e8b5482004-06-17 23:42:48 +00009557choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +00009558#endif
9559
9560int
9561main ()
9562{
Lev Walkin27fd0b62007-08-27 23:57:45 +00009563return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +00009564 ;
9565 return 0;
9566}
9567_ACEOF
9568rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00009569if { (ac_try="$ac_link"
9570case "(($ac_try" in
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9573esac
9574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00009576 ac_status=$?
9577 grep -v '^ *+' conftest.er1 >conftest.err
9578 rm -f conftest.er1
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00009582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9583 { (case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9586esac
9587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00009593 { (case "(($ac_try" in
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9596esac
9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9602 ac_cv_func_dlopen=yes
9603else
9604 echo "$as_me: failed program was:" >&5
9605sed 's/^/| /' conftest.$ac_ext >&5
9606
Lev Walkin27fd0b62007-08-27 23:57:45 +00009607 ac_cv_func_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009608fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009609
9610rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00009611 conftest$ac_exeext conftest.$ac_ext
9612fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009613{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9614echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009615if test $ac_cv_func_dlopen = yes; then
9616 lt_cv_dlopen="dlopen"
9617else
Lev Walkin27fd0b62007-08-27 23:57:45 +00009618 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9619echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009620if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622else
9623 ac_check_lib_save_LIBS=$LIBS
9624LIBS="-ldl $LIBS"
9625cat >conftest.$ac_ext <<_ACEOF
9626/* confdefs.h. */
9627_ACEOF
9628cat confdefs.h >>conftest.$ac_ext
9629cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h. */
9631
Lev Walkin27fd0b62007-08-27 23:57:45 +00009632/* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00009635#ifdef __cplusplus
9636extern "C"
9637#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +00009638char dlopen ();
9639int
9640main ()
9641{
Lev Walkin27fd0b62007-08-27 23:57:45 +00009642return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +00009643 ;
9644 return 0;
9645}
9646_ACEOF
9647rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00009648if { (ac_try="$ac_link"
9649case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652esac
9653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00009655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00009661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9662 { (case "(($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_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00009672 { (case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9675esac
9676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_lib_dl_dlopen=yes
9682else
9683 echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
Lev Walkin27fd0b62007-08-27 23:57:45 +00009686 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009687fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009688
9689rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00009690 conftest$ac_exeext conftest.$ac_ext
9691LIBS=$ac_check_lib_save_LIBS
9692fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009693{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9694echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009695if test $ac_cv_lib_dl_dlopen = yes; then
9696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9697else
Lev Walkin27fd0b62007-08-27 23:57:45 +00009698 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9699echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009700if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703 ac_check_lib_save_LIBS=$LIBS
9704LIBS="-lsvld $LIBS"
9705cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h. */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h. */
9711
Lev Walkin27fd0b62007-08-27 23:57:45 +00009712/* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00009715#ifdef __cplusplus
9716extern "C"
9717#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +00009718char dlopen ();
9719int
9720main ()
9721{
Lev Walkin27fd0b62007-08-27 23:57:45 +00009722return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +00009723 ;
9724 return 0;
9725}
9726_ACEOF
9727rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00009728if { (ac_try="$ac_link"
9729case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732esac
9733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00009735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00009741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742 { (case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9745esac
9746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00009752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755esac
9756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_lib_svld_dlopen=yes
9762else
9763 echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
Lev Walkin27fd0b62007-08-27 23:57:45 +00009766 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009767fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009768
9769rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00009770 conftest$ac_exeext conftest.$ac_ext
9771LIBS=$ac_check_lib_save_LIBS
9772fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009773{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9774echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009775if test $ac_cv_lib_svld_dlopen = yes; then
9776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9777else
Lev Walkin27fd0b62007-08-27 23:57:45 +00009778 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9779echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009780if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782else
9783 ac_check_lib_save_LIBS=$LIBS
9784LIBS="-ldld $LIBS"
9785cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h. */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
9790/* end confdefs.h. */
9791
Lev Walkin27fd0b62007-08-27 23:57:45 +00009792/* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00009795#ifdef __cplusplus
9796extern "C"
9797#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +00009798char dld_link ();
9799int
9800main ()
9801{
Lev Walkin27fd0b62007-08-27 23:57:45 +00009802return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +00009803 ;
9804 return 0;
9805}
9806_ACEOF
9807rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00009808if { (ac_try="$ac_link"
9809case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812esac
9813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00009815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00009821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9822 { (case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9825esac
9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; } &&
9831 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00009832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_lib_dld_dld_link=yes
9842else
9843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
Lev Walkin27fd0b62007-08-27 23:57:45 +00009846 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009847fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009848
9849rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00009850 conftest$ac_exeext conftest.$ac_ext
9851LIBS=$ac_check_lib_save_LIBS
9852fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009853{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9854echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009855if test $ac_cv_lib_dld_dld_link = yes; then
9856 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9857fi
9858
9859
9860fi
9861
9862
9863fi
9864
9865
9866fi
9867
9868
9869fi
9870
9871
9872fi
9873
9874 ;;
9875 esac
9876
9877 if test "x$lt_cv_dlopen" != xno; then
9878 enable_dlopen=yes
9879 else
9880 enable_dlopen=no
9881 fi
9882
9883 case $lt_cv_dlopen in
9884 dlopen)
9885 save_CPPFLAGS="$CPPFLAGS"
9886 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9887
9888 save_LDFLAGS="$LDFLAGS"
9889 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9890
9891 save_LIBS="$LIBS"
9892 LIBS="$lt_cv_dlopen_libs $LIBS"
9893
Lev Walkin27fd0b62007-08-27 23:57:45 +00009894 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9895echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009896if test "${lt_cv_dlopen_self+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899 if test "$cross_compiling" = yes; then :
9900 lt_cv_dlopen_self=cross
9901else
9902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9903 lt_status=$lt_dlunknown
9904 cat > conftest.$ac_ext <<EOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00009905#line 9905 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009906#include "confdefs.h"
9907
9908#if HAVE_DLFCN_H
9909#include <dlfcn.h>
9910#endif
9911
9912#include <stdio.h>
9913
9914#ifdef RTLD_GLOBAL
9915# define LT_DLGLOBAL RTLD_GLOBAL
9916#else
9917# ifdef DL_GLOBAL
9918# define LT_DLGLOBAL DL_GLOBAL
9919# else
9920# define LT_DLGLOBAL 0
9921# endif
9922#endif
9923
9924/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9925 find out it does not work in some platform. */
9926#ifndef LT_DLLAZY_OR_NOW
9927# ifdef RTLD_LAZY
9928# define LT_DLLAZY_OR_NOW RTLD_LAZY
9929# else
9930# ifdef DL_LAZY
9931# define LT_DLLAZY_OR_NOW DL_LAZY
9932# else
9933# ifdef RTLD_NOW
9934# define LT_DLLAZY_OR_NOW RTLD_NOW
9935# else
9936# ifdef DL_NOW
9937# define LT_DLLAZY_OR_NOW DL_NOW
9938# else
9939# define LT_DLLAZY_OR_NOW 0
9940# endif
9941# endif
9942# endif
9943# endif
9944#endif
9945
9946#ifdef __cplusplus
9947extern "C" void exit (int);
9948#endif
9949
9950void fnord() { int i=42;}
9951int main ()
9952{
9953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9954 int status = $lt_dlunknown;
9955
9956 if (self)
9957 {
9958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9960 /* dlclose (self); */
9961 }
9962
9963 exit (status);
9964}
9965EOF
9966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967 (eval $ac_link) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9971 (./conftest; exit; ) 2>/dev/null
9972 lt_status=$?
9973 case x$lt_status in
9974 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9975 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9976 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9977 esac
9978 else :
9979 # compilation failed
9980 lt_cv_dlopen_self=no
9981 fi
9982fi
9983rm -fr conftest*
9984
9985
9986fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009987{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9988echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009989
9990 if test "x$lt_cv_dlopen_self" = xyes; then
9991 LDFLAGS="$LDFLAGS $link_static_flag"
Lev Walkin27fd0b62007-08-27 23:57:45 +00009992 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9993echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009994if test "${lt_cv_dlopen_self_static+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996else
9997 if test "$cross_compiling" = yes; then :
9998 lt_cv_dlopen_self_static=cross
9999else
10000 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10001 lt_status=$lt_dlunknown
10002 cat > conftest.$ac_ext <<EOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000010003#line 10003 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010004#include "confdefs.h"
10005
10006#if HAVE_DLFCN_H
10007#include <dlfcn.h>
10008#endif
10009
10010#include <stdio.h>
10011
10012#ifdef RTLD_GLOBAL
10013# define LT_DLGLOBAL RTLD_GLOBAL
10014#else
10015# ifdef DL_GLOBAL
10016# define LT_DLGLOBAL DL_GLOBAL
10017# else
10018# define LT_DLGLOBAL 0
10019# endif
10020#endif
10021
10022/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10023 find out it does not work in some platform. */
10024#ifndef LT_DLLAZY_OR_NOW
10025# ifdef RTLD_LAZY
10026# define LT_DLLAZY_OR_NOW RTLD_LAZY
10027# else
10028# ifdef DL_LAZY
10029# define LT_DLLAZY_OR_NOW DL_LAZY
10030# else
10031# ifdef RTLD_NOW
10032# define LT_DLLAZY_OR_NOW RTLD_NOW
10033# else
10034# ifdef DL_NOW
10035# define LT_DLLAZY_OR_NOW DL_NOW
10036# else
10037# define LT_DLLAZY_OR_NOW 0
10038# endif
10039# endif
10040# endif
10041# endif
10042#endif
10043
10044#ifdef __cplusplus
10045extern "C" void exit (int);
10046#endif
10047
10048void fnord() { int i=42;}
10049int main ()
10050{
10051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10052 int status = $lt_dlunknown;
10053
10054 if (self)
10055 {
10056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10057 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10058 /* dlclose (self); */
10059 }
10060
10061 exit (status);
10062}
10063EOF
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065 (eval $ac_link) 2>&5
10066 ac_status=$?
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10069 (./conftest; exit; ) 2>/dev/null
10070 lt_status=$?
10071 case x$lt_status in
10072 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10073 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10074 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10075 esac
10076 else :
10077 # compilation failed
10078 lt_cv_dlopen_self_static=no
10079 fi
10080fi
10081rm -fr conftest*
10082
10083
10084fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010085{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10086echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010087 fi
10088
10089 CPPFLAGS="$save_CPPFLAGS"
10090 LDFLAGS="$save_LDFLAGS"
10091 LIBS="$save_LIBS"
10092 ;;
10093 esac
10094
10095 case $lt_cv_dlopen_self in
10096 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10097 *) enable_dlopen_self=unknown ;;
10098 esac
10099
10100 case $lt_cv_dlopen_self_static in
10101 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10102 *) enable_dlopen_self_static=unknown ;;
10103 esac
10104fi
10105
10106
10107# Report which librarie types wil actually be built
Lev Walkin27fd0b62007-08-27 23:57:45 +000010108{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10109echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10110{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10111echo "${ECHO_T}$can_build_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010112
Lev Walkin27fd0b62007-08-27 23:57:45 +000010113{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10114echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010115test "$can_build_shared" = "no" && enable_shared=no
10116
10117# On AIX, shared libraries and static libraries use the same namespace, and
10118# are all built from PIC.
10119case "$host_os" in
10120aix3*)
10121 test "$enable_shared" = yes && enable_static=no
10122 if test -n "$RANLIB"; then
10123 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10124 postinstall_cmds='$RANLIB $lib'
10125 fi
10126 ;;
10127
10128aix4* | aix5*)
10129 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10130 test "$enable_shared" = yes && enable_static=no
10131 fi
10132 ;;
10133 darwin* | rhapsody*)
10134 if test "$GCC" = yes; then
10135 archive_cmds_need_lc=no
10136 case "$host_os" in
10137 rhapsody* | darwin1.[012])
10138 allow_undefined_flag='-undefined suppress'
10139 ;;
10140 *) # Darwin 1.3 on
10141 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10142 allow_undefined_flag='-flat_namespace -undefined suppress'
10143 else
10144 case ${MACOSX_DEPLOYMENT_TARGET} in
10145 10.[012])
10146 allow_undefined_flag='-flat_namespace -undefined suppress'
10147 ;;
10148 10.*)
10149 allow_undefined_flag='-undefined dynamic_lookup'
10150 ;;
10151 esac
10152 fi
10153 ;;
10154 esac
10155 output_verbose_link_cmd='echo'
10156 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10157 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10158 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10159 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}'
10160 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}'
10161 hardcode_direct=no
10162 hardcode_automatic=yes
10163 hardcode_shlibpath_var=unsupported
10164 whole_archive_flag_spec='-all_load $convenience'
10165 link_all_deplibs=yes
10166 else
10167 ld_shlibs=no
10168 fi
10169 ;;
10170esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000010171{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10172echo "${ECHO_T}$enable_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010173
Lev Walkin27fd0b62007-08-27 23:57:45 +000010174{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10175echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010176# Make sure either enable_shared or enable_static is yes.
10177test "$enable_shared" = yes || enable_static=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +000010178{ echo "$as_me:$LINENO: result: $enable_static" >&5
10179echo "${ECHO_T}$enable_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010180
10181# The else clause should only fire when bootstrapping the
10182# libtool distribution, otherwise you forgot to ship ltmain.sh
10183# with your package, and you will get complaints that there are
10184# no rules to generate ltmain.sh.
10185if test -f "$ltmain"; then
10186 # See if we are running on zsh, and set the options which allow our commands through
10187 # without removal of \ escapes.
10188 if test -n "${ZSH_VERSION+set}" ; then
10189 setopt NO_GLOB_SUBST
10190 fi
10191 # Now quote all the things that may contain metacharacters while being
10192 # careful not to overquote the AC_SUBSTed values. We take copies of the
10193 # variables and quote the copies for generation of the libtool script.
10194 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10195 SED SHELL STRIP \
10196 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10197 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10198 deplibs_check_method reload_flag reload_cmds need_locks \
10199 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10200 lt_cv_sys_global_symbol_to_c_name_address \
10201 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10202 old_postinstall_cmds old_postuninstall_cmds \
10203 compiler \
10204 CC \
10205 LD \
10206 lt_prog_compiler_wl \
10207 lt_prog_compiler_pic \
10208 lt_prog_compiler_static \
10209 lt_prog_compiler_no_builtin_flag \
10210 export_dynamic_flag_spec \
10211 thread_safe_flag_spec \
10212 whole_archive_flag_spec \
10213 enable_shared_with_static_runtimes \
10214 old_archive_cmds \
10215 old_archive_from_new_cmds \
10216 predep_objects \
10217 postdep_objects \
10218 predeps \
10219 postdeps \
10220 compiler_lib_search_path \
10221 archive_cmds \
10222 archive_expsym_cmds \
10223 postinstall_cmds \
10224 postuninstall_cmds \
10225 old_archive_from_expsyms_cmds \
10226 allow_undefined_flag \
10227 no_undefined_flag \
10228 export_symbols_cmds \
10229 hardcode_libdir_flag_spec \
10230 hardcode_libdir_flag_spec_ld \
10231 hardcode_libdir_separator \
10232 hardcode_automatic \
10233 module_cmds \
10234 module_expsym_cmds \
10235 lt_cv_prog_compiler_c_o \
10236 exclude_expsyms \
10237 include_expsyms; do
10238
10239 case $var in
10240 old_archive_cmds | \
10241 old_archive_from_new_cmds | \
10242 archive_cmds | \
10243 archive_expsym_cmds | \
10244 module_cmds | \
10245 module_expsym_cmds | \
10246 old_archive_from_expsyms_cmds | \
10247 export_symbols_cmds | \
10248 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10249 postinstall_cmds | postuninstall_cmds | \
10250 old_postinstall_cmds | old_postuninstall_cmds | \
10251 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10252 # Double-quote double-evaled strings.
10253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10254 ;;
10255 *)
10256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10257 ;;
10258 esac
10259 done
10260
10261 case $lt_echo in
10262 *'\$0 --fallback-echo"')
10263 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10264 ;;
10265 esac
10266
10267cfgfile="${ofile}T"
10268 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10269 $rm -f "$cfgfile"
10270 { echo "$as_me:$LINENO: creating $ofile" >&5
10271echo "$as_me: creating $ofile" >&6;}
10272
10273 cat <<__EOF__ >> "$cfgfile"
10274#! $SHELL
10275
10276# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10277# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10278# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10279#
10280# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10281# Free Software Foundation, Inc.
10282#
10283# This file is part of GNU Libtool:
10284# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10285#
10286# This program is free software; you can redistribute it and/or modify
10287# it under the terms of the GNU General Public License as published by
10288# the Free Software Foundation; either version 2 of the License, or
10289# (at your option) any later version.
10290#
10291# This program is distributed in the hope that it will be useful, but
10292# WITHOUT ANY WARRANTY; without even the implied warranty of
10293# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10294# General Public License for more details.
10295#
10296# You should have received a copy of the GNU General Public License
10297# along with this program; if not, write to the Free Software
10298# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10299#
10300# As a special exception to the GNU General Public License, if you
10301# distribute this file as part of a program that contains a
10302# configuration script generated by Autoconf, you may include it under
10303# the same distribution terms that you use for the rest of that program.
10304
10305# A sed program that does not truncate output.
10306SED=$lt_SED
10307
10308# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10309Xsed="$SED -e s/^X//"
10310
10311# The HP-UX ksh and POSIX shell print the target directory to stdout
10312# if CDPATH is set.
10313if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10314
10315# The names of the tagged configurations supported by this script.
10316available_tags=
10317
10318# ### BEGIN LIBTOOL CONFIG
10319
10320# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10321
10322# Shell to use when invoking shell scripts.
10323SHELL=$lt_SHELL
10324
10325# Whether or not to build shared libraries.
10326build_libtool_libs=$enable_shared
10327
10328# Whether or not to build static libraries.
10329build_old_libs=$enable_static
10330
10331# Whether or not to add -lc for building shared libraries.
10332build_libtool_need_lc=$archive_cmds_need_lc
10333
10334# Whether or not to disallow shared libs when runtime libs are static
10335allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10336
10337# Whether or not to optimize for fast installation.
10338fast_install=$enable_fast_install
10339
10340# The host system.
10341host_alias=$host_alias
10342host=$host
10343
10344# An echo program that does not interpret backslashes.
10345echo=$lt_echo
10346
10347# The archiver.
10348AR=$lt_AR
10349AR_FLAGS=$lt_AR_FLAGS
10350
10351# A C compiler.
10352LTCC=$lt_LTCC
10353
10354# A language-specific compiler.
10355CC=$lt_compiler
10356
10357# Is the compiler the GNU C compiler?
10358with_gcc=$GCC
10359
10360# An ERE matcher.
10361EGREP=$lt_EGREP
10362
10363# The linker used to build libraries.
10364LD=$lt_LD
10365
10366# Whether we need hard or soft links.
10367LN_S=$lt_LN_S
10368
10369# A BSD-compatible nm program.
10370NM=$lt_NM
10371
10372# A symbol stripping program
10373STRIP=$lt_STRIP
10374
10375# Used to examine libraries when file_magic_cmd begins "file"
10376MAGIC_CMD=$MAGIC_CMD
10377
10378# Used on cygwin: DLL creation program.
10379DLLTOOL="$DLLTOOL"
10380
10381# Used on cygwin: object dumper.
10382OBJDUMP="$OBJDUMP"
10383
10384# Used on cygwin: assembler.
10385AS="$AS"
10386
10387# The name of the directory that contains temporary libtool files.
10388objdir=$objdir
10389
10390# How to create reloadable object files.
10391reload_flag=$lt_reload_flag
10392reload_cmds=$lt_reload_cmds
10393
10394# How to pass a linker flag through the compiler.
10395wl=$lt_lt_prog_compiler_wl
10396
10397# Object file suffix (normally "o").
10398objext="$ac_objext"
10399
10400# Old archive suffix (normally "a").
10401libext="$libext"
10402
10403# Shared library suffix (normally ".so").
10404shrext_cmds='$shrext_cmds'
10405
10406# Executable file suffix (normally "").
10407exeext="$exeext"
10408
10409# Additional compiler flags for building library objects.
10410pic_flag=$lt_lt_prog_compiler_pic
10411pic_mode=$pic_mode
10412
10413# What is the maximum length of a command?
10414max_cmd_len=$lt_cv_sys_max_cmd_len
10415
10416# Does compiler simultaneously support -c and -o options?
10417compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10418
10419# Must we lock files when doing compilation ?
10420need_locks=$lt_need_locks
10421
10422# Do we need the lib prefix for modules?
10423need_lib_prefix=$need_lib_prefix
10424
10425# Do we need a version for libraries?
10426need_version=$need_version
10427
10428# Whether dlopen is supported.
10429dlopen_support=$enable_dlopen
10430
10431# Whether dlopen of programs is supported.
10432dlopen_self=$enable_dlopen_self
10433
10434# Whether dlopen of statically linked programs is supported.
10435dlopen_self_static=$enable_dlopen_self_static
10436
10437# Compiler flag to prevent dynamic linking.
10438link_static_flag=$lt_lt_prog_compiler_static
10439
10440# Compiler flag to turn off builtin functions.
10441no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10442
10443# Compiler flag to allow reflexive dlopens.
10444export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10445
10446# Compiler flag to generate shared objects directly from archives.
10447whole_archive_flag_spec=$lt_whole_archive_flag_spec
10448
10449# Compiler flag to generate thread-safe objects.
10450thread_safe_flag_spec=$lt_thread_safe_flag_spec
10451
10452# Library versioning type.
10453version_type=$version_type
10454
10455# Format of library name prefix.
10456libname_spec=$lt_libname_spec
10457
10458# List of archive names. First name is the real one, the rest are links.
10459# The last name is the one that the linker finds with -lNAME.
10460library_names_spec=$lt_library_names_spec
10461
10462# The coded name of the library, if different from the real name.
10463soname_spec=$lt_soname_spec
10464
10465# Commands used to build and install an old-style archive.
10466RANLIB=$lt_RANLIB
10467old_archive_cmds=$lt_old_archive_cmds
10468old_postinstall_cmds=$lt_old_postinstall_cmds
10469old_postuninstall_cmds=$lt_old_postuninstall_cmds
10470
10471# Create an old-style archive from a shared archive.
10472old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10473
10474# Create a temporary old-style archive to link instead of a shared archive.
10475old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10476
10477# Commands used to build and install a shared archive.
10478archive_cmds=$lt_archive_cmds
10479archive_expsym_cmds=$lt_archive_expsym_cmds
10480postinstall_cmds=$lt_postinstall_cmds
10481postuninstall_cmds=$lt_postuninstall_cmds
10482
10483# Commands used to build a loadable module (assumed same as above if empty)
10484module_cmds=$lt_module_cmds
10485module_expsym_cmds=$lt_module_expsym_cmds
10486
10487# Commands to strip libraries.
10488old_striplib=$lt_old_striplib
10489striplib=$lt_striplib
10490
10491# Dependencies to place before the objects being linked to create a
10492# shared library.
10493predep_objects=$lt_predep_objects
10494
10495# Dependencies to place after the objects being linked to create a
10496# shared library.
10497postdep_objects=$lt_postdep_objects
10498
10499# Dependencies to place before the objects being linked to create a
10500# shared library.
10501predeps=$lt_predeps
10502
10503# Dependencies to place after the objects being linked to create a
10504# shared library.
10505postdeps=$lt_postdeps
10506
10507# The library search path used internally by the compiler when linking
10508# a shared library.
10509compiler_lib_search_path=$lt_compiler_lib_search_path
10510
10511# Method to check whether dependent libraries are shared objects.
10512deplibs_check_method=$lt_deplibs_check_method
10513
10514# Command to use when deplibs_check_method == file_magic.
10515file_magic_cmd=$lt_file_magic_cmd
10516
10517# Flag that allows shared libraries with undefined symbols to be built.
10518allow_undefined_flag=$lt_allow_undefined_flag
10519
10520# Flag that forces no undefined symbols.
10521no_undefined_flag=$lt_no_undefined_flag
10522
10523# Commands used to finish a libtool library installation in a directory.
10524finish_cmds=$lt_finish_cmds
10525
10526# Same as above, but a single script fragment to be evaled but not shown.
10527finish_eval=$lt_finish_eval
10528
10529# Take the output of nm and produce a listing of raw symbols and C names.
10530global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10531
10532# Transform the output of nm in a proper C declaration
10533global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10534
10535# Transform the output of nm in a C name address pair
10536global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10537
10538# This is the shared library runtime path variable.
10539runpath_var=$runpath_var
10540
10541# This is the shared library path variable.
10542shlibpath_var=$shlibpath_var
10543
10544# Is shlibpath searched before the hard-coded library search path?
10545shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10546
10547# How to hardcode a shared library path into an executable.
10548hardcode_action=$hardcode_action
10549
10550# Whether we should hardcode library paths into libraries.
10551hardcode_into_libs=$hardcode_into_libs
10552
10553# Flag to hardcode \$libdir into a binary during linking.
10554# This must work even if \$libdir does not exist.
10555hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10556
10557# If ld is used when linking, flag to hardcode \$libdir into
10558# a binary during linking. This must work even if \$libdir does
10559# not exist.
10560hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10561
10562# Whether we need a single -rpath flag with a separated argument.
10563hardcode_libdir_separator=$lt_hardcode_libdir_separator
10564
10565# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10566# resulting binary.
10567hardcode_direct=$hardcode_direct
10568
10569# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10570# resulting binary.
10571hardcode_minus_L=$hardcode_minus_L
10572
10573# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10574# the resulting binary.
10575hardcode_shlibpath_var=$hardcode_shlibpath_var
10576
10577# Set to yes if building a shared library automatically hardcodes DIR into the library
10578# and all subsequent libraries and executables linked against it.
10579hardcode_automatic=$hardcode_automatic
10580
10581# Variables whose values should be saved in libtool wrapper scripts and
10582# restored at relink time.
10583variables_saved_for_relink="$variables_saved_for_relink"
10584
10585# Whether libtool must link a program against all its dependency libraries.
10586link_all_deplibs=$link_all_deplibs
10587
10588# Compile-time system search path for libraries
10589sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10590
10591# Run-time system search path for libraries
10592sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10593
10594# Fix the shell variable \$srcfile for the compiler.
10595fix_srcfile_path="$fix_srcfile_path"
10596
10597# Set to yes if exported symbols are required.
10598always_export_symbols=$always_export_symbols
10599
10600# The commands to list exported symbols.
10601export_symbols_cmds=$lt_export_symbols_cmds
10602
10603# The commands to extract the exported symbol list from a shared archive.
10604extract_expsyms_cmds=$lt_extract_expsyms_cmds
10605
10606# Symbols that should not be listed in the preloaded symbols.
10607exclude_expsyms=$lt_exclude_expsyms
10608
10609# Symbols that must always be exported.
10610include_expsyms=$lt_include_expsyms
10611
10612# ### END LIBTOOL CONFIG
10613
10614__EOF__
10615
10616
10617 case $host_os in
10618 aix3*)
10619 cat <<\EOF >> "$cfgfile"
10620
10621# AIX sometimes has problems with the GCC collect2 program. For some
10622# reason, if we set the COLLECT_NAMES environment variable, the problems
10623# vanish in a puff of smoke.
10624if test "X${COLLECT_NAMES+set}" != Xset; then
10625 COLLECT_NAMES=
10626 export COLLECT_NAMES
10627fi
10628EOF
10629 ;;
10630 esac
10631
10632 # We use sed instead of cat because bash on DJGPP gets confused if
10633 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10634 # text mode, it properly converts lines to CR/LF. This bash problem
10635 # is reportedly fixed, but why not run on old versions too?
10636 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10637
10638 mv -f "$cfgfile" "$ofile" || \
10639 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10640 chmod +x "$ofile"
10641
10642else
10643 # If there is no Makefile yet, we rely on a make rule to execute
10644 # `config.status --recheck' to rerun these tests and create the
10645 # libtool script then.
10646 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10647 if test -f "$ltmain_in"; then
10648 test -f Makefile && make "$ltmain"
10649 fi
10650fi
10651
10652
10653ac_ext=c
10654ac_cpp='$CPP $CPPFLAGS'
10655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10657ac_compiler_gnu=$ac_cv_c_compiler_gnu
10658
10659CC="$lt_save_CC"
10660
10661
Lev Walkin27fd0b62007-08-27 23:57:45 +000010662# Check whether --with-tags was given.
Lev Walkin8e8b5482004-06-17 23:42:48 +000010663if test "${with_tags+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010664 withval=$with_tags; tagnames="$withval"
10665fi
10666
Lev Walkin8e8b5482004-06-17 23:42:48 +000010667
10668if test -f "$ltmain" && test -n "$tagnames"; then
10669 if test ! -f "${ofile}"; then
10670 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10671echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10672 fi
10673
10674 if test -z "$LTCC"; then
10675 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10676 if test -z "$LTCC"; then
10677 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10678echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10679 else
10680 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10681echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10682 fi
10683 fi
10684
10685 # Extract list of available tagged configurations in $ofile.
10686 # Note that this assumes the entire list is on one line.
10687 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10688
10689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10690 for tagname in $tagnames; do
10691 IFS="$lt_save_ifs"
10692 # Check whether tagname contains only valid characters
10693 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10694 "") ;;
10695 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10696echo "$as_me: error: invalid tag name: $tagname" >&2;}
10697 { (exit 1); exit 1; }; }
10698 ;;
10699 esac
10700
10701 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10702 then
10703 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10704echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10705 { (exit 1); exit 1; }; }
10706 fi
10707
10708 # Update the list of available tags.
10709 if test -n "$tagname"; then
10710 echo appending configuration tag \"$tagname\" to $ofile
10711
10712 case $tagname in
10713 CXX)
10714 if test -n "$CXX" && test "X$CXX" != "Xno"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010715 ac_ext=cpp
Lev Walkin8e8b5482004-06-17 23:42:48 +000010716ac_cpp='$CXXCPP $CPPFLAGS'
10717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10720
10721
10722
10723
10724archive_cmds_need_lc_CXX=no
10725allow_undefined_flag_CXX=
10726always_export_symbols_CXX=no
10727archive_expsym_cmds_CXX=
10728export_dynamic_flag_spec_CXX=
10729hardcode_direct_CXX=no
10730hardcode_libdir_flag_spec_CXX=
10731hardcode_libdir_flag_spec_ld_CXX=
10732hardcode_libdir_separator_CXX=
10733hardcode_minus_L_CXX=no
10734hardcode_automatic_CXX=no
10735module_cmds_CXX=
10736module_expsym_cmds_CXX=
10737link_all_deplibs_CXX=unknown
10738old_archive_cmds_CXX=$old_archive_cmds
10739no_undefined_flag_CXX=
10740whole_archive_flag_spec_CXX=
10741enable_shared_with_static_runtimes_CXX=no
10742
10743# Dependencies to place before and after the object being linked:
10744predep_objects_CXX=
10745postdep_objects_CXX=
10746predeps_CXX=
10747postdeps_CXX=
10748compiler_lib_search_path_CXX=
10749
10750# Source file extension for C++ test sources.
10751ac_ext=cc
10752
10753# Object file extension for compiled C++ test sources.
10754objext=o
10755objext_CXX=$objext
10756
10757# Code to be used in simple compile tests
10758lt_simple_compile_test_code="int some_variable = 0;\n"
10759
10760# Code to be used in simple link tests
10761lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10762
10763# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10764
10765# If no C compiler was specified, use CC.
10766LTCC=${LTCC-"$CC"}
10767
10768# Allow CC to be a program name with arguments.
10769compiler=$CC
10770
10771
10772# Allow CC to be a program name with arguments.
10773lt_save_CC=$CC
10774lt_save_LD=$LD
10775lt_save_GCC=$GCC
10776GCC=$GXX
10777lt_save_with_gnu_ld=$with_gnu_ld
10778lt_save_path_LD=$lt_cv_path_LD
10779if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10780 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10781else
10782 unset lt_cv_prog_gnu_ld
10783fi
10784if test -n "${lt_cv_path_LDCXX+set}"; then
10785 lt_cv_path_LD=$lt_cv_path_LDCXX
10786else
10787 unset lt_cv_path_LD
10788fi
10789test -z "${LDCXX+set}" || LD=$LDCXX
10790CC=${CXX-"c++"}
10791compiler=$CC
10792compiler_CXX=$CC
10793cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10794
10795# We don't want -fno-exception wen compiling C++ code, so set the
10796# no_builtin_flag separately
10797if test "$GXX" = yes; then
10798 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10799else
10800 lt_prog_compiler_no_builtin_flag_CXX=
10801fi
10802
10803if test "$GXX" = yes; then
10804 # Set up default GNU C++ configuration
10805
10806
Lev Walkin27fd0b62007-08-27 23:57:45 +000010807# Check whether --with-gnu-ld was given.
Lev Walkin8e8b5482004-06-17 23:42:48 +000010808if test "${with_gnu_ld+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010809 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +000010810else
10811 with_gnu_ld=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000010812fi
10813
Lev Walkin8e8b5482004-06-17 23:42:48 +000010814ac_prog=ld
10815if test "$GCC" = yes; then
10816 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkin27fd0b62007-08-27 23:57:45 +000010817 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10818echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010819 case $host in
10820 *-*-mingw*)
10821 # gcc leaves a trailing carriage return which upsets mingw
10822 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10823 *)
10824 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10825 esac
10826 case $ac_prog in
10827 # Accept absolute paths.
10828 [\\/]* | ?:[\\/]*)
10829 re_direlt='/[^/][^/]*/\.\./'
10830 # Canonicalize the pathname of ld
10831 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10832 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10833 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10834 done
10835 test -z "$LD" && LD="$ac_prog"
10836 ;;
10837 "")
10838 # If it fails, then pretend we aren't using GCC.
10839 ac_prog=ld
10840 ;;
10841 *)
10842 # If it is relative, then search for the first ld in PATH.
10843 with_gnu_ld=unknown
10844 ;;
10845 esac
10846elif test "$with_gnu_ld" = yes; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010847 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10848echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010849else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010850 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10851echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010852fi
10853if test "${lt_cv_path_LD+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855else
10856 if test -z "$LD"; then
10857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10858 for ac_dir in $PATH; do
10859 IFS="$lt_save_ifs"
10860 test -z "$ac_dir" && ac_dir=.
10861 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10862 lt_cv_path_LD="$ac_dir/$ac_prog"
10863 # Check to see if the program is GNU ld. I'd rather use --version,
10864 # but apparently some GNU ld's only accept -v.
10865 # Break only if it was the GNU/non-GNU ld that we prefer.
10866 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10867 *GNU* | *'with BFD'*)
10868 test "$with_gnu_ld" != no && break
10869 ;;
10870 *)
10871 test "$with_gnu_ld" != yes && break
10872 ;;
10873 esac
10874 fi
10875 done
10876 IFS="$lt_save_ifs"
10877else
10878 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10879fi
10880fi
10881
10882LD="$lt_cv_path_LD"
10883if test -n "$LD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010884 { echo "$as_me:$LINENO: result: $LD" >&5
10885echo "${ECHO_T}$LD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010886else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010887 { echo "$as_me:$LINENO: result: no" >&5
10888echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010889fi
10890test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10891echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10892 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000010893{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10894echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010895if test "${lt_cv_prog_gnu_ld+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10897else
10898 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10899case `$LD -v 2>&1 </dev/null` in
10900*GNU* | *'with BFD'*)
10901 lt_cv_prog_gnu_ld=yes
10902 ;;
10903*)
10904 lt_cv_prog_gnu_ld=no
10905 ;;
10906esac
10907fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010908{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10909echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010910with_gnu_ld=$lt_cv_prog_gnu_ld
10911
10912
10913
10914 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10915 # archiving commands below assume that GNU ld is being used.
10916 if test "$with_gnu_ld" = yes; then
10917 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10918 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'
10919
10920 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10921 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10922
10923 # If archive_cmds runs LD, not CC, wlarc should be empty
10924 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10925 # investigate it a little bit more. (MM)
10926 wlarc='${wl}'
10927
10928 # ancient GNU ld didn't support --whole-archive et. al.
10929 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10930 grep 'no-whole-archive' > /dev/null; then
10931 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10932 else
10933 whole_archive_flag_spec_CXX=
10934 fi
10935 else
10936 with_gnu_ld=no
10937 wlarc=
10938
10939 # A generic and very simple default shared library creation
10940 # command for GNU C++ for the case where it uses the native
10941 # linker, instead of GNU ld. If possible, this setting should
10942 # overridden to take advantage of the native linker features on
10943 # the platform it is being used on.
10944 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10945 fi
10946
10947 # Commands to make compiler produce verbose output that lists
10948 # what "hidden" libraries, object files and flags are used when
10949 # linking a shared library.
10950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10951
10952else
10953 GXX=no
10954 with_gnu_ld=no
10955 wlarc=
10956fi
10957
10958# PORTME: fill in a description of your system's C++ link characteristics
Lev Walkin27fd0b62007-08-27 23:57:45 +000010959{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10960echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010961ld_shlibs_CXX=yes
10962case $host_os in
10963 aix3*)
10964 # FIXME: insert proper C++ library support
10965 ld_shlibs_CXX=no
10966 ;;
10967 aix4* | aix5*)
10968 if test "$host_cpu" = ia64; then
10969 # On IA64, the linker does run time linking by default, so we don't
10970 # have to do anything special.
10971 aix_use_runtimelinking=no
10972 exp_sym_flag='-Bexport'
10973 no_entry_flag=""
10974 else
10975 aix_use_runtimelinking=no
10976
10977 # Test if we are trying to use run time linking or normal
10978 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10979 # need to do runtime linking.
10980 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10981 for ld_flag in $LDFLAGS; do
10982 case $ld_flag in
10983 *-brtl*)
10984 aix_use_runtimelinking=yes
10985 break
10986 ;;
10987 esac
10988 done
10989 esac
10990
10991 exp_sym_flag='-bexport'
10992 no_entry_flag='-bnoentry'
10993 fi
10994
10995 # When large executables or shared objects are built, AIX ld can
10996 # have problems creating the table of contents. If linking a library
10997 # or program results in "error TOC overflow" add -mminimal-toc to
10998 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10999 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11000
11001 archive_cmds_CXX=''
11002 hardcode_direct_CXX=yes
11003 hardcode_libdir_separator_CXX=':'
11004 link_all_deplibs_CXX=yes
11005
11006 if test "$GXX" = yes; then
11007 case $host_os in aix4.012|aix4.012.*)
11008 # We only want to do this on AIX 4.2 and lower, the check
11009 # below for broken collect2 doesn't work under 4.3+
11010 collect2name=`${CC} -print-prog-name=collect2`
11011 if test -f "$collect2name" && \
11012 strings "$collect2name" | grep resolve_lib_name >/dev/null
11013 then
11014 # We have reworked collect2
11015 hardcode_direct_CXX=yes
11016 else
11017 # We have old collect2
11018 hardcode_direct_CXX=unsupported
11019 # It fails to find uninstalled libraries when the uninstalled
11020 # path is not listed in the libpath. Setting hardcode_minus_L
11021 # to unsupported forces relinking
11022 hardcode_minus_L_CXX=yes
11023 hardcode_libdir_flag_spec_CXX='-L$libdir'
11024 hardcode_libdir_separator_CXX=
11025 fi
11026 esac
11027 shared_flag='-shared'
11028 else
11029 # not using gcc
11030 if test "$host_cpu" = ia64; then
11031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11032 # chokes on -Wl,-G. The following line is correct:
11033 shared_flag='-G'
11034 else
11035 if test "$aix_use_runtimelinking" = yes; then
11036 shared_flag='${wl}-G'
11037 else
11038 shared_flag='${wl}-bM:SRE'
11039 fi
11040 fi
11041 fi
11042
11043 # It seems that -bexpall does not export symbols beginning with
11044 # underscore (_), so it is better to generate a list of symbols to export.
11045 always_export_symbols_CXX=yes
11046 if test "$aix_use_runtimelinking" = yes; then
11047 # Warning - without using the other runtime loading flags (-brtl),
11048 # -berok will link without error, but may produce a broken library.
11049 allow_undefined_flag_CXX='-berok'
11050 # Determine the default libpath from the value encoded in an empty executable.
11051 cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
11057
11058int
11059main ()
11060{
11061
11062 ;
11063 return 0;
11064}
11065_ACEOF
11066rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011067if { (ac_try="$ac_link"
11068case "(($ac_try" in
11069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070 *) ac_try_echo=$ac_try;;
11071esac
11072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000011074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000011080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11081 { (case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084esac
11085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011087 ac_status=$?
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; } &&
11090 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000011091 { (case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094esac
11095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100
11101aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11102}'`
11103# Check for a 64-bit object if we didn't find anything.
11104if 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; }
11105}'`; fi
11106else
11107 echo "$as_me: failed program was:" >&5
11108sed 's/^/| /' conftest.$ac_ext >&5
11109
Lev Walkin27fd0b62007-08-27 23:57:45 +000011110
Lev Walkin8e8b5482004-06-17 23:42:48 +000011111fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011112
11113rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011114 conftest$ac_exeext conftest.$ac_ext
11115if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11116
11117 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11118
11119 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11120 else
11121 if test "$host_cpu" = ia64; then
11122 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11123 allow_undefined_flag_CXX="-z nodefs"
11124 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11125 else
11126 # Determine the default libpath from the value encoded in an empty executable.
11127 cat >conftest.$ac_ext <<_ACEOF
11128/* confdefs.h. */
11129_ACEOF
11130cat confdefs.h >>conftest.$ac_ext
11131cat >>conftest.$ac_ext <<_ACEOF
11132/* end confdefs.h. */
11133
11134int
11135main ()
11136{
11137
11138 ;
11139 return 0;
11140}
11141_ACEOF
11142rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011143if { (ac_try="$ac_link"
11144case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147esac
11148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000011150 ac_status=$?
11151 grep -v '^ *+' conftest.er1 >conftest.err
11152 rm -f conftest.er1
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000011156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11157 { (case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160esac
11161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; } &&
11166 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000011167 { (case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11170esac
11171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176
11177aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11178}'`
11179# Check for a 64-bit object if we didn't find anything.
11180if 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; }
11181}'`; fi
11182else
11183 echo "$as_me: failed program was:" >&5
11184sed 's/^/| /' conftest.$ac_ext >&5
11185
Lev Walkin27fd0b62007-08-27 23:57:45 +000011186
Lev Walkin8e8b5482004-06-17 23:42:48 +000011187fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011188
11189rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011190 conftest$ac_exeext conftest.$ac_ext
11191if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11192
11193 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11194 # Warning - without using the other run time loading flags,
11195 # -berok will link without error, but may produce a broken library.
11196 no_undefined_flag_CXX=' ${wl}-bernotok'
11197 allow_undefined_flag_CXX=' ${wl}-berok'
11198 # -bexpall does not export symbols beginning with underscore (_)
11199 always_export_symbols_CXX=yes
11200 # Exported symbols can be pulled into shared objects from archives
11201 whole_archive_flag_spec_CXX=' '
11202 archive_cmds_need_lc_CXX=yes
11203 # This is similar to how AIX traditionally builds it's shared libraries.
11204 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11205 fi
11206 fi
11207 ;;
11208 chorus*)
11209 case $cc_basename in
11210 *)
11211 # FIXME: insert proper C++ library support
11212 ld_shlibs_CXX=no
11213 ;;
11214 esac
11215 ;;
11216
11217 cygwin* | mingw* | pw32*)
11218 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11219 # as there is no search path for DLLs.
11220 hardcode_libdir_flag_spec_CXX='-L$libdir'
11221 allow_undefined_flag_CXX=unsupported
11222 always_export_symbols_CXX=no
11223 enable_shared_with_static_runtimes_CXX=yes
11224
11225 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11226 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11227 # If the export-symbols file already is a .def file (1st line
11228 # is EXPORTS), use it as is; otherwise, prepend...
11229 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11230 cp $export_symbols $output_objdir/$soname.def;
11231 else
11232 echo EXPORTS > $output_objdir/$soname.def;
11233 cat $export_symbols >> $output_objdir/$soname.def;
11234 fi~
11235 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11236 else
11237 ld_shlibs_CXX=no
11238 fi
11239 ;;
11240
11241 darwin* | rhapsody*)
11242 if test "$GXX" = yes; then
11243 archive_cmds_need_lc_CXX=no
11244 case "$host_os" in
11245 rhapsody* | darwin1.[012])
11246 allow_undefined_flag_CXX='-undefined suppress'
11247 ;;
11248 *) # Darwin 1.3 on
11249 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11250 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11251 else
11252 case ${MACOSX_DEPLOYMENT_TARGET} in
11253 10.[012])
11254 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11255 ;;
11256 10.*)
11257 allow_undefined_flag_CXX='-undefined dynamic_lookup'
11258 ;;
11259 esac
11260 fi
11261 ;;
11262 esac
11263 lt_int_apple_cc_single_mod=no
11264 output_verbose_link_cmd='echo'
11265 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11266 lt_int_apple_cc_single_mod=yes
11267 fi
11268 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11269 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11270 else
11271 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
11272 fi
11273 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11274
11275 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11276 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11277 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}'
11278 else
11279 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
11280 fi
11281 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}'
11282 hardcode_direct_CXX=no
11283 hardcode_automatic_CXX=yes
11284 hardcode_shlibpath_var_CXX=unsupported
11285 whole_archive_flag_spec_CXX='-all_load $convenience'
11286 link_all_deplibs_CXX=yes
11287 else
11288 ld_shlibs_CXX=no
11289 fi
11290 ;;
11291
11292 dgux*)
11293 case $cc_basename in
11294 ec++)
11295 # FIXME: insert proper C++ library support
11296 ld_shlibs_CXX=no
11297 ;;
11298 ghcx)
11299 # Green Hills C++ Compiler
11300 # FIXME: insert proper C++ library support
11301 ld_shlibs_CXX=no
11302 ;;
11303 *)
11304 # FIXME: insert proper C++ library support
11305 ld_shlibs_CXX=no
11306 ;;
11307 esac
11308 ;;
11309 freebsd12*)
11310 # C++ shared libraries reported to be fairly broken before switch to ELF
11311 ld_shlibs_CXX=no
11312 ;;
11313 freebsd-elf*)
11314 archive_cmds_need_lc_CXX=no
11315 ;;
11316 freebsd* | kfreebsd*-gnu)
11317 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11318 # conventions
11319 ld_shlibs_CXX=yes
11320 ;;
11321 gnu*)
11322 ;;
11323 hpux9*)
11324 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11325 hardcode_libdir_separator_CXX=:
11326 export_dynamic_flag_spec_CXX='${wl}-E'
11327 hardcode_direct_CXX=yes
11328 hardcode_minus_L_CXX=yes # Not in the search PATH,
11329 # but as the default
11330 # location of the library.
11331
11332 case $cc_basename in
11333 CC)
11334 # FIXME: insert proper C++ library support
11335 ld_shlibs_CXX=no
11336 ;;
11337 aCC)
11338 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'
11339 # Commands to make compiler produce verbose output that lists
11340 # what "hidden" libraries, object files and flags are used when
11341 # linking a shared library.
11342 #
11343 # There doesn't appear to be a way to prevent this compiler from
11344 # explicitly linking system object files so we need to strip them
11345 # from the output so that they don't get included in the library
11346 # dependencies.
11347 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'
11348 ;;
11349 *)
11350 if test "$GXX" = yes; then
11351 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'
11352 else
11353 # FIXME: insert proper C++ library support
11354 ld_shlibs_CXX=no
11355 fi
11356 ;;
11357 esac
11358 ;;
11359 hpux10*|hpux11*)
11360 if test $with_gnu_ld = no; then
11361 case "$host_cpu" in
11362 hppa*64*)
11363 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11364 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11365 hardcode_libdir_separator_CXX=:
11366 ;;
11367 ia64*)
11368 hardcode_libdir_flag_spec_CXX='-L$libdir'
11369 ;;
11370 *)
11371 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11372 hardcode_libdir_separator_CXX=:
11373 export_dynamic_flag_spec_CXX='${wl}-E'
11374 ;;
11375 esac
11376 fi
11377 case "$host_cpu" in
11378 hppa*64*)
11379 hardcode_direct_CXX=no
11380 hardcode_shlibpath_var_CXX=no
11381 ;;
11382 ia64*)
11383 hardcode_direct_CXX=no
11384 hardcode_shlibpath_var_CXX=no
11385 hardcode_minus_L_CXX=yes # Not in the search PATH,
11386 # but as the default
11387 # location of the library.
11388 ;;
11389 *)
11390 hardcode_direct_CXX=yes
11391 hardcode_minus_L_CXX=yes # Not in the search PATH,
11392 # but as the default
11393 # location of the library.
11394 ;;
11395 esac
11396
11397 case $cc_basename in
11398 CC)
11399 # FIXME: insert proper C++ library support
11400 ld_shlibs_CXX=no
11401 ;;
11402 aCC)
11403 case "$host_cpu" in
11404 hppa*64*|ia64*)
11405 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11406 ;;
11407 *)
11408 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11409 ;;
11410 esac
11411 # Commands to make compiler produce verbose output that lists
11412 # what "hidden" libraries, object files and flags are used when
11413 # linking a shared library.
11414 #
11415 # There doesn't appear to be a way to prevent this compiler from
11416 # explicitly linking system object files so we need to strip them
11417 # from the output so that they don't get included in the library
11418 # dependencies.
11419 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'
11420 ;;
11421 *)
11422 if test "$GXX" = yes; then
11423 if test $with_gnu_ld = no; then
11424 case "$host_cpu" in
11425 ia64*|hppa*64*)
11426 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11427 ;;
11428 *)
11429 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'
11430 ;;
11431 esac
11432 fi
11433 else
11434 # FIXME: insert proper C++ library support
11435 ld_shlibs_CXX=no
11436 fi
11437 ;;
11438 esac
11439 ;;
11440 irix5* | irix6*)
11441 case $cc_basename in
11442 CC)
11443 # SGI C++
11444 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 ${objdir}/so_locations -o $lib'
11445
11446 # Archives containing C++ object files must be created using
11447 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11448 # necessary to make sure instantiated templates are included
11449 # in the archive.
11450 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11451 ;;
11452 *)
11453 if test "$GXX" = yes; then
11454 if test "$with_gnu_ld" = no; then
11455 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}${objdir}/so_locations -o $lib'
11456 else
11457 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'
11458 fi
11459 fi
11460 link_all_deplibs_CXX=yes
11461 ;;
11462 esac
11463 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11464 hardcode_libdir_separator_CXX=:
11465 ;;
11466 linux*)
11467 case $cc_basename in
11468 KCC)
11469 # Kuck and Associates, Inc. (KAI) C++ Compiler
11470
11471 # KCC will only create a shared library if the output file
11472 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11473 # to its proper name (with version) after linking.
11474 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'
11475 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'
11476 # Commands to make compiler produce verbose output that lists
11477 # what "hidden" libraries, object files and flags are used when
11478 # linking a shared library.
11479 #
11480 # There doesn't appear to be a way to prevent this compiler from
11481 # explicitly linking system object files so we need to strip them
11482 # from the output so that they don't get included in the library
11483 # dependencies.
11484 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'
11485
11486 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11487 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11488
11489 # Archives containing C++ object files must be created using
11490 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11491 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11492 ;;
11493 icpc)
11494 # Intel C++
11495 with_gnu_ld=yes
11496 archive_cmds_need_lc_CXX=no
11497 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11498 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'
11499 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11501 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11502 ;;
11503 cxx)
11504 # Compaq C++
11505 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11506 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'
11507
11508 runpath_var=LD_RUN_PATH
11509 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11510 hardcode_libdir_separator_CXX=:
11511
11512 # Commands to make compiler produce verbose output that lists
11513 # what "hidden" libraries, object files and flags are used when
11514 # linking a shared library.
11515 #
11516 # There doesn't appear to be a way to prevent this compiler from
11517 # explicitly linking system object files so we need to strip them
11518 # from the output so that they don't get included in the library
11519 # dependencies.
11520 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'
11521 ;;
11522 esac
11523 ;;
11524 lynxos*)
11525 # FIXME: insert proper C++ library support
11526 ld_shlibs_CXX=no
11527 ;;
11528 m88k*)
11529 # FIXME: insert proper C++ library support
11530 ld_shlibs_CXX=no
11531 ;;
11532 mvs*)
11533 case $cc_basename in
11534 cxx)
11535 # FIXME: insert proper C++ library support
11536 ld_shlibs_CXX=no
11537 ;;
11538 *)
11539 # FIXME: insert proper C++ library support
11540 ld_shlibs_CXX=no
11541 ;;
11542 esac
11543 ;;
11544 netbsd*)
11545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11546 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11547 wlarc=
11548 hardcode_libdir_flag_spec_CXX='-R$libdir'
11549 hardcode_direct_CXX=yes
11550 hardcode_shlibpath_var_CXX=no
11551 fi
11552 # Workaround some broken pre-1.5 toolchains
11553 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11554 ;;
11555 osf3*)
11556 case $cc_basename in
11557 KCC)
11558 # Kuck and Associates, Inc. (KAI) C++ Compiler
11559
11560 # KCC will only create a shared library if the output file
11561 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11562 # to its proper name (with version) after linking.
11563 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'
11564
11565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11566 hardcode_libdir_separator_CXX=:
11567
11568 # Archives containing C++ object files must be created using
11569 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11570 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11571
11572 ;;
11573 RCC)
11574 # Rational C++ 2.4.1
11575 # FIXME: insert proper C++ library support
11576 ld_shlibs_CXX=no
11577 ;;
11578 cxx)
11579 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11580 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 ${objdir}/so_locations -o $lib'
11581
11582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11583 hardcode_libdir_separator_CXX=:
11584
11585 # Commands to make compiler produce verbose output that lists
11586 # what "hidden" libraries, object files and flags are used when
11587 # linking a shared library.
11588 #
11589 # There doesn't appear to be a way to prevent this compiler from
11590 # explicitly linking system object files so we need to strip them
11591 # from the output so that they don't get included in the library
11592 # dependencies.
11593 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'
11594 ;;
11595 *)
11596 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11597 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11598 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}${objdir}/so_locations -o $lib'
11599
11600 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11601 hardcode_libdir_separator_CXX=:
11602
11603 # Commands to make compiler produce verbose output that lists
11604 # what "hidden" libraries, object files and flags are used when
11605 # linking a shared library.
11606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11607
11608 else
11609 # FIXME: insert proper C++ library support
11610 ld_shlibs_CXX=no
11611 fi
11612 ;;
11613 esac
11614 ;;
11615 osf4* | osf5*)
11616 case $cc_basename in
11617 KCC)
11618 # Kuck and Associates, Inc. (KAI) C++ Compiler
11619
11620 # KCC will only create a shared library if the output file
11621 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11622 # to its proper name (with version) after linking.
11623 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'
11624
11625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11626 hardcode_libdir_separator_CXX=:
11627
11628 # Archives containing C++ object files must be created using
11629 # the KAI C++ compiler.
11630 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11631 ;;
11632 RCC)
11633 # Rational C++ 2.4.1
11634 # FIXME: insert proper C++ library support
11635 ld_shlibs_CXX=no
11636 ;;
11637 cxx)
11638 allow_undefined_flag_CXX=' -expect_unresolved \*'
11639 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 ${objdir}/so_locations -o $lib'
11640 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11641 echo "-hidden">> $lib.exp~
11642 $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 $objdir/so_locations -o $lib~
11643 $rm $lib.exp'
11644
11645 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11646 hardcode_libdir_separator_CXX=:
11647
11648 # Commands to make compiler produce verbose output that lists
11649 # what "hidden" libraries, object files and flags are used when
11650 # linking a shared library.
11651 #
11652 # There doesn't appear to be a way to prevent this compiler from
11653 # explicitly linking system object files so we need to strip them
11654 # from the output so that they don't get included in the library
11655 # dependencies.
11656 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'
11657 ;;
11658 *)
11659 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11660 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11661 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}${objdir}/so_locations -o $lib'
11662
11663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11664 hardcode_libdir_separator_CXX=:
11665
11666 # Commands to make compiler produce verbose output that lists
11667 # what "hidden" libraries, object files and flags are used when
11668 # linking a shared library.
11669 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11670
11671 else
11672 # FIXME: insert proper C++ library support
11673 ld_shlibs_CXX=no
11674 fi
11675 ;;
11676 esac
11677 ;;
11678 psos*)
11679 # FIXME: insert proper C++ library support
11680 ld_shlibs_CXX=no
11681 ;;
11682 sco*)
11683 archive_cmds_need_lc_CXX=no
11684 case $cc_basename in
11685 CC)
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 ;;
11689 *)
11690 # FIXME: insert proper C++ library support
11691 ld_shlibs_CXX=no
11692 ;;
11693 esac
11694 ;;
11695 sunos4*)
11696 case $cc_basename in
11697 CC)
11698 # Sun C++ 4.x
11699 # FIXME: insert proper C++ library support
11700 ld_shlibs_CXX=no
11701 ;;
11702 lcc)
11703 # Lucid
11704 # FIXME: insert proper C++ library support
11705 ld_shlibs_CXX=no
11706 ;;
11707 *)
11708 # FIXME: insert proper C++ library support
11709 ld_shlibs_CXX=no
11710 ;;
11711 esac
11712 ;;
11713 solaris*)
11714 case $cc_basename in
11715 CC)
11716 # Sun C++ 4.2, 5.x and Centerline C++
11717 no_undefined_flag_CXX=' -zdefs'
11718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11719 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11720 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11721
11722 hardcode_libdir_flag_spec_CXX='-R$libdir'
11723 hardcode_shlibpath_var_CXX=no
11724 case $host_os in
11725 solaris2.0-5 | solaris2.0-5.*) ;;
11726 *)
11727 # The C++ compiler is used as linker so we must use $wl
11728 # flag to pass the commands to the underlying system
11729 # linker.
11730 # Supported since Solaris 2.6 (maybe 2.5.1?)
11731 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11732 ;;
11733 esac
11734 link_all_deplibs_CXX=yes
11735
11736 # Commands to make compiler produce verbose output that lists
11737 # what "hidden" libraries, object files and flags are used when
11738 # linking a shared library.
11739 #
11740 # There doesn't appear to be a way to prevent this compiler from
11741 # explicitly linking system object files so we need to strip them
11742 # from the output so that they don't get included in the library
11743 # dependencies.
11744 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11745
11746 # Archives containing C++ object files must be created using
11747 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11748 # necessary to make sure instantiated templates are included
11749 # in the archive.
11750 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11751 ;;
11752 gcx)
11753 # Green Hills C++ Compiler
11754 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11755
11756 # The C++ compiler must be used to create the archive.
11757 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11758 ;;
11759 *)
11760 # GNU C++ compiler with Solaris linker
11761 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11762 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11763 if $CC --version | grep -v '^2\.7' > /dev/null; then
11764 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11765 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11766 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11767
11768 # Commands to make compiler produce verbose output that lists
11769 # what "hidden" libraries, object files and flags are used when
11770 # linking a shared library.
11771 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11772 else
11773 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11774 # platform.
11775 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11776 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11777 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11778
11779 # Commands to make compiler produce verbose output that lists
11780 # what "hidden" libraries, object files and flags are used when
11781 # linking a shared library.
11782 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11783 fi
11784
11785 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11786 fi
11787 ;;
11788 esac
11789 ;;
11790 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11791 archive_cmds_need_lc_CXX=no
11792 ;;
11793 tandem*)
11794 case $cc_basename in
11795 NCC)
11796 # NonStop-UX NCC 3.20
11797 # FIXME: insert proper C++ library support
11798 ld_shlibs_CXX=no
11799 ;;
11800 *)
11801 # FIXME: insert proper C++ library support
11802 ld_shlibs_CXX=no
11803 ;;
11804 esac
11805 ;;
11806 vxworks*)
11807 # FIXME: insert proper C++ library support
11808 ld_shlibs_CXX=no
11809 ;;
11810 *)
11811 # FIXME: insert proper C++ library support
11812 ld_shlibs_CXX=no
11813 ;;
11814esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000011815{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11816echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011817test "$ld_shlibs_CXX" = no && can_build_shared=no
11818
11819GCC_CXX="$GXX"
11820LD_CXX="$LD"
11821
11822
11823cat > conftest.$ac_ext <<EOF
11824class Foo
11825{
11826public:
11827 Foo (void) { a = 0; }
11828private:
11829 int a;
11830};
11831EOF
11832
11833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834 (eval $ac_compile) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; then
11838 # Parse the compiler output and extract the necessary
11839 # objects, libraries and library flags.
11840
11841 # Sentinel used to keep track of whether or not we are before
11842 # the conftest object file.
11843 pre_test_object_deps_done=no
11844
11845 # The `*' in the case matches for architectures that use `case' in
11846 # $output_verbose_cmd can trigger glob expansion during the loop
11847 # eval without this substitution.
11848 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11849
11850 for p in `eval $output_verbose_link_cmd`; do
11851 case $p in
11852
11853 -L* | -R* | -l*)
11854 # Some compilers place space between "-{L,R}" and the path.
11855 # Remove the space.
11856 if test $p = "-L" \
11857 || test $p = "-R"; then
11858 prev=$p
11859 continue
11860 else
11861 prev=
11862 fi
11863
11864 if test "$pre_test_object_deps_done" = no; then
11865 case $p in
11866 -L* | -R*)
11867 # Internal compiler library paths should come after those
11868 # provided the user. The postdeps already come after the
11869 # user supplied libs so there is no need to process them.
11870 if test -z "$compiler_lib_search_path_CXX"; then
11871 compiler_lib_search_path_CXX="${prev}${p}"
11872 else
11873 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11874 fi
11875 ;;
11876 # The "-l" case would never come before the object being
11877 # linked, so don't bother handling this case.
11878 esac
11879 else
11880 if test -z "$postdeps_CXX"; then
11881 postdeps_CXX="${prev}${p}"
11882 else
11883 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11884 fi
11885 fi
11886 ;;
11887
11888 *.$objext)
11889 # This assumes that the test object file only shows up
11890 # once in the compiler output.
11891 if test "$p" = "conftest.$objext"; then
11892 pre_test_object_deps_done=yes
11893 continue
11894 fi
11895
11896 if test "$pre_test_object_deps_done" = no; then
11897 if test -z "$predep_objects_CXX"; then
11898 predep_objects_CXX="$p"
11899 else
11900 predep_objects_CXX="$predep_objects_CXX $p"
11901 fi
11902 else
11903 if test -z "$postdep_objects_CXX"; then
11904 postdep_objects_CXX="$p"
11905 else
11906 postdep_objects_CXX="$postdep_objects_CXX $p"
11907 fi
11908 fi
11909 ;;
11910
11911 *) ;; # Ignore the rest.
11912
11913 esac
11914 done
11915
11916 # Clean up.
11917 rm -f a.out a.exe
11918else
11919 echo "libtool.m4: error: problem compiling CXX test program"
11920fi
11921
11922$rm -f confest.$objext
11923
11924case " $postdeps_CXX " in
11925*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11926esac
11927
11928lt_prog_compiler_wl_CXX=
11929lt_prog_compiler_pic_CXX=
11930lt_prog_compiler_static_CXX=
11931
Lev Walkin27fd0b62007-08-27 23:57:45 +000011932{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11933echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011934
11935 # C++ specific cases for pic, static, wl, etc.
11936 if test "$GXX" = yes; then
11937 lt_prog_compiler_wl_CXX='-Wl,'
11938 lt_prog_compiler_static_CXX='-static'
11939
11940 case $host_os in
11941 aix*)
11942 # All AIX code is PIC.
11943 if test "$host_cpu" = ia64; then
11944 # AIX 5 now supports IA64 processor
11945 lt_prog_compiler_static_CXX='-Bstatic'
11946 fi
11947 ;;
11948 amigaos*)
11949 # FIXME: we need at least 68020 code to build shared libraries, but
11950 # adding the `-m68020' flag to GCC prevents building anything better,
11951 # like `-m68040'.
11952 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11953 ;;
11954 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11955 # PIC is the default for these OSes.
11956 ;;
11957 mingw* | os2* | pw32*)
11958 # This hack is so that the source file can tell whether it is being
11959 # built for inclusion in a dll (and should export symbols for example).
11960 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11961 ;;
11962 darwin* | rhapsody*)
11963 # PIC is the default on this platform
11964 # Common symbols not allowed in MH_DYLIB files
11965 lt_prog_compiler_pic_CXX='-fno-common'
11966 ;;
11967 *djgpp*)
11968 # DJGPP does not support shared libraries at all
11969 lt_prog_compiler_pic_CXX=
11970 ;;
11971 sysv4*MP*)
11972 if test -d /usr/nec; then
11973 lt_prog_compiler_pic_CXX=-Kconform_pic
11974 fi
11975 ;;
11976 hpux*)
11977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11978 # not for PA HP-UX.
11979 case "$host_cpu" in
11980 hppa*64*|ia64*)
11981 ;;
11982 *)
11983 lt_prog_compiler_pic_CXX='-fPIC'
11984 ;;
11985 esac
11986 ;;
11987 *)
11988 lt_prog_compiler_pic_CXX='-fPIC'
11989 ;;
11990 esac
11991 else
11992 case $host_os in
11993 aix4* | aix5*)
11994 # All AIX code is PIC.
11995 if test "$host_cpu" = ia64; then
11996 # AIX 5 now supports IA64 processor
11997 lt_prog_compiler_static_CXX='-Bstatic'
11998 else
11999 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12000 fi
12001 ;;
12002 chorus*)
12003 case $cc_basename in
12004 cxch68)
12005 # Green Hills C++ Compiler
12006 # _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"
12007 ;;
12008 esac
12009 ;;
12010 dgux*)
12011 case $cc_basename in
12012 ec++)
12013 lt_prog_compiler_pic_CXX='-KPIC'
12014 ;;
12015 ghcx)
12016 # Green Hills C++ Compiler
12017 lt_prog_compiler_pic_CXX='-pic'
12018 ;;
12019 *)
12020 ;;
12021 esac
12022 ;;
12023 freebsd* | kfreebsd*-gnu)
12024 # FreeBSD uses GNU C++
12025 ;;
12026 hpux9* | hpux10* | hpux11*)
12027 case $cc_basename in
12028 CC)
12029 lt_prog_compiler_wl_CXX='-Wl,'
12030 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12031 if test "$host_cpu" != ia64; then
12032 lt_prog_compiler_pic_CXX='+Z'
12033 fi
12034 ;;
12035 aCC)
12036 lt_prog_compiler_wl_CXX='-Wl,'
12037 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12038 case "$host_cpu" in
12039 hppa*64*|ia64*)
12040 # +Z the default
12041 ;;
12042 *)
12043 lt_prog_compiler_pic_CXX='+Z'
12044 ;;
12045 esac
12046 ;;
12047 *)
12048 ;;
12049 esac
12050 ;;
12051 irix5* | irix6* | nonstopux*)
12052 case $cc_basename in
12053 CC)
12054 lt_prog_compiler_wl_CXX='-Wl,'
12055 lt_prog_compiler_static_CXX='-non_shared'
12056 # CC pic flag -KPIC is the default.
12057 ;;
12058 *)
12059 ;;
12060 esac
12061 ;;
12062 linux*)
12063 case $cc_basename in
12064 KCC)
12065 # KAI C++ Compiler
12066 lt_prog_compiler_wl_CXX='--backend -Wl,'
12067 lt_prog_compiler_pic_CXX='-fPIC'
12068 ;;
12069 icpc)
12070 # Intel C++
12071 lt_prog_compiler_wl_CXX='-Wl,'
12072 lt_prog_compiler_pic_CXX='-KPIC'
12073 lt_prog_compiler_static_CXX='-static'
12074 ;;
12075 cxx)
12076 # Compaq C++
12077 # Make sure the PIC flag is empty. It appears that all Alpha
12078 # Linux and Compaq Tru64 Unix objects are PIC.
12079 lt_prog_compiler_pic_CXX=
12080 lt_prog_compiler_static_CXX='-non_shared'
12081 ;;
12082 *)
12083 ;;
12084 esac
12085 ;;
12086 lynxos*)
12087 ;;
12088 m88k*)
12089 ;;
12090 mvs*)
12091 case $cc_basename in
12092 cxx)
12093 lt_prog_compiler_pic_CXX='-W c,exportall'
12094 ;;
12095 *)
12096 ;;
12097 esac
12098 ;;
12099 netbsd*)
12100 ;;
12101 osf3* | osf4* | osf5*)
12102 case $cc_basename in
12103 KCC)
12104 lt_prog_compiler_wl_CXX='--backend -Wl,'
12105 ;;
12106 RCC)
12107 # Rational C++ 2.4.1
12108 lt_prog_compiler_pic_CXX='-pic'
12109 ;;
12110 cxx)
12111 # Digital/Compaq C++
12112 lt_prog_compiler_wl_CXX='-Wl,'
12113 # Make sure the PIC flag is empty. It appears that all Alpha
12114 # Linux and Compaq Tru64 Unix objects are PIC.
12115 lt_prog_compiler_pic_CXX=
12116 lt_prog_compiler_static_CXX='-non_shared'
12117 ;;
12118 *)
12119 ;;
12120 esac
12121 ;;
12122 psos*)
12123 ;;
12124 sco*)
12125 case $cc_basename in
12126 CC)
12127 lt_prog_compiler_pic_CXX='-fPIC'
12128 ;;
12129 *)
12130 ;;
12131 esac
12132 ;;
12133 solaris*)
12134 case $cc_basename in
12135 CC)
12136 # Sun C++ 4.2, 5.x and Centerline C++
12137 lt_prog_compiler_pic_CXX='-KPIC'
12138 lt_prog_compiler_static_CXX='-Bstatic'
12139 lt_prog_compiler_wl_CXX='-Qoption ld '
12140 ;;
12141 gcx)
12142 # Green Hills C++ Compiler
12143 lt_prog_compiler_pic_CXX='-PIC'
12144 ;;
12145 *)
12146 ;;
12147 esac
12148 ;;
12149 sunos4*)
12150 case $cc_basename in
12151 CC)
12152 # Sun C++ 4.x
12153 lt_prog_compiler_pic_CXX='-pic'
12154 lt_prog_compiler_static_CXX='-Bstatic'
12155 ;;
12156 lcc)
12157 # Lucid
12158 lt_prog_compiler_pic_CXX='-pic'
12159 ;;
12160 *)
12161 ;;
12162 esac
12163 ;;
12164 tandem*)
12165 case $cc_basename in
12166 NCC)
12167 # NonStop-UX NCC 3.20
12168 lt_prog_compiler_pic_CXX='-KPIC'
12169 ;;
12170 *)
12171 ;;
12172 esac
12173 ;;
12174 unixware*)
12175 ;;
12176 vxworks*)
12177 ;;
12178 *)
12179 lt_prog_compiler_can_build_shared_CXX=no
12180 ;;
12181 esac
12182 fi
12183
Lev Walkin27fd0b62007-08-27 23:57:45 +000012184{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12185echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012186
12187#
12188# Check to make sure the PIC flag actually works.
12189#
12190if test -n "$lt_prog_compiler_pic_CXX"; then
12191
Lev Walkin27fd0b62007-08-27 23:57:45 +000012192{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12193echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012194if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
12197 lt_prog_compiler_pic_works_CXX=no
12198 ac_outfile=conftest.$ac_objext
12199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12200 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12201 # Insert the option either (1) after the last *FLAGS variable, or
12202 # (2) before a word containing "conftest.", or (3) at the end.
12203 # Note that $ac_compile itself does not contain backslashes and begins
12204 # with a dollar sign (not a hyphen), so the echo should work correctly.
12205 # The option is referenced via a variable to avoid confusing sed.
12206 lt_compile=`echo "$ac_compile" | $SED \
12207 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12209 -e 's:$: $lt_compiler_flag:'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000012210 (eval echo "\"\$as_me:12210: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000012211 (eval "$lt_compile" 2>conftest.err)
12212 ac_status=$?
12213 cat conftest.err >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012214 echo "$as_me:12214: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000012215 if (exit $ac_status) && test -s "$ac_outfile"; then
12216 # The compiler can only warn and ignore the option if not recognized
12217 # So say no if there are warnings
12218 if test ! -s conftest.err; then
12219 lt_prog_compiler_pic_works_CXX=yes
12220 fi
12221 fi
12222 $rm conftest*
12223
12224fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012225{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12226echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012227
12228if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12229 case $lt_prog_compiler_pic_CXX in
12230 "" | " "*) ;;
12231 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12232 esac
12233else
12234 lt_prog_compiler_pic_CXX=
12235 lt_prog_compiler_can_build_shared_CXX=no
12236fi
12237
12238fi
12239case "$host_os" in
12240 # For platforms which do not support PIC, -DPIC is meaningless:
12241 *djgpp*)
12242 lt_prog_compiler_pic_CXX=
12243 ;;
12244 *)
12245 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12246 ;;
12247esac
12248
Lev Walkin27fd0b62007-08-27 23:57:45 +000012249{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12250echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012251if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 lt_cv_prog_compiler_c_o_CXX=no
12255 $rm -r conftest 2>/dev/null
12256 mkdir conftest
12257 cd conftest
12258 mkdir out
12259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12260
12261 lt_compiler_flag="-o out/conftest2.$ac_objext"
12262 # Insert the option either (1) after the last *FLAGS variable, or
12263 # (2) before a word containing "conftest.", or (3) at the end.
12264 # Note that $ac_compile itself does not contain backslashes and begins
12265 # with a dollar sign (not a hyphen), so the echo should work correctly.
12266 lt_compile=`echo "$ac_compile" | $SED \
12267 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12269 -e 's:$: $lt_compiler_flag:'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000012270 (eval echo "\"\$as_me:12270: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000012271 (eval "$lt_compile" 2>out/conftest.err)
12272 ac_status=$?
12273 cat out/conftest.err >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012274 echo "$as_me:12274: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000012275 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12276 then
12277 # The compiler can only warn and ignore the option if not recognized
12278 # So say no if there are warnings
12279 if test ! -s out/conftest.err; then
12280 lt_cv_prog_compiler_c_o_CXX=yes
12281 fi
12282 fi
12283 chmod u+w .
12284 $rm conftest*
12285 # SGI C++ compiler will create directory out/ii_files/ for
12286 # template instantiation
12287 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12288 $rm out/* && rmdir out
12289 cd ..
12290 rmdir conftest
12291 $rm conftest*
12292
12293fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012294{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12295echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012296
12297
12298hard_links="nottested"
12299if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12300 # do not overwrite the value of need_locks provided by the user
Lev Walkin27fd0b62007-08-27 23:57:45 +000012301 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12302echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012303 hard_links=yes
12304 $rm conftest*
12305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12306 touch conftest.a
12307 ln conftest.a conftest.b 2>&5 || hard_links=no
12308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000012309 { echo "$as_me:$LINENO: result: $hard_links" >&5
12310echo "${ECHO_T}$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012311 if test "$hard_links" = no; then
12312 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12313echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12314 need_locks=warn
12315 fi
12316else
12317 need_locks=no
12318fi
12319
Lev Walkin27fd0b62007-08-27 23:57:45 +000012320{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12321echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012322
12323 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12324 case $host_os in
12325 aix4* | aix5*)
12326 # If we're using GNU nm, then we don't want the "-C" option.
12327 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12328 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12329 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'
12330 else
12331 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'
12332 fi
12333 ;;
12334 pw32*)
12335 export_symbols_cmds_CXX="$ltdll_cmds"
12336 ;;
12337 cygwin* | mingw*)
12338 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12339 ;;
12340 *)
12341 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12342 ;;
12343 esac
12344
Lev Walkin27fd0b62007-08-27 23:57:45 +000012345{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12346echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012347test "$ld_shlibs_CXX" = no && can_build_shared=no
12348
12349variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12350if test "$GCC" = yes; then
12351 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12352fi
12353
12354#
12355# Do we need to explicitly link libc?
12356#
12357case "x$archive_cmds_need_lc_CXX" in
12358x|xyes)
12359 # Assume -lc should be added
12360 archive_cmds_need_lc_CXX=yes
12361
12362 if test "$enable_shared" = yes && test "$GCC" = yes; then
12363 case $archive_cmds_CXX in
12364 *'~'*)
12365 # FIXME: we may have to deal with multi-command sequences.
12366 ;;
12367 '$CC '*)
12368 # Test whether the compiler implicitly links with -lc since on some
12369 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12370 # to ld, don't add -lc before -lgcc.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012371 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12372echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012373 $rm conftest*
12374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12375
12376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12377 (eval $ac_compile) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } 2>conftest.err; then
12381 soname=conftest
12382 lib=conftest
12383 libobjs=conftest.$ac_objext
12384 deplibs=
12385 wl=$lt_prog_compiler_wl_CXX
12386 compiler_flags=-v
12387 linker_flags=-v
12388 verstring=
12389 output_objdir=.
12390 libname=conftest
12391 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12392 allow_undefined_flag_CXX=
12393 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12394 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }
12398 then
12399 archive_cmds_need_lc_CXX=no
12400 else
12401 archive_cmds_need_lc_CXX=yes
12402 fi
12403 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12404 else
12405 cat conftest.err 1>&5
12406 fi
12407 $rm conftest*
Lev Walkin27fd0b62007-08-27 23:57:45 +000012408 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12409echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012410 ;;
12411 esac
12412 fi
12413 ;;
12414esac
12415
Lev Walkin27fd0b62007-08-27 23:57:45 +000012416{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12417echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012418library_names_spec=
12419libname_spec='lib$name'
12420soname_spec=
12421shrext_cmds=".so"
12422postinstall_cmds=
12423postuninstall_cmds=
12424finish_cmds=
12425finish_eval=
12426shlibpath_var=
12427shlibpath_overrides_runpath=unknown
12428version_type=none
12429dynamic_linker="$host_os ld.so"
12430sys_lib_dlsearch_path_spec="/lib /usr/lib"
12431if test "$GCC" = yes; then
12432 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12433 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12434 # if the path contains ";" then we assume it to be the separator
12435 # otherwise default to the standard path separator (i.e. ":") - it is
12436 # assumed that no part of a normal pathname contains ";" but that should
12437 # okay in the real world where ";" in dirpaths is itself problematic.
12438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12439 else
12440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12441 fi
12442else
12443 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12444fi
12445need_lib_prefix=unknown
12446hardcode_into_libs=no
12447
12448# when you set need_version to no, make sure it does not cause -set_version
12449# flags to be left without arguments
12450need_version=unknown
12451
12452case $host_os in
12453aix3*)
12454 version_type=linux
12455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12456 shlibpath_var=LIBPATH
12457
12458 # AIX 3 has no versioning support, so we append a major version to the name.
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 ;;
12461
12462aix4* | aix5*)
12463 version_type=linux
12464 need_lib_prefix=no
12465 need_version=no
12466 hardcode_into_libs=yes
12467 if test "$host_cpu" = ia64; then
12468 # AIX 5 supports IA64
12469 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12470 shlibpath_var=LD_LIBRARY_PATH
12471 else
12472 # With GCC up to 2.95.x, collect2 would create an import file
12473 # for dependence libraries. The import file would start with
12474 # the line `#! .'. This would cause the generated library to
12475 # depend on `.', always an invalid library. This was fixed in
12476 # development snapshots of GCC prior to 3.0.
12477 case $host_os in
12478 aix4 | aix4.[01] | aix4.[01].*)
12479 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12480 echo ' yes '
12481 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12482 :
12483 else
12484 can_build_shared=no
12485 fi
12486 ;;
12487 esac
12488 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12489 # soname into executable. Probably we can add versioning support to
12490 # collect2, so additional links can be useful in future.
12491 if test "$aix_use_runtimelinking" = yes; then
12492 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12493 # instead of lib<name>.a to let people know that these are not
12494 # typical AIX shared libraries.
12495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12496 else
12497 # We preserve .a as extension for shared libraries through AIX4.2
12498 # and later when we are not doing run time linking.
12499 library_names_spec='${libname}${release}.a $libname.a'
12500 soname_spec='${libname}${release}${shared_ext}$major'
12501 fi
12502 shlibpath_var=LIBPATH
12503 fi
12504 ;;
12505
12506amigaos*)
12507 library_names_spec='$libname.ixlibrary $libname.a'
12508 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12509 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'
12510 ;;
12511
12512beos*)
12513 library_names_spec='${libname}${shared_ext}'
12514 dynamic_linker="$host_os ld.so"
12515 shlibpath_var=LIBRARY_PATH
12516 ;;
12517
12518bsdi4*)
12519 version_type=linux
12520 need_version=no
12521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12522 soname_spec='${libname}${release}${shared_ext}$major'
12523 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12524 shlibpath_var=LD_LIBRARY_PATH
12525 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12526 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12527 # the default ld.so.conf also contains /usr/contrib/lib and
12528 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12529 # libtool to hard-code these into programs
12530 ;;
12531
12532cygwin* | mingw* | pw32*)
12533 version_type=windows
12534 shrext_cmds=".dll"
12535 need_version=no
12536 need_lib_prefix=no
12537
12538 case $GCC,$host_os in
12539 yes,cygwin* | yes,mingw* | yes,pw32*)
12540 library_names_spec='$libname.dll.a'
12541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12542 postinstall_cmds='base_file=`basename \${file}`~
12543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12544 dldir=$destdir/`dirname \$dlpath`~
12545 test -d \$dldir || mkdir -p \$dldir~
12546 $install_prog $dir/$dlname \$dldir/$dlname'
12547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12548 dlpath=$dir/\$dldll~
12549 $rm \$dlpath'
12550 shlibpath_overrides_runpath=yes
12551
12552 case $host_os in
12553 cygwin*)
12554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12556 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12557 ;;
12558 mingw*)
12559 # MinGW DLLs use traditional 'lib' prefix
12560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12562 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12563 # It is most probably a Windows format PATH printed by
12564 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12565 # path with ; separators, and with drive letters. We can handle the
12566 # drive letters (cygwin fileutils understands them), so leave them,
12567 # especially as we might pass files found there to a mingw objdump,
12568 # which wouldn't understand a cygwinified path. Ahh.
12569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12570 else
12571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12572 fi
12573 ;;
12574 pw32*)
12575 # pw32 DLLs use 'pw' prefix rather than 'lib'
12576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12577 ;;
12578 esac
12579 ;;
12580
12581 *)
12582 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12583 ;;
12584 esac
12585 dynamic_linker='Win32 ld.exe'
12586 # FIXME: first we should search . and the directory the executable is in
12587 shlibpath_var=PATH
12588 ;;
12589
12590darwin* | rhapsody*)
12591 dynamic_linker="$host_os dyld"
12592 version_type=darwin
12593 need_lib_prefix=no
12594 need_version=no
12595 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12596 soname_spec='${libname}${release}${major}$shared_ext'
12597 shlibpath_overrides_runpath=yes
12598 shlibpath_var=DYLD_LIBRARY_PATH
12599 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12600 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12601 if test "$GCC" = yes; then
12602 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"`
12603 else
12604 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12605 fi
12606 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12607 ;;
12608
12609dgux*)
12610 version_type=linux
12611 need_lib_prefix=no
12612 need_version=no
12613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12614 soname_spec='${libname}${release}${shared_ext}$major'
12615 shlibpath_var=LD_LIBRARY_PATH
12616 ;;
12617
12618freebsd1*)
12619 dynamic_linker=no
12620 ;;
12621
12622kfreebsd*-gnu)
12623 version_type=linux
12624 need_lib_prefix=no
12625 need_version=no
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 shlibpath_var=LD_LIBRARY_PATH
12629 shlibpath_overrides_runpath=no
12630 hardcode_into_libs=yes
12631 dynamic_linker='GNU ld.so'
12632 ;;
12633
12634freebsd*)
12635 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12636 version_type=freebsd-$objformat
12637 case $version_type in
12638 freebsd-elf*)
12639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12640 need_version=no
12641 need_lib_prefix=no
12642 ;;
12643 freebsd-*)
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12645 need_version=yes
12646 ;;
12647 esac
12648 shlibpath_var=LD_LIBRARY_PATH
12649 case $host_os in
12650 freebsd2*)
12651 shlibpath_overrides_runpath=yes
12652 ;;
12653 freebsd3.01* | freebsdelf3.01*)
12654 shlibpath_overrides_runpath=yes
12655 hardcode_into_libs=yes
12656 ;;
12657 *) # from 3.2 on
12658 shlibpath_overrides_runpath=no
12659 hardcode_into_libs=yes
12660 ;;
12661 esac
12662 ;;
12663
12664gnu*)
12665 version_type=linux
12666 need_lib_prefix=no
12667 need_version=no
12668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12669 soname_spec='${libname}${release}${shared_ext}$major'
12670 shlibpath_var=LD_LIBRARY_PATH
12671 hardcode_into_libs=yes
12672 ;;
12673
12674hpux9* | hpux10* | hpux11*)
12675 # Give a soname corresponding to the major version so that dld.sl refuses to
12676 # link against other versions.
12677 version_type=sunos
12678 need_lib_prefix=no
12679 need_version=no
12680 case "$host_cpu" in
12681 ia64*)
12682 shrext_cmds='.so'
12683 hardcode_into_libs=yes
12684 dynamic_linker="$host_os dld.so"
12685 shlibpath_var=LD_LIBRARY_PATH
12686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12688 soname_spec='${libname}${release}${shared_ext}$major'
12689 if test "X$HPUX_IA64_MODE" = X32; then
12690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12691 else
12692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12693 fi
12694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12695 ;;
12696 hppa*64*)
12697 shrext_cmds='.sl'
12698 hardcode_into_libs=yes
12699 dynamic_linker="$host_os dld.sl"
12700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12703 soname_spec='${libname}${release}${shared_ext}$major'
12704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12706 ;;
12707 *)
12708 shrext_cmds='.sl'
12709 dynamic_linker="$host_os dld.sl"
12710 shlibpath_var=SHLIB_PATH
12711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12713 soname_spec='${libname}${release}${shared_ext}$major'
12714 ;;
12715 esac
12716 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12717 postinstall_cmds='chmod 555 $lib'
12718 ;;
12719
12720irix5* | irix6* | nonstopux*)
12721 case $host_os in
12722 nonstopux*) version_type=nonstopux ;;
12723 *)
12724 if test "$lt_cv_prog_gnu_ld" = yes; then
12725 version_type=linux
12726 else
12727 version_type=irix
12728 fi ;;
12729 esac
12730 need_lib_prefix=no
12731 need_version=no
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12734 case $host_os in
12735 irix5* | nonstopux*)
12736 libsuff= shlibsuff=
12737 ;;
12738 *)
12739 case $LD in # libtool.m4 will add one of these switches to LD
12740 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12741 libsuff= shlibsuff= libmagic=32-bit;;
12742 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12743 libsuff=32 shlibsuff=N32 libmagic=N32;;
12744 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12745 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12746 *) libsuff= shlibsuff= libmagic=never-match;;
12747 esac
12748 ;;
12749 esac
12750 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12751 shlibpath_overrides_runpath=no
12752 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12753 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12754 hardcode_into_libs=yes
12755 ;;
12756
12757# No shared lib support for Linux oldld, aout, or coff.
12758linux*oldld* | linux*aout* | linux*coff*)
12759 dynamic_linker=no
12760 ;;
12761
12762# This must be Linux ELF.
12763linux*)
12764 version_type=linux
12765 need_lib_prefix=no
12766 need_version=no
12767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12768 soname_spec='${libname}${release}${shared_ext}$major'
12769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12770 shlibpath_var=LD_LIBRARY_PATH
12771 shlibpath_overrides_runpath=no
12772 # This implies no fast_install, which is unacceptable.
12773 # Some rework will be needed to allow for fast_install
12774 # before this can be enabled.
12775 hardcode_into_libs=yes
12776
12777 # Append ld.so.conf contents to the search path
12778 if test -f /etc/ld.so.conf; then
12779 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12780 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12781 fi
12782
12783 # We used to test for /lib/ld.so.1 and disable shared libraries on
12784 # powerpc, because MkLinux only supported shared libraries with the
12785 # GNU dynamic linker. Since this was broken with cross compilers,
12786 # most powerpc-linux boxes support dynamic linking these days and
12787 # people can always --disable-shared, the test was removed, and we
12788 # assume the GNU/Linux dynamic linker is in use.
12789 dynamic_linker='GNU/Linux ld.so'
12790 ;;
12791
12792knetbsd*-gnu)
12793 version_type=linux
12794 need_lib_prefix=no
12795 need_version=no
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 shlibpath_var=LD_LIBRARY_PATH
12799 shlibpath_overrides_runpath=no
12800 hardcode_into_libs=yes
12801 dynamic_linker='GNU ld.so'
12802 ;;
12803
12804netbsd*)
12805 version_type=sunos
12806 need_lib_prefix=no
12807 need_version=no
12808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12811 dynamic_linker='NetBSD (a.out) ld.so'
12812 else
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 dynamic_linker='NetBSD ld.elf_so'
12816 fi
12817 shlibpath_var=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath=yes
12819 hardcode_into_libs=yes
12820 ;;
12821
12822newsos6)
12823 version_type=linux
12824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12825 shlibpath_var=LD_LIBRARY_PATH
12826 shlibpath_overrides_runpath=yes
12827 ;;
12828
12829nto-qnx*)
12830 version_type=linux
12831 need_lib_prefix=no
12832 need_version=no
12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12834 soname_spec='${libname}${release}${shared_ext}$major'
12835 shlibpath_var=LD_LIBRARY_PATH
12836 shlibpath_overrides_runpath=yes
12837 ;;
12838
12839openbsd*)
12840 version_type=sunos
12841 need_lib_prefix=no
12842 need_version=yes
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12845 shlibpath_var=LD_LIBRARY_PATH
12846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12847 case $host_os in
12848 openbsd2.[89] | openbsd2.[89].*)
12849 shlibpath_overrides_runpath=no
12850 ;;
12851 *)
12852 shlibpath_overrides_runpath=yes
12853 ;;
12854 esac
12855 else
12856 shlibpath_overrides_runpath=yes
12857 fi
12858 ;;
12859
12860os2*)
12861 libname_spec='$name'
12862 shrext_cmds=".dll"
12863 need_lib_prefix=no
12864 library_names_spec='$libname${shared_ext} $libname.a'
12865 dynamic_linker='OS/2 ld.exe'
12866 shlibpath_var=LIBPATH
12867 ;;
12868
12869osf3* | osf4* | osf5*)
12870 version_type=osf
12871 need_lib_prefix=no
12872 need_version=no
12873 soname_spec='${libname}${release}${shared_ext}$major'
12874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12875 shlibpath_var=LD_LIBRARY_PATH
12876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12878 ;;
12879
12880sco3.2v5*)
12881 version_type=osf
12882 soname_spec='${libname}${release}${shared_ext}$major'
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12884 shlibpath_var=LD_LIBRARY_PATH
12885 ;;
12886
12887solaris*)
12888 version_type=linux
12889 need_lib_prefix=no
12890 need_version=no
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 shlibpath_var=LD_LIBRARY_PATH
12894 shlibpath_overrides_runpath=yes
12895 hardcode_into_libs=yes
12896 # ldd complains unless libraries are executable
12897 postinstall_cmds='chmod +x $lib'
12898 ;;
12899
12900sunos4*)
12901 version_type=sunos
12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12904 shlibpath_var=LD_LIBRARY_PATH
12905 shlibpath_overrides_runpath=yes
12906 if test "$with_gnu_ld" = yes; then
12907 need_lib_prefix=no
12908 fi
12909 need_version=yes
12910 ;;
12911
12912sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12913 version_type=linux
12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12915 soname_spec='${libname}${release}${shared_ext}$major'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 case $host_vendor in
12918 sni)
12919 shlibpath_overrides_runpath=no
12920 need_lib_prefix=no
12921 export_dynamic_flag_spec='${wl}-Blargedynsym'
12922 runpath_var=LD_RUN_PATH
12923 ;;
12924 siemens)
12925 need_lib_prefix=no
12926 ;;
12927 motorola)
12928 need_lib_prefix=no
12929 need_version=no
12930 shlibpath_overrides_runpath=no
12931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12932 ;;
12933 esac
12934 ;;
12935
12936sysv4*MP*)
12937 if test -d /usr/nec ;then
12938 version_type=linux
12939 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12940 soname_spec='$libname${shared_ext}.$major'
12941 shlibpath_var=LD_LIBRARY_PATH
12942 fi
12943 ;;
12944
12945uts4*)
12946 version_type=linux
12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12948 soname_spec='${libname}${release}${shared_ext}$major'
12949 shlibpath_var=LD_LIBRARY_PATH
12950 ;;
12951
12952*)
12953 dynamic_linker=no
12954 ;;
12955esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000012956{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12957echo "${ECHO_T}$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012958test "$dynamic_linker" = no && can_build_shared=no
12959
Lev Walkin27fd0b62007-08-27 23:57:45 +000012960{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12961echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012962hardcode_action_CXX=
12963if test -n "$hardcode_libdir_flag_spec_CXX" || \
12964 test -n "$runpath_var CXX" || \
12965 test "X$hardcode_automatic_CXX"="Xyes" ; then
12966
12967 # We can hardcode non-existant directories.
12968 if test "$hardcode_direct_CXX" != no &&
12969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12970 # have to relink, otherwise we might link with an installed library
12971 # when we should be linking with a yet-to-be-installed one
12972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12973 test "$hardcode_minus_L_CXX" != no; then
12974 # Linking always hardcodes the temporary library directory.
12975 hardcode_action_CXX=relink
12976 else
12977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12978 hardcode_action_CXX=immediate
12979 fi
12980else
12981 # We cannot hardcode anything, or else we can only hardcode existing
12982 # directories.
12983 hardcode_action_CXX=unsupported
12984fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012985{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12986echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012987
12988if test "$hardcode_action_CXX" = relink; then
12989 # Fast installation is not supported
12990 enable_fast_install=no
12991elif test "$shlibpath_overrides_runpath" = yes ||
12992 test "$enable_shared" = no; then
12993 # Fast installation is not necessary
12994 enable_fast_install=needless
12995fi
12996
12997striplib=
12998old_striplib=
Lev Walkin27fd0b62007-08-27 23:57:45 +000012999{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13000echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013001if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13002 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13003 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013004 { echo "$as_me:$LINENO: result: yes" >&5
13005echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013006else
13007# FIXME - insert some real tests, host_os isn't really good enough
13008 case $host_os in
13009 darwin*)
13010 if test -n "$STRIP" ; then
13011 striplib="$STRIP -x"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013012 { echo "$as_me:$LINENO: result: yes" >&5
13013echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013014 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013015 { echo "$as_me:$LINENO: result: no" >&5
13016echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013017fi
13018 ;;
13019 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013020 { echo "$as_me:$LINENO: result: no" >&5
13021echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013022 ;;
13023 esac
13024fi
13025
13026if test "x$enable_dlopen" != xyes; then
13027 enable_dlopen=unknown
13028 enable_dlopen_self=unknown
13029 enable_dlopen_self_static=unknown
13030else
13031 lt_cv_dlopen=no
13032 lt_cv_dlopen_libs=
13033
13034 case $host_os in
13035 beos*)
13036 lt_cv_dlopen="load_add_on"
13037 lt_cv_dlopen_libs=
13038 lt_cv_dlopen_self=yes
13039 ;;
13040
13041 mingw* | pw32*)
13042 lt_cv_dlopen="LoadLibrary"
13043 lt_cv_dlopen_libs=
13044 ;;
13045
13046 cygwin*)
13047 lt_cv_dlopen="dlopen"
13048 lt_cv_dlopen_libs=
13049 ;;
13050
13051 darwin*)
13052 # if libdl is installed we need to link against it
Lev Walkin27fd0b62007-08-27 23:57:45 +000013053 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13054echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013055if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13057else
13058 ac_check_lib_save_LIBS=$LIBS
13059LIBS="-ldl $LIBS"
13060cat >conftest.$ac_ext <<_ACEOF
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066
Lev Walkin27fd0b62007-08-27 23:57:45 +000013067/* Override any GCC internal prototype to avoid an error.
13068 Use char because int might match the return type of a GCC
13069 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013070#ifdef __cplusplus
13071extern "C"
13072#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013073char dlopen ();
13074int
13075main ()
13076{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013077return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000013078 ;
13079 return 0;
13080}
13081_ACEOF
13082rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013083if { (ac_try="$ac_link"
13084case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13087esac
13088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000013090 ac_status=$?
13091 grep -v '^ *+' conftest.er1 >conftest.err
13092 rm -f conftest.er1
13093 cat conftest.err >&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13097 { (case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100esac
13101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; } &&
13106 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013107 { (case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; }; then
13116 ac_cv_lib_dl_dlopen=yes
13117else
13118 echo "$as_me: failed program was:" >&5
13119sed 's/^/| /' conftest.$ac_ext >&5
13120
Lev Walkin27fd0b62007-08-27 23:57:45 +000013121 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000013122fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013123
13124rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013125 conftest$ac_exeext conftest.$ac_ext
13126LIBS=$ac_check_lib_save_LIBS
13127fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013128{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13129echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013130if test $ac_cv_lib_dl_dlopen = yes; then
13131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13132else
13133
13134 lt_cv_dlopen="dyld"
13135 lt_cv_dlopen_libs=
13136 lt_cv_dlopen_self=yes
13137
13138fi
13139
13140 ;;
13141
13142 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013143 { echo "$as_me:$LINENO: checking for shl_load" >&5
13144echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013145if test "${ac_cv_func_shl_load+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147else
13148 cat >conftest.$ac_ext <<_ACEOF
13149/* confdefs.h. */
13150_ACEOF
13151cat confdefs.h >>conftest.$ac_ext
13152cat >>conftest.$ac_ext <<_ACEOF
13153/* end confdefs.h. */
13154/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13156#define shl_load innocuous_shl_load
13157
13158/* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char shl_load (); below.
13160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13161 <limits.h> exists even on freestanding compilers. */
13162
13163#ifdef __STDC__
13164# include <limits.h>
13165#else
13166# include <assert.h>
13167#endif
13168
13169#undef shl_load
13170
Lev Walkin27fd0b62007-08-27 23:57:45 +000013171/* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013174#ifdef __cplusplus
13175extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000013176#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013177char shl_load ();
13178/* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013181#if defined __stub_shl_load || defined __stub___shl_load
Lev Walkin8e8b5482004-06-17 23:42:48 +000013182choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000013183#endif
13184
13185int
13186main ()
13187{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013188return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000013189 ;
13190 return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013194if { (ac_try="$ac_link"
13195case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000013201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13208 { (case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211esac
13212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221esac
13222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_func_shl_load=yes
13228else
13229 echo "$as_me: failed program was:" >&5
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
Lev Walkin27fd0b62007-08-27 23:57:45 +000013232 ac_cv_func_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000013233fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013234
13235rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013236 conftest$ac_exeext conftest.$ac_ext
13237fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013238{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13239echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013240if test $ac_cv_func_shl_load = yes; then
13241 lt_cv_dlopen="shl_load"
13242else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013243 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13244echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013245if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247else
13248 ac_check_lib_save_LIBS=$LIBS
13249LIBS="-ldld $LIBS"
13250cat >conftest.$ac_ext <<_ACEOF
13251/* confdefs.h. */
13252_ACEOF
13253cat confdefs.h >>conftest.$ac_ext
13254cat >>conftest.$ac_ext <<_ACEOF
13255/* end confdefs.h. */
13256
Lev Walkin27fd0b62007-08-27 23:57:45 +000013257/* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013260#ifdef __cplusplus
13261extern "C"
13262#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013263char shl_load ();
13264int
13265main ()
13266{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013267return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000013268 ;
13269 return 0;
13270}
13271_ACEOF
13272rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013273if { (ac_try="$ac_link"
13274case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13277esac
13278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000013280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13287 { (case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290esac
13291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; } &&
13296 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013297 { (case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300esac
13301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13306 ac_cv_lib_dld_shl_load=yes
13307else
13308 echo "$as_me: failed program was:" >&5
13309sed 's/^/| /' conftest.$ac_ext >&5
13310
Lev Walkin27fd0b62007-08-27 23:57:45 +000013311 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000013312fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013313
13314rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013315 conftest$ac_exeext conftest.$ac_ext
13316LIBS=$ac_check_lib_save_LIBS
13317fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013318{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13319echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013320if test $ac_cv_lib_dld_shl_load = yes; then
13321 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13322else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013323 { echo "$as_me:$LINENO: checking for dlopen" >&5
13324echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013325if test "${ac_cv_func_dlopen+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13327else
13328 cat >conftest.$ac_ext <<_ACEOF
13329/* confdefs.h. */
13330_ACEOF
13331cat confdefs.h >>conftest.$ac_ext
13332cat >>conftest.$ac_ext <<_ACEOF
13333/* end confdefs.h. */
13334/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13336#define dlopen innocuous_dlopen
13337
13338/* System header to define __stub macros and hopefully few prototypes,
13339 which can conflict with char dlopen (); below.
13340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13341 <limits.h> exists even on freestanding compilers. */
13342
13343#ifdef __STDC__
13344# include <limits.h>
13345#else
13346# include <assert.h>
13347#endif
13348
13349#undef dlopen
13350
Lev Walkin27fd0b62007-08-27 23:57:45 +000013351/* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013354#ifdef __cplusplus
13355extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000013356#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013357char dlopen ();
13358/* The GNU C library defines this for functions which it implements
13359 to always fail with ENOSYS. Some functions are actually named
13360 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013361#if defined __stub_dlopen || defined __stub___dlopen
Lev Walkin8e8b5482004-06-17 23:42:48 +000013362choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000013363#endif
13364
13365int
13366main ()
13367{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013368return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000013369 ;
13370 return 0;
13371}
13372_ACEOF
13373rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013374if { (ac_try="$ac_link"
13375case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13378esac
13379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000013381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401esac
13402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_func_dlopen=yes
13408else
13409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
Lev Walkin27fd0b62007-08-27 23:57:45 +000013412 ac_cv_func_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000013413fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013414
13415rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013416 conftest$ac_exeext conftest.$ac_ext
13417fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013418{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13419echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013420if test $ac_cv_func_dlopen = yes; then
13421 lt_cv_dlopen="dlopen"
13422else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013423 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13424echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013425if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13427else
13428 ac_check_lib_save_LIBS=$LIBS
13429LIBS="-ldl $LIBS"
13430cat >conftest.$ac_ext <<_ACEOF
13431/* confdefs.h. */
13432_ACEOF
13433cat confdefs.h >>conftest.$ac_ext
13434cat >>conftest.$ac_ext <<_ACEOF
13435/* end confdefs.h. */
13436
Lev Walkin27fd0b62007-08-27 23:57:45 +000013437/* Override any GCC internal prototype to avoid an error.
13438 Use char because int might match the return type of a GCC
13439 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013440#ifdef __cplusplus
13441extern "C"
13442#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013443char dlopen ();
13444int
13445main ()
13446{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013447return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000013448 ;
13449 return 0;
13450}
13451_ACEOF
13452rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013453if { (ac_try="$ac_link"
13454case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457esac
13458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000013460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13467 { (case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470esac
13471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013477 { (case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480esac
13481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_cv_lib_dl_dlopen=yes
13487else
13488 echo "$as_me: failed program was:" >&5
13489sed 's/^/| /' conftest.$ac_ext >&5
13490
Lev Walkin27fd0b62007-08-27 23:57:45 +000013491 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000013492fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013493
13494rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013495 conftest$ac_exeext conftest.$ac_ext
13496LIBS=$ac_check_lib_save_LIBS
13497fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013498{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13499echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013500if test $ac_cv_lib_dl_dlopen = yes; then
13501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13502else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013503 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13504echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013505if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13507else
13508 ac_check_lib_save_LIBS=$LIBS
13509LIBS="-lsvld $LIBS"
13510cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
13516
Lev Walkin27fd0b62007-08-27 23:57:45 +000013517/* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013520#ifdef __cplusplus
13521extern "C"
13522#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013523char dlopen ();
13524int
13525main ()
13526{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013527return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000013528 ;
13529 return 0;
13530}
13531_ACEOF
13532rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013533if { (ac_try="$ac_link"
13534case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537esac
13538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000013540 ac_status=$?
13541 grep -v '^ *+' conftest.er1 >conftest.err
13542 rm -f conftest.er1
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13547 { (case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
13551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560esac
13561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 ac_cv_lib_svld_dlopen=yes
13567else
13568 echo "$as_me: failed program was:" >&5
13569sed 's/^/| /' conftest.$ac_ext >&5
13570
Lev Walkin27fd0b62007-08-27 23:57:45 +000013571 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000013572fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013573
13574rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013575 conftest$ac_exeext conftest.$ac_ext
13576LIBS=$ac_check_lib_save_LIBS
13577fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013578{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13579echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013580if test $ac_cv_lib_svld_dlopen = yes; then
13581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13582else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013583 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13584echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013585if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587else
13588 ac_check_lib_save_LIBS=$LIBS
13589LIBS="-ldld $LIBS"
13590cat >conftest.$ac_ext <<_ACEOF
13591/* confdefs.h. */
13592_ACEOF
13593cat confdefs.h >>conftest.$ac_ext
13594cat >>conftest.$ac_ext <<_ACEOF
13595/* end confdefs.h. */
13596
Lev Walkin27fd0b62007-08-27 23:57:45 +000013597/* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013600#ifdef __cplusplus
13601extern "C"
13602#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013603char dld_link ();
13604int
13605main ()
13606{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013607return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000013608 ;
13609 return 0;
13610}
13611_ACEOF
13612rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013613if { (ac_try="$ac_link"
13614case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617esac
13618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000013620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13627 { (case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13630esac
13631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013637 { (case "(($ac_try" in
13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13640esac
13641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_cv_lib_dld_dld_link=yes
13647else
13648 echo "$as_me: failed program was:" >&5
13649sed 's/^/| /' conftest.$ac_ext >&5
13650
Lev Walkin27fd0b62007-08-27 23:57:45 +000013651 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000013652fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013653
13654rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013655 conftest$ac_exeext conftest.$ac_ext
13656LIBS=$ac_check_lib_save_LIBS
13657fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013658{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13659echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013660if test $ac_cv_lib_dld_dld_link = yes; then
13661 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13662fi
13663
13664
13665fi
13666
13667
13668fi
13669
13670
13671fi
13672
13673
13674fi
13675
13676
13677fi
13678
13679 ;;
13680 esac
13681
13682 if test "x$lt_cv_dlopen" != xno; then
13683 enable_dlopen=yes
13684 else
13685 enable_dlopen=no
13686 fi
13687
13688 case $lt_cv_dlopen in
13689 dlopen)
13690 save_CPPFLAGS="$CPPFLAGS"
13691 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13692
13693 save_LDFLAGS="$LDFLAGS"
13694 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13695
13696 save_LIBS="$LIBS"
13697 LIBS="$lt_cv_dlopen_libs $LIBS"
13698
Lev Walkin27fd0b62007-08-27 23:57:45 +000013699 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13700echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013701if test "${lt_cv_dlopen_self+set}" = set; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13703else
13704 if test "$cross_compiling" = yes; then :
13705 lt_cv_dlopen_self=cross
13706else
13707 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13708 lt_status=$lt_dlunknown
13709 cat > conftest.$ac_ext <<EOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013710#line 13710 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000013711#include "confdefs.h"
13712
13713#if HAVE_DLFCN_H
13714#include <dlfcn.h>
13715#endif
13716
13717#include <stdio.h>
13718
13719#ifdef RTLD_GLOBAL
13720# define LT_DLGLOBAL RTLD_GLOBAL
13721#else
13722# ifdef DL_GLOBAL
13723# define LT_DLGLOBAL DL_GLOBAL
13724# else
13725# define LT_DLGLOBAL 0
13726# endif
13727#endif
13728
13729/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13730 find out it does not work in some platform. */
13731#ifndef LT_DLLAZY_OR_NOW
13732# ifdef RTLD_LAZY
13733# define LT_DLLAZY_OR_NOW RTLD_LAZY
13734# else
13735# ifdef DL_LAZY
13736# define LT_DLLAZY_OR_NOW DL_LAZY
13737# else
13738# ifdef RTLD_NOW
13739# define LT_DLLAZY_OR_NOW RTLD_NOW
13740# else
13741# ifdef DL_NOW
13742# define LT_DLLAZY_OR_NOW DL_NOW
13743# else
13744# define LT_DLLAZY_OR_NOW 0
13745# endif
13746# endif
13747# endif
13748# endif
13749#endif
13750
13751#ifdef __cplusplus
13752extern "C" void exit (int);
13753#endif
13754
13755void fnord() { int i=42;}
13756int main ()
13757{
13758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13759 int status = $lt_dlunknown;
13760
13761 if (self)
13762 {
13763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13764 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13765 /* dlclose (self); */
13766 }
13767
13768 exit (status);
13769}
13770EOF
13771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13772 (eval $ac_link) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13776 (./conftest; exit; ) 2>/dev/null
13777 lt_status=$?
13778 case x$lt_status in
13779 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13780 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13781 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13782 esac
13783 else :
13784 # compilation failed
13785 lt_cv_dlopen_self=no
13786 fi
13787fi
13788rm -fr conftest*
13789
13790
13791fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013792{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13793echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013794
13795 if test "x$lt_cv_dlopen_self" = xyes; then
13796 LDFLAGS="$LDFLAGS $link_static_flag"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013797 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13798echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013799if test "${lt_cv_dlopen_self_static+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13801else
13802 if test "$cross_compiling" = yes; then :
13803 lt_cv_dlopen_self_static=cross
13804else
13805 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13806 lt_status=$lt_dlunknown
13807 cat > conftest.$ac_ext <<EOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013808#line 13808 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000013809#include "confdefs.h"
13810
13811#if HAVE_DLFCN_H
13812#include <dlfcn.h>
13813#endif
13814
13815#include <stdio.h>
13816
13817#ifdef RTLD_GLOBAL
13818# define LT_DLGLOBAL RTLD_GLOBAL
13819#else
13820# ifdef DL_GLOBAL
13821# define LT_DLGLOBAL DL_GLOBAL
13822# else
13823# define LT_DLGLOBAL 0
13824# endif
13825#endif
13826
13827/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13828 find out it does not work in some platform. */
13829#ifndef LT_DLLAZY_OR_NOW
13830# ifdef RTLD_LAZY
13831# define LT_DLLAZY_OR_NOW RTLD_LAZY
13832# else
13833# ifdef DL_LAZY
13834# define LT_DLLAZY_OR_NOW DL_LAZY
13835# else
13836# ifdef RTLD_NOW
13837# define LT_DLLAZY_OR_NOW RTLD_NOW
13838# else
13839# ifdef DL_NOW
13840# define LT_DLLAZY_OR_NOW DL_NOW
13841# else
13842# define LT_DLLAZY_OR_NOW 0
13843# endif
13844# endif
13845# endif
13846# endif
13847#endif
13848
13849#ifdef __cplusplus
13850extern "C" void exit (int);
13851#endif
13852
13853void fnord() { int i=42;}
13854int main ()
13855{
13856 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13857 int status = $lt_dlunknown;
13858
13859 if (self)
13860 {
13861 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13862 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13863 /* dlclose (self); */
13864 }
13865
13866 exit (status);
13867}
13868EOF
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870 (eval $ac_link) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13874 (./conftest; exit; ) 2>/dev/null
13875 lt_status=$?
13876 case x$lt_status in
13877 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13878 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13879 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13880 esac
13881 else :
13882 # compilation failed
13883 lt_cv_dlopen_self_static=no
13884 fi
13885fi
13886rm -fr conftest*
13887
13888
13889fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013890{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13891echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013892 fi
13893
13894 CPPFLAGS="$save_CPPFLAGS"
13895 LDFLAGS="$save_LDFLAGS"
13896 LIBS="$save_LIBS"
13897 ;;
13898 esac
13899
13900 case $lt_cv_dlopen_self in
13901 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13902 *) enable_dlopen_self=unknown ;;
13903 esac
13904
13905 case $lt_cv_dlopen_self_static in
13906 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13907 *) enable_dlopen_self_static=unknown ;;
13908 esac
13909fi
13910
13911
13912# The else clause should only fire when bootstrapping the
13913# libtool distribution, otherwise you forgot to ship ltmain.sh
13914# with your package, and you will get complaints that there are
13915# no rules to generate ltmain.sh.
13916if test -f "$ltmain"; then
13917 # See if we are running on zsh, and set the options which allow our commands through
13918 # without removal of \ escapes.
13919 if test -n "${ZSH_VERSION+set}" ; then
13920 setopt NO_GLOB_SUBST
13921 fi
13922 # Now quote all the things that may contain metacharacters while being
13923 # careful not to overquote the AC_SUBSTed values. We take copies of the
13924 # variables and quote the copies for generation of the libtool script.
13925 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13926 SED SHELL STRIP \
13927 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13928 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13929 deplibs_check_method reload_flag reload_cmds need_locks \
13930 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13931 lt_cv_sys_global_symbol_to_c_name_address \
13932 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13933 old_postinstall_cmds old_postuninstall_cmds \
13934 compiler_CXX \
13935 CC_CXX \
13936 LD_CXX \
13937 lt_prog_compiler_wl_CXX \
13938 lt_prog_compiler_pic_CXX \
13939 lt_prog_compiler_static_CXX \
13940 lt_prog_compiler_no_builtin_flag_CXX \
13941 export_dynamic_flag_spec_CXX \
13942 thread_safe_flag_spec_CXX \
13943 whole_archive_flag_spec_CXX \
13944 enable_shared_with_static_runtimes_CXX \
13945 old_archive_cmds_CXX \
13946 old_archive_from_new_cmds_CXX \
13947 predep_objects_CXX \
13948 postdep_objects_CXX \
13949 predeps_CXX \
13950 postdeps_CXX \
13951 compiler_lib_search_path_CXX \
13952 archive_cmds_CXX \
13953 archive_expsym_cmds_CXX \
13954 postinstall_cmds_CXX \
13955 postuninstall_cmds_CXX \
13956 old_archive_from_expsyms_cmds_CXX \
13957 allow_undefined_flag_CXX \
13958 no_undefined_flag_CXX \
13959 export_symbols_cmds_CXX \
13960 hardcode_libdir_flag_spec_CXX \
13961 hardcode_libdir_flag_spec_ld_CXX \
13962 hardcode_libdir_separator_CXX \
13963 hardcode_automatic_CXX \
13964 module_cmds_CXX \
13965 module_expsym_cmds_CXX \
13966 lt_cv_prog_compiler_c_o_CXX \
13967 exclude_expsyms_CXX \
13968 include_expsyms_CXX; do
13969
13970 case $var in
13971 old_archive_cmds_CXX | \
13972 old_archive_from_new_cmds_CXX | \
13973 archive_cmds_CXX | \
13974 archive_expsym_cmds_CXX | \
13975 module_cmds_CXX | \
13976 module_expsym_cmds_CXX | \
13977 old_archive_from_expsyms_cmds_CXX | \
13978 export_symbols_cmds_CXX | \
13979 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13980 postinstall_cmds | postuninstall_cmds | \
13981 old_postinstall_cmds | old_postuninstall_cmds | \
13982 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13983 # Double-quote double-evaled strings.
13984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13985 ;;
13986 *)
13987 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13988 ;;
13989 esac
13990 done
13991
13992 case $lt_echo in
13993 *'\$0 --fallback-echo"')
13994 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13995 ;;
13996 esac
13997
13998cfgfile="$ofile"
13999
14000 cat <<__EOF__ >> "$cfgfile"
14001# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14002
14003# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14004
14005# Shell to use when invoking shell scripts.
14006SHELL=$lt_SHELL
14007
14008# Whether or not to build shared libraries.
14009build_libtool_libs=$enable_shared
14010
14011# Whether or not to build static libraries.
14012build_old_libs=$enable_static
14013
14014# Whether or not to add -lc for building shared libraries.
14015build_libtool_need_lc=$archive_cmds_need_lc_CXX
14016
14017# Whether or not to disallow shared libs when runtime libs are static
14018allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14019
14020# Whether or not to optimize for fast installation.
14021fast_install=$enable_fast_install
14022
14023# The host system.
14024host_alias=$host_alias
14025host=$host
14026
14027# An echo program that does not interpret backslashes.
14028echo=$lt_echo
14029
14030# The archiver.
14031AR=$lt_AR
14032AR_FLAGS=$lt_AR_FLAGS
14033
14034# A C compiler.
14035LTCC=$lt_LTCC
14036
14037# A language-specific compiler.
14038CC=$lt_compiler_CXX
14039
14040# Is the compiler the GNU C compiler?
14041with_gcc=$GCC_CXX
14042
14043# An ERE matcher.
14044EGREP=$lt_EGREP
14045
14046# The linker used to build libraries.
14047LD=$lt_LD_CXX
14048
14049# Whether we need hard or soft links.
14050LN_S=$lt_LN_S
14051
14052# A BSD-compatible nm program.
14053NM=$lt_NM
14054
14055# A symbol stripping program
14056STRIP=$lt_STRIP
14057
14058# Used to examine libraries when file_magic_cmd begins "file"
14059MAGIC_CMD=$MAGIC_CMD
14060
14061# Used on cygwin: DLL creation program.
14062DLLTOOL="$DLLTOOL"
14063
14064# Used on cygwin: object dumper.
14065OBJDUMP="$OBJDUMP"
14066
14067# Used on cygwin: assembler.
14068AS="$AS"
14069
14070# The name of the directory that contains temporary libtool files.
14071objdir=$objdir
14072
14073# How to create reloadable object files.
14074reload_flag=$lt_reload_flag
14075reload_cmds=$lt_reload_cmds
14076
14077# How to pass a linker flag through the compiler.
14078wl=$lt_lt_prog_compiler_wl_CXX
14079
14080# Object file suffix (normally "o").
14081objext="$ac_objext"
14082
14083# Old archive suffix (normally "a").
14084libext="$libext"
14085
14086# Shared library suffix (normally ".so").
14087shrext_cmds='$shrext_cmds'
14088
14089# Executable file suffix (normally "").
14090exeext="$exeext"
14091
14092# Additional compiler flags for building library objects.
14093pic_flag=$lt_lt_prog_compiler_pic_CXX
14094pic_mode=$pic_mode
14095
14096# What is the maximum length of a command?
14097max_cmd_len=$lt_cv_sys_max_cmd_len
14098
14099# Does compiler simultaneously support -c and -o options?
14100compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14101
14102# Must we lock files when doing compilation ?
14103need_locks=$lt_need_locks
14104
14105# Do we need the lib prefix for modules?
14106need_lib_prefix=$need_lib_prefix
14107
14108# Do we need a version for libraries?
14109need_version=$need_version
14110
14111# Whether dlopen is supported.
14112dlopen_support=$enable_dlopen
14113
14114# Whether dlopen of programs is supported.
14115dlopen_self=$enable_dlopen_self
14116
14117# Whether dlopen of statically linked programs is supported.
14118dlopen_self_static=$enable_dlopen_self_static
14119
14120# Compiler flag to prevent dynamic linking.
14121link_static_flag=$lt_lt_prog_compiler_static_CXX
14122
14123# Compiler flag to turn off builtin functions.
14124no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14125
14126# Compiler flag to allow reflexive dlopens.
14127export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14128
14129# Compiler flag to generate shared objects directly from archives.
14130whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14131
14132# Compiler flag to generate thread-safe objects.
14133thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14134
14135# Library versioning type.
14136version_type=$version_type
14137
14138# Format of library name prefix.
14139libname_spec=$lt_libname_spec
14140
14141# List of archive names. First name is the real one, the rest are links.
14142# The last name is the one that the linker finds with -lNAME.
14143library_names_spec=$lt_library_names_spec
14144
14145# The coded name of the library, if different from the real name.
14146soname_spec=$lt_soname_spec
14147
14148# Commands used to build and install an old-style archive.
14149RANLIB=$lt_RANLIB
14150old_archive_cmds=$lt_old_archive_cmds_CXX
14151old_postinstall_cmds=$lt_old_postinstall_cmds
14152old_postuninstall_cmds=$lt_old_postuninstall_cmds
14153
14154# Create an old-style archive from a shared archive.
14155old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14156
14157# Create a temporary old-style archive to link instead of a shared archive.
14158old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14159
14160# Commands used to build and install a shared archive.
14161archive_cmds=$lt_archive_cmds_CXX
14162archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14163postinstall_cmds=$lt_postinstall_cmds
14164postuninstall_cmds=$lt_postuninstall_cmds
14165
14166# Commands used to build a loadable module (assumed same as above if empty)
14167module_cmds=$lt_module_cmds_CXX
14168module_expsym_cmds=$lt_module_expsym_cmds_CXX
14169
14170# Commands to strip libraries.
14171old_striplib=$lt_old_striplib
14172striplib=$lt_striplib
14173
14174# Dependencies to place before the objects being linked to create a
14175# shared library.
14176predep_objects=$lt_predep_objects_CXX
14177
14178# Dependencies to place after the objects being linked to create a
14179# shared library.
14180postdep_objects=$lt_postdep_objects_CXX
14181
14182# Dependencies to place before the objects being linked to create a
14183# shared library.
14184predeps=$lt_predeps_CXX
14185
14186# Dependencies to place after the objects being linked to create a
14187# shared library.
14188postdeps=$lt_postdeps_CXX
14189
14190# The library search path used internally by the compiler when linking
14191# a shared library.
14192compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14193
14194# Method to check whether dependent libraries are shared objects.
14195deplibs_check_method=$lt_deplibs_check_method
14196
14197# Command to use when deplibs_check_method == file_magic.
14198file_magic_cmd=$lt_file_magic_cmd
14199
14200# Flag that allows shared libraries with undefined symbols to be built.
14201allow_undefined_flag=$lt_allow_undefined_flag_CXX
14202
14203# Flag that forces no undefined symbols.
14204no_undefined_flag=$lt_no_undefined_flag_CXX
14205
14206# Commands used to finish a libtool library installation in a directory.
14207finish_cmds=$lt_finish_cmds
14208
14209# Same as above, but a single script fragment to be evaled but not shown.
14210finish_eval=$lt_finish_eval
14211
14212# Take the output of nm and produce a listing of raw symbols and C names.
14213global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14214
14215# Transform the output of nm in a proper C declaration
14216global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14217
14218# Transform the output of nm in a C name address pair
14219global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14220
14221# This is the shared library runtime path variable.
14222runpath_var=$runpath_var
14223
14224# This is the shared library path variable.
14225shlibpath_var=$shlibpath_var
14226
14227# Is shlibpath searched before the hard-coded library search path?
14228shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14229
14230# How to hardcode a shared library path into an executable.
14231hardcode_action=$hardcode_action_CXX
14232
14233# Whether we should hardcode library paths into libraries.
14234hardcode_into_libs=$hardcode_into_libs
14235
14236# Flag to hardcode \$libdir into a binary during linking.
14237# This must work even if \$libdir does not exist.
14238hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14239
14240# If ld is used when linking, flag to hardcode \$libdir into
14241# a binary during linking. This must work even if \$libdir does
14242# not exist.
14243hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14244
14245# Whether we need a single -rpath flag with a separated argument.
14246hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14247
14248# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14249# resulting binary.
14250hardcode_direct=$hardcode_direct_CXX
14251
14252# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14253# resulting binary.
14254hardcode_minus_L=$hardcode_minus_L_CXX
14255
14256# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14257# the resulting binary.
14258hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14259
14260# Set to yes if building a shared library automatically hardcodes DIR into the library
14261# and all subsequent libraries and executables linked against it.
14262hardcode_automatic=$hardcode_automatic_CXX
14263
14264# Variables whose values should be saved in libtool wrapper scripts and
14265# restored at relink time.
14266variables_saved_for_relink="$variables_saved_for_relink"
14267
14268# Whether libtool must link a program against all its dependency libraries.
14269link_all_deplibs=$link_all_deplibs_CXX
14270
14271# Compile-time system search path for libraries
14272sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14273
14274# Run-time system search path for libraries
14275sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14276
14277# Fix the shell variable \$srcfile for the compiler.
14278fix_srcfile_path="$fix_srcfile_path_CXX"
14279
14280# Set to yes if exported symbols are required.
14281always_export_symbols=$always_export_symbols_CXX
14282
14283# The commands to list exported symbols.
14284export_symbols_cmds=$lt_export_symbols_cmds_CXX
14285
14286# The commands to extract the exported symbol list from a shared archive.
14287extract_expsyms_cmds=$lt_extract_expsyms_cmds
14288
14289# Symbols that should not be listed in the preloaded symbols.
14290exclude_expsyms=$lt_exclude_expsyms_CXX
14291
14292# Symbols that must always be exported.
14293include_expsyms=$lt_include_expsyms_CXX
14294
14295# ### END LIBTOOL TAG CONFIG: $tagname
14296
14297__EOF__
14298
14299
14300else
14301 # If there is no Makefile yet, we rely on a make rule to execute
14302 # `config.status --recheck' to rerun these tests and create the
14303 # libtool script then.
14304 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14305 if test -f "$ltmain_in"; then
14306 test -f Makefile && make "$ltmain"
14307 fi
14308fi
14309
14310
14311ac_ext=c
14312ac_cpp='$CPP $CPPFLAGS'
14313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14315ac_compiler_gnu=$ac_cv_c_compiler_gnu
14316
14317CC=$lt_save_CC
14318LDCXX=$LD
14319LD=$lt_save_LD
14320GCC=$lt_save_GCC
14321with_gnu_ldcxx=$with_gnu_ld
14322with_gnu_ld=$lt_save_with_gnu_ld
14323lt_cv_path_LDCXX=$lt_cv_path_LD
14324lt_cv_path_LD=$lt_save_path_LD
14325lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14326lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14327
14328 else
14329 tagname=""
14330 fi
14331 ;;
14332
14333 F77)
14334 if test -n "$F77" && test "X$F77" != "Xno"; then
14335
14336ac_ext=f
14337ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14338ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14339ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14340
14341
14342archive_cmds_need_lc_F77=no
14343allow_undefined_flag_F77=
14344always_export_symbols_F77=no
14345archive_expsym_cmds_F77=
14346export_dynamic_flag_spec_F77=
14347hardcode_direct_F77=no
14348hardcode_libdir_flag_spec_F77=
14349hardcode_libdir_flag_spec_ld_F77=
14350hardcode_libdir_separator_F77=
14351hardcode_minus_L_F77=no
14352hardcode_automatic_F77=no
14353module_cmds_F77=
14354module_expsym_cmds_F77=
14355link_all_deplibs_F77=unknown
14356old_archive_cmds_F77=$old_archive_cmds
14357no_undefined_flag_F77=
14358whole_archive_flag_spec_F77=
14359enable_shared_with_static_runtimes_F77=no
14360
14361# Source file extension for f77 test sources.
14362ac_ext=f
14363
14364# Object file extension for compiled f77 test sources.
14365objext=o
14366objext_F77=$objext
14367
14368# Code to be used in simple compile tests
14369lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14370
14371# Code to be used in simple link tests
14372lt_simple_link_test_code=" program t\n end\n"
14373
14374# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14375
14376# If no C compiler was specified, use CC.
14377LTCC=${LTCC-"$CC"}
14378
14379# Allow CC to be a program name with arguments.
14380compiler=$CC
14381
14382
14383# Allow CC to be a program name with arguments.
14384lt_save_CC="$CC"
14385CC=${F77-"f77"}
14386compiler=$CC
14387compiler_F77=$CC
14388cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14389
Lev Walkin27fd0b62007-08-27 23:57:45 +000014390{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14391echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14392{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14393echo "${ECHO_T}$can_build_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014394
Lev Walkin27fd0b62007-08-27 23:57:45 +000014395{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14396echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014397test "$can_build_shared" = "no" && enable_shared=no
14398
14399# On AIX, shared libraries and static libraries use the same namespace, and
14400# are all built from PIC.
14401case "$host_os" in
14402aix3*)
14403 test "$enable_shared" = yes && enable_static=no
14404 if test -n "$RANLIB"; then
14405 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14406 postinstall_cmds='$RANLIB $lib'
14407 fi
14408 ;;
14409aix4* | aix5*)
14410 test "$enable_shared" = yes && enable_static=no
14411 ;;
14412esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014413{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14414echo "${ECHO_T}$enable_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014415
Lev Walkin27fd0b62007-08-27 23:57:45 +000014416{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14417echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014418# Make sure either enable_shared or enable_static is yes.
14419test "$enable_shared" = yes || enable_static=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +000014420{ echo "$as_me:$LINENO: result: $enable_static" >&5
14421echo "${ECHO_T}$enable_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014422
14423test "$ld_shlibs_F77" = no && can_build_shared=no
14424
14425GCC_F77="$G77"
14426LD_F77="$LD"
14427
14428lt_prog_compiler_wl_F77=
14429lt_prog_compiler_pic_F77=
14430lt_prog_compiler_static_F77=
14431
Lev Walkin27fd0b62007-08-27 23:57:45 +000014432{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14433echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014434
14435 if test "$GCC" = yes; then
14436 lt_prog_compiler_wl_F77='-Wl,'
14437 lt_prog_compiler_static_F77='-static'
14438
14439 case $host_os in
14440 aix*)
14441 # All AIX code is PIC.
14442 if test "$host_cpu" = ia64; then
14443 # AIX 5 now supports IA64 processor
14444 lt_prog_compiler_static_F77='-Bstatic'
14445 fi
14446 ;;
14447
14448 amigaos*)
14449 # FIXME: we need at least 68020 code to build shared libraries, but
14450 # adding the `-m68020' flag to GCC prevents building anything better,
14451 # like `-m68040'.
14452 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14453 ;;
14454
14455 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14456 # PIC is the default for these OSes.
14457 ;;
14458
14459 mingw* | pw32* | os2*)
14460 # This hack is so that the source file can tell whether it is being
14461 # built for inclusion in a dll (and should export symbols for example).
14462 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14463 ;;
14464
14465 darwin* | rhapsody*)
14466 # PIC is the default on this platform
14467 # Common symbols not allowed in MH_DYLIB files
14468 lt_prog_compiler_pic_F77='-fno-common'
14469 ;;
14470
14471 msdosdjgpp*)
14472 # Just because we use GCC doesn't mean we suddenly get shared libraries
14473 # on systems that don't support them.
14474 lt_prog_compiler_can_build_shared_F77=no
14475 enable_shared=no
14476 ;;
14477
14478 sysv4*MP*)
14479 if test -d /usr/nec; then
14480 lt_prog_compiler_pic_F77=-Kconform_pic
14481 fi
14482 ;;
14483
14484 hpux*)
14485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14486 # not for PA HP-UX.
14487 case "$host_cpu" in
14488 hppa*64*|ia64*)
14489 # +Z the default
14490 ;;
14491 *)
14492 lt_prog_compiler_pic_F77='-fPIC'
14493 ;;
14494 esac
14495 ;;
14496
14497 *)
14498 lt_prog_compiler_pic_F77='-fPIC'
14499 ;;
14500 esac
14501 else
14502 # PORTME Check for flag to pass linker flags through the system compiler.
14503 case $host_os in
14504 aix*)
14505 lt_prog_compiler_wl_F77='-Wl,'
14506 if test "$host_cpu" = ia64; then
14507 # AIX 5 now supports IA64 processor
14508 lt_prog_compiler_static_F77='-Bstatic'
14509 else
14510 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14511 fi
14512 ;;
14513
14514 mingw* | pw32* | os2*)
14515 # This hack is so that the source file can tell whether it is being
14516 # built for inclusion in a dll (and should export symbols for example).
14517 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14518 ;;
14519
14520 hpux9* | hpux10* | hpux11*)
14521 lt_prog_compiler_wl_F77='-Wl,'
14522 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14523 # not for PA HP-UX.
14524 case "$host_cpu" in
14525 hppa*64*|ia64*)
14526 # +Z the default
14527 ;;
14528 *)
14529 lt_prog_compiler_pic_F77='+Z'
14530 ;;
14531 esac
14532 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14533 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14534 ;;
14535
14536 irix5* | irix6* | nonstopux*)
14537 lt_prog_compiler_wl_F77='-Wl,'
14538 # PIC (with -KPIC) is the default.
14539 lt_prog_compiler_static_F77='-non_shared'
14540 ;;
14541
14542 newsos6)
14543 lt_prog_compiler_pic_F77='-KPIC'
14544 lt_prog_compiler_static_F77='-Bstatic'
14545 ;;
14546
14547 linux*)
14548 case $CC in
14549 icc* | ecc*)
14550 lt_prog_compiler_wl_F77='-Wl,'
14551 lt_prog_compiler_pic_F77='-KPIC'
14552 lt_prog_compiler_static_F77='-static'
14553 ;;
14554 ccc*)
14555 lt_prog_compiler_wl_F77='-Wl,'
14556 # All Alpha code is PIC.
14557 lt_prog_compiler_static_F77='-non_shared'
14558 ;;
14559 esac
14560 ;;
14561
14562 osf3* | osf4* | osf5*)
14563 lt_prog_compiler_wl_F77='-Wl,'
14564 # All OSF/1 code is PIC.
14565 lt_prog_compiler_static_F77='-non_shared'
14566 ;;
14567
14568 sco3.2v5*)
14569 lt_prog_compiler_pic_F77='-Kpic'
14570 lt_prog_compiler_static_F77='-dn'
14571 ;;
14572
14573 solaris*)
14574 lt_prog_compiler_wl_F77='-Wl,'
14575 lt_prog_compiler_pic_F77='-KPIC'
14576 lt_prog_compiler_static_F77='-Bstatic'
14577 ;;
14578
14579 sunos4*)
14580 lt_prog_compiler_wl_F77='-Qoption ld '
14581 lt_prog_compiler_pic_F77='-PIC'
14582 lt_prog_compiler_static_F77='-Bstatic'
14583 ;;
14584
14585 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14586 lt_prog_compiler_wl_F77='-Wl,'
14587 lt_prog_compiler_pic_F77='-KPIC'
14588 lt_prog_compiler_static_F77='-Bstatic'
14589 ;;
14590
14591 sysv4*MP*)
14592 if test -d /usr/nec ;then
14593 lt_prog_compiler_pic_F77='-Kconform_pic'
14594 lt_prog_compiler_static_F77='-Bstatic'
14595 fi
14596 ;;
14597
14598 uts4*)
14599 lt_prog_compiler_pic_F77='-pic'
14600 lt_prog_compiler_static_F77='-Bstatic'
14601 ;;
14602
14603 *)
14604 lt_prog_compiler_can_build_shared_F77=no
14605 ;;
14606 esac
14607 fi
14608
Lev Walkin27fd0b62007-08-27 23:57:45 +000014609{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14610echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014611
14612#
14613# Check to make sure the PIC flag actually works.
14614#
14615if test -n "$lt_prog_compiler_pic_F77"; then
14616
Lev Walkin27fd0b62007-08-27 23:57:45 +000014617{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14618echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014619if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14621else
14622 lt_prog_compiler_pic_works_F77=no
14623 ac_outfile=conftest.$ac_objext
14624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14625 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14626 # Insert the option either (1) after the last *FLAGS variable, or
14627 # (2) before a word containing "conftest.", or (3) at the end.
14628 # Note that $ac_compile itself does not contain backslashes and begins
14629 # with a dollar sign (not a hyphen), so the echo should work correctly.
14630 # The option is referenced via a variable to avoid confusing sed.
14631 lt_compile=`echo "$ac_compile" | $SED \
14632 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14634 -e 's:$: $lt_compiler_flag:'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014635 (eval echo "\"\$as_me:14635: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000014636 (eval "$lt_compile" 2>conftest.err)
14637 ac_status=$?
14638 cat conftest.err >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014639 echo "$as_me:14639: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014640 if (exit $ac_status) && test -s "$ac_outfile"; then
14641 # The compiler can only warn and ignore the option if not recognized
14642 # So say no if there are warnings
14643 if test ! -s conftest.err; then
14644 lt_prog_compiler_pic_works_F77=yes
14645 fi
14646 fi
14647 $rm conftest*
14648
14649fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014650{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14651echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014652
14653if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14654 case $lt_prog_compiler_pic_F77 in
14655 "" | " "*) ;;
14656 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14657 esac
14658else
14659 lt_prog_compiler_pic_F77=
14660 lt_prog_compiler_can_build_shared_F77=no
14661fi
14662
14663fi
14664case "$host_os" in
14665 # For platforms which do not support PIC, -DPIC is meaningless:
14666 *djgpp*)
14667 lt_prog_compiler_pic_F77=
14668 ;;
14669 *)
14670 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14671 ;;
14672esac
14673
Lev Walkin27fd0b62007-08-27 23:57:45 +000014674{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14675echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014676if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14678else
14679 lt_cv_prog_compiler_c_o_F77=no
14680 $rm -r conftest 2>/dev/null
14681 mkdir conftest
14682 cd conftest
14683 mkdir out
14684 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14685
14686 lt_compiler_flag="-o out/conftest2.$ac_objext"
14687 # Insert the option either (1) after the last *FLAGS variable, or
14688 # (2) before a word containing "conftest.", or (3) at the end.
14689 # Note that $ac_compile itself does not contain backslashes and begins
14690 # with a dollar sign (not a hyphen), so the echo should work correctly.
14691 lt_compile=`echo "$ac_compile" | $SED \
14692 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14694 -e 's:$: $lt_compiler_flag:'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014695 (eval echo "\"\$as_me:14695: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000014696 (eval "$lt_compile" 2>out/conftest.err)
14697 ac_status=$?
14698 cat out/conftest.err >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014699 echo "$as_me:14699: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014700 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14701 then
14702 # The compiler can only warn and ignore the option if not recognized
14703 # So say no if there are warnings
14704 if test ! -s out/conftest.err; then
14705 lt_cv_prog_compiler_c_o_F77=yes
14706 fi
14707 fi
14708 chmod u+w .
14709 $rm conftest*
14710 # SGI C++ compiler will create directory out/ii_files/ for
14711 # template instantiation
14712 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14713 $rm out/* && rmdir out
14714 cd ..
14715 rmdir conftest
14716 $rm conftest*
14717
14718fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014719{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14720echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014721
14722
14723hard_links="nottested"
14724if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14725 # do not overwrite the value of need_locks provided by the user
Lev Walkin27fd0b62007-08-27 23:57:45 +000014726 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14727echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014728 hard_links=yes
14729 $rm conftest*
14730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14731 touch conftest.a
14732 ln conftest.a conftest.b 2>&5 || hard_links=no
14733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000014734 { echo "$as_me:$LINENO: result: $hard_links" >&5
14735echo "${ECHO_T}$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014736 if test "$hard_links" = no; then
14737 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14738echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14739 need_locks=warn
14740 fi
14741else
14742 need_locks=no
14743fi
14744
Lev Walkin27fd0b62007-08-27 23:57:45 +000014745{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14746echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000014747
14748 runpath_var=
14749 allow_undefined_flag_F77=
14750 enable_shared_with_static_runtimes_F77=no
14751 archive_cmds_F77=
14752 archive_expsym_cmds_F77=
14753 old_archive_From_new_cmds_F77=
14754 old_archive_from_expsyms_cmds_F77=
14755 export_dynamic_flag_spec_F77=
14756 whole_archive_flag_spec_F77=
14757 thread_safe_flag_spec_F77=
14758 hardcode_libdir_flag_spec_F77=
14759 hardcode_libdir_flag_spec_ld_F77=
14760 hardcode_libdir_separator_F77=
14761 hardcode_direct_F77=no
14762 hardcode_minus_L_F77=no
14763 hardcode_shlibpath_var_F77=unsupported
14764 link_all_deplibs_F77=unknown
14765 hardcode_automatic_F77=no
14766 module_cmds_F77=
14767 module_expsym_cmds_F77=
14768 always_export_symbols_F77=no
14769 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14770 # include_expsyms should be a list of space-separated symbols to be *always*
14771 # included in the symbol list
14772 include_expsyms_F77=
14773 # exclude_expsyms can be an extended regexp of symbols to exclude
14774 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14775 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14776 # as well as any symbol that contains `d'.
14777 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14778 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14779 # platforms (ab)use it in PIC code, but their linkers get confused if
14780 # the symbol is explicitly referenced. Since portable code cannot
14781 # rely on this symbol name, it's probably fine to never include it in
14782 # preloaded symbol tables.
14783 extract_expsyms_cmds=
14784
14785 case $host_os in
14786 cygwin* | mingw* | pw32*)
14787 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14788 # When not using gcc, we currently assume that we are using
14789 # Microsoft Visual C++.
14790 if test "$GCC" != yes; then
14791 with_gnu_ld=no
14792 fi
14793 ;;
14794 openbsd*)
14795 with_gnu_ld=no
14796 ;;
14797 esac
14798
14799 ld_shlibs_F77=yes
14800 if test "$with_gnu_ld" = yes; then
14801 # If archive_cmds runs LD, not CC, wlarc should be empty
14802 wlarc='${wl}'
14803
14804 # See if GNU ld supports shared libraries.
14805 case $host_os in
14806 aix3* | aix4* | aix5*)
14807 # On AIX/PPC, the GNU linker is very broken
14808 if test "$host_cpu" != ia64; then
14809 ld_shlibs_F77=no
14810 cat <<EOF 1>&2
14811
14812*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14813*** to be unable to reliably create shared libraries on AIX.
14814*** Therefore, libtool is disabling shared libraries support. If you
14815*** really care for shared libraries, you may want to modify your PATH
14816*** so that a non-GNU linker is found, and then restart.
14817
14818EOF
14819 fi
14820 ;;
14821
14822 amigaos*)
14823 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)'
14824 hardcode_libdir_flag_spec_F77='-L$libdir'
14825 hardcode_minus_L_F77=yes
14826
14827 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14828 # that the semantics of dynamic libraries on AmigaOS, at least up
14829 # to version 4, is to share data among multiple programs linked
14830 # with the same dynamic library. Since this doesn't match the
14831 # behavior of shared libraries on other platforms, we can't use
14832 # them.
14833 ld_shlibs_F77=no
14834 ;;
14835
14836 beos*)
14837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14838 allow_undefined_flag_F77=unsupported
14839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14840 # support --undefined. This deserves some investigation. FIXME
14841 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14842 else
14843 ld_shlibs_F77=no
14844 fi
14845 ;;
14846
14847 cygwin* | mingw* | pw32*)
14848 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14849 # as there is no search path for DLLs.
14850 hardcode_libdir_flag_spec_F77='-L$libdir'
14851 allow_undefined_flag_F77=unsupported
14852 always_export_symbols_F77=no
14853 enable_shared_with_static_runtimes_F77=yes
14854 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14855
14856 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14857 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14858 # If the export-symbols file already is a .def file (1st line
14859 # is EXPORTS), use it as is; otherwise, prepend...
14860 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14861 cp $export_symbols $output_objdir/$soname.def;
14862 else
14863 echo EXPORTS > $output_objdir/$soname.def;
14864 cat $export_symbols >> $output_objdir/$soname.def;
14865 fi~
14866 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14867 else
14868 ld_shlibs=no
14869 fi
14870 ;;
14871
14872 netbsd*)
14873 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14874 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14875 wlarc=
14876 else
14877 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14878 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14879 fi
14880 ;;
14881
14882 solaris* | sysv5*)
14883 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14884 ld_shlibs_F77=no
14885 cat <<EOF 1>&2
14886
14887*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14888*** create shared libraries on Solaris systems. Therefore, libtool
14889*** is disabling shared libraries support. We urge you to upgrade GNU
14890*** binutils to release 2.9.1 or newer. Another option is to modify
14891*** your PATH or compiler configuration so that the native linker is
14892*** used, and then restart.
14893
14894EOF
14895 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14896 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14897 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14898 else
14899 ld_shlibs_F77=no
14900 fi
14901 ;;
14902
14903 sunos4*)
14904 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14905 wlarc=
14906 hardcode_direct_F77=yes
14907 hardcode_shlibpath_var_F77=no
14908 ;;
14909
14910 linux*)
14911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14912 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14913 archive_cmds_F77="$tmp_archive_cmds"
14914 supports_anon_versioning=no
14915 case `$LD -v 2>/dev/null` in
14916 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14917 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14918 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14919 *\ 2.11.*) ;; # other 2.11 versions
14920 *) supports_anon_versioning=yes ;;
14921 esac
14922 if test $supports_anon_versioning = yes; then
14923 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14924cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14925$echo "local: *; };" >> $output_objdir/$libname.ver~
14926 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14927 else
14928 archive_expsym_cmds_F77="$tmp_archive_cmds"
14929 fi
14930 else
14931 ld_shlibs_F77=no
14932 fi
14933 ;;
14934
14935 *)
14936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14937 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14938 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14939 else
14940 ld_shlibs_F77=no
14941 fi
14942 ;;
14943 esac
14944
14945 if test "$ld_shlibs_F77" = yes; then
14946 runpath_var=LD_RUN_PATH
14947 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14948 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14949 # ancient GNU ld didn't support --whole-archive et. al.
14950 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14951 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14952 else
14953 whole_archive_flag_spec_F77=
14954 fi
14955 fi
14956 else
14957 # PORTME fill in a description of your system's linker (not GNU ld)
14958 case $host_os in
14959 aix3*)
14960 allow_undefined_flag_F77=unsupported
14961 always_export_symbols_F77=yes
14962 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'
14963 # Note: this linker hardcodes the directories in LIBPATH if there
14964 # are no directories specified by -L.
14965 hardcode_minus_L_F77=yes
14966 if test "$GCC" = yes && test -z "$link_static_flag"; then
14967 # Neither direct hardcoding nor static linking is supported with a
14968 # broken collect2.
14969 hardcode_direct_F77=unsupported
14970 fi
14971 ;;
14972
14973 aix4* | aix5*)
14974 if test "$host_cpu" = ia64; then
14975 # On IA64, the linker does run time linking by default, so we don't
14976 # have to do anything special.
14977 aix_use_runtimelinking=no
14978 exp_sym_flag='-Bexport'
14979 no_entry_flag=""
14980 else
14981 # If we're using GNU nm, then we don't want the "-C" option.
14982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14983 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14984 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'
14985 else
14986 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'
14987 fi
14988 aix_use_runtimelinking=no
14989
14990 # Test if we are trying to use run time linking or normal
14991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14992 # need to do runtime linking.
14993 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14994 for ld_flag in $LDFLAGS; do
14995 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14996 aix_use_runtimelinking=yes
14997 break
14998 fi
14999 done
15000 esac
15001
15002 exp_sym_flag='-bexport'
15003 no_entry_flag='-bnoentry'
15004 fi
15005
15006 # When large executables or shared objects are built, AIX ld can
15007 # have problems creating the table of contents. If linking a library
15008 # or program results in "error TOC overflow" add -mminimal-toc to
15009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15011
15012 archive_cmds_F77=''
15013 hardcode_direct_F77=yes
15014 hardcode_libdir_separator_F77=':'
15015 link_all_deplibs_F77=yes
15016
15017 if test "$GCC" = yes; then
15018 case $host_os in aix4.012|aix4.012.*)
15019 # We only want to do this on AIX 4.2 and lower, the check
15020 # below for broken collect2 doesn't work under 4.3+
15021 collect2name=`${CC} -print-prog-name=collect2`
15022 if test -f "$collect2name" && \
15023 strings "$collect2name" | grep resolve_lib_name >/dev/null
15024 then
15025 # We have reworked collect2
15026 hardcode_direct_F77=yes
15027 else
15028 # We have old collect2
15029 hardcode_direct_F77=unsupported
15030 # It fails to find uninstalled libraries when the uninstalled
15031 # path is not listed in the libpath. Setting hardcode_minus_L
15032 # to unsupported forces relinking
15033 hardcode_minus_L_F77=yes
15034 hardcode_libdir_flag_spec_F77='-L$libdir'
15035 hardcode_libdir_separator_F77=
15036 fi
15037 esac
15038 shared_flag='-shared'
15039 else
15040 # not using gcc
15041 if test "$host_cpu" = ia64; then
15042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15043 # chokes on -Wl,-G. The following line is correct:
15044 shared_flag='-G'
15045 else
15046 if test "$aix_use_runtimelinking" = yes; then
15047 shared_flag='${wl}-G'
15048 else
15049 shared_flag='${wl}-bM:SRE'
15050 fi
15051 fi
15052 fi
15053
15054 # It seems that -bexpall does not export symbols beginning with
15055 # underscore (_), so it is better to generate a list of symbols to export.
15056 always_export_symbols_F77=yes
15057 if test "$aix_use_runtimelinking" = yes; then
15058 # Warning - without using the other runtime loading flags (-brtl),
15059 # -berok will link without error, but may produce a broken library.
15060 allow_undefined_flag_F77='-berok'
15061 # Determine the default libpath from the value encoded in an empty executable.
15062 cat >conftest.$ac_ext <<_ACEOF
15063 program main
15064
15065 end
15066_ACEOF
15067rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000015068if { (ac_try="$ac_link"
15069case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072esac
15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000015075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000015081 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15082 { (case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15085esac
15086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000015088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000015092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095esac
15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000015098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15101
15102aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15103}'`
15104# Check for a 64-bit object if we didn't find anything.
15105if 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; }
15106}'`; fi
15107else
15108 echo "$as_me: failed program was:" >&5
15109sed 's/^/| /' conftest.$ac_ext >&5
15110
Lev Walkin27fd0b62007-08-27 23:57:45 +000015111
Lev Walkin8e8b5482004-06-17 23:42:48 +000015112fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000015113
15114rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000015115 conftest$ac_exeext conftest.$ac_ext
15116if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15117
15118 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15119 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15120 else
15121 if test "$host_cpu" = ia64; then
15122 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15123 allow_undefined_flag_F77="-z nodefs"
15124 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15125 else
15126 # Determine the default libpath from the value encoded in an empty executable.
15127 cat >conftest.$ac_ext <<_ACEOF
15128 program main
15129
15130 end
15131_ACEOF
15132rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000015133if { (ac_try="$ac_link"
15134case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137esac
15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000015140 ac_status=$?
15141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -f conftest.er1
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000015146 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15147 { (case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150esac
15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000015153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000015157 { (case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160esac
15161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000015163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166
15167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15168}'`
15169# Check for a 64-bit object if we didn't find anything.
15170if 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; }
15171}'`; fi
15172else
15173 echo "$as_me: failed program was:" >&5
15174sed 's/^/| /' conftest.$ac_ext >&5
15175
Lev Walkin27fd0b62007-08-27 23:57:45 +000015176
Lev Walkin8e8b5482004-06-17 23:42:48 +000015177fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000015178
15179rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000015180 conftest$ac_exeext conftest.$ac_ext
15181if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15182
15183 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15184 # Warning - without using the other run time loading flags,
15185 # -berok will link without error, but may produce a broken library.
15186 no_undefined_flag_F77=' ${wl}-bernotok'
15187 allow_undefined_flag_F77=' ${wl}-berok'
15188 # -bexpall does not export symbols beginning with underscore (_)
15189 always_export_symbols_F77=yes
15190 # Exported symbols can be pulled into shared objects from archives
15191 whole_archive_flag_spec_F77=' '
15192 archive_cmds_need_lc_F77=yes
15193 # This is similar to how AIX traditionally builds it's shared libraries.
15194 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15195 fi
15196 fi
15197 ;;
15198
15199 amigaos*)
15200 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)'
15201 hardcode_libdir_flag_spec_F77='-L$libdir'
15202 hardcode_minus_L_F77=yes
15203 # see comment about different semantics on the GNU ld section
15204 ld_shlibs_F77=no
15205 ;;
15206
15207 bsdi4*)
15208 export_dynamic_flag_spec_F77=-rdynamic
15209 ;;
15210
15211 cygwin* | mingw* | pw32*)
15212 # When not using gcc, we currently assume that we are using
15213 # Microsoft Visual C++.
15214 # hardcode_libdir_flag_spec is actually meaningless, as there is
15215 # no search path for DLLs.
15216 hardcode_libdir_flag_spec_F77=' '
15217 allow_undefined_flag_F77=unsupported
15218 # Tell ltmain to make .lib files, not .a files.
15219 libext=lib
15220 # Tell ltmain to make .dll files, not .so files.
15221 shrext_cmds=".dll"
15222 # FIXME: Setting linknames here is a bad hack.
15223 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15224 # The linker will automatically build a .lib file if we build a DLL.
15225 old_archive_From_new_cmds_F77='true'
15226 # FIXME: Should let the user specify the lib program.
15227 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15228 fix_srcfile_path='`cygpath -w "$srcfile"`'
15229 enable_shared_with_static_runtimes_F77=yes
15230 ;;
15231
15232 darwin* | rhapsody*)
15233 if test "$GXX" = yes ; then
15234 archive_cmds_need_lc_F77=no
15235 case "$host_os" in
15236 rhapsody* | darwin1.[012])
15237 allow_undefined_flag_F77='-undefined suppress'
15238 ;;
15239 *) # Darwin 1.3 on
15240 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15241 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15242 else
15243 case ${MACOSX_DEPLOYMENT_TARGET} in
15244 10.[012])
15245 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15246 ;;
15247 10.*)
15248 allow_undefined_flag_F77='-undefined dynamic_lookup'
15249 ;;
15250 esac
15251 fi
15252 ;;
15253 esac
15254 lt_int_apple_cc_single_mod=no
15255 output_verbose_link_cmd='echo'
15256 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15257 lt_int_apple_cc_single_mod=yes
15258 fi
15259 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15260 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15261 else
15262 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
15263 fi
15264 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15265 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15266 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15267 archive_expsym_cmds_F77='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}'
15268 else
15269 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15270 fi
15271 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}'
15272 hardcode_direct_F77=no
15273 hardcode_automatic_F77=yes
15274 hardcode_shlibpath_var_F77=unsupported
15275 whole_archive_flag_spec_F77='-all_load $convenience'
15276 link_all_deplibs_F77=yes
15277 else
15278 ld_shlibs_F77=no
15279 fi
15280 ;;
15281
15282 dgux*)
15283 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15284 hardcode_libdir_flag_spec_F77='-L$libdir'
15285 hardcode_shlibpath_var_F77=no
15286 ;;
15287
15288 freebsd1*)
15289 ld_shlibs_F77=no
15290 ;;
15291
15292 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15293 # support. Future versions do this automatically, but an explicit c++rt0.o
15294 # does not break anything, and helps significantly (at the cost of a little
15295 # extra space).
15296 freebsd2.2*)
15297 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15298 hardcode_libdir_flag_spec_F77='-R$libdir'
15299 hardcode_direct_F77=yes
15300 hardcode_shlibpath_var_F77=no
15301 ;;
15302
15303 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15304 freebsd2*)
15305 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15306 hardcode_direct_F77=yes
15307 hardcode_minus_L_F77=yes
15308 hardcode_shlibpath_var_F77=no
15309 ;;
15310
15311 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15312 freebsd* | kfreebsd*-gnu)
15313 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15314 hardcode_libdir_flag_spec_F77='-R$libdir'
15315 hardcode_direct_F77=yes
15316 hardcode_shlibpath_var_F77=no
15317 ;;
15318
15319 hpux9*)
15320 if test "$GCC" = yes; then
15321 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'
15322 else
15323 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'
15324 fi
15325 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15326 hardcode_libdir_separator_F77=:
15327 hardcode_direct_F77=yes
15328
15329 # hardcode_minus_L: Not really in the search PATH,
15330 # but as the default location of the library.
15331 hardcode_minus_L_F77=yes
15332 export_dynamic_flag_spec_F77='${wl}-E'
15333 ;;
15334
15335 hpux10* | hpux11*)
15336 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15337 case "$host_cpu" in
15338 hppa*64*|ia64*)
15339 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15340 ;;
15341 *)
15342 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15343 ;;
15344 esac
15345 else
15346 case "$host_cpu" in
15347 hppa*64*|ia64*)
15348 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15349 ;;
15350 *)
15351 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15352 ;;
15353 esac
15354 fi
15355 if test "$with_gnu_ld" = no; then
15356 case "$host_cpu" in
15357 hppa*64*)
15358 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15359 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15360 hardcode_libdir_separator_F77=:
15361 hardcode_direct_F77=no
15362 hardcode_shlibpath_var_F77=no
15363 ;;
15364 ia64*)
15365 hardcode_libdir_flag_spec_F77='-L$libdir'
15366 hardcode_direct_F77=no
15367 hardcode_shlibpath_var_F77=no
15368
15369 # hardcode_minus_L: Not really in the search PATH,
15370 # but as the default location of the library.
15371 hardcode_minus_L_F77=yes
15372 ;;
15373 *)
15374 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15375 hardcode_libdir_separator_F77=:
15376 hardcode_direct_F77=yes
15377 export_dynamic_flag_spec_F77='${wl}-E'
15378
15379 # hardcode_minus_L: Not really in the search PATH,
15380 # but as the default location of the library.
15381 hardcode_minus_L_F77=yes
15382 ;;
15383 esac
15384 fi
15385 ;;
15386
15387 irix5* | irix6* | nonstopux*)
15388 if test "$GCC" = yes; then
15389 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'
15390 else
15391 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'
15392 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15393 fi
15394 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15395 hardcode_libdir_separator_F77=:
15396 link_all_deplibs_F77=yes
15397 ;;
15398
15399 netbsd*)
15400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15401 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15402 else
15403 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15404 fi
15405 hardcode_libdir_flag_spec_F77='-R$libdir'
15406 hardcode_direct_F77=yes
15407 hardcode_shlibpath_var_F77=no
15408 ;;
15409
15410 newsos6)
15411 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_direct_F77=yes
15413 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15414 hardcode_libdir_separator_F77=:
15415 hardcode_shlibpath_var_F77=no
15416 ;;
15417
15418 openbsd*)
15419 hardcode_direct_F77=yes
15420 hardcode_shlibpath_var_F77=no
15421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15422 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15423 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15424 export_dynamic_flag_spec_F77='${wl}-E'
15425 else
15426 case $host_os in
15427 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15428 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15429 hardcode_libdir_flag_spec_F77='-R$libdir'
15430 ;;
15431 *)
15432 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15433 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15434 ;;
15435 esac
15436 fi
15437 ;;
15438
15439 os2*)
15440 hardcode_libdir_flag_spec_F77='-L$libdir'
15441 hardcode_minus_L_F77=yes
15442 allow_undefined_flag_F77=unsupported
15443 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'
15444 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15445 ;;
15446
15447 osf3*)
15448 if test "$GCC" = yes; then
15449 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15450 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'
15451 else
15452 allow_undefined_flag_F77=' -expect_unresolved \*'
15453 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'
15454 fi
15455 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15456 hardcode_libdir_separator_F77=:
15457 ;;
15458
15459 osf4* | osf5*) # as osf3* with the addition of -msym flag
15460 if test "$GCC" = yes; then
15461 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15462 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'
15463 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15464 else
15465 allow_undefined_flag_F77=' -expect_unresolved \*'
15466 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'
15467 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~
15468 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15469
15470 # Both c and cxx compiler support -rpath directly
15471 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15472 fi
15473 hardcode_libdir_separator_F77=:
15474 ;;
15475
15476 sco3.2v5*)
15477 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15478 hardcode_shlibpath_var_F77=no
15479 export_dynamic_flag_spec_F77='${wl}-Bexport'
15480 runpath_var=LD_RUN_PATH
15481 hardcode_runpath_var=yes
15482 ;;
15483
15484 solaris*)
15485 no_undefined_flag_F77=' -z text'
15486 if test "$GCC" = yes; then
15487 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15488 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15489 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15490 else
15491 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15492 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15493 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15494 fi
15495 hardcode_libdir_flag_spec_F77='-R$libdir'
15496 hardcode_shlibpath_var_F77=no
15497 case $host_os in
15498 solaris2.[0-5] | solaris2.[0-5].*) ;;
15499 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15500 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15501 esac
15502 link_all_deplibs_F77=yes
15503 ;;
15504
15505 sunos4*)
15506 if test "x$host_vendor" = xsequent; then
15507 # Use $CC to link under sequent, because it throws in some extra .o
15508 # files that make .init and .fini sections work.
15509 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15510 else
15511 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15512 fi
15513 hardcode_libdir_flag_spec_F77='-L$libdir'
15514 hardcode_direct_F77=yes
15515 hardcode_minus_L_F77=yes
15516 hardcode_shlibpath_var_F77=no
15517 ;;
15518
15519 sysv4)
15520 case $host_vendor in
15521 sni)
15522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15523 hardcode_direct_F77=yes # is this really true???
15524 ;;
15525 siemens)
15526 ## LD is ld it makes a PLAMLIB
15527 ## CC just makes a GrossModule.
15528 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15529 reload_cmds_F77='$CC -r -o $output$reload_objs'
15530 hardcode_direct_F77=no
15531 ;;
15532 motorola)
15533 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15535 ;;
15536 esac
15537 runpath_var='LD_RUN_PATH'
15538 hardcode_shlibpath_var_F77=no
15539 ;;
15540
15541 sysv4.3*)
15542 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15543 hardcode_shlibpath_var_F77=no
15544 export_dynamic_flag_spec_F77='-Bexport'
15545 ;;
15546
15547 sysv4*MP*)
15548 if test -d /usr/nec; then
15549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15550 hardcode_shlibpath_var_F77=no
15551 runpath_var=LD_RUN_PATH
15552 hardcode_runpath_var=yes
15553 ld_shlibs_F77=yes
15554 fi
15555 ;;
15556
15557 sysv4.2uw2*)
15558 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15559 hardcode_direct_F77=yes
15560 hardcode_minus_L_F77=no
15561 hardcode_shlibpath_var_F77=no
15562 hardcode_runpath_var=yes
15563 runpath_var=LD_RUN_PATH
15564 ;;
15565
15566 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15567 no_undefined_flag_F77='${wl}-z ${wl}text'
15568 if test "$GCC" = yes; then
15569 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15570 else
15571 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15572 fi
15573 runpath_var='LD_RUN_PATH'
15574 hardcode_shlibpath_var_F77=no
15575 ;;
15576
15577 sysv5*)
15578 no_undefined_flag_F77=' -z text'
15579 # $CC -shared without GNU ld will not create a library from C++
15580 # object files and a static libstdc++, better avoid it by now
15581 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15582 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15584 hardcode_libdir_flag_spec_F77=
15585 hardcode_shlibpath_var_F77=no
15586 runpath_var='LD_RUN_PATH'
15587 ;;
15588
15589 uts4*)
15590 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15591 hardcode_libdir_flag_spec_F77='-L$libdir'
15592 hardcode_shlibpath_var_F77=no
15593 ;;
15594
15595 *)
15596 ld_shlibs_F77=no
15597 ;;
15598 esac
15599 fi
15600
Lev Walkin27fd0b62007-08-27 23:57:45 +000015601{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15602echo "${ECHO_T}$ld_shlibs_F77" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000015603test "$ld_shlibs_F77" = no && can_build_shared=no
15604
15605variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15606if test "$GCC" = yes; then
15607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15608fi
15609
15610#
15611# Do we need to explicitly link libc?
15612#
15613case "x$archive_cmds_need_lc_F77" in
15614x|xyes)
15615 # Assume -lc should be added
15616 archive_cmds_need_lc_F77=yes
15617
15618 if test "$enable_shared" = yes && test "$GCC" = yes; then
15619 case $archive_cmds_F77 in
15620 *'~'*)
15621 # FIXME: we may have to deal with multi-command sequences.
15622 ;;
15623 '$CC '*)
15624 # Test whether the compiler implicitly links with -lc since on some
15625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15626 # to ld, don't add -lc before -lgcc.
Lev Walkin27fd0b62007-08-27 23:57:45 +000015627 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15628echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000015629 $rm conftest*
15630 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15631
15632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15633 (eval $ac_compile) 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } 2>conftest.err; then
15637 soname=conftest
15638 lib=conftest
15639 libobjs=conftest.$ac_objext
15640 deplibs=
15641 wl=$lt_prog_compiler_wl_F77
15642 compiler_flags=-v
15643 linker_flags=-v
15644 verstring=
15645 output_objdir=.
15646 libname=conftest
15647 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15648 allow_undefined_flag_F77=
15649 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15650 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }
15654 then
15655 archive_cmds_need_lc_F77=no
15656 else
15657 archive_cmds_need_lc_F77=yes
15658 fi
15659 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15660 else
15661 cat conftest.err 1>&5
15662 fi
15663 $rm conftest*
Lev Walkin27fd0b62007-08-27 23:57:45 +000015664 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15665echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000015666 ;;
15667 esac
15668 fi
15669 ;;
15670esac
15671
Lev Walkin27fd0b62007-08-27 23:57:45 +000015672{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15673echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000015674library_names_spec=
15675libname_spec='lib$name'
15676soname_spec=
15677shrext_cmds=".so"
15678postinstall_cmds=
15679postuninstall_cmds=
15680finish_cmds=
15681finish_eval=
15682shlibpath_var=
15683shlibpath_overrides_runpath=unknown
15684version_type=none
15685dynamic_linker="$host_os ld.so"
15686sys_lib_dlsearch_path_spec="/lib /usr/lib"
15687if test "$GCC" = yes; then
15688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15689 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15690 # if the path contains ";" then we assume it to be the separator
15691 # otherwise default to the standard path separator (i.e. ":") - it is
15692 # assumed that no part of a normal pathname contains ";" but that should
15693 # okay in the real world where ";" in dirpaths is itself problematic.
15694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15695 else
15696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15697 fi
15698else
15699 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15700fi
15701need_lib_prefix=unknown
15702hardcode_into_libs=no
15703
15704# when you set need_version to no, make sure it does not cause -set_version
15705# flags to be left without arguments
15706need_version=unknown
15707
15708case $host_os in
15709aix3*)
15710 version_type=linux
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15712 shlibpath_var=LIBPATH
15713
15714 # AIX 3 has no versioning support, so we append a major version to the name.
15715 soname_spec='${libname}${release}${shared_ext}$major'
15716 ;;
15717
15718aix4* | aix5*)
15719 version_type=linux
15720 need_lib_prefix=no
15721 need_version=no
15722 hardcode_into_libs=yes
15723 if test "$host_cpu" = ia64; then
15724 # AIX 5 supports IA64
15725 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15726 shlibpath_var=LD_LIBRARY_PATH
15727 else
15728 # With GCC up to 2.95.x, collect2 would create an import file
15729 # for dependence libraries. The import file would start with
15730 # the line `#! .'. This would cause the generated library to
15731 # depend on `.', always an invalid library. This was fixed in
15732 # development snapshots of GCC prior to 3.0.
15733 case $host_os in
15734 aix4 | aix4.[01] | aix4.[01].*)
15735 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15736 echo ' yes '
15737 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15738 :
15739 else
15740 can_build_shared=no
15741 fi
15742 ;;
15743 esac
15744 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15745 # soname into executable. Probably we can add versioning support to
15746 # collect2, so additional links can be useful in future.
15747 if test "$aix_use_runtimelinking" = yes; then
15748 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15749 # instead of lib<name>.a to let people know that these are not
15750 # typical AIX shared libraries.
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15752 else
15753 # We preserve .a as extension for shared libraries through AIX4.2
15754 # and later when we are not doing run time linking.
15755 library_names_spec='${libname}${release}.a $libname.a'
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 fi
15758 shlibpath_var=LIBPATH
15759 fi
15760 ;;
15761
15762amigaos*)
15763 library_names_spec='$libname.ixlibrary $libname.a'
15764 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15765 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'
15766 ;;
15767
15768beos*)
15769 library_names_spec='${libname}${shared_ext}'
15770 dynamic_linker="$host_os ld.so"
15771 shlibpath_var=LIBRARY_PATH
15772 ;;
15773
15774bsdi4*)
15775 version_type=linux
15776 need_version=no
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15782 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15783 # the default ld.so.conf also contains /usr/contrib/lib and
15784 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15785 # libtool to hard-code these into programs
15786 ;;
15787
15788cygwin* | mingw* | pw32*)
15789 version_type=windows
15790 shrext_cmds=".dll"
15791 need_version=no
15792 need_lib_prefix=no
15793
15794 case $GCC,$host_os in
15795 yes,cygwin* | yes,mingw* | yes,pw32*)
15796 library_names_spec='$libname.dll.a'
15797 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15798 postinstall_cmds='base_file=`basename \${file}`~
15799 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15800 dldir=$destdir/`dirname \$dlpath`~
15801 test -d \$dldir || mkdir -p \$dldir~
15802 $install_prog $dir/$dlname \$dldir/$dlname'
15803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15804 dlpath=$dir/\$dldll~
15805 $rm \$dlpath'
15806 shlibpath_overrides_runpath=yes
15807
15808 case $host_os in
15809 cygwin*)
15810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15812 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15813 ;;
15814 mingw*)
15815 # MinGW DLLs use traditional 'lib' prefix
15816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15818 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15819 # It is most probably a Windows format PATH printed by
15820 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15821 # path with ; separators, and with drive letters. We can handle the
15822 # drive letters (cygwin fileutils understands them), so leave them,
15823 # especially as we might pass files found there to a mingw objdump,
15824 # which wouldn't understand a cygwinified path. Ahh.
15825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15826 else
15827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15828 fi
15829 ;;
15830 pw32*)
15831 # pw32 DLLs use 'pw' prefix rather than 'lib'
15832 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15833 ;;
15834 esac
15835 ;;
15836
15837 *)
15838 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15839 ;;
15840 esac
15841 dynamic_linker='Win32 ld.exe'
15842 # FIXME: first we should search . and the directory the executable is in
15843 shlibpath_var=PATH
15844 ;;
15845
15846darwin* | rhapsody*)
15847 dynamic_linker="$host_os dyld"
15848 version_type=darwin
15849 need_lib_prefix=no
15850 need_version=no
15851 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15852 soname_spec='${libname}${release}${major}$shared_ext'
15853 shlibpath_overrides_runpath=yes
15854 shlibpath_var=DYLD_LIBRARY_PATH
15855 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15856 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15857 if test "$GCC" = yes; then
15858 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"`
15859 else
15860 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15861 fi
15862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15863 ;;
15864
15865dgux*)
15866 version_type=linux
15867 need_lib_prefix=no
15868 need_version=no
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15871 shlibpath_var=LD_LIBRARY_PATH
15872 ;;
15873
15874freebsd1*)
15875 dynamic_linker=no
15876 ;;
15877
15878kfreebsd*-gnu)
15879 version_type=linux
15880 need_lib_prefix=no
15881 need_version=no
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15883 soname_spec='${libname}${release}${shared_ext}$major'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 shlibpath_overrides_runpath=no
15886 hardcode_into_libs=yes
15887 dynamic_linker='GNU ld.so'
15888 ;;
15889
15890freebsd*)
15891 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15892 version_type=freebsd-$objformat
15893 case $version_type in
15894 freebsd-elf*)
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15896 need_version=no
15897 need_lib_prefix=no
15898 ;;
15899 freebsd-*)
15900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15901 need_version=yes
15902 ;;
15903 esac
15904 shlibpath_var=LD_LIBRARY_PATH
15905 case $host_os in
15906 freebsd2*)
15907 shlibpath_overrides_runpath=yes
15908 ;;
15909 freebsd3.01* | freebsdelf3.01*)
15910 shlibpath_overrides_runpath=yes
15911 hardcode_into_libs=yes
15912 ;;
15913 *) # from 3.2 on
15914 shlibpath_overrides_runpath=no
15915 hardcode_into_libs=yes
15916 ;;
15917 esac
15918 ;;
15919
15920gnu*)
15921 version_type=linux
15922 need_lib_prefix=no
15923 need_version=no
15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15925 soname_spec='${libname}${release}${shared_ext}$major'
15926 shlibpath_var=LD_LIBRARY_PATH
15927 hardcode_into_libs=yes
15928 ;;
15929
15930hpux9* | hpux10* | hpux11*)
15931 # Give a soname corresponding to the major version so that dld.sl refuses to
15932 # link against other versions.
15933 version_type=sunos
15934 need_lib_prefix=no
15935 need_version=no
15936 case "$host_cpu" in
15937 ia64*)
15938 shrext_cmds='.so'
15939 hardcode_into_libs=yes
15940 dynamic_linker="$host_os dld.so"
15941 shlibpath_var=LD_LIBRARY_PATH
15942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15944 soname_spec='${libname}${release}${shared_ext}$major'
15945 if test "X$HPUX_IA64_MODE" = X32; then
15946 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15947 else
15948 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15949 fi
15950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15951 ;;
15952 hppa*64*)
15953 shrext_cmds='.sl'
15954 hardcode_into_libs=yes
15955 dynamic_linker="$host_os dld.sl"
15956 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15959 soname_spec='${libname}${release}${shared_ext}$major'
15960 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15962 ;;
15963 *)
15964 shrext_cmds='.sl'
15965 dynamic_linker="$host_os dld.sl"
15966 shlibpath_var=SHLIB_PATH
15967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 ;;
15971 esac
15972 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15973 postinstall_cmds='chmod 555 $lib'
15974 ;;
15975
15976irix5* | irix6* | nonstopux*)
15977 case $host_os in
15978 nonstopux*) version_type=nonstopux ;;
15979 *)
15980 if test "$lt_cv_prog_gnu_ld" = yes; then
15981 version_type=linux
15982 else
15983 version_type=irix
15984 fi ;;
15985 esac
15986 need_lib_prefix=no
15987 need_version=no
15988 soname_spec='${libname}${release}${shared_ext}$major'
15989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15990 case $host_os in
15991 irix5* | nonstopux*)
15992 libsuff= shlibsuff=
15993 ;;
15994 *)
15995 case $LD in # libtool.m4 will add one of these switches to LD
15996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15997 libsuff= shlibsuff= libmagic=32-bit;;
15998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15999 libsuff=32 shlibsuff=N32 libmagic=N32;;
16000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16002 *) libsuff= shlibsuff= libmagic=never-match;;
16003 esac
16004 ;;
16005 esac
16006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16007 shlibpath_overrides_runpath=no
16008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16010 hardcode_into_libs=yes
16011 ;;
16012
16013# No shared lib support for Linux oldld, aout, or coff.
16014linux*oldld* | linux*aout* | linux*coff*)
16015 dynamic_linker=no
16016 ;;
16017
16018# This must be Linux ELF.
16019linux*)
16020 version_type=linux
16021 need_lib_prefix=no
16022 need_version=no
16023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16024 soname_spec='${libname}${release}${shared_ext}$major'
16025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16026 shlibpath_var=LD_LIBRARY_PATH
16027 shlibpath_overrides_runpath=no
16028 # This implies no fast_install, which is unacceptable.
16029 # Some rework will be needed to allow for fast_install
16030 # before this can be enabled.
16031 hardcode_into_libs=yes
16032
16033 # Append ld.so.conf contents to the search path
16034 if test -f /etc/ld.so.conf; then
16035 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16036 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16037 fi
16038
16039 # We used to test for /lib/ld.so.1 and disable shared libraries on
16040 # powerpc, because MkLinux only supported shared libraries with the
16041 # GNU dynamic linker. Since this was broken with cross compilers,
16042 # most powerpc-linux boxes support dynamic linking these days and
16043 # people can always --disable-shared, the test was removed, and we
16044 # assume the GNU/Linux dynamic linker is in use.
16045 dynamic_linker='GNU/Linux ld.so'
16046 ;;
16047
16048knetbsd*-gnu)
16049 version_type=linux
16050 need_lib_prefix=no
16051 need_version=no
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=no
16056 hardcode_into_libs=yes
16057 dynamic_linker='GNU ld.so'
16058 ;;
16059
16060netbsd*)
16061 version_type=sunos
16062 need_lib_prefix=no
16063 need_version=no
16064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16067 dynamic_linker='NetBSD (a.out) ld.so'
16068 else
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16070 soname_spec='${libname}${release}${shared_ext}$major'
16071 dynamic_linker='NetBSD ld.elf_so'
16072 fi
16073 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=yes
16075 hardcode_into_libs=yes
16076 ;;
16077
16078newsos6)
16079 version_type=linux
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 shlibpath_overrides_runpath=yes
16083 ;;
16084
16085nto-qnx*)
16086 version_type=linux
16087 need_lib_prefix=no
16088 need_version=no
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 shlibpath_overrides_runpath=yes
16093 ;;
16094
16095openbsd*)
16096 version_type=sunos
16097 need_lib_prefix=no
16098 need_version=yes
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16103 case $host_os in
16104 openbsd2.[89] | openbsd2.[89].*)
16105 shlibpath_overrides_runpath=no
16106 ;;
16107 *)
16108 shlibpath_overrides_runpath=yes
16109 ;;
16110 esac
16111 else
16112 shlibpath_overrides_runpath=yes
16113 fi
16114 ;;
16115
16116os2*)
16117 libname_spec='$name'
16118 shrext_cmds=".dll"
16119 need_lib_prefix=no
16120 library_names_spec='$libname${shared_ext} $libname.a'
16121 dynamic_linker='OS/2 ld.exe'
16122 shlibpath_var=LIBPATH
16123 ;;
16124
16125osf3* | osf4* | osf5*)
16126 version_type=osf
16127 need_lib_prefix=no
16128 need_version=no
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131 shlibpath_var=LD_LIBRARY_PATH
16132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16134 ;;
16135
16136sco3.2v5*)
16137 version_type=osf
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16140 shlibpath_var=LD_LIBRARY_PATH
16141 ;;
16142
16143solaris*)
16144 version_type=linux
16145 need_lib_prefix=no
16146 need_version=no
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148 soname_spec='${libname}${release}${shared_ext}$major'
16149 shlibpath_var=LD_LIBRARY_PATH
16150 shlibpath_overrides_runpath=yes
16151 hardcode_into_libs=yes
16152 # ldd complains unless libraries are executable
16153 postinstall_cmds='chmod +x $lib'
16154 ;;
16155
16156sunos4*)
16157 version_type=sunos
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16159 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16160 shlibpath_var=LD_LIBRARY_PATH
16161 shlibpath_overrides_runpath=yes
16162 if test "$with_gnu_ld" = yes; then
16163 need_lib_prefix=no
16164 fi
16165 need_version=yes
16166 ;;
16167
16168sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16169 version_type=linux
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 shlibpath_var=LD_LIBRARY_PATH
16173 case $host_vendor in
16174 sni)
16175 shlibpath_overrides_runpath=no
16176 need_lib_prefix=no
16177 export_dynamic_flag_spec='${wl}-Blargedynsym'
16178 runpath_var=LD_RUN_PATH
16179 ;;
16180 siemens)
16181 need_lib_prefix=no
16182 ;;
16183 motorola)
16184 need_lib_prefix=no
16185 need_version=no
16186 shlibpath_overrides_runpath=no
16187 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16188 ;;
16189 esac
16190 ;;
16191
16192sysv4*MP*)
16193 if test -d /usr/nec ;then
16194 version_type=linux
16195 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16196 soname_spec='$libname${shared_ext}.$major'
16197 shlibpath_var=LD_LIBRARY_PATH
16198 fi
16199 ;;
16200
16201uts4*)
16202 version_type=linux
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 ;;
16207
16208*)
16209 dynamic_linker=no
16210 ;;
16211esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000016212{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16213echo "${ECHO_T}$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016214test "$dynamic_linker" = no && can_build_shared=no
16215
Lev Walkin27fd0b62007-08-27 23:57:45 +000016216{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16217echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016218hardcode_action_F77=
16219if test -n "$hardcode_libdir_flag_spec_F77" || \
16220 test -n "$runpath_var F77" || \
16221 test "X$hardcode_automatic_F77"="Xyes" ; then
16222
16223 # We can hardcode non-existant directories.
16224 if test "$hardcode_direct_F77" != no &&
16225 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16226 # have to relink, otherwise we might link with an installed library
16227 # when we should be linking with a yet-to-be-installed one
16228 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16229 test "$hardcode_minus_L_F77" != no; then
16230 # Linking always hardcodes the temporary library directory.
16231 hardcode_action_F77=relink
16232 else
16233 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16234 hardcode_action_F77=immediate
16235 fi
16236else
16237 # We cannot hardcode anything, or else we can only hardcode existing
16238 # directories.
16239 hardcode_action_F77=unsupported
16240fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000016241{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16242echo "${ECHO_T}$hardcode_action_F77" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016243
16244if test "$hardcode_action_F77" = relink; then
16245 # Fast installation is not supported
16246 enable_fast_install=no
16247elif test "$shlibpath_overrides_runpath" = yes ||
16248 test "$enable_shared" = no; then
16249 # Fast installation is not necessary
16250 enable_fast_install=needless
16251fi
16252
16253striplib=
16254old_striplib=
Lev Walkin27fd0b62007-08-27 23:57:45 +000016255{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16256echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016257if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16258 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16259 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Lev Walkin27fd0b62007-08-27 23:57:45 +000016260 { echo "$as_me:$LINENO: result: yes" >&5
16261echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016262else
16263# FIXME - insert some real tests, host_os isn't really good enough
16264 case $host_os in
16265 darwin*)
16266 if test -n "$STRIP" ; then
16267 striplib="$STRIP -x"
Lev Walkin27fd0b62007-08-27 23:57:45 +000016268 { echo "$as_me:$LINENO: result: yes" >&5
16269echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016270 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000016271 { echo "$as_me:$LINENO: result: no" >&5
16272echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016273fi
16274 ;;
16275 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000016276 { echo "$as_me:$LINENO: result: no" >&5
16277echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016278 ;;
16279 esac
16280fi
16281
16282
16283
16284# The else clause should only fire when bootstrapping the
16285# libtool distribution, otherwise you forgot to ship ltmain.sh
16286# with your package, and you will get complaints that there are
16287# no rules to generate ltmain.sh.
16288if test -f "$ltmain"; then
16289 # See if we are running on zsh, and set the options which allow our commands through
16290 # without removal of \ escapes.
16291 if test -n "${ZSH_VERSION+set}" ; then
16292 setopt NO_GLOB_SUBST
16293 fi
16294 # Now quote all the things that may contain metacharacters while being
16295 # careful not to overquote the AC_SUBSTed values. We take copies of the
16296 # variables and quote the copies for generation of the libtool script.
16297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16298 SED SHELL STRIP \
16299 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16300 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16301 deplibs_check_method reload_flag reload_cmds need_locks \
16302 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16303 lt_cv_sys_global_symbol_to_c_name_address \
16304 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16305 old_postinstall_cmds old_postuninstall_cmds \
16306 compiler_F77 \
16307 CC_F77 \
16308 LD_F77 \
16309 lt_prog_compiler_wl_F77 \
16310 lt_prog_compiler_pic_F77 \
16311 lt_prog_compiler_static_F77 \
16312 lt_prog_compiler_no_builtin_flag_F77 \
16313 export_dynamic_flag_spec_F77 \
16314 thread_safe_flag_spec_F77 \
16315 whole_archive_flag_spec_F77 \
16316 enable_shared_with_static_runtimes_F77 \
16317 old_archive_cmds_F77 \
16318 old_archive_from_new_cmds_F77 \
16319 predep_objects_F77 \
16320 postdep_objects_F77 \
16321 predeps_F77 \
16322 postdeps_F77 \
16323 compiler_lib_search_path_F77 \
16324 archive_cmds_F77 \
16325 archive_expsym_cmds_F77 \
16326 postinstall_cmds_F77 \
16327 postuninstall_cmds_F77 \
16328 old_archive_from_expsyms_cmds_F77 \
16329 allow_undefined_flag_F77 \
16330 no_undefined_flag_F77 \
16331 export_symbols_cmds_F77 \
16332 hardcode_libdir_flag_spec_F77 \
16333 hardcode_libdir_flag_spec_ld_F77 \
16334 hardcode_libdir_separator_F77 \
16335 hardcode_automatic_F77 \
16336 module_cmds_F77 \
16337 module_expsym_cmds_F77 \
16338 lt_cv_prog_compiler_c_o_F77 \
16339 exclude_expsyms_F77 \
16340 include_expsyms_F77; do
16341
16342 case $var in
16343 old_archive_cmds_F77 | \
16344 old_archive_from_new_cmds_F77 | \
16345 archive_cmds_F77 | \
16346 archive_expsym_cmds_F77 | \
16347 module_cmds_F77 | \
16348 module_expsym_cmds_F77 | \
16349 old_archive_from_expsyms_cmds_F77 | \
16350 export_symbols_cmds_F77 | \
16351 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16352 postinstall_cmds | postuninstall_cmds | \
16353 old_postinstall_cmds | old_postuninstall_cmds | \
16354 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16355 # Double-quote double-evaled strings.
16356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16357 ;;
16358 *)
16359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16360 ;;
16361 esac
16362 done
16363
16364 case $lt_echo in
16365 *'\$0 --fallback-echo"')
16366 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16367 ;;
16368 esac
16369
16370cfgfile="$ofile"
16371
16372 cat <<__EOF__ >> "$cfgfile"
16373# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16374
16375# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16376
16377# Shell to use when invoking shell scripts.
16378SHELL=$lt_SHELL
16379
16380# Whether or not to build shared libraries.
16381build_libtool_libs=$enable_shared
16382
16383# Whether or not to build static libraries.
16384build_old_libs=$enable_static
16385
16386# Whether or not to add -lc for building shared libraries.
16387build_libtool_need_lc=$archive_cmds_need_lc_F77
16388
16389# Whether or not to disallow shared libs when runtime libs are static
16390allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16391
16392# Whether or not to optimize for fast installation.
16393fast_install=$enable_fast_install
16394
16395# The host system.
16396host_alias=$host_alias
16397host=$host
16398
16399# An echo program that does not interpret backslashes.
16400echo=$lt_echo
16401
16402# The archiver.
16403AR=$lt_AR
16404AR_FLAGS=$lt_AR_FLAGS
16405
16406# A C compiler.
16407LTCC=$lt_LTCC
16408
16409# A language-specific compiler.
16410CC=$lt_compiler_F77
16411
16412# Is the compiler the GNU C compiler?
16413with_gcc=$GCC_F77
16414
16415# An ERE matcher.
16416EGREP=$lt_EGREP
16417
16418# The linker used to build libraries.
16419LD=$lt_LD_F77
16420
16421# Whether we need hard or soft links.
16422LN_S=$lt_LN_S
16423
16424# A BSD-compatible nm program.
16425NM=$lt_NM
16426
16427# A symbol stripping program
16428STRIP=$lt_STRIP
16429
16430# Used to examine libraries when file_magic_cmd begins "file"
16431MAGIC_CMD=$MAGIC_CMD
16432
16433# Used on cygwin: DLL creation program.
16434DLLTOOL="$DLLTOOL"
16435
16436# Used on cygwin: object dumper.
16437OBJDUMP="$OBJDUMP"
16438
16439# Used on cygwin: assembler.
16440AS="$AS"
16441
16442# The name of the directory that contains temporary libtool files.
16443objdir=$objdir
16444
16445# How to create reloadable object files.
16446reload_flag=$lt_reload_flag
16447reload_cmds=$lt_reload_cmds
16448
16449# How to pass a linker flag through the compiler.
16450wl=$lt_lt_prog_compiler_wl_F77
16451
16452# Object file suffix (normally "o").
16453objext="$ac_objext"
16454
16455# Old archive suffix (normally "a").
16456libext="$libext"
16457
16458# Shared library suffix (normally ".so").
16459shrext_cmds='$shrext_cmds'
16460
16461# Executable file suffix (normally "").
16462exeext="$exeext"
16463
16464# Additional compiler flags for building library objects.
16465pic_flag=$lt_lt_prog_compiler_pic_F77
16466pic_mode=$pic_mode
16467
16468# What is the maximum length of a command?
16469max_cmd_len=$lt_cv_sys_max_cmd_len
16470
16471# Does compiler simultaneously support -c and -o options?
16472compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16473
16474# Must we lock files when doing compilation ?
16475need_locks=$lt_need_locks
16476
16477# Do we need the lib prefix for modules?
16478need_lib_prefix=$need_lib_prefix
16479
16480# Do we need a version for libraries?
16481need_version=$need_version
16482
16483# Whether dlopen is supported.
16484dlopen_support=$enable_dlopen
16485
16486# Whether dlopen of programs is supported.
16487dlopen_self=$enable_dlopen_self
16488
16489# Whether dlopen of statically linked programs is supported.
16490dlopen_self_static=$enable_dlopen_self_static
16491
16492# Compiler flag to prevent dynamic linking.
16493link_static_flag=$lt_lt_prog_compiler_static_F77
16494
16495# Compiler flag to turn off builtin functions.
16496no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16497
16498# Compiler flag to allow reflexive dlopens.
16499export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16500
16501# Compiler flag to generate shared objects directly from archives.
16502whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16503
16504# Compiler flag to generate thread-safe objects.
16505thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16506
16507# Library versioning type.
16508version_type=$version_type
16509
16510# Format of library name prefix.
16511libname_spec=$lt_libname_spec
16512
16513# List of archive names. First name is the real one, the rest are links.
16514# The last name is the one that the linker finds with -lNAME.
16515library_names_spec=$lt_library_names_spec
16516
16517# The coded name of the library, if different from the real name.
16518soname_spec=$lt_soname_spec
16519
16520# Commands used to build and install an old-style archive.
16521RANLIB=$lt_RANLIB
16522old_archive_cmds=$lt_old_archive_cmds_F77
16523old_postinstall_cmds=$lt_old_postinstall_cmds
16524old_postuninstall_cmds=$lt_old_postuninstall_cmds
16525
16526# Create an old-style archive from a shared archive.
16527old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16528
16529# Create a temporary old-style archive to link instead of a shared archive.
16530old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16531
16532# Commands used to build and install a shared archive.
16533archive_cmds=$lt_archive_cmds_F77
16534archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16535postinstall_cmds=$lt_postinstall_cmds
16536postuninstall_cmds=$lt_postuninstall_cmds
16537
16538# Commands used to build a loadable module (assumed same as above if empty)
16539module_cmds=$lt_module_cmds_F77
16540module_expsym_cmds=$lt_module_expsym_cmds_F77
16541
16542# Commands to strip libraries.
16543old_striplib=$lt_old_striplib
16544striplib=$lt_striplib
16545
16546# Dependencies to place before the objects being linked to create a
16547# shared library.
16548predep_objects=$lt_predep_objects_F77
16549
16550# Dependencies to place after the objects being linked to create a
16551# shared library.
16552postdep_objects=$lt_postdep_objects_F77
16553
16554# Dependencies to place before the objects being linked to create a
16555# shared library.
16556predeps=$lt_predeps_F77
16557
16558# Dependencies to place after the objects being linked to create a
16559# shared library.
16560postdeps=$lt_postdeps_F77
16561
16562# The library search path used internally by the compiler when linking
16563# a shared library.
16564compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16565
16566# Method to check whether dependent libraries are shared objects.
16567deplibs_check_method=$lt_deplibs_check_method
16568
16569# Command to use when deplibs_check_method == file_magic.
16570file_magic_cmd=$lt_file_magic_cmd
16571
16572# Flag that allows shared libraries with undefined symbols to be built.
16573allow_undefined_flag=$lt_allow_undefined_flag_F77
16574
16575# Flag that forces no undefined symbols.
16576no_undefined_flag=$lt_no_undefined_flag_F77
16577
16578# Commands used to finish a libtool library installation in a directory.
16579finish_cmds=$lt_finish_cmds
16580
16581# Same as above, but a single script fragment to be evaled but not shown.
16582finish_eval=$lt_finish_eval
16583
16584# Take the output of nm and produce a listing of raw symbols and C names.
16585global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16586
16587# Transform the output of nm in a proper C declaration
16588global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16589
16590# Transform the output of nm in a C name address pair
16591global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16592
16593# This is the shared library runtime path variable.
16594runpath_var=$runpath_var
16595
16596# This is the shared library path variable.
16597shlibpath_var=$shlibpath_var
16598
16599# Is shlibpath searched before the hard-coded library search path?
16600shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16601
16602# How to hardcode a shared library path into an executable.
16603hardcode_action=$hardcode_action_F77
16604
16605# Whether we should hardcode library paths into libraries.
16606hardcode_into_libs=$hardcode_into_libs
16607
16608# Flag to hardcode \$libdir into a binary during linking.
16609# This must work even if \$libdir does not exist.
16610hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16611
16612# If ld is used when linking, flag to hardcode \$libdir into
16613# a binary during linking. This must work even if \$libdir does
16614# not exist.
16615hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16616
16617# Whether we need a single -rpath flag with a separated argument.
16618hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16619
16620# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16621# resulting binary.
16622hardcode_direct=$hardcode_direct_F77
16623
16624# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16625# resulting binary.
16626hardcode_minus_L=$hardcode_minus_L_F77
16627
16628# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16629# the resulting binary.
16630hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16631
16632# Set to yes if building a shared library automatically hardcodes DIR into the library
16633# and all subsequent libraries and executables linked against it.
16634hardcode_automatic=$hardcode_automatic_F77
16635
16636# Variables whose values should be saved in libtool wrapper scripts and
16637# restored at relink time.
16638variables_saved_for_relink="$variables_saved_for_relink"
16639
16640# Whether libtool must link a program against all its dependency libraries.
16641link_all_deplibs=$link_all_deplibs_F77
16642
16643# Compile-time system search path for libraries
16644sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16645
16646# Run-time system search path for libraries
16647sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16648
16649# Fix the shell variable \$srcfile for the compiler.
16650fix_srcfile_path="$fix_srcfile_path_F77"
16651
16652# Set to yes if exported symbols are required.
16653always_export_symbols=$always_export_symbols_F77
16654
16655# The commands to list exported symbols.
16656export_symbols_cmds=$lt_export_symbols_cmds_F77
16657
16658# The commands to extract the exported symbol list from a shared archive.
16659extract_expsyms_cmds=$lt_extract_expsyms_cmds
16660
16661# Symbols that should not be listed in the preloaded symbols.
16662exclude_expsyms=$lt_exclude_expsyms_F77
16663
16664# Symbols that must always be exported.
16665include_expsyms=$lt_include_expsyms_F77
16666
16667# ### END LIBTOOL TAG CONFIG: $tagname
16668
16669__EOF__
16670
16671
16672else
16673 # If there is no Makefile yet, we rely on a make rule to execute
16674 # `config.status --recheck' to rerun these tests and create the
16675 # libtool script then.
16676 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16677 if test -f "$ltmain_in"; then
16678 test -f Makefile && make "$ltmain"
16679 fi
16680fi
16681
16682
16683ac_ext=c
16684ac_cpp='$CPP $CPPFLAGS'
16685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16687ac_compiler_gnu=$ac_cv_c_compiler_gnu
16688
16689CC="$lt_save_CC"
16690
16691 else
16692 tagname=""
16693 fi
16694 ;;
16695
16696 GCJ)
16697 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16698
16699
Lev Walkin8e8b5482004-06-17 23:42:48 +000016700# Source file extension for Java test sources.
16701ac_ext=java
16702
16703# Object file extension for compiled Java test sources.
16704objext=o
16705objext_GCJ=$objext
16706
16707# Code to be used in simple compile tests
16708lt_simple_compile_test_code="class foo {}\n"
16709
16710# Code to be used in simple link tests
16711lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16712
16713# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16714
16715# If no C compiler was specified, use CC.
16716LTCC=${LTCC-"$CC"}
16717
16718# Allow CC to be a program name with arguments.
16719compiler=$CC
16720
16721
16722# Allow CC to be a program name with arguments.
16723lt_save_CC="$CC"
16724CC=${GCJ-"gcj"}
16725compiler=$CC
16726compiler_GCJ=$CC
16727
16728# GCJ did not exist at the time GCC didn't implicitly link libc in.
16729archive_cmds_need_lc_GCJ=no
16730
16731
16732lt_prog_compiler_no_builtin_flag_GCJ=
16733
16734if test "$GCC" = yes; then
16735 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16736
16737
Lev Walkin27fd0b62007-08-27 23:57:45 +000016738{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16739echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016740if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16742else
16743 lt_cv_prog_compiler_rtti_exceptions=no
16744 ac_outfile=conftest.$ac_objext
16745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16746 lt_compiler_flag="-fno-rtti -fno-exceptions"
16747 # Insert the option either (1) after the last *FLAGS variable, or
16748 # (2) before a word containing "conftest.", or (3) at the end.
16749 # Note that $ac_compile itself does not contain backslashes and begins
16750 # with a dollar sign (not a hyphen), so the echo should work correctly.
16751 # The option is referenced via a variable to avoid confusing sed.
16752 lt_compile=`echo "$ac_compile" | $SED \
16753 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16755 -e 's:$: $lt_compiler_flag:'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000016756 (eval echo "\"\$as_me:16756: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000016757 (eval "$lt_compile" 2>conftest.err)
16758 ac_status=$?
16759 cat conftest.err >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000016760 echo "$as_me:16760: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000016761 if (exit $ac_status) && test -s "$ac_outfile"; then
16762 # The compiler can only warn and ignore the option if not recognized
16763 # So say no if there are warnings
16764 if test ! -s conftest.err; then
16765 lt_cv_prog_compiler_rtti_exceptions=yes
16766 fi
16767 fi
16768 $rm conftest*
16769
16770fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000016771{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16772echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016773
16774if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16775 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16776else
16777 :
16778fi
16779
16780fi
16781
16782lt_prog_compiler_wl_GCJ=
16783lt_prog_compiler_pic_GCJ=
16784lt_prog_compiler_static_GCJ=
16785
Lev Walkin27fd0b62007-08-27 23:57:45 +000016786{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16787echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016788
16789 if test "$GCC" = yes; then
16790 lt_prog_compiler_wl_GCJ='-Wl,'
16791 lt_prog_compiler_static_GCJ='-static'
16792
16793 case $host_os in
16794 aix*)
16795 # All AIX code is PIC.
16796 if test "$host_cpu" = ia64; then
16797 # AIX 5 now supports IA64 processor
16798 lt_prog_compiler_static_GCJ='-Bstatic'
16799 fi
16800 ;;
16801
16802 amigaos*)
16803 # FIXME: we need at least 68020 code to build shared libraries, but
16804 # adding the `-m68020' flag to GCC prevents building anything better,
16805 # like `-m68040'.
16806 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16807 ;;
16808
16809 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16810 # PIC is the default for these OSes.
16811 ;;
16812
16813 mingw* | pw32* | os2*)
16814 # This hack is so that the source file can tell whether it is being
16815 # built for inclusion in a dll (and should export symbols for example).
16816 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16817 ;;
16818
16819 darwin* | rhapsody*)
16820 # PIC is the default on this platform
16821 # Common symbols not allowed in MH_DYLIB files
16822 lt_prog_compiler_pic_GCJ='-fno-common'
16823 ;;
16824
16825 msdosdjgpp*)
16826 # Just because we use GCC doesn't mean we suddenly get shared libraries
16827 # on systems that don't support them.
16828 lt_prog_compiler_can_build_shared_GCJ=no
16829 enable_shared=no
16830 ;;
16831
16832 sysv4*MP*)
16833 if test -d /usr/nec; then
16834 lt_prog_compiler_pic_GCJ=-Kconform_pic
16835 fi
16836 ;;
16837
16838 hpux*)
16839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16840 # not for PA HP-UX.
16841 case "$host_cpu" in
16842 hppa*64*|ia64*)
16843 # +Z the default
16844 ;;
16845 *)
16846 lt_prog_compiler_pic_GCJ='-fPIC'
16847 ;;
16848 esac
16849 ;;
16850
16851 *)
16852 lt_prog_compiler_pic_GCJ='-fPIC'
16853 ;;
16854 esac
16855 else
16856 # PORTME Check for flag to pass linker flags through the system compiler.
16857 case $host_os in
16858 aix*)
16859 lt_prog_compiler_wl_GCJ='-Wl,'
16860 if test "$host_cpu" = ia64; then
16861 # AIX 5 now supports IA64 processor
16862 lt_prog_compiler_static_GCJ='-Bstatic'
16863 else
16864 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16865 fi
16866 ;;
16867
16868 mingw* | pw32* | os2*)
16869 # This hack is so that the source file can tell whether it is being
16870 # built for inclusion in a dll (and should export symbols for example).
16871 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16872 ;;
16873
16874 hpux9* | hpux10* | hpux11*)
16875 lt_prog_compiler_wl_GCJ='-Wl,'
16876 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16877 # not for PA HP-UX.
16878 case "$host_cpu" in
16879 hppa*64*|ia64*)
16880 # +Z the default
16881 ;;
16882 *)
16883 lt_prog_compiler_pic_GCJ='+Z'
16884 ;;
16885 esac
16886 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16887 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16888 ;;
16889
16890 irix5* | irix6* | nonstopux*)
16891 lt_prog_compiler_wl_GCJ='-Wl,'
16892 # PIC (with -KPIC) is the default.
16893 lt_prog_compiler_static_GCJ='-non_shared'
16894 ;;
16895
16896 newsos6)
16897 lt_prog_compiler_pic_GCJ='-KPIC'
16898 lt_prog_compiler_static_GCJ='-Bstatic'
16899 ;;
16900
16901 linux*)
16902 case $CC in
16903 icc* | ecc*)
16904 lt_prog_compiler_wl_GCJ='-Wl,'
16905 lt_prog_compiler_pic_GCJ='-KPIC'
16906 lt_prog_compiler_static_GCJ='-static'
16907 ;;
16908 ccc*)
16909 lt_prog_compiler_wl_GCJ='-Wl,'
16910 # All Alpha code is PIC.
16911 lt_prog_compiler_static_GCJ='-non_shared'
16912 ;;
16913 esac
16914 ;;
16915
16916 osf3* | osf4* | osf5*)
16917 lt_prog_compiler_wl_GCJ='-Wl,'
16918 # All OSF/1 code is PIC.
16919 lt_prog_compiler_static_GCJ='-non_shared'
16920 ;;
16921
16922 sco3.2v5*)
16923 lt_prog_compiler_pic_GCJ='-Kpic'
16924 lt_prog_compiler_static_GCJ='-dn'
16925 ;;
16926
16927 solaris*)
16928 lt_prog_compiler_wl_GCJ='-Wl,'
16929 lt_prog_compiler_pic_GCJ='-KPIC'
16930 lt_prog_compiler_static_GCJ='-Bstatic'
16931 ;;
16932
16933 sunos4*)
16934 lt_prog_compiler_wl_GCJ='-Qoption ld '
16935 lt_prog_compiler_pic_GCJ='-PIC'
16936 lt_prog_compiler_static_GCJ='-Bstatic'
16937 ;;
16938
16939 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16940 lt_prog_compiler_wl_GCJ='-Wl,'
16941 lt_prog_compiler_pic_GCJ='-KPIC'
16942 lt_prog_compiler_static_GCJ='-Bstatic'
16943 ;;
16944
16945 sysv4*MP*)
16946 if test -d /usr/nec ;then
16947 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16948 lt_prog_compiler_static_GCJ='-Bstatic'
16949 fi
16950 ;;
16951
16952 uts4*)
16953 lt_prog_compiler_pic_GCJ='-pic'
16954 lt_prog_compiler_static_GCJ='-Bstatic'
16955 ;;
16956
16957 *)
16958 lt_prog_compiler_can_build_shared_GCJ=no
16959 ;;
16960 esac
16961 fi
16962
Lev Walkin27fd0b62007-08-27 23:57:45 +000016963{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16964echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016965
16966#
16967# Check to make sure the PIC flag actually works.
16968#
16969if test -n "$lt_prog_compiler_pic_GCJ"; then
16970
Lev Walkin27fd0b62007-08-27 23:57:45 +000016971{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16972echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000016973if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16975else
16976 lt_prog_compiler_pic_works_GCJ=no
16977 ac_outfile=conftest.$ac_objext
16978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16979 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16980 # Insert the option either (1) after the last *FLAGS variable, or
16981 # (2) before a word containing "conftest.", or (3) at the end.
16982 # Note that $ac_compile itself does not contain backslashes and begins
16983 # with a dollar sign (not a hyphen), so the echo should work correctly.
16984 # The option is referenced via a variable to avoid confusing sed.
16985 lt_compile=`echo "$ac_compile" | $SED \
16986 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16988 -e 's:$: $lt_compiler_flag:'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000016989 (eval echo "\"\$as_me:16989: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000016990 (eval "$lt_compile" 2>conftest.err)
16991 ac_status=$?
16992 cat conftest.err >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000016993 echo "$as_me:16993: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000016994 if (exit $ac_status) && test -s "$ac_outfile"; then
16995 # The compiler can only warn and ignore the option if not recognized
16996 # So say no if there are warnings
16997 if test ! -s conftest.err; then
16998 lt_prog_compiler_pic_works_GCJ=yes
16999 fi
17000 fi
17001 $rm conftest*
17002
17003fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000017004{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17005echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000017006
17007if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17008 case $lt_prog_compiler_pic_GCJ in
17009 "" | " "*) ;;
17010 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17011 esac
17012else
17013 lt_prog_compiler_pic_GCJ=
17014 lt_prog_compiler_can_build_shared_GCJ=no
17015fi
17016
17017fi
17018case "$host_os" in
17019 # For platforms which do not support PIC, -DPIC is meaningless:
17020 *djgpp*)
17021 lt_prog_compiler_pic_GCJ=
17022 ;;
17023 *)
17024 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17025 ;;
17026esac
17027
Lev Walkin27fd0b62007-08-27 23:57:45 +000017028{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17029echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000017030if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032else
17033 lt_cv_prog_compiler_c_o_GCJ=no
17034 $rm -r conftest 2>/dev/null
17035 mkdir conftest
17036 cd conftest
17037 mkdir out
17038 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17039
17040 lt_compiler_flag="-o out/conftest2.$ac_objext"
17041 # Insert the option either (1) after the last *FLAGS variable, or
17042 # (2) before a word containing "conftest.", or (3) at the end.
17043 # Note that $ac_compile itself does not contain backslashes and begins
17044 # with a dollar sign (not a hyphen), so the echo should work correctly.
17045 lt_compile=`echo "$ac_compile" | $SED \
17046 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17048 -e 's:$: $lt_compiler_flag:'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000017049 (eval echo "\"\$as_me:17049: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000017050 (eval "$lt_compile" 2>out/conftest.err)
17051 ac_status=$?
17052 cat out/conftest.err >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000017053 echo "$as_me:17053: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000017054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17055 then
17056 # The compiler can only warn and ignore the option if not recognized
17057 # So say no if there are warnings
17058 if test ! -s out/conftest.err; then
17059 lt_cv_prog_compiler_c_o_GCJ=yes
17060 fi
17061 fi
17062 chmod u+w .
17063 $rm conftest*
17064 # SGI C++ compiler will create directory out/ii_files/ for
17065 # template instantiation
17066 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17067 $rm out/* && rmdir out
17068 cd ..
17069 rmdir conftest
17070 $rm conftest*
17071
17072fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000017073{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17074echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000017075
17076
17077hard_links="nottested"
17078if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17079 # do not overwrite the value of need_locks provided by the user
Lev Walkin27fd0b62007-08-27 23:57:45 +000017080 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17081echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000017082 hard_links=yes
17083 $rm conftest*
17084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17085 touch conftest.a
17086 ln conftest.a conftest.b 2>&5 || hard_links=no
17087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000017088 { echo "$as_me:$LINENO: result: $hard_links" >&5
17089echo "${ECHO_T}$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000017090 if test "$hard_links" = no; then
17091 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17092echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17093 need_locks=warn
17094 fi
17095else
17096 need_locks=no
17097fi
17098
Lev Walkin27fd0b62007-08-27 23:57:45 +000017099{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17100echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000017101
17102 runpath_var=
17103 allow_undefined_flag_GCJ=
17104 enable_shared_with_static_runtimes_GCJ=no
17105 archive_cmds_GCJ=
17106 archive_expsym_cmds_GCJ=
17107 old_archive_From_new_cmds_GCJ=
17108 old_archive_from_expsyms_cmds_GCJ=
17109 export_dynamic_flag_spec_GCJ=
17110 whole_archive_flag_spec_GCJ=
17111 thread_safe_flag_spec_GCJ=
17112 hardcode_libdir_flag_spec_GCJ=
17113 hardcode_libdir_flag_spec_ld_GCJ=
17114 hardcode_libdir_separator_GCJ=
17115 hardcode_direct_GCJ=no
17116 hardcode_minus_L_GCJ=no
17117 hardcode_shlibpath_var_GCJ=unsupported
17118 link_all_deplibs_GCJ=unknown
17119 hardcode_automatic_GCJ=no
17120 module_cmds_GCJ=
17121 module_expsym_cmds_GCJ=
17122 always_export_symbols_GCJ=no
17123 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17124 # include_expsyms should be a list of space-separated symbols to be *always*
17125 # included in the symbol list
17126 include_expsyms_GCJ=
17127 # exclude_expsyms can be an extended regexp of symbols to exclude
17128 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17129 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17130 # as well as any symbol that contains `d'.
17131 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17133 # platforms (ab)use it in PIC code, but their linkers get confused if
17134 # the symbol is explicitly referenced. Since portable code cannot
17135 # rely on this symbol name, it's probably fine to never include it in
17136 # preloaded symbol tables.
17137 extract_expsyms_cmds=
17138
17139 case $host_os in
17140 cygwin* | mingw* | pw32*)
17141 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17142 # When not using gcc, we currently assume that we are using
17143 # Microsoft Visual C++.
17144 if test "$GCC" != yes; then
17145 with_gnu_ld=no
17146 fi
17147 ;;
17148 openbsd*)
17149 with_gnu_ld=no
17150 ;;
17151 esac
17152
17153 ld_shlibs_GCJ=yes
17154 if test "$with_gnu_ld" = yes; then
17155 # If archive_cmds runs LD, not CC, wlarc should be empty
17156 wlarc='${wl}'
17157
17158 # See if GNU ld supports shared libraries.
17159 case $host_os in
17160 aix3* | aix4* | aix5*)
17161 # On AIX/PPC, the GNU linker is very broken
17162 if test "$host_cpu" != ia64; then
17163 ld_shlibs_GCJ=no
17164 cat <<EOF 1>&2
17165
17166*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17167*** to be unable to reliably create shared libraries on AIX.
17168*** Therefore, libtool is disabling shared libraries support. If you
17169*** really care for shared libraries, you may want to modify your PATH
17170*** so that a non-GNU linker is found, and then restart.
17171
17172EOF
17173 fi
17174 ;;
17175
17176 amigaos*)
17177 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)'
17178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17179 hardcode_minus_L_GCJ=yes
17180
17181 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17182 # that the semantics of dynamic libraries on AmigaOS, at least up
17183 # to version 4, is to share data among multiple programs linked
17184 # with the same dynamic library. Since this doesn't match the
17185 # behavior of shared libraries on other platforms, we can't use
17186 # them.
17187 ld_shlibs_GCJ=no
17188 ;;
17189
17190 beos*)
17191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17192 allow_undefined_flag_GCJ=unsupported
17193 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17194 # support --undefined. This deserves some investigation. FIXME
17195 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17196 else
17197 ld_shlibs_GCJ=no
17198 fi
17199 ;;
17200
17201 cygwin* | mingw* | pw32*)
17202 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17203 # as there is no search path for DLLs.
17204 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17205 allow_undefined_flag_GCJ=unsupported
17206 always_export_symbols_GCJ=no
17207 enable_shared_with_static_runtimes_GCJ=yes
17208 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17209
17210 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17211 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17212 # If the export-symbols file already is a .def file (1st line
17213 # is EXPORTS), use it as is; otherwise, prepend...
17214 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17215 cp $export_symbols $output_objdir/$soname.def;
17216 else
17217 echo EXPORTS > $output_objdir/$soname.def;
17218 cat $export_symbols >> $output_objdir/$soname.def;
17219 fi~
17220 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17221 else
17222 ld_shlibs=no
17223 fi
17224 ;;
17225
17226 netbsd*)
17227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17228 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17229 wlarc=
17230 else
17231 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17232 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17233 fi
17234 ;;
17235
17236 solaris* | sysv5*)
17237 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17238 ld_shlibs_GCJ=no
17239 cat <<EOF 1>&2
17240
17241*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17242*** create shared libraries on Solaris systems. Therefore, libtool
17243*** is disabling shared libraries support. We urge you to upgrade GNU
17244*** binutils to release 2.9.1 or newer. Another option is to modify
17245*** your PATH or compiler configuration so that the native linker is
17246*** used, and then restart.
17247
17248EOF
17249 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17250 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17251 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17252 else
17253 ld_shlibs_GCJ=no
17254 fi
17255 ;;
17256
17257 sunos4*)
17258 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17259 wlarc=
17260 hardcode_direct_GCJ=yes
17261 hardcode_shlibpath_var_GCJ=no
17262 ;;
17263
17264 linux*)
17265 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17266 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17267 archive_cmds_GCJ="$tmp_archive_cmds"
17268 supports_anon_versioning=no
17269 case `$LD -v 2>/dev/null` in
17270 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17271 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17272 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17273 *\ 2.11.*) ;; # other 2.11 versions
17274 *) supports_anon_versioning=yes ;;
17275 esac
17276 if test $supports_anon_versioning = yes; then
17277 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17278cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17279$echo "local: *; };" >> $output_objdir/$libname.ver~
17280 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17281 else
17282 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17283 fi
17284 else
17285 ld_shlibs_GCJ=no
17286 fi
17287 ;;
17288
17289 *)
17290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17291 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17292 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17293 else
17294 ld_shlibs_GCJ=no
17295 fi
17296 ;;
17297 esac
17298
17299 if test "$ld_shlibs_GCJ" = yes; then
17300 runpath_var=LD_RUN_PATH
17301 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17302 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17303 # ancient GNU ld didn't support --whole-archive et. al.
17304 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17305 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17306 else
17307 whole_archive_flag_spec_GCJ=
17308 fi
17309 fi
17310 else
17311 # PORTME fill in a description of your system's linker (not GNU ld)
17312 case $host_os in
17313 aix3*)
17314 allow_undefined_flag_GCJ=unsupported
17315 always_export_symbols_GCJ=yes
17316 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'
17317 # Note: this linker hardcodes the directories in LIBPATH if there
17318 # are no directories specified by -L.
17319 hardcode_minus_L_GCJ=yes
17320 if test "$GCC" = yes && test -z "$link_static_flag"; then
17321 # Neither direct hardcoding nor static linking is supported with a
17322 # broken collect2.
17323 hardcode_direct_GCJ=unsupported
17324 fi
17325 ;;
17326
17327 aix4* | aix5*)
17328 if test "$host_cpu" = ia64; then
17329 # On IA64, the linker does run time linking by default, so we don't
17330 # have to do anything special.
17331 aix_use_runtimelinking=no
17332 exp_sym_flag='-Bexport'
17333 no_entry_flag=""
17334 else
17335 # If we're using GNU nm, then we don't want the "-C" option.
17336 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17337 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17338 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'
17339 else
17340 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'
17341 fi
17342 aix_use_runtimelinking=no
17343
17344 # Test if we are trying to use run time linking or normal
17345 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17346 # need to do runtime linking.
17347 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17348 for ld_flag in $LDFLAGS; do
17349 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17350 aix_use_runtimelinking=yes
17351 break
17352 fi
17353 done
17354 esac
17355
17356 exp_sym_flag='-bexport'
17357 no_entry_flag='-bnoentry'
17358 fi
17359
17360 # When large executables or shared objects are built, AIX ld can
17361 # have problems creating the table of contents. If linking a library
17362 # or program results in "error TOC overflow" add -mminimal-toc to
17363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17365
17366 archive_cmds_GCJ=''
17367 hardcode_direct_GCJ=yes
17368 hardcode_libdir_separator_GCJ=':'
17369 link_all_deplibs_GCJ=yes
17370
17371 if test "$GCC" = yes; then
17372 case $host_os in aix4.012|aix4.012.*)
17373 # We only want to do this on AIX 4.2 and lower, the check
17374 # below for broken collect2 doesn't work under 4.3+
17375 collect2name=`${CC} -print-prog-name=collect2`
17376 if test -f "$collect2name" && \
17377 strings "$collect2name" | grep resolve_lib_name >/dev/null
17378 then
17379 # We have reworked collect2
17380 hardcode_direct_GCJ=yes
17381 else
17382 # We have old collect2
17383 hardcode_direct_GCJ=unsupported
17384 # It fails to find uninstalled libraries when the uninstalled
17385 # path is not listed in the libpath. Setting hardcode_minus_L
17386 # to unsupported forces relinking
17387 hardcode_minus_L_GCJ=yes
17388 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17389 hardcode_libdir_separator_GCJ=
17390 fi
17391 esac
17392 shared_flag='-shared'
17393 else
17394 # not using gcc
17395 if test "$host_cpu" = ia64; then
17396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17397 # chokes on -Wl,-G. The following line is correct:
17398 shared_flag='-G'
17399 else
17400 if test "$aix_use_runtimelinking" = yes; then
17401 shared_flag='${wl}-G'
17402 else
17403 shared_flag='${wl}-bM:SRE'
17404 fi
17405 fi
17406 fi
17407
17408 # It seems that -bexpall does not export symbols beginning with
17409 # underscore (_), so it is better to generate a list of symbols to export.
17410 always_export_symbols_GCJ=yes
17411 if test "$aix_use_runtimelinking" = yes; then
17412 # Warning - without using the other runtime loading flags (-brtl),
17413 # -berok will link without error, but may produce a broken library.
17414 allow_undefined_flag_GCJ='-berok'
17415 # Determine the default libpath from the value encoded in an empty executable.
17416 cat >conftest.$ac_ext <<_ACEOF
17417/* confdefs.h. */
17418_ACEOF
17419cat confdefs.h >>conftest.$ac_ext
17420cat >>conftest.$ac_ext <<_ACEOF
17421/* end confdefs.h. */
17422
17423int
17424main ()
17425{
17426
17427 ;
17428 return 0;
17429}
17430_ACEOF
17431rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000017432if { (ac_try="$ac_link"
17433case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436esac
17437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000017439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000017445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17446 { (case "(($ac_try" in
17447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448 *) ac_try_echo=$ac_try;;
17449esac
17450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000017452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000017456 { (case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459esac
17460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000017462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465
17466aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17467}'`
17468# Check for a 64-bit object if we didn't find anything.
17469if 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; }
17470}'`; fi
17471else
17472 echo "$as_me: failed program was:" >&5
17473sed 's/^/| /' conftest.$ac_ext >&5
17474
Lev Walkin27fd0b62007-08-27 23:57:45 +000017475
Lev Walkin8e8b5482004-06-17 23:42:48 +000017476fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000017477
17478rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000017479 conftest$ac_exeext conftest.$ac_ext
17480if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17481
17482 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17483 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17484 else
17485 if test "$host_cpu" = ia64; then
17486 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17487 allow_undefined_flag_GCJ="-z nodefs"
17488 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17489 else
17490 # Determine the default libpath from the value encoded in an empty executable.
17491 cat >conftest.$ac_ext <<_ACEOF
17492/* confdefs.h. */
17493_ACEOF
17494cat confdefs.h >>conftest.$ac_ext
17495cat >>conftest.$ac_ext <<_ACEOF
17496/* end confdefs.h. */
17497
17498int
17499main ()
17500{
17501
17502 ;
17503 return 0;
17504}
17505_ACEOF
17506rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000017507if { (ac_try="$ac_link"
17508case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511esac
17512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000017514 ac_status=$?
17515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000017520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17521 { (case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17524esac
17525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000017527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; } &&
17530 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000017531 { (case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534esac
17535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000017537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540
17541aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17542}'`
17543# Check for a 64-bit object if we didn't find anything.
17544if 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; }
17545}'`; fi
17546else
17547 echo "$as_me: failed program was:" >&5
17548sed 's/^/| /' conftest.$ac_ext >&5
17549
Lev Walkin27fd0b62007-08-27 23:57:45 +000017550
Lev Walkin8e8b5482004-06-17 23:42:48 +000017551fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000017552
17553rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000017554 conftest$ac_exeext conftest.$ac_ext
17555if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17556
17557 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17558 # Warning - without using the other run time loading flags,
17559 # -berok will link without error, but may produce a broken library.
17560 no_undefined_flag_GCJ=' ${wl}-bernotok'
17561 allow_undefined_flag_GCJ=' ${wl}-berok'
17562 # -bexpall does not export symbols beginning with underscore (_)
17563 always_export_symbols_GCJ=yes
17564 # Exported symbols can be pulled into shared objects from archives
17565 whole_archive_flag_spec_GCJ=' '
17566 archive_cmds_need_lc_GCJ=yes
17567 # This is similar to how AIX traditionally builds it's shared libraries.
17568 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17569 fi
17570 fi
17571 ;;
17572
17573 amigaos*)
17574 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)'
17575 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17576 hardcode_minus_L_GCJ=yes
17577 # see comment about different semantics on the GNU ld section
17578 ld_shlibs_GCJ=no
17579 ;;
17580
17581 bsdi4*)
17582 export_dynamic_flag_spec_GCJ=-rdynamic
17583 ;;
17584
17585 cygwin* | mingw* | pw32*)
17586 # When not using gcc, we currently assume that we are using
17587 # Microsoft Visual C++.
17588 # hardcode_libdir_flag_spec is actually meaningless, as there is
17589 # no search path for DLLs.
17590 hardcode_libdir_flag_spec_GCJ=' '
17591 allow_undefined_flag_GCJ=unsupported
17592 # Tell ltmain to make .lib files, not .a files.
17593 libext=lib
17594 # Tell ltmain to make .dll files, not .so files.
17595 shrext_cmds=".dll"
17596 # FIXME: Setting linknames here is a bad hack.
17597 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17598 # The linker will automatically build a .lib file if we build a DLL.
17599 old_archive_From_new_cmds_GCJ='true'
17600 # FIXME: Should let the user specify the lib program.
17601 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17602 fix_srcfile_path='`cygpath -w "$srcfile"`'
17603 enable_shared_with_static_runtimes_GCJ=yes
17604 ;;
17605
17606 darwin* | rhapsody*)
17607 if test "$GXX" = yes ; then
17608 archive_cmds_need_lc_GCJ=no
17609 case "$host_os" in
17610 rhapsody* | darwin1.[012])
17611 allow_undefined_flag_GCJ='-undefined suppress'
17612 ;;
17613 *) # Darwin 1.3 on
17614 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17615 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17616 else
17617 case ${MACOSX_DEPLOYMENT_TARGET} in
17618 10.[012])
17619 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17620 ;;
17621 10.*)
17622 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17623 ;;
17624 esac
17625 fi
17626 ;;
17627 esac
17628 lt_int_apple_cc_single_mod=no
17629 output_verbose_link_cmd='echo'
17630 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17631 lt_int_apple_cc_single_mod=yes
17632 fi
17633 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17634 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17635 else
17636 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
17637 fi
17638 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17639 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17640 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17641 archive_expsym_cmds_GCJ='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}'
17642 else
17643 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
17644 fi
17645 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}'
17646 hardcode_direct_GCJ=no
17647 hardcode_automatic_GCJ=yes
17648 hardcode_shlibpath_var_GCJ=unsupported
17649 whole_archive_flag_spec_GCJ='-all_load $convenience'
17650 link_all_deplibs_GCJ=yes
17651 else
17652 ld_shlibs_GCJ=no
17653 fi
17654 ;;
17655
17656 dgux*)
17657 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17658 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17659 hardcode_shlibpath_var_GCJ=no
17660 ;;
17661
17662 freebsd1*)
17663 ld_shlibs_GCJ=no
17664 ;;
17665
17666 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17667 # support. Future versions do this automatically, but an explicit c++rt0.o
17668 # does not break anything, and helps significantly (at the cost of a little
17669 # extra space).
17670 freebsd2.2*)
17671 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17672 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17673 hardcode_direct_GCJ=yes
17674 hardcode_shlibpath_var_GCJ=no
17675 ;;
17676
17677 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17678 freebsd2*)
17679 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17680 hardcode_direct_GCJ=yes
17681 hardcode_minus_L_GCJ=yes
17682 hardcode_shlibpath_var_GCJ=no
17683 ;;
17684
17685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17686 freebsd* | kfreebsd*-gnu)
17687 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17688 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17689 hardcode_direct_GCJ=yes
17690 hardcode_shlibpath_var_GCJ=no
17691 ;;
17692
17693 hpux9*)
17694 if test "$GCC" = yes; then
17695 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'
17696 else
17697 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'
17698 fi
17699 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17700 hardcode_libdir_separator_GCJ=:
17701 hardcode_direct_GCJ=yes
17702
17703 # hardcode_minus_L: Not really in the search PATH,
17704 # but as the default location of the library.
17705 hardcode_minus_L_GCJ=yes
17706 export_dynamic_flag_spec_GCJ='${wl}-E'
17707 ;;
17708
17709 hpux10* | hpux11*)
17710 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17711 case "$host_cpu" in
17712 hppa*64*|ia64*)
17713 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17714 ;;
17715 *)
17716 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17717 ;;
17718 esac
17719 else
17720 case "$host_cpu" in
17721 hppa*64*|ia64*)
17722 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17723 ;;
17724 *)
17725 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17726 ;;
17727 esac
17728 fi
17729 if test "$with_gnu_ld" = no; then
17730 case "$host_cpu" in
17731 hppa*64*)
17732 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17733 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17734 hardcode_libdir_separator_GCJ=:
17735 hardcode_direct_GCJ=no
17736 hardcode_shlibpath_var_GCJ=no
17737 ;;
17738 ia64*)
17739 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17740 hardcode_direct_GCJ=no
17741 hardcode_shlibpath_var_GCJ=no
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 ;;
17747 *)
17748 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17749 hardcode_libdir_separator_GCJ=:
17750 hardcode_direct_GCJ=yes
17751 export_dynamic_flag_spec_GCJ='${wl}-E'
17752
17753 # hardcode_minus_L: Not really in the search PATH,
17754 # but as the default location of the library.
17755 hardcode_minus_L_GCJ=yes
17756 ;;
17757 esac
17758 fi
17759 ;;
17760
17761 irix5* | irix6* | nonstopux*)
17762 if test "$GCC" = yes; then
17763 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'
17764 else
17765 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'
17766 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17767 fi
17768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17769 hardcode_libdir_separator_GCJ=:
17770 link_all_deplibs_GCJ=yes
17771 ;;
17772
17773 netbsd*)
17774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17775 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17776 else
17777 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17778 fi
17779 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17780 hardcode_direct_GCJ=yes
17781 hardcode_shlibpath_var_GCJ=no
17782 ;;
17783
17784 newsos6)
17785 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17786 hardcode_direct_GCJ=yes
17787 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17788 hardcode_libdir_separator_GCJ=:
17789 hardcode_shlibpath_var_GCJ=no
17790 ;;
17791
17792 openbsd*)
17793 hardcode_direct_GCJ=yes
17794 hardcode_shlibpath_var_GCJ=no
17795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17796 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17797 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17798 export_dynamic_flag_spec_GCJ='${wl}-E'
17799 else
17800 case $host_os in
17801 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17802 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17803 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17804 ;;
17805 *)
17806 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17807 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17808 ;;
17809 esac
17810 fi
17811 ;;
17812
17813 os2*)
17814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17815 hardcode_minus_L_GCJ=yes
17816 allow_undefined_flag_GCJ=unsupported
17817 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'
17818 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17819 ;;
17820
17821 osf3*)
17822 if test "$GCC" = yes; then
17823 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17824 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'
17825 else
17826 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17827 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'
17828 fi
17829 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17830 hardcode_libdir_separator_GCJ=:
17831 ;;
17832
17833 osf4* | osf5*) # as osf3* with the addition of -msym flag
17834 if test "$GCC" = yes; then
17835 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17836 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'
17837 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17838 else
17839 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17840 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'
17841 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~
17842 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17843
17844 # Both c and cxx compiler support -rpath directly
17845 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17846 fi
17847 hardcode_libdir_separator_GCJ=:
17848 ;;
17849
17850 sco3.2v5*)
17851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17852 hardcode_shlibpath_var_GCJ=no
17853 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17854 runpath_var=LD_RUN_PATH
17855 hardcode_runpath_var=yes
17856 ;;
17857
17858 solaris*)
17859 no_undefined_flag_GCJ=' -z text'
17860 if test "$GCC" = yes; then
17861 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17862 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17863 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17864 else
17865 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17866 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17867 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17868 fi
17869 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17870 hardcode_shlibpath_var_GCJ=no
17871 case $host_os in
17872 solaris2.[0-5] | solaris2.[0-5].*) ;;
17873 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17874 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17875 esac
17876 link_all_deplibs_GCJ=yes
17877 ;;
17878
17879 sunos4*)
17880 if test "x$host_vendor" = xsequent; then
17881 # Use $CC to link under sequent, because it throws in some extra .o
17882 # files that make .init and .fini sections work.
17883 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17884 else
17885 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17886 fi
17887 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17888 hardcode_direct_GCJ=yes
17889 hardcode_minus_L_GCJ=yes
17890 hardcode_shlibpath_var_GCJ=no
17891 ;;
17892
17893 sysv4)
17894 case $host_vendor in
17895 sni)
17896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17897 hardcode_direct_GCJ=yes # is this really true???
17898 ;;
17899 siemens)
17900 ## LD is ld it makes a PLAMLIB
17901 ## CC just makes a GrossModule.
17902 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17903 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17904 hardcode_direct_GCJ=no
17905 ;;
17906 motorola)
17907 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17908 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17909 ;;
17910 esac
17911 runpath_var='LD_RUN_PATH'
17912 hardcode_shlibpath_var_GCJ=no
17913 ;;
17914
17915 sysv4.3*)
17916 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17917 hardcode_shlibpath_var_GCJ=no
17918 export_dynamic_flag_spec_GCJ='-Bexport'
17919 ;;
17920
17921 sysv4*MP*)
17922 if test -d /usr/nec; then
17923 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17924 hardcode_shlibpath_var_GCJ=no
17925 runpath_var=LD_RUN_PATH
17926 hardcode_runpath_var=yes
17927 ld_shlibs_GCJ=yes
17928 fi
17929 ;;
17930
17931 sysv4.2uw2*)
17932 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17933 hardcode_direct_GCJ=yes
17934 hardcode_minus_L_GCJ=no
17935 hardcode_shlibpath_var_GCJ=no
17936 hardcode_runpath_var=yes
17937 runpath_var=LD_RUN_PATH
17938 ;;
17939
17940 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17941 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17942 if test "$GCC" = yes; then
17943 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17944 else
17945 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17946 fi
17947 runpath_var='LD_RUN_PATH'
17948 hardcode_shlibpath_var_GCJ=no
17949 ;;
17950
17951 sysv5*)
17952 no_undefined_flag_GCJ=' -z text'
17953 # $CC -shared without GNU ld will not create a library from C++
17954 # object files and a static libstdc++, better avoid it by now
17955 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17956 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17957 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17958 hardcode_libdir_flag_spec_GCJ=
17959 hardcode_shlibpath_var_GCJ=no
17960 runpath_var='LD_RUN_PATH'
17961 ;;
17962
17963 uts4*)
17964 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17966 hardcode_shlibpath_var_GCJ=no
17967 ;;
17968
17969 *)
17970 ld_shlibs_GCJ=no
17971 ;;
17972 esac
17973 fi
17974
Lev Walkin27fd0b62007-08-27 23:57:45 +000017975{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17976echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000017977test "$ld_shlibs_GCJ" = no && can_build_shared=no
17978
17979variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17980if test "$GCC" = yes; then
17981 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17982fi
17983
17984#
17985# Do we need to explicitly link libc?
17986#
17987case "x$archive_cmds_need_lc_GCJ" in
17988x|xyes)
17989 # Assume -lc should be added
17990 archive_cmds_need_lc_GCJ=yes
17991
17992 if test "$enable_shared" = yes && test "$GCC" = yes; then
17993 case $archive_cmds_GCJ in
17994 *'~'*)
17995 # FIXME: we may have to deal with multi-command sequences.
17996 ;;
17997 '$CC '*)
17998 # Test whether the compiler implicitly links with -lc since on some
17999 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18000 # to ld, don't add -lc before -lgcc.
Lev Walkin27fd0b62007-08-27 23:57:45 +000018001 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18002echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018003 $rm conftest*
18004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18005
18006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18007 (eval $ac_compile) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } 2>conftest.err; then
18011 soname=conftest
18012 lib=conftest
18013 libobjs=conftest.$ac_objext
18014 deplibs=
18015 wl=$lt_prog_compiler_wl_GCJ
18016 compiler_flags=-v
18017 linker_flags=-v
18018 verstring=
18019 output_objdir=.
18020 libname=conftest
18021 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18022 allow_undefined_flag_GCJ=
18023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18024 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }
18028 then
18029 archive_cmds_need_lc_GCJ=no
18030 else
18031 archive_cmds_need_lc_GCJ=yes
18032 fi
18033 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18034 else
18035 cat conftest.err 1>&5
18036 fi
18037 $rm conftest*
Lev Walkin27fd0b62007-08-27 23:57:45 +000018038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18039echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018040 ;;
18041 esac
18042 fi
18043 ;;
18044esac
18045
Lev Walkin27fd0b62007-08-27 23:57:45 +000018046{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18047echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018048library_names_spec=
18049libname_spec='lib$name'
18050soname_spec=
18051shrext_cmds=".so"
18052postinstall_cmds=
18053postuninstall_cmds=
18054finish_cmds=
18055finish_eval=
18056shlibpath_var=
18057shlibpath_overrides_runpath=unknown
18058version_type=none
18059dynamic_linker="$host_os ld.so"
18060sys_lib_dlsearch_path_spec="/lib /usr/lib"
18061if test "$GCC" = yes; then
18062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18063 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18064 # if the path contains ";" then we assume it to be the separator
18065 # otherwise default to the standard path separator (i.e. ":") - it is
18066 # assumed that no part of a normal pathname contains ";" but that should
18067 # okay in the real world where ";" in dirpaths is itself problematic.
18068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18069 else
18070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18071 fi
18072else
18073 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18074fi
18075need_lib_prefix=unknown
18076hardcode_into_libs=no
18077
18078# when you set need_version to no, make sure it does not cause -set_version
18079# flags to be left without arguments
18080need_version=unknown
18081
18082case $host_os in
18083aix3*)
18084 version_type=linux
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18086 shlibpath_var=LIBPATH
18087
18088 # AIX 3 has no versioning support, so we append a major version to the name.
18089 soname_spec='${libname}${release}${shared_ext}$major'
18090 ;;
18091
18092aix4* | aix5*)
18093 version_type=linux
18094 need_lib_prefix=no
18095 need_version=no
18096 hardcode_into_libs=yes
18097 if test "$host_cpu" = ia64; then
18098 # AIX 5 supports IA64
18099 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18100 shlibpath_var=LD_LIBRARY_PATH
18101 else
18102 # With GCC up to 2.95.x, collect2 would create an import file
18103 # for dependence libraries. The import file would start with
18104 # the line `#! .'. This would cause the generated library to
18105 # depend on `.', always an invalid library. This was fixed in
18106 # development snapshots of GCC prior to 3.0.
18107 case $host_os in
18108 aix4 | aix4.[01] | aix4.[01].*)
18109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18110 echo ' yes '
18111 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18112 :
18113 else
18114 can_build_shared=no
18115 fi
18116 ;;
18117 esac
18118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18119 # soname into executable. Probably we can add versioning support to
18120 # collect2, so additional links can be useful in future.
18121 if test "$aix_use_runtimelinking" = yes; then
18122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18123 # instead of lib<name>.a to let people know that these are not
18124 # typical AIX shared libraries.
18125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18126 else
18127 # We preserve .a as extension for shared libraries through AIX4.2
18128 # and later when we are not doing run time linking.
18129 library_names_spec='${libname}${release}.a $libname.a'
18130 soname_spec='${libname}${release}${shared_ext}$major'
18131 fi
18132 shlibpath_var=LIBPATH
18133 fi
18134 ;;
18135
18136amigaos*)
18137 library_names_spec='$libname.ixlibrary $libname.a'
18138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18139 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'
18140 ;;
18141
18142beos*)
18143 library_names_spec='${libname}${shared_ext}'
18144 dynamic_linker="$host_os ld.so"
18145 shlibpath_var=LIBRARY_PATH
18146 ;;
18147
18148bsdi4*)
18149 version_type=linux
18150 need_version=no
18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18152 soname_spec='${libname}${release}${shared_ext}$major'
18153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18154 shlibpath_var=LD_LIBRARY_PATH
18155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18157 # the default ld.so.conf also contains /usr/contrib/lib and
18158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18159 # libtool to hard-code these into programs
18160 ;;
18161
18162cygwin* | mingw* | pw32*)
18163 version_type=windows
18164 shrext_cmds=".dll"
18165 need_version=no
18166 need_lib_prefix=no
18167
18168 case $GCC,$host_os in
18169 yes,cygwin* | yes,mingw* | yes,pw32*)
18170 library_names_spec='$libname.dll.a'
18171 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18172 postinstall_cmds='base_file=`basename \${file}`~
18173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18174 dldir=$destdir/`dirname \$dlpath`~
18175 test -d \$dldir || mkdir -p \$dldir~
18176 $install_prog $dir/$dlname \$dldir/$dlname'
18177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18178 dlpath=$dir/\$dldll~
18179 $rm \$dlpath'
18180 shlibpath_overrides_runpath=yes
18181
18182 case $host_os in
18183 cygwin*)
18184 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18185 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18186 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18187 ;;
18188 mingw*)
18189 # MinGW DLLs use traditional 'lib' prefix
18190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18191 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18192 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18193 # It is most probably a Windows format PATH printed by
18194 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18195 # path with ; separators, and with drive letters. We can handle the
18196 # drive letters (cygwin fileutils understands them), so leave them,
18197 # especially as we might pass files found there to a mingw objdump,
18198 # which wouldn't understand a cygwinified path. Ahh.
18199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18200 else
18201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18202 fi
18203 ;;
18204 pw32*)
18205 # pw32 DLLs use 'pw' prefix rather than 'lib'
18206 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18207 ;;
18208 esac
18209 ;;
18210
18211 *)
18212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18213 ;;
18214 esac
18215 dynamic_linker='Win32 ld.exe'
18216 # FIXME: first we should search . and the directory the executable is in
18217 shlibpath_var=PATH
18218 ;;
18219
18220darwin* | rhapsody*)
18221 dynamic_linker="$host_os dyld"
18222 version_type=darwin
18223 need_lib_prefix=no
18224 need_version=no
18225 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18226 soname_spec='${libname}${release}${major}$shared_ext'
18227 shlibpath_overrides_runpath=yes
18228 shlibpath_var=DYLD_LIBRARY_PATH
18229 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18230 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18231 if test "$GCC" = yes; then
18232 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"`
18233 else
18234 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18235 fi
18236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18237 ;;
18238
18239dgux*)
18240 version_type=linux
18241 need_lib_prefix=no
18242 need_version=no
18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18244 soname_spec='${libname}${release}${shared_ext}$major'
18245 shlibpath_var=LD_LIBRARY_PATH
18246 ;;
18247
18248freebsd1*)
18249 dynamic_linker=no
18250 ;;
18251
18252kfreebsd*-gnu)
18253 version_type=linux
18254 need_lib_prefix=no
18255 need_version=no
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18257 soname_spec='${libname}${release}${shared_ext}$major'
18258 shlibpath_var=LD_LIBRARY_PATH
18259 shlibpath_overrides_runpath=no
18260 hardcode_into_libs=yes
18261 dynamic_linker='GNU ld.so'
18262 ;;
18263
18264freebsd*)
18265 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18266 version_type=freebsd-$objformat
18267 case $version_type in
18268 freebsd-elf*)
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18270 need_version=no
18271 need_lib_prefix=no
18272 ;;
18273 freebsd-*)
18274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18275 need_version=yes
18276 ;;
18277 esac
18278 shlibpath_var=LD_LIBRARY_PATH
18279 case $host_os in
18280 freebsd2*)
18281 shlibpath_overrides_runpath=yes
18282 ;;
18283 freebsd3.01* | freebsdelf3.01*)
18284 shlibpath_overrides_runpath=yes
18285 hardcode_into_libs=yes
18286 ;;
18287 *) # from 3.2 on
18288 shlibpath_overrides_runpath=no
18289 hardcode_into_libs=yes
18290 ;;
18291 esac
18292 ;;
18293
18294gnu*)
18295 version_type=linux
18296 need_lib_prefix=no
18297 need_version=no
18298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18299 soname_spec='${libname}${release}${shared_ext}$major'
18300 shlibpath_var=LD_LIBRARY_PATH
18301 hardcode_into_libs=yes
18302 ;;
18303
18304hpux9* | hpux10* | hpux11*)
18305 # Give a soname corresponding to the major version so that dld.sl refuses to
18306 # link against other versions.
18307 version_type=sunos
18308 need_lib_prefix=no
18309 need_version=no
18310 case "$host_cpu" in
18311 ia64*)
18312 shrext_cmds='.so'
18313 hardcode_into_libs=yes
18314 dynamic_linker="$host_os dld.so"
18315 shlibpath_var=LD_LIBRARY_PATH
18316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318 soname_spec='${libname}${release}${shared_ext}$major'
18319 if test "X$HPUX_IA64_MODE" = X32; then
18320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18321 else
18322 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18323 fi
18324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18325 ;;
18326 hppa*64*)
18327 shrext_cmds='.sl'
18328 hardcode_into_libs=yes
18329 dynamic_linker="$host_os dld.sl"
18330 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333 soname_spec='${libname}${release}${shared_ext}$major'
18334 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18336 ;;
18337 *)
18338 shrext_cmds='.sl'
18339 dynamic_linker="$host_os dld.sl"
18340 shlibpath_var=SHLIB_PATH
18341 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343 soname_spec='${libname}${release}${shared_ext}$major'
18344 ;;
18345 esac
18346 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18347 postinstall_cmds='chmod 555 $lib'
18348 ;;
18349
18350irix5* | irix6* | nonstopux*)
18351 case $host_os in
18352 nonstopux*) version_type=nonstopux ;;
18353 *)
18354 if test "$lt_cv_prog_gnu_ld" = yes; then
18355 version_type=linux
18356 else
18357 version_type=irix
18358 fi ;;
18359 esac
18360 need_lib_prefix=no
18361 need_version=no
18362 soname_spec='${libname}${release}${shared_ext}$major'
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18364 case $host_os in
18365 irix5* | nonstopux*)
18366 libsuff= shlibsuff=
18367 ;;
18368 *)
18369 case $LD in # libtool.m4 will add one of these switches to LD
18370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18371 libsuff= shlibsuff= libmagic=32-bit;;
18372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18373 libsuff=32 shlibsuff=N32 libmagic=N32;;
18374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18375 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18376 *) libsuff= shlibsuff= libmagic=never-match;;
18377 esac
18378 ;;
18379 esac
18380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18381 shlibpath_overrides_runpath=no
18382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18384 hardcode_into_libs=yes
18385 ;;
18386
18387# No shared lib support for Linux oldld, aout, or coff.
18388linux*oldld* | linux*aout* | linux*coff*)
18389 dynamic_linker=no
18390 ;;
18391
18392# This must be Linux ELF.
18393linux*)
18394 version_type=linux
18395 need_lib_prefix=no
18396 need_version=no
18397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18398 soname_spec='${libname}${release}${shared_ext}$major'
18399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18400 shlibpath_var=LD_LIBRARY_PATH
18401 shlibpath_overrides_runpath=no
18402 # This implies no fast_install, which is unacceptable.
18403 # Some rework will be needed to allow for fast_install
18404 # before this can be enabled.
18405 hardcode_into_libs=yes
18406
18407 # Append ld.so.conf contents to the search path
18408 if test -f /etc/ld.so.conf; then
18409 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18410 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18411 fi
18412
18413 # We used to test for /lib/ld.so.1 and disable shared libraries on
18414 # powerpc, because MkLinux only supported shared libraries with the
18415 # GNU dynamic linker. Since this was broken with cross compilers,
18416 # most powerpc-linux boxes support dynamic linking these days and
18417 # people can always --disable-shared, the test was removed, and we
18418 # assume the GNU/Linux dynamic linker is in use.
18419 dynamic_linker='GNU/Linux ld.so'
18420 ;;
18421
18422knetbsd*-gnu)
18423 version_type=linux
18424 need_lib_prefix=no
18425 need_version=no
18426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18427 soname_spec='${libname}${release}${shared_ext}$major'
18428 shlibpath_var=LD_LIBRARY_PATH
18429 shlibpath_overrides_runpath=no
18430 hardcode_into_libs=yes
18431 dynamic_linker='GNU ld.so'
18432 ;;
18433
18434netbsd*)
18435 version_type=sunos
18436 need_lib_prefix=no
18437 need_version=no
18438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18441 dynamic_linker='NetBSD (a.out) ld.so'
18442 else
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18444 soname_spec='${libname}${release}${shared_ext}$major'
18445 dynamic_linker='NetBSD ld.elf_so'
18446 fi
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=yes
18449 hardcode_into_libs=yes
18450 ;;
18451
18452newsos6)
18453 version_type=linux
18454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18455 shlibpath_var=LD_LIBRARY_PATH
18456 shlibpath_overrides_runpath=yes
18457 ;;
18458
18459nto-qnx*)
18460 version_type=linux
18461 need_lib_prefix=no
18462 need_version=no
18463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18464 soname_spec='${libname}${release}${shared_ext}$major'
18465 shlibpath_var=LD_LIBRARY_PATH
18466 shlibpath_overrides_runpath=yes
18467 ;;
18468
18469openbsd*)
18470 version_type=sunos
18471 need_lib_prefix=no
18472 need_version=yes
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18475 shlibpath_var=LD_LIBRARY_PATH
18476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18477 case $host_os in
18478 openbsd2.[89] | openbsd2.[89].*)
18479 shlibpath_overrides_runpath=no
18480 ;;
18481 *)
18482 shlibpath_overrides_runpath=yes
18483 ;;
18484 esac
18485 else
18486 shlibpath_overrides_runpath=yes
18487 fi
18488 ;;
18489
18490os2*)
18491 libname_spec='$name'
18492 shrext_cmds=".dll"
18493 need_lib_prefix=no
18494 library_names_spec='$libname${shared_ext} $libname.a'
18495 dynamic_linker='OS/2 ld.exe'
18496 shlibpath_var=LIBPATH
18497 ;;
18498
18499osf3* | osf4* | osf5*)
18500 version_type=osf
18501 need_lib_prefix=no
18502 need_version=no
18503 soname_spec='${libname}${release}${shared_ext}$major'
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18505 shlibpath_var=LD_LIBRARY_PATH
18506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18508 ;;
18509
18510sco3.2v5*)
18511 version_type=osf
18512 soname_spec='${libname}${release}${shared_ext}$major'
18513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18514 shlibpath_var=LD_LIBRARY_PATH
18515 ;;
18516
18517solaris*)
18518 version_type=linux
18519 need_lib_prefix=no
18520 need_version=no
18521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18522 soname_spec='${libname}${release}${shared_ext}$major'
18523 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18526 # ldd complains unless libraries are executable
18527 postinstall_cmds='chmod +x $lib'
18528 ;;
18529
18530sunos4*)
18531 version_type=sunos
18532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18534 shlibpath_var=LD_LIBRARY_PATH
18535 shlibpath_overrides_runpath=yes
18536 if test "$with_gnu_ld" = yes; then
18537 need_lib_prefix=no
18538 fi
18539 need_version=yes
18540 ;;
18541
18542sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18543 version_type=linux
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 shlibpath_var=LD_LIBRARY_PATH
18547 case $host_vendor in
18548 sni)
18549 shlibpath_overrides_runpath=no
18550 need_lib_prefix=no
18551 export_dynamic_flag_spec='${wl}-Blargedynsym'
18552 runpath_var=LD_RUN_PATH
18553 ;;
18554 siemens)
18555 need_lib_prefix=no
18556 ;;
18557 motorola)
18558 need_lib_prefix=no
18559 need_version=no
18560 shlibpath_overrides_runpath=no
18561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18562 ;;
18563 esac
18564 ;;
18565
18566sysv4*MP*)
18567 if test -d /usr/nec ;then
18568 version_type=linux
18569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18570 soname_spec='$libname${shared_ext}.$major'
18571 shlibpath_var=LD_LIBRARY_PATH
18572 fi
18573 ;;
18574
18575uts4*)
18576 version_type=linux
18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18578 soname_spec='${libname}${release}${shared_ext}$major'
18579 shlibpath_var=LD_LIBRARY_PATH
18580 ;;
18581
18582*)
18583 dynamic_linker=no
18584 ;;
18585esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000018586{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18587echo "${ECHO_T}$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018588test "$dynamic_linker" = no && can_build_shared=no
18589
Lev Walkin27fd0b62007-08-27 23:57:45 +000018590{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18591echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018592hardcode_action_GCJ=
18593if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18594 test -n "$runpath_var GCJ" || \
18595 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18596
18597 # We can hardcode non-existant directories.
18598 if test "$hardcode_direct_GCJ" != no &&
18599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18600 # have to relink, otherwise we might link with an installed library
18601 # when we should be linking with a yet-to-be-installed one
18602 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18603 test "$hardcode_minus_L_GCJ" != no; then
18604 # Linking always hardcodes the temporary library directory.
18605 hardcode_action_GCJ=relink
18606 else
18607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18608 hardcode_action_GCJ=immediate
18609 fi
18610else
18611 # We cannot hardcode anything, or else we can only hardcode existing
18612 # directories.
18613 hardcode_action_GCJ=unsupported
18614fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000018615{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18616echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018617
18618if test "$hardcode_action_GCJ" = relink; then
18619 # Fast installation is not supported
18620 enable_fast_install=no
18621elif test "$shlibpath_overrides_runpath" = yes ||
18622 test "$enable_shared" = no; then
18623 # Fast installation is not necessary
18624 enable_fast_install=needless
18625fi
18626
18627striplib=
18628old_striplib=
Lev Walkin27fd0b62007-08-27 23:57:45 +000018629{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18630echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018631if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18632 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18633 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Lev Walkin27fd0b62007-08-27 23:57:45 +000018634 { echo "$as_me:$LINENO: result: yes" >&5
18635echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018636else
18637# FIXME - insert some real tests, host_os isn't really good enough
18638 case $host_os in
18639 darwin*)
18640 if test -n "$STRIP" ; then
18641 striplib="$STRIP -x"
Lev Walkin27fd0b62007-08-27 23:57:45 +000018642 { echo "$as_me:$LINENO: result: yes" >&5
18643echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018644 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000018645 { echo "$as_me:$LINENO: result: no" >&5
18646echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018647fi
18648 ;;
18649 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000018650 { echo "$as_me:$LINENO: result: no" >&5
18651echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018652 ;;
18653 esac
18654fi
18655
18656if test "x$enable_dlopen" != xyes; then
18657 enable_dlopen=unknown
18658 enable_dlopen_self=unknown
18659 enable_dlopen_self_static=unknown
18660else
18661 lt_cv_dlopen=no
18662 lt_cv_dlopen_libs=
18663
18664 case $host_os in
18665 beos*)
18666 lt_cv_dlopen="load_add_on"
18667 lt_cv_dlopen_libs=
18668 lt_cv_dlopen_self=yes
18669 ;;
18670
18671 mingw* | pw32*)
18672 lt_cv_dlopen="LoadLibrary"
18673 lt_cv_dlopen_libs=
18674 ;;
18675
18676 cygwin*)
18677 lt_cv_dlopen="dlopen"
18678 lt_cv_dlopen_libs=
18679 ;;
18680
18681 darwin*)
18682 # if libdl is installed we need to link against it
Lev Walkin27fd0b62007-08-27 23:57:45 +000018683 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18684echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018685if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18687else
18688 ac_check_lib_save_LIBS=$LIBS
18689LIBS="-ldl $LIBS"
18690cat >conftest.$ac_ext <<_ACEOF
18691/* confdefs.h. */
18692_ACEOF
18693cat confdefs.h >>conftest.$ac_ext
18694cat >>conftest.$ac_ext <<_ACEOF
18695/* end confdefs.h. */
18696
Lev Walkin27fd0b62007-08-27 23:57:45 +000018697/* Override any GCC internal prototype to avoid an error.
18698 Use char because int might match the return type of a GCC
18699 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000018700#ifdef __cplusplus
18701extern "C"
18702#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000018703char dlopen ();
18704int
18705main ()
18706{
Lev Walkin27fd0b62007-08-27 23:57:45 +000018707return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000018708 ;
18709 return 0;
18710}
18711_ACEOF
18712rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000018713if { (ac_try="$ac_link"
18714case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18717esac
18718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000018720 ac_status=$?
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000018726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18727 { (case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000018733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000018737 { (case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18740esac
18741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000018743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 ac_cv_lib_dl_dlopen=yes
18747else
18748 echo "$as_me: failed program was:" >&5
18749sed 's/^/| /' conftest.$ac_ext >&5
18750
Lev Walkin27fd0b62007-08-27 23:57:45 +000018751 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000018752fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000018753
18754rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000018755 conftest$ac_exeext conftest.$ac_ext
18756LIBS=$ac_check_lib_save_LIBS
18757fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000018758{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18759echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018760if test $ac_cv_lib_dl_dlopen = yes; then
18761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18762else
18763
18764 lt_cv_dlopen="dyld"
18765 lt_cv_dlopen_libs=
18766 lt_cv_dlopen_self=yes
18767
18768fi
18769
18770 ;;
18771
18772 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000018773 { echo "$as_me:$LINENO: checking for shl_load" >&5
18774echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018775if test "${ac_cv_func_shl_load+set}" = set; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18777else
18778 cat >conftest.$ac_ext <<_ACEOF
18779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
18784/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18786#define shl_load innocuous_shl_load
18787
18788/* System header to define __stub macros and hopefully few prototypes,
18789 which can conflict with char shl_load (); below.
18790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18791 <limits.h> exists even on freestanding compilers. */
18792
18793#ifdef __STDC__
18794# include <limits.h>
18795#else
18796# include <assert.h>
18797#endif
18798
18799#undef shl_load
18800
Lev Walkin27fd0b62007-08-27 23:57:45 +000018801/* Override any GCC internal prototype to avoid an error.
18802 Use char because int might match the return type of a GCC
18803 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000018804#ifdef __cplusplus
18805extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000018806#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000018807char shl_load ();
18808/* The GNU C library defines this for functions which it implements
18809 to always fail with ENOSYS. Some functions are actually named
18810 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000018811#if defined __stub_shl_load || defined __stub___shl_load
Lev Walkin8e8b5482004-06-17 23:42:48 +000018812choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000018813#endif
18814
18815int
18816main ()
18817{
Lev Walkin27fd0b62007-08-27 23:57:45 +000018818return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000018819 ;
18820 return 0;
18821}
18822_ACEOF
18823rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000018824if { (ac_try="$ac_link"
18825case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828esac
18829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000018831 ac_status=$?
18832 grep -v '^ *+' conftest.er1 >conftest.err
18833 rm -f conftest.er1
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000018837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18838 { (case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18841esac
18842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000018844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000018848 { (case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851esac
18852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000018854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_func_shl_load=yes
18858else
18859 echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
18861
Lev Walkin27fd0b62007-08-27 23:57:45 +000018862 ac_cv_func_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000018863fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000018864
18865rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000018866 conftest$ac_exeext conftest.$ac_ext
18867fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000018868{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18869echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018870if test $ac_cv_func_shl_load = yes; then
18871 lt_cv_dlopen="shl_load"
18872else
Lev Walkin27fd0b62007-08-27 23:57:45 +000018873 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18874echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018875if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877else
18878 ac_check_lib_save_LIBS=$LIBS
18879LIBS="-ldld $LIBS"
18880cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886
Lev Walkin27fd0b62007-08-27 23:57:45 +000018887/* Override any GCC internal prototype to avoid an error.
18888 Use char because int might match the return type of a GCC
18889 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000018890#ifdef __cplusplus
18891extern "C"
18892#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000018893char shl_load ();
18894int
18895main ()
18896{
Lev Walkin27fd0b62007-08-27 23:57:45 +000018897return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000018898 ;
18899 return 0;
18900}
18901_ACEOF
18902rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000018903if { (ac_try="$ac_link"
18904case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18907esac
18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000018910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000018916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18917 { (case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920esac
18921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000018923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000018927 { (case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18930esac
18931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000018933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_lib_dld_shl_load=yes
18937else
18938 echo "$as_me: failed program was:" >&5
18939sed 's/^/| /' conftest.$ac_ext >&5
18940
Lev Walkin27fd0b62007-08-27 23:57:45 +000018941 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000018942fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000018943
18944rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000018945 conftest$ac_exeext conftest.$ac_ext
18946LIBS=$ac_check_lib_save_LIBS
18947fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000018948{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18949echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018950if test $ac_cv_lib_dld_shl_load = yes; then
18951 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18952else
Lev Walkin27fd0b62007-08-27 23:57:45 +000018953 { echo "$as_me:$LINENO: checking for dlopen" >&5
18954echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000018955if test "${ac_cv_func_dlopen+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18957else
18958 cat >conftest.$ac_ext <<_ACEOF
18959/* confdefs.h. */
18960_ACEOF
18961cat confdefs.h >>conftest.$ac_ext
18962cat >>conftest.$ac_ext <<_ACEOF
18963/* end confdefs.h. */
18964/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18966#define dlopen innocuous_dlopen
18967
18968/* System header to define __stub macros and hopefully few prototypes,
18969 which can conflict with char dlopen (); below.
18970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18971 <limits.h> exists even on freestanding compilers. */
18972
18973#ifdef __STDC__
18974# include <limits.h>
18975#else
18976# include <assert.h>
18977#endif
18978
18979#undef dlopen
18980
Lev Walkin27fd0b62007-08-27 23:57:45 +000018981/* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000018984#ifdef __cplusplus
18985extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000018986#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000018987char dlopen ();
18988/* The GNU C library defines this for functions which it implements
18989 to always fail with ENOSYS. Some functions are actually named
18990 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000018991#if defined __stub_dlopen || defined __stub___dlopen
Lev Walkin8e8b5482004-06-17 23:42:48 +000018992choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000018993#endif
18994
18995int
18996main ()
18997{
Lev Walkin27fd0b62007-08-27 23:57:45 +000018998return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000018999 ;
19000 return 0;
19001}
19002_ACEOF
19003rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000019004if { (ac_try="$ac_link"
19005case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000019011 ac_status=$?
19012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000019017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19021esac
19022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000019028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031esac
19032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 ac_cv_func_dlopen=yes
19038else
19039 echo "$as_me: failed program was:" >&5
19040sed 's/^/| /' conftest.$ac_ext >&5
19041
Lev Walkin27fd0b62007-08-27 23:57:45 +000019042 ac_cv_func_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000019043fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000019044
19045rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000019046 conftest$ac_exeext conftest.$ac_ext
19047fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000019048{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19049echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019050if test $ac_cv_func_dlopen = yes; then
19051 lt_cv_dlopen="dlopen"
19052else
Lev Walkin27fd0b62007-08-27 23:57:45 +000019053 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19054echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019055if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19057else
19058 ac_check_lib_save_LIBS=$LIBS
19059LIBS="-ldl $LIBS"
19060cat >conftest.$ac_ext <<_ACEOF
19061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
19066
Lev Walkin27fd0b62007-08-27 23:57:45 +000019067/* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000019070#ifdef __cplusplus
19071extern "C"
19072#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000019073char dlopen ();
19074int
19075main ()
19076{
Lev Walkin27fd0b62007-08-27 23:57:45 +000019077return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000019078 ;
19079 return 0;
19080}
19081_ACEOF
19082rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000019083if { (ac_try="$ac_link"
19084case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087esac
19088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000019090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000019096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000019107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110esac
19111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_lib_dl_dlopen=yes
19117else
19118 echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
Lev Walkin27fd0b62007-08-27 23:57:45 +000019121 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000019122fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000019123
19124rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000019125 conftest$ac_exeext conftest.$ac_ext
19126LIBS=$ac_check_lib_save_LIBS
19127fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000019128{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19129echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019130if test $ac_cv_lib_dl_dlopen = yes; then
19131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19132else
Lev Walkin27fd0b62007-08-27 23:57:45 +000019133 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19134echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019135if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137else
19138 ac_check_lib_save_LIBS=$LIBS
19139LIBS="-lsvld $LIBS"
19140cat >conftest.$ac_ext <<_ACEOF
19141/* confdefs.h. */
19142_ACEOF
19143cat confdefs.h >>conftest.$ac_ext
19144cat >>conftest.$ac_ext <<_ACEOF
19145/* end confdefs.h. */
19146
Lev Walkin27fd0b62007-08-27 23:57:45 +000019147/* Override any GCC internal prototype to avoid an error.
19148 Use char because int might match the return type of a GCC
19149 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000019150#ifdef __cplusplus
19151extern "C"
19152#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000019153char dlopen ();
19154int
19155main ()
19156{
Lev Walkin27fd0b62007-08-27 23:57:45 +000019157return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000019158 ;
19159 return 0;
19160}
19161_ACEOF
19162rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000019163if { (ac_try="$ac_link"
19164case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167esac
19168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000019170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000019176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19177 { (case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19180esac
19181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000019187 { (case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19190esac
19191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_cv_lib_svld_dlopen=yes
19197else
19198 echo "$as_me: failed program was:" >&5
19199sed 's/^/| /' conftest.$ac_ext >&5
19200
Lev Walkin27fd0b62007-08-27 23:57:45 +000019201 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000019202fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000019203
19204rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000019205 conftest$ac_exeext conftest.$ac_ext
19206LIBS=$ac_check_lib_save_LIBS
19207fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000019208{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19209echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019210if test $ac_cv_lib_svld_dlopen = yes; then
19211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19212else
Lev Walkin27fd0b62007-08-27 23:57:45 +000019213 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19214echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019215if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217else
19218 ac_check_lib_save_LIBS=$LIBS
19219LIBS="-ldld $LIBS"
19220cat >conftest.$ac_ext <<_ACEOF
19221/* confdefs.h. */
19222_ACEOF
19223cat confdefs.h >>conftest.$ac_ext
19224cat >>conftest.$ac_ext <<_ACEOF
19225/* end confdefs.h. */
19226
Lev Walkin27fd0b62007-08-27 23:57:45 +000019227/* Override any GCC internal prototype to avoid an error.
19228 Use char because int might match the return type of a GCC
19229 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000019230#ifdef __cplusplus
19231extern "C"
19232#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000019233char dld_link ();
19234int
19235main ()
19236{
Lev Walkin27fd0b62007-08-27 23:57:45 +000019237return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000019238 ;
19239 return 0;
19240}
19241_ACEOF
19242rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000019243if { (ac_try="$ac_link"
19244case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19247esac
19248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000019250 ac_status=$?
19251 grep -v '^ *+' conftest.er1 >conftest.err
19252 rm -f conftest.er1
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000019256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19257 { (case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260esac
19261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } &&
19266 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000019267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270esac
19271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 ac_cv_lib_dld_dld_link=yes
19277else
19278 echo "$as_me: failed program was:" >&5
19279sed 's/^/| /' conftest.$ac_ext >&5
19280
Lev Walkin27fd0b62007-08-27 23:57:45 +000019281 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000019282fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000019283
19284rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000019285 conftest$ac_exeext conftest.$ac_ext
19286LIBS=$ac_check_lib_save_LIBS
19287fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000019288{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19289echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019290if test $ac_cv_lib_dld_dld_link = yes; then
19291 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19292fi
19293
19294
19295fi
19296
19297
19298fi
19299
19300
19301fi
19302
19303
19304fi
19305
19306
19307fi
19308
19309 ;;
19310 esac
19311
19312 if test "x$lt_cv_dlopen" != xno; then
19313 enable_dlopen=yes
19314 else
19315 enable_dlopen=no
19316 fi
19317
19318 case $lt_cv_dlopen in
19319 dlopen)
19320 save_CPPFLAGS="$CPPFLAGS"
19321 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19322
19323 save_LDFLAGS="$LDFLAGS"
19324 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19325
19326 save_LIBS="$LIBS"
19327 LIBS="$lt_cv_dlopen_libs $LIBS"
19328
Lev Walkin27fd0b62007-08-27 23:57:45 +000019329 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19330echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019331if test "${lt_cv_dlopen_self+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333else
19334 if test "$cross_compiling" = yes; then :
19335 lt_cv_dlopen_self=cross
19336else
19337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19338 lt_status=$lt_dlunknown
19339 cat > conftest.$ac_ext <<EOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000019340#line 19340 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000019341#include "confdefs.h"
19342
19343#if HAVE_DLFCN_H
19344#include <dlfcn.h>
19345#endif
19346
19347#include <stdio.h>
19348
19349#ifdef RTLD_GLOBAL
19350# define LT_DLGLOBAL RTLD_GLOBAL
19351#else
19352# ifdef DL_GLOBAL
19353# define LT_DLGLOBAL DL_GLOBAL
19354# else
19355# define LT_DLGLOBAL 0
19356# endif
19357#endif
19358
19359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19360 find out it does not work in some platform. */
19361#ifndef LT_DLLAZY_OR_NOW
19362# ifdef RTLD_LAZY
19363# define LT_DLLAZY_OR_NOW RTLD_LAZY
19364# else
19365# ifdef DL_LAZY
19366# define LT_DLLAZY_OR_NOW DL_LAZY
19367# else
19368# ifdef RTLD_NOW
19369# define LT_DLLAZY_OR_NOW RTLD_NOW
19370# else
19371# ifdef DL_NOW
19372# define LT_DLLAZY_OR_NOW DL_NOW
19373# else
19374# define LT_DLLAZY_OR_NOW 0
19375# endif
19376# endif
19377# endif
19378# endif
19379#endif
19380
19381#ifdef __cplusplus
19382extern "C" void exit (int);
19383#endif
19384
19385void fnord() { int i=42;}
19386int main ()
19387{
19388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19389 int status = $lt_dlunknown;
19390
19391 if (self)
19392 {
19393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19394 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19395 /* dlclose (self); */
19396 }
19397
19398 exit (status);
19399}
19400EOF
19401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19402 (eval $ac_link) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19406 (./conftest; exit; ) 2>/dev/null
19407 lt_status=$?
19408 case x$lt_status in
19409 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19410 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19411 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19412 esac
19413 else :
19414 # compilation failed
19415 lt_cv_dlopen_self=no
19416 fi
19417fi
19418rm -fr conftest*
19419
19420
19421fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000019422{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19423echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019424
19425 if test "x$lt_cv_dlopen_self" = xyes; then
19426 LDFLAGS="$LDFLAGS $link_static_flag"
Lev Walkin27fd0b62007-08-27 23:57:45 +000019427 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19428echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019429if test "${lt_cv_dlopen_self_static+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431else
19432 if test "$cross_compiling" = yes; then :
19433 lt_cv_dlopen_self_static=cross
19434else
19435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19436 lt_status=$lt_dlunknown
19437 cat > conftest.$ac_ext <<EOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000019438#line 19438 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000019439#include "confdefs.h"
19440
19441#if HAVE_DLFCN_H
19442#include <dlfcn.h>
19443#endif
19444
19445#include <stdio.h>
19446
19447#ifdef RTLD_GLOBAL
19448# define LT_DLGLOBAL RTLD_GLOBAL
19449#else
19450# ifdef DL_GLOBAL
19451# define LT_DLGLOBAL DL_GLOBAL
19452# else
19453# define LT_DLGLOBAL 0
19454# endif
19455#endif
19456
19457/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19458 find out it does not work in some platform. */
19459#ifndef LT_DLLAZY_OR_NOW
19460# ifdef RTLD_LAZY
19461# define LT_DLLAZY_OR_NOW RTLD_LAZY
19462# else
19463# ifdef DL_LAZY
19464# define LT_DLLAZY_OR_NOW DL_LAZY
19465# else
19466# ifdef RTLD_NOW
19467# define LT_DLLAZY_OR_NOW RTLD_NOW
19468# else
19469# ifdef DL_NOW
19470# define LT_DLLAZY_OR_NOW DL_NOW
19471# else
19472# define LT_DLLAZY_OR_NOW 0
19473# endif
19474# endif
19475# endif
19476# endif
19477#endif
19478
19479#ifdef __cplusplus
19480extern "C" void exit (int);
19481#endif
19482
19483void fnord() { int i=42;}
19484int main ()
19485{
19486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19487 int status = $lt_dlunknown;
19488
19489 if (self)
19490 {
19491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19492 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19493 /* dlclose (self); */
19494 }
19495
19496 exit (status);
19497}
19498EOF
19499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19500 (eval $ac_link) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19504 (./conftest; exit; ) 2>/dev/null
19505 lt_status=$?
19506 case x$lt_status in
19507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19509 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19510 esac
19511 else :
19512 # compilation failed
19513 lt_cv_dlopen_self_static=no
19514 fi
19515fi
19516rm -fr conftest*
19517
19518
19519fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000019520{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19521echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000019522 fi
19523
19524 CPPFLAGS="$save_CPPFLAGS"
19525 LDFLAGS="$save_LDFLAGS"
19526 LIBS="$save_LIBS"
19527 ;;
19528 esac
19529
19530 case $lt_cv_dlopen_self in
19531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19532 *) enable_dlopen_self=unknown ;;
19533 esac
19534
19535 case $lt_cv_dlopen_self_static in
19536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19537 *) enable_dlopen_self_static=unknown ;;
19538 esac
19539fi
19540
19541
19542# The else clause should only fire when bootstrapping the
19543# libtool distribution, otherwise you forgot to ship ltmain.sh
19544# with your package, and you will get complaints that there are
19545# no rules to generate ltmain.sh.
19546if test -f "$ltmain"; then
19547 # See if we are running on zsh, and set the options which allow our commands through
19548 # without removal of \ escapes.
19549 if test -n "${ZSH_VERSION+set}" ; then
19550 setopt NO_GLOB_SUBST
19551 fi
19552 # Now quote all the things that may contain metacharacters while being
19553 # careful not to overquote the AC_SUBSTed values. We take copies of the
19554 # variables and quote the copies for generation of the libtool script.
19555 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19556 SED SHELL STRIP \
19557 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19558 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19559 deplibs_check_method reload_flag reload_cmds need_locks \
19560 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19561 lt_cv_sys_global_symbol_to_c_name_address \
19562 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19563 old_postinstall_cmds old_postuninstall_cmds \
19564 compiler_GCJ \
19565 CC_GCJ \
19566 LD_GCJ \
19567 lt_prog_compiler_wl_GCJ \
19568 lt_prog_compiler_pic_GCJ \
19569 lt_prog_compiler_static_GCJ \
19570 lt_prog_compiler_no_builtin_flag_GCJ \
19571 export_dynamic_flag_spec_GCJ \
19572 thread_safe_flag_spec_GCJ \
19573 whole_archive_flag_spec_GCJ \
19574 enable_shared_with_static_runtimes_GCJ \
19575 old_archive_cmds_GCJ \
19576 old_archive_from_new_cmds_GCJ \
19577 predep_objects_GCJ \
19578 postdep_objects_GCJ \
19579 predeps_GCJ \
19580 postdeps_GCJ \
19581 compiler_lib_search_path_GCJ \
19582 archive_cmds_GCJ \
19583 archive_expsym_cmds_GCJ \
19584 postinstall_cmds_GCJ \
19585 postuninstall_cmds_GCJ \
19586 old_archive_from_expsyms_cmds_GCJ \
19587 allow_undefined_flag_GCJ \
19588 no_undefined_flag_GCJ \
19589 export_symbols_cmds_GCJ \
19590 hardcode_libdir_flag_spec_GCJ \
19591 hardcode_libdir_flag_spec_ld_GCJ \
19592 hardcode_libdir_separator_GCJ \
19593 hardcode_automatic_GCJ \
19594 module_cmds_GCJ \
19595 module_expsym_cmds_GCJ \
19596 lt_cv_prog_compiler_c_o_GCJ \
19597 exclude_expsyms_GCJ \
19598 include_expsyms_GCJ; do
19599
19600 case $var in
19601 old_archive_cmds_GCJ | \
19602 old_archive_from_new_cmds_GCJ | \
19603 archive_cmds_GCJ | \
19604 archive_expsym_cmds_GCJ | \
19605 module_cmds_GCJ | \
19606 module_expsym_cmds_GCJ | \
19607 old_archive_from_expsyms_cmds_GCJ | \
19608 export_symbols_cmds_GCJ | \
19609 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19610 postinstall_cmds | postuninstall_cmds | \
19611 old_postinstall_cmds | old_postuninstall_cmds | \
19612 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19613 # Double-quote double-evaled strings.
19614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19615 ;;
19616 *)
19617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19618 ;;
19619 esac
19620 done
19621
19622 case $lt_echo in
19623 *'\$0 --fallback-echo"')
19624 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19625 ;;
19626 esac
19627
19628cfgfile="$ofile"
19629
19630 cat <<__EOF__ >> "$cfgfile"
19631# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19632
19633# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19634
19635# Shell to use when invoking shell scripts.
19636SHELL=$lt_SHELL
19637
19638# Whether or not to build shared libraries.
19639build_libtool_libs=$enable_shared
19640
19641# Whether or not to build static libraries.
19642build_old_libs=$enable_static
19643
19644# Whether or not to add -lc for building shared libraries.
19645build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19646
19647# Whether or not to disallow shared libs when runtime libs are static
19648allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19649
19650# Whether or not to optimize for fast installation.
19651fast_install=$enable_fast_install
19652
19653# The host system.
19654host_alias=$host_alias
19655host=$host
19656
19657# An echo program that does not interpret backslashes.
19658echo=$lt_echo
19659
19660# The archiver.
19661AR=$lt_AR
19662AR_FLAGS=$lt_AR_FLAGS
19663
19664# A C compiler.
19665LTCC=$lt_LTCC
19666
19667# A language-specific compiler.
19668CC=$lt_compiler_GCJ
19669
19670# Is the compiler the GNU C compiler?
19671with_gcc=$GCC_GCJ
19672
19673# An ERE matcher.
19674EGREP=$lt_EGREP
19675
19676# The linker used to build libraries.
19677LD=$lt_LD_GCJ
19678
19679# Whether we need hard or soft links.
19680LN_S=$lt_LN_S
19681
19682# A BSD-compatible nm program.
19683NM=$lt_NM
19684
19685# A symbol stripping program
19686STRIP=$lt_STRIP
19687
19688# Used to examine libraries when file_magic_cmd begins "file"
19689MAGIC_CMD=$MAGIC_CMD
19690
19691# Used on cygwin: DLL creation program.
19692DLLTOOL="$DLLTOOL"
19693
19694# Used on cygwin: object dumper.
19695OBJDUMP="$OBJDUMP"
19696
19697# Used on cygwin: assembler.
19698AS="$AS"
19699
19700# The name of the directory that contains temporary libtool files.
19701objdir=$objdir
19702
19703# How to create reloadable object files.
19704reload_flag=$lt_reload_flag
19705reload_cmds=$lt_reload_cmds
19706
19707# How to pass a linker flag through the compiler.
19708wl=$lt_lt_prog_compiler_wl_GCJ
19709
19710# Object file suffix (normally "o").
19711objext="$ac_objext"
19712
19713# Old archive suffix (normally "a").
19714libext="$libext"
19715
19716# Shared library suffix (normally ".so").
19717shrext_cmds='$shrext_cmds'
19718
19719# Executable file suffix (normally "").
19720exeext="$exeext"
19721
19722# Additional compiler flags for building library objects.
19723pic_flag=$lt_lt_prog_compiler_pic_GCJ
19724pic_mode=$pic_mode
19725
19726# What is the maximum length of a command?
19727max_cmd_len=$lt_cv_sys_max_cmd_len
19728
19729# Does compiler simultaneously support -c and -o options?
19730compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19731
19732# Must we lock files when doing compilation ?
19733need_locks=$lt_need_locks
19734
19735# Do we need the lib prefix for modules?
19736need_lib_prefix=$need_lib_prefix
19737
19738# Do we need a version for libraries?
19739need_version=$need_version
19740
19741# Whether dlopen is supported.
19742dlopen_support=$enable_dlopen
19743
19744# Whether dlopen of programs is supported.
19745dlopen_self=$enable_dlopen_self
19746
19747# Whether dlopen of statically linked programs is supported.
19748dlopen_self_static=$enable_dlopen_self_static
19749
19750# Compiler flag to prevent dynamic linking.
19751link_static_flag=$lt_lt_prog_compiler_static_GCJ
19752
19753# Compiler flag to turn off builtin functions.
19754no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19755
19756# Compiler flag to allow reflexive dlopens.
19757export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19758
19759# Compiler flag to generate shared objects directly from archives.
19760whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19761
19762# Compiler flag to generate thread-safe objects.
19763thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19764
19765# Library versioning type.
19766version_type=$version_type
19767
19768# Format of library name prefix.
19769libname_spec=$lt_libname_spec
19770
19771# List of archive names. First name is the real one, the rest are links.
19772# The last name is the one that the linker finds with -lNAME.
19773library_names_spec=$lt_library_names_spec
19774
19775# The coded name of the library, if different from the real name.
19776soname_spec=$lt_soname_spec
19777
19778# Commands used to build and install an old-style archive.
19779RANLIB=$lt_RANLIB
19780old_archive_cmds=$lt_old_archive_cmds_GCJ
19781old_postinstall_cmds=$lt_old_postinstall_cmds
19782old_postuninstall_cmds=$lt_old_postuninstall_cmds
19783
19784# Create an old-style archive from a shared archive.
19785old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19786
19787# Create a temporary old-style archive to link instead of a shared archive.
19788old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19789
19790# Commands used to build and install a shared archive.
19791archive_cmds=$lt_archive_cmds_GCJ
19792archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19793postinstall_cmds=$lt_postinstall_cmds
19794postuninstall_cmds=$lt_postuninstall_cmds
19795
19796# Commands used to build a loadable module (assumed same as above if empty)
19797module_cmds=$lt_module_cmds_GCJ
19798module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19799
19800# Commands to strip libraries.
19801old_striplib=$lt_old_striplib
19802striplib=$lt_striplib
19803
19804# Dependencies to place before the objects being linked to create a
19805# shared library.
19806predep_objects=$lt_predep_objects_GCJ
19807
19808# Dependencies to place after the objects being linked to create a
19809# shared library.
19810postdep_objects=$lt_postdep_objects_GCJ
19811
19812# Dependencies to place before the objects being linked to create a
19813# shared library.
19814predeps=$lt_predeps_GCJ
19815
19816# Dependencies to place after the objects being linked to create a
19817# shared library.
19818postdeps=$lt_postdeps_GCJ
19819
19820# The library search path used internally by the compiler when linking
19821# a shared library.
19822compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19823
19824# Method to check whether dependent libraries are shared objects.
19825deplibs_check_method=$lt_deplibs_check_method
19826
19827# Command to use when deplibs_check_method == file_magic.
19828file_magic_cmd=$lt_file_magic_cmd
19829
19830# Flag that allows shared libraries with undefined symbols to be built.
19831allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19832
19833# Flag that forces no undefined symbols.
19834no_undefined_flag=$lt_no_undefined_flag_GCJ
19835
19836# Commands used to finish a libtool library installation in a directory.
19837finish_cmds=$lt_finish_cmds
19838
19839# Same as above, but a single script fragment to be evaled but not shown.
19840finish_eval=$lt_finish_eval
19841
19842# Take the output of nm and produce a listing of raw symbols and C names.
19843global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19844
19845# Transform the output of nm in a proper C declaration
19846global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19847
19848# Transform the output of nm in a C name address pair
19849global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19850
19851# This is the shared library runtime path variable.
19852runpath_var=$runpath_var
19853
19854# This is the shared library path variable.
19855shlibpath_var=$shlibpath_var
19856
19857# Is shlibpath searched before the hard-coded library search path?
19858shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19859
19860# How to hardcode a shared library path into an executable.
19861hardcode_action=$hardcode_action_GCJ
19862
19863# Whether we should hardcode library paths into libraries.
19864hardcode_into_libs=$hardcode_into_libs
19865
19866# Flag to hardcode \$libdir into a binary during linking.
19867# This must work even if \$libdir does not exist.
19868hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19869
19870# If ld is used when linking, flag to hardcode \$libdir into
19871# a binary during linking. This must work even if \$libdir does
19872# not exist.
19873hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19874
19875# Whether we need a single -rpath flag with a separated argument.
19876hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19877
19878# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19879# resulting binary.
19880hardcode_direct=$hardcode_direct_GCJ
19881
19882# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19883# resulting binary.
19884hardcode_minus_L=$hardcode_minus_L_GCJ
19885
19886# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19887# the resulting binary.
19888hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19889
19890# Set to yes if building a shared library automatically hardcodes DIR into the library
19891# and all subsequent libraries and executables linked against it.
19892hardcode_automatic=$hardcode_automatic_GCJ
19893
19894# Variables whose values should be saved in libtool wrapper scripts and
19895# restored at relink time.
19896variables_saved_for_relink="$variables_saved_for_relink"
19897
19898# Whether libtool must link a program against all its dependency libraries.
19899link_all_deplibs=$link_all_deplibs_GCJ
19900
19901# Compile-time system search path for libraries
19902sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19903
19904# Run-time system search path for libraries
19905sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19906
19907# Fix the shell variable \$srcfile for the compiler.
19908fix_srcfile_path="$fix_srcfile_path_GCJ"
19909
19910# Set to yes if exported symbols are required.
19911always_export_symbols=$always_export_symbols_GCJ
19912
19913# The commands to list exported symbols.
19914export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19915
19916# The commands to extract the exported symbol list from a shared archive.
19917extract_expsyms_cmds=$lt_extract_expsyms_cmds
19918
19919# Symbols that should not be listed in the preloaded symbols.
19920exclude_expsyms=$lt_exclude_expsyms_GCJ
19921
19922# Symbols that must always be exported.
19923include_expsyms=$lt_include_expsyms_GCJ
19924
19925# ### END LIBTOOL TAG CONFIG: $tagname
19926
19927__EOF__
19928
19929
19930else
19931 # If there is no Makefile yet, we rely on a make rule to execute
19932 # `config.status --recheck' to rerun these tests and create the
19933 # libtool script then.
19934 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19935 if test -f "$ltmain_in"; then
19936 test -f Makefile && make "$ltmain"
19937 fi
19938fi
19939
19940
19941ac_ext=c
19942ac_cpp='$CPP $CPPFLAGS'
19943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19945ac_compiler_gnu=$ac_cv_c_compiler_gnu
19946
19947CC="$lt_save_CC"
19948
19949 else
19950 tagname=""
19951 fi
19952 ;;
19953
19954 RC)
19955
19956
Lev Walkin8e8b5482004-06-17 23:42:48 +000019957# Source file extension for RC test sources.
19958ac_ext=rc
19959
19960# Object file extension for compiled RC test sources.
19961objext=o
19962objext_RC=$objext
19963
19964# Code to be used in simple compile tests
19965lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19966
19967# Code to be used in simple link tests
19968lt_simple_link_test_code="$lt_simple_compile_test_code"
19969
19970# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19971
19972# If no C compiler was specified, use CC.
19973LTCC=${LTCC-"$CC"}
19974
19975# Allow CC to be a program name with arguments.
19976compiler=$CC
19977
19978
19979# Allow CC to be a program name with arguments.
19980lt_save_CC="$CC"
19981CC=${RC-"windres"}
19982compiler=$CC
19983compiler_RC=$CC
19984lt_cv_prog_compiler_c_o_RC=yes
19985
19986# The else clause should only fire when bootstrapping the
19987# libtool distribution, otherwise you forgot to ship ltmain.sh
19988# with your package, and you will get complaints that there are
19989# no rules to generate ltmain.sh.
19990if test -f "$ltmain"; then
19991 # See if we are running on zsh, and set the options which allow our commands through
19992 # without removal of \ escapes.
19993 if test -n "${ZSH_VERSION+set}" ; then
19994 setopt NO_GLOB_SUBST
19995 fi
19996 # Now quote all the things that may contain metacharacters while being
19997 # careful not to overquote the AC_SUBSTed values. We take copies of the
19998 # variables and quote the copies for generation of the libtool script.
19999 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20000 SED SHELL STRIP \
20001 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20002 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20003 deplibs_check_method reload_flag reload_cmds need_locks \
20004 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20005 lt_cv_sys_global_symbol_to_c_name_address \
20006 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20007 old_postinstall_cmds old_postuninstall_cmds \
20008 compiler_RC \
20009 CC_RC \
20010 LD_RC \
20011 lt_prog_compiler_wl_RC \
20012 lt_prog_compiler_pic_RC \
20013 lt_prog_compiler_static_RC \
20014 lt_prog_compiler_no_builtin_flag_RC \
20015 export_dynamic_flag_spec_RC \
20016 thread_safe_flag_spec_RC \
20017 whole_archive_flag_spec_RC \
20018 enable_shared_with_static_runtimes_RC \
20019 old_archive_cmds_RC \
20020 old_archive_from_new_cmds_RC \
20021 predep_objects_RC \
20022 postdep_objects_RC \
20023 predeps_RC \
20024 postdeps_RC \
20025 compiler_lib_search_path_RC \
20026 archive_cmds_RC \
20027 archive_expsym_cmds_RC \
20028 postinstall_cmds_RC \
20029 postuninstall_cmds_RC \
20030 old_archive_from_expsyms_cmds_RC \
20031 allow_undefined_flag_RC \
20032 no_undefined_flag_RC \
20033 export_symbols_cmds_RC \
20034 hardcode_libdir_flag_spec_RC \
20035 hardcode_libdir_flag_spec_ld_RC \
20036 hardcode_libdir_separator_RC \
20037 hardcode_automatic_RC \
20038 module_cmds_RC \
20039 module_expsym_cmds_RC \
20040 lt_cv_prog_compiler_c_o_RC \
20041 exclude_expsyms_RC \
20042 include_expsyms_RC; do
20043
20044 case $var in
20045 old_archive_cmds_RC | \
20046 old_archive_from_new_cmds_RC | \
20047 archive_cmds_RC | \
20048 archive_expsym_cmds_RC | \
20049 module_cmds_RC | \
20050 module_expsym_cmds_RC | \
20051 old_archive_from_expsyms_cmds_RC | \
20052 export_symbols_cmds_RC | \
20053 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20054 postinstall_cmds | postuninstall_cmds | \
20055 old_postinstall_cmds | old_postuninstall_cmds | \
20056 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20057 # Double-quote double-evaled strings.
20058 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20059 ;;
20060 *)
20061 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20062 ;;
20063 esac
20064 done
20065
20066 case $lt_echo in
20067 *'\$0 --fallback-echo"')
20068 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20069 ;;
20070 esac
20071
20072cfgfile="$ofile"
20073
20074 cat <<__EOF__ >> "$cfgfile"
20075# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20076
20077# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20078
20079# Shell to use when invoking shell scripts.
20080SHELL=$lt_SHELL
20081
20082# Whether or not to build shared libraries.
20083build_libtool_libs=$enable_shared
20084
20085# Whether or not to build static libraries.
20086build_old_libs=$enable_static
20087
20088# Whether or not to add -lc for building shared libraries.
20089build_libtool_need_lc=$archive_cmds_need_lc_RC
20090
20091# Whether or not to disallow shared libs when runtime libs are static
20092allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20093
20094# Whether or not to optimize for fast installation.
20095fast_install=$enable_fast_install
20096
20097# The host system.
20098host_alias=$host_alias
20099host=$host
20100
20101# An echo program that does not interpret backslashes.
20102echo=$lt_echo
20103
20104# The archiver.
20105AR=$lt_AR
20106AR_FLAGS=$lt_AR_FLAGS
20107
20108# A C compiler.
20109LTCC=$lt_LTCC
20110
20111# A language-specific compiler.
20112CC=$lt_compiler_RC
20113
20114# Is the compiler the GNU C compiler?
20115with_gcc=$GCC_RC
20116
20117# An ERE matcher.
20118EGREP=$lt_EGREP
20119
20120# The linker used to build libraries.
20121LD=$lt_LD_RC
20122
20123# Whether we need hard or soft links.
20124LN_S=$lt_LN_S
20125
20126# A BSD-compatible nm program.
20127NM=$lt_NM
20128
20129# A symbol stripping program
20130STRIP=$lt_STRIP
20131
20132# Used to examine libraries when file_magic_cmd begins "file"
20133MAGIC_CMD=$MAGIC_CMD
20134
20135# Used on cygwin: DLL creation program.
20136DLLTOOL="$DLLTOOL"
20137
20138# Used on cygwin: object dumper.
20139OBJDUMP="$OBJDUMP"
20140
20141# Used on cygwin: assembler.
20142AS="$AS"
20143
20144# The name of the directory that contains temporary libtool files.
20145objdir=$objdir
20146
20147# How to create reloadable object files.
20148reload_flag=$lt_reload_flag
20149reload_cmds=$lt_reload_cmds
20150
20151# How to pass a linker flag through the compiler.
20152wl=$lt_lt_prog_compiler_wl_RC
20153
20154# Object file suffix (normally "o").
20155objext="$ac_objext"
20156
20157# Old archive suffix (normally "a").
20158libext="$libext"
20159
20160# Shared library suffix (normally ".so").
20161shrext_cmds='$shrext_cmds'
20162
20163# Executable file suffix (normally "").
20164exeext="$exeext"
20165
20166# Additional compiler flags for building library objects.
20167pic_flag=$lt_lt_prog_compiler_pic_RC
20168pic_mode=$pic_mode
20169
20170# What is the maximum length of a command?
20171max_cmd_len=$lt_cv_sys_max_cmd_len
20172
20173# Does compiler simultaneously support -c and -o options?
20174compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20175
20176# Must we lock files when doing compilation ?
20177need_locks=$lt_need_locks
20178
20179# Do we need the lib prefix for modules?
20180need_lib_prefix=$need_lib_prefix
20181
20182# Do we need a version for libraries?
20183need_version=$need_version
20184
20185# Whether dlopen is supported.
20186dlopen_support=$enable_dlopen
20187
20188# Whether dlopen of programs is supported.
20189dlopen_self=$enable_dlopen_self
20190
20191# Whether dlopen of statically linked programs is supported.
20192dlopen_self_static=$enable_dlopen_self_static
20193
20194# Compiler flag to prevent dynamic linking.
20195link_static_flag=$lt_lt_prog_compiler_static_RC
20196
20197# Compiler flag to turn off builtin functions.
20198no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20199
20200# Compiler flag to allow reflexive dlopens.
20201export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20202
20203# Compiler flag to generate shared objects directly from archives.
20204whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20205
20206# Compiler flag to generate thread-safe objects.
20207thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20208
20209# Library versioning type.
20210version_type=$version_type
20211
20212# Format of library name prefix.
20213libname_spec=$lt_libname_spec
20214
20215# List of archive names. First name is the real one, the rest are links.
20216# The last name is the one that the linker finds with -lNAME.
20217library_names_spec=$lt_library_names_spec
20218
20219# The coded name of the library, if different from the real name.
20220soname_spec=$lt_soname_spec
20221
20222# Commands used to build and install an old-style archive.
20223RANLIB=$lt_RANLIB
20224old_archive_cmds=$lt_old_archive_cmds_RC
20225old_postinstall_cmds=$lt_old_postinstall_cmds
20226old_postuninstall_cmds=$lt_old_postuninstall_cmds
20227
20228# Create an old-style archive from a shared archive.
20229old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20230
20231# Create a temporary old-style archive to link instead of a shared archive.
20232old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20233
20234# Commands used to build and install a shared archive.
20235archive_cmds=$lt_archive_cmds_RC
20236archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20237postinstall_cmds=$lt_postinstall_cmds
20238postuninstall_cmds=$lt_postuninstall_cmds
20239
20240# Commands used to build a loadable module (assumed same as above if empty)
20241module_cmds=$lt_module_cmds_RC
20242module_expsym_cmds=$lt_module_expsym_cmds_RC
20243
20244# Commands to strip libraries.
20245old_striplib=$lt_old_striplib
20246striplib=$lt_striplib
20247
20248# Dependencies to place before the objects being linked to create a
20249# shared library.
20250predep_objects=$lt_predep_objects_RC
20251
20252# Dependencies to place after the objects being linked to create a
20253# shared library.
20254postdep_objects=$lt_postdep_objects_RC
20255
20256# Dependencies to place before the objects being linked to create a
20257# shared library.
20258predeps=$lt_predeps_RC
20259
20260# Dependencies to place after the objects being linked to create a
20261# shared library.
20262postdeps=$lt_postdeps_RC
20263
20264# The library search path used internally by the compiler when linking
20265# a shared library.
20266compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20267
20268# Method to check whether dependent libraries are shared objects.
20269deplibs_check_method=$lt_deplibs_check_method
20270
20271# Command to use when deplibs_check_method == file_magic.
20272file_magic_cmd=$lt_file_magic_cmd
20273
20274# Flag that allows shared libraries with undefined symbols to be built.
20275allow_undefined_flag=$lt_allow_undefined_flag_RC
20276
20277# Flag that forces no undefined symbols.
20278no_undefined_flag=$lt_no_undefined_flag_RC
20279
20280# Commands used to finish a libtool library installation in a directory.
20281finish_cmds=$lt_finish_cmds
20282
20283# Same as above, but a single script fragment to be evaled but not shown.
20284finish_eval=$lt_finish_eval
20285
20286# Take the output of nm and produce a listing of raw symbols and C names.
20287global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20288
20289# Transform the output of nm in a proper C declaration
20290global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20291
20292# Transform the output of nm in a C name address pair
20293global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20294
20295# This is the shared library runtime path variable.
20296runpath_var=$runpath_var
20297
20298# This is the shared library path variable.
20299shlibpath_var=$shlibpath_var
20300
20301# Is shlibpath searched before the hard-coded library search path?
20302shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20303
20304# How to hardcode a shared library path into an executable.
20305hardcode_action=$hardcode_action_RC
20306
20307# Whether we should hardcode library paths into libraries.
20308hardcode_into_libs=$hardcode_into_libs
20309
20310# Flag to hardcode \$libdir into a binary during linking.
20311# This must work even if \$libdir does not exist.
20312hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20313
20314# If ld is used when linking, flag to hardcode \$libdir into
20315# a binary during linking. This must work even if \$libdir does
20316# not exist.
20317hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20318
20319# Whether we need a single -rpath flag with a separated argument.
20320hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20321
20322# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20323# resulting binary.
20324hardcode_direct=$hardcode_direct_RC
20325
20326# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20327# resulting binary.
20328hardcode_minus_L=$hardcode_minus_L_RC
20329
20330# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20331# the resulting binary.
20332hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20333
20334# Set to yes if building a shared library automatically hardcodes DIR into the library
20335# and all subsequent libraries and executables linked against it.
20336hardcode_automatic=$hardcode_automatic_RC
20337
20338# Variables whose values should be saved in libtool wrapper scripts and
20339# restored at relink time.
20340variables_saved_for_relink="$variables_saved_for_relink"
20341
20342# Whether libtool must link a program against all its dependency libraries.
20343link_all_deplibs=$link_all_deplibs_RC
20344
20345# Compile-time system search path for libraries
20346sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20347
20348# Run-time system search path for libraries
20349sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20350
20351# Fix the shell variable \$srcfile for the compiler.
20352fix_srcfile_path="$fix_srcfile_path_RC"
20353
20354# Set to yes if exported symbols are required.
20355always_export_symbols=$always_export_symbols_RC
20356
20357# The commands to list exported symbols.
20358export_symbols_cmds=$lt_export_symbols_cmds_RC
20359
20360# The commands to extract the exported symbol list from a shared archive.
20361extract_expsyms_cmds=$lt_extract_expsyms_cmds
20362
20363# Symbols that should not be listed in the preloaded symbols.
20364exclude_expsyms=$lt_exclude_expsyms_RC
20365
20366# Symbols that must always be exported.
20367include_expsyms=$lt_include_expsyms_RC
20368
20369# ### END LIBTOOL TAG CONFIG: $tagname
20370
20371__EOF__
20372
20373
20374else
20375 # If there is no Makefile yet, we rely on a make rule to execute
20376 # `config.status --recheck' to rerun these tests and create the
20377 # libtool script then.
20378 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20379 if test -f "$ltmain_in"; then
20380 test -f Makefile && make "$ltmain"
20381 fi
20382fi
20383
20384
20385ac_ext=c
20386ac_cpp='$CPP $CPPFLAGS'
20387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389ac_compiler_gnu=$ac_cv_c_compiler_gnu
20390
20391CC="$lt_save_CC"
20392
20393 ;;
20394
20395 *)
20396 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20397echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20398 { (exit 1); exit 1; }; }
20399 ;;
20400 esac
20401
20402 # Append the new tag name to the list of available tags.
20403 if test -n "$tagname" ; then
20404 available_tags="$available_tags $tagname"
20405 fi
20406 fi
20407 done
20408 IFS="$lt_save_ifs"
20409
20410 # Now substitute the updated list of available tags.
20411 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20412 mv "${ofile}T" "$ofile"
20413 chmod +x "$ofile"
20414 else
20415 rm -f "${ofile}T"
20416 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20417echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20418 { (exit 1); exit 1; }; }
20419 fi
20420fi
20421
Lev Walkinf15320b2004-06-03 03:38:44 +000020422
20423
20424# This can be used to rebuild libtool when needed
Lev Walkin8e8b5482004-06-17 23:42:48 +000020425LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
Lev Walkinf15320b2004-06-03 03:38:44 +000020426
20427# Always use our own libtool.
20428LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20429
Lev Walkin8e8b5482004-06-17 23:42:48 +000020430# Prevent multiple expansion
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
Lev Walkinf15320b2004-06-03 03:38:44 +000020450
20451
Lev Walkin27fd0b62007-08-27 23:57:45 +000020452# Check whether --enable-autoconf was given.
Lev Walkinf15320b2004-06-03 03:38:44 +000020453if test "${enable_autoconf+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020454 enableval=$enable_autoconf; enable_autoconf=$enableval
Lev Walkinf15320b2004-06-03 03:38:44 +000020455else
20456 enable_autoconf=yes
20457
Lev Walkin27fd0b62007-08-27 23:57:45 +000020458fi
20459
Lev Walkinf15320b2004-06-03 03:38:44 +000020460# Extract the first word of "autoconf", so it can be a program name with args.
20461set dummy autoconf; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000020462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020464if test "${ac_cv_path_AUTOCONF+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20466else
20467 case $AUTOCONF in
20468 [\\/]* | ?:[\\/]*)
20469 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
20470 ;;
20471 *)
20472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20473for as_dir in $PATH
20474do
20475 IFS=$as_save_IFS
20476 test -z "$as_dir" && as_dir=.
20477 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000020478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000020479 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
20480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20481 break 2
20482 fi
20483done
20484done
Lev Walkin27fd0b62007-08-27 23:57:45 +000020485IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000020486
20487 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available"
20488 ;;
20489esac
20490fi
20491AUTOCONF=$ac_cv_path_AUTOCONF
Lev Walkinf15320b2004-06-03 03:38:44 +000020492if test -n "$AUTOCONF"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020493 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
20494echo "${ECHO_T}$AUTOCONF" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020495else
Lev Walkin27fd0b62007-08-27 23:57:45 +000020496 { echo "$as_me:$LINENO: result: no" >&5
20497echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020498fi
20499
Lev Walkin27fd0b62007-08-27 23:57:45 +000020500
Lev Walkinf15320b2004-06-03 03:38:44 +000020501# Extract the first word of "autoheader", so it can be a program name with args.
20502set dummy autoheader; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000020503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020505if test "${ac_cv_path_AUTOHEADER+set}" = set; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20507else
20508 case $AUTOHEADER in
20509 [\\/]* | ?:[\\/]*)
20510 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
20511 ;;
20512 *)
20513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20514for as_dir in $PATH
20515do
20516 IFS=$as_save_IFS
20517 test -z "$as_dir" && as_dir=.
20518 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000020519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000020520 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
20521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20522 break 2
20523 fi
20524done
20525done
Lev Walkin27fd0b62007-08-27 23:57:45 +000020526IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000020527
20528 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available"
20529 ;;
20530esac
20531fi
20532AUTOHEADER=$ac_cv_path_AUTOHEADER
Lev Walkinf15320b2004-06-03 03:38:44 +000020533if test -n "$AUTOHEADER"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020534 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
20535echo "${ECHO_T}$AUTOHEADER" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020536else
Lev Walkin27fd0b62007-08-27 23:57:45 +000020537 { echo "$as_me:$LINENO: result: no" >&5
20538echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020539fi
20540
Lev Walkin27fd0b62007-08-27 23:57:45 +000020541
Lev Walkinf15320b2004-06-03 03:38:44 +000020542if test -z "$AUTOCONF"; then enable_autoconf=no ; fi
20543if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi
20544if test x$enable_autoconf = xyes; then
20545 CONFIGURE_DEPENDS="configure.in aclocal.m4"
20546fi
20547
20548
20549ac_ext=c
20550ac_cpp='$CPP $CPPFLAGS'
20551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20553ac_compiler_gnu=$ac_cv_c_compiler_gnu
20554if test -n "$ac_tool_prefix"; then
20555 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20556set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000020557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020559if test "${ac_cv_prog_CC+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20561else
20562 if test -n "$CC"; then
20563 ac_cv_prog_CC="$CC" # Let the user override the test.
20564else
20565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20566for as_dir in $PATH
20567do
20568 IFS=$as_save_IFS
20569 test -z "$as_dir" && as_dir=.
20570 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000020571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000020572 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20574 break 2
20575 fi
20576done
20577done
Lev Walkin27fd0b62007-08-27 23:57:45 +000020578IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000020579
20580fi
20581fi
20582CC=$ac_cv_prog_CC
20583if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020584 { echo "$as_me:$LINENO: result: $CC" >&5
20585echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020586else
Lev Walkin27fd0b62007-08-27 23:57:45 +000020587 { echo "$as_me:$LINENO: result: no" >&5
20588echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020589fi
20590
Lev Walkin27fd0b62007-08-27 23:57:45 +000020591
Lev Walkinf15320b2004-06-03 03:38:44 +000020592fi
20593if test -z "$ac_cv_prog_CC"; then
20594 ac_ct_CC=$CC
20595 # Extract the first word of "gcc", so it can be a program name with args.
20596set dummy gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000020597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020599if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601else
20602 if test -n "$ac_ct_CC"; then
20603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20604else
20605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20606for as_dir in $PATH
20607do
20608 IFS=$as_save_IFS
20609 test -z "$as_dir" && as_dir=.
20610 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000020611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000020612 ac_cv_prog_ac_ct_CC="gcc"
20613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20614 break 2
20615 fi
20616done
20617done
Lev Walkin27fd0b62007-08-27 23:57:45 +000020618IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000020619
20620fi
20621fi
20622ac_ct_CC=$ac_cv_prog_ac_ct_CC
20623if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020624 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20625echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020626else
Lev Walkin27fd0b62007-08-27 23:57:45 +000020627 { echo "$as_me:$LINENO: result: no" >&5
20628echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020629fi
20630
Lev Walkin27fd0b62007-08-27 23:57:45 +000020631 if test "x$ac_ct_CC" = x; then
20632 CC=""
20633 else
20634 case $cross_compiling:$ac_tool_warned in
20635yes:)
20636{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20637whose name does not start with the host triplet. If you think this
20638configuration is useful to you, please write to autoconf@gnu.org." >&5
20639echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20640whose name does not start with the host triplet. If you think this
20641configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20642ac_tool_warned=yes ;;
20643esac
20644 CC=$ac_ct_CC
20645 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000020646else
20647 CC="$ac_cv_prog_CC"
20648fi
20649
20650if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020651 if test -n "$ac_tool_prefix"; then
20652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +000020653set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000020654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020656if test "${ac_cv_prog_CC+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20658else
20659 if test -n "$CC"; then
20660 ac_cv_prog_CC="$CC" # Let the user override the test.
20661else
20662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20663for as_dir in $PATH
20664do
20665 IFS=$as_save_IFS
20666 test -z "$as_dir" && as_dir=.
20667 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000020668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000020669 ac_cv_prog_CC="${ac_tool_prefix}cc"
20670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20671 break 2
20672 fi
20673done
20674done
Lev Walkin27fd0b62007-08-27 23:57:45 +000020675IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000020676
20677fi
20678fi
20679CC=$ac_cv_prog_CC
20680if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020681 { echo "$as_me:$LINENO: result: $CC" >&5
20682echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020683else
Lev Walkin27fd0b62007-08-27 23:57:45 +000020684 { echo "$as_me:$LINENO: result: no" >&5
20685echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020686fi
20687
Lev Walkin27fd0b62007-08-27 23:57:45 +000020688
Lev Walkinf15320b2004-06-03 03:38:44 +000020689 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000020690fi
20691if test -z "$CC"; then
20692 # Extract the first word of "cc", so it can be a program name with args.
20693set dummy cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000020694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020696if test "${ac_cv_prog_CC+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20698else
20699 if test -n "$CC"; then
20700 ac_cv_prog_CC="$CC" # Let the user override the test.
20701else
20702 ac_prog_rejected=no
20703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20704for as_dir in $PATH
20705do
20706 IFS=$as_save_IFS
20707 test -z "$as_dir" && as_dir=.
20708 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000020709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000020710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20711 ac_prog_rejected=yes
20712 continue
20713 fi
20714 ac_cv_prog_CC="cc"
20715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20716 break 2
20717 fi
20718done
20719done
Lev Walkin27fd0b62007-08-27 23:57:45 +000020720IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000020721
20722if test $ac_prog_rejected = yes; then
20723 # We found a bogon in the path, so make sure we never use it.
20724 set dummy $ac_cv_prog_CC
20725 shift
20726 if test $# != 0; then
20727 # We chose a different compiler from the bogus one.
20728 # However, it has the same basename, so the bogon will be chosen
20729 # first if we set CC to just the basename; use the full file name.
20730 shift
20731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20732 fi
20733fi
20734fi
20735fi
20736CC=$ac_cv_prog_CC
20737if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020738 { echo "$as_me:$LINENO: result: $CC" >&5
20739echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020740else
Lev Walkin27fd0b62007-08-27 23:57:45 +000020741 { echo "$as_me:$LINENO: result: no" >&5
20742echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020743fi
20744
Lev Walkin27fd0b62007-08-27 23:57:45 +000020745
Lev Walkinf15320b2004-06-03 03:38:44 +000020746fi
20747if test -z "$CC"; then
20748 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020749 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000020750 do
20751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20752set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000020753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020755if test "${ac_cv_prog_CC+set}" = set; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20757else
20758 if test -n "$CC"; then
20759 ac_cv_prog_CC="$CC" # Let the user override the test.
20760else
20761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20762for as_dir in $PATH
20763do
20764 IFS=$as_save_IFS
20765 test -z "$as_dir" && as_dir=.
20766 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000020767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000020768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20770 break 2
20771 fi
20772done
20773done
Lev Walkin27fd0b62007-08-27 23:57:45 +000020774IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000020775
20776fi
20777fi
20778CC=$ac_cv_prog_CC
20779if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020780 { echo "$as_me:$LINENO: result: $CC" >&5
20781echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020782else
Lev Walkin27fd0b62007-08-27 23:57:45 +000020783 { echo "$as_me:$LINENO: result: no" >&5
20784echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020785fi
20786
Lev Walkin27fd0b62007-08-27 23:57:45 +000020787
Lev Walkinf15320b2004-06-03 03:38:44 +000020788 test -n "$CC" && break
20789 done
20790fi
20791if test -z "$CC"; then
20792 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +000020793 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000020794do
20795 # Extract the first word of "$ac_prog", so it can be a program name with args.
20796set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000020797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020799if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801else
20802 if test -n "$ac_ct_CC"; then
20803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20804else
20805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20806for as_dir in $PATH
20807do
20808 IFS=$as_save_IFS
20809 test -z "$as_dir" && as_dir=.
20810 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000020811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000020812 ac_cv_prog_ac_ct_CC="$ac_prog"
20813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20814 break 2
20815 fi
20816done
20817done
Lev Walkin27fd0b62007-08-27 23:57:45 +000020818IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000020819
20820fi
20821fi
20822ac_ct_CC=$ac_cv_prog_ac_ct_CC
20823if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000020824 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20825echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020826else
Lev Walkin27fd0b62007-08-27 23:57:45 +000020827 { echo "$as_me:$LINENO: result: no" >&5
20828echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020829fi
20830
Lev Walkin27fd0b62007-08-27 23:57:45 +000020831
Lev Walkinf15320b2004-06-03 03:38:44 +000020832 test -n "$ac_ct_CC" && break
20833done
20834
Lev Walkin27fd0b62007-08-27 23:57:45 +000020835 if test "x$ac_ct_CC" = x; then
20836 CC=""
20837 else
20838 case $cross_compiling:$ac_tool_warned in
20839yes:)
20840{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20841whose name does not start with the host triplet. If you think this
20842configuration is useful to you, please write to autoconf@gnu.org." >&5
20843echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20844whose name does not start with the host triplet. If you think this
20845configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20846ac_tool_warned=yes ;;
20847esac
20848 CC=$ac_ct_CC
20849 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000020850fi
20851
20852fi
20853
20854
20855test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20856See \`config.log' for more details." >&5
20857echo "$as_me: error: no acceptable C compiler found in \$PATH
20858See \`config.log' for more details." >&2;}
20859 { (exit 1); exit 1; }; }
20860
20861# Provide some information about the compiler.
Lev Walkin27fd0b62007-08-27 23:57:45 +000020862echo "$as_me:$LINENO: checking for C compiler version" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000020863ac_compiler=`set X $ac_compile; echo $2`
Lev Walkin27fd0b62007-08-27 23:57:45 +000020864{ (ac_try="$ac_compiler --version >&5"
20865case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20868esac
20869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000020871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +000020874{ (ac_try="$ac_compiler -v >&5"
20875case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20878esac
20879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000020881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +000020884{ (ac_try="$ac_compiler -V >&5"
20885case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888esac
20889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000020891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }
20894
Lev Walkin27fd0b62007-08-27 23:57:45 +000020895{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20896echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020897if test "${ac_cv_c_compiler_gnu+set}" = set; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
20899else
20900 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000020901/* confdefs.h. */
20902_ACEOF
20903cat confdefs.h >>conftest.$ac_ext
20904cat >>conftest.$ac_ext <<_ACEOF
20905/* end confdefs.h. */
20906
20907int
20908main ()
20909{
20910#ifndef __GNUC__
20911 choke me
20912#endif
20913
20914 ;
20915 return 0;
20916}
20917_ACEOF
20918rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000020919if { (ac_try="$ac_compile"
20920case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20923esac
20924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000020926 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000020927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000020930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000020932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20933 { (case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20936esac
20937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000020939 ac_status=$?
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; } &&
20942 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000020943 { (case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20946esac
20947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000020949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_compiler_gnu=yes
20953else
20954 echo "$as_me: failed program was:" >&5
20955sed 's/^/| /' conftest.$ac_ext >&5
20956
Lev Walkin27fd0b62007-08-27 23:57:45 +000020957 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +000020958fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000020959
20960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000020961ac_cv_c_compiler_gnu=$ac_compiler_gnu
20962
20963fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000020964{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20965echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020966GCC=`test $ac_compiler_gnu = yes && echo yes`
20967ac_test_CFLAGS=${CFLAGS+set}
20968ac_save_CFLAGS=$CFLAGS
Lev Walkin27fd0b62007-08-27 23:57:45 +000020969{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20970echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000020971if test "${ac_cv_prog_cc_g+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973else
Lev Walkin27fd0b62007-08-27 23:57:45 +000020974 ac_save_c_werror_flag=$ac_c_werror_flag
20975 ac_c_werror_flag=yes
20976 ac_cv_prog_cc_g=no
20977 CFLAGS="-g"
20978 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000020979/* confdefs.h. */
20980_ACEOF
20981cat confdefs.h >>conftest.$ac_ext
20982cat >>conftest.$ac_ext <<_ACEOF
20983/* end confdefs.h. */
20984
20985int
20986main ()
20987{
20988
20989 ;
20990 return 0;
20991}
20992_ACEOF
20993rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000020994if { (ac_try="$ac_compile"
20995case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20998esac
20999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021001 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021002 grep -v '^ *+' conftest.er1 >conftest.err
21003 rm -f conftest.er1
21004 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000021007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21008 { (case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21011esac
21012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000021018 { (case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21021esac
21022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 ac_cv_prog_cc_g=yes
21028else
21029 echo "$as_me: failed program was:" >&5
21030sed 's/^/| /' conftest.$ac_ext >&5
21031
Lev Walkin27fd0b62007-08-27 23:57:45 +000021032 CFLAGS=""
21033 cat >conftest.$ac_ext <<_ACEOF
21034/* confdefs.h. */
21035_ACEOF
21036cat confdefs.h >>conftest.$ac_ext
21037cat >>conftest.$ac_ext <<_ACEOF
21038/* end confdefs.h. */
21039
21040int
21041main ()
21042{
21043
21044 ;
21045 return 0;
21046}
21047_ACEOF
21048rm -f conftest.$ac_objext
21049if { (ac_try="$ac_compile"
21050case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21053esac
21054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21055 (eval "$ac_compile") 2>conftest.er1
21056 ac_status=$?
21057 grep -v '^ *+' conftest.er1 >conftest.err
21058 rm -f conftest.er1
21059 cat conftest.err >&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
21062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21063 { (case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066esac
21067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_try") 2>&5
21069 ac_status=$?
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; } &&
21072 { ac_try='test -s conftest.$ac_objext'
21073 { (case "(($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_try") 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; }; then
21082 :
21083else
21084 echo "$as_me: failed program was:" >&5
21085sed 's/^/| /' conftest.$ac_ext >&5
21086
21087 ac_c_werror_flag=$ac_save_c_werror_flag
21088 CFLAGS="-g"
21089 cat >conftest.$ac_ext <<_ACEOF
21090/* confdefs.h. */
21091_ACEOF
21092cat confdefs.h >>conftest.$ac_ext
21093cat >>conftest.$ac_ext <<_ACEOF
21094/* end confdefs.h. */
21095
21096int
21097main ()
21098{
21099
21100 ;
21101 return 0;
21102}
21103_ACEOF
21104rm -f conftest.$ac_objext
21105if { (ac_try="$ac_compile"
21106case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109esac
21110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_compile") 2>conftest.er1
21112 ac_status=$?
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } &&
21118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21119 { (case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21122esac
21123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124 (eval "$ac_try") 2>&5
21125 ac_status=$?
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; } &&
21128 { ac_try='test -s conftest.$ac_objext'
21129 { (case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21132esac
21133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_try") 2>&5
21135 ac_status=$?
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); }; }; then
21138 ac_cv_prog_cc_g=yes
21139else
21140 echo "$as_me: failed program was:" >&5
21141sed 's/^/| /' conftest.$ac_ext >&5
21142
21143
Lev Walkinf15320b2004-06-03 03:38:44 +000021144fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021145
21146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021147fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021148
21149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150fi
21151
21152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21153 ac_c_werror_flag=$ac_save_c_werror_flag
21154fi
21155{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
21156echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021157if test "$ac_test_CFLAGS" = set; then
21158 CFLAGS=$ac_save_CFLAGS
21159elif test $ac_cv_prog_cc_g = yes; then
21160 if test "$GCC" = yes; then
21161 CFLAGS="-g -O2"
21162 else
21163 CFLAGS="-g"
21164 fi
21165else
21166 if test "$GCC" = yes; then
21167 CFLAGS="-O2"
21168 else
21169 CFLAGS=
21170 fi
21171fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021172{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
21173echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
21174if test "${ac_cv_prog_cc_c89+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +000021175 echo $ECHO_N "(cached) $ECHO_C" >&6
21176else
Lev Walkin27fd0b62007-08-27 23:57:45 +000021177 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +000021178ac_save_CC=$CC
21179cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021180/* confdefs.h. */
21181_ACEOF
21182cat confdefs.h >>conftest.$ac_ext
21183cat >>conftest.$ac_ext <<_ACEOF
21184/* end confdefs.h. */
21185#include <stdarg.h>
21186#include <stdio.h>
21187#include <sys/types.h>
21188#include <sys/stat.h>
21189/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
21190struct buf { int x; };
21191FILE * (*rcsopen) (struct buf *, struct stat *, int);
21192static char *e (p, i)
21193 char **p;
21194 int i;
21195{
21196 return p[i];
21197}
21198static char *f (char * (*g) (char **, int), char **p, ...)
21199{
21200 char *s;
21201 va_list v;
21202 va_start (v,p);
21203 s = g (p, va_arg (v,int));
21204 va_end (v);
21205 return s;
21206}
Lev Walkin8e8b5482004-06-17 23:42:48 +000021207
21208/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
21209 function prototypes and stuff, but not '\xHH' hex character constants.
21210 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +000021211 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +000021212 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
21213 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +000021214 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000021215int osf4_cc_array ['\x00' == 0 ? 1 : -1];
21216
Lev Walkin27fd0b62007-08-27 23:57:45 +000021217/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
21218 inside strings and character constants. */
21219#define FOO(x) 'x'
21220int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
21221
Lev Walkinf15320b2004-06-03 03:38:44 +000021222int test (int i, double x);
21223struct s1 {int (*f) (int a);};
21224struct s2 {int (*f) (double a);};
21225int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
21226int argc;
21227char **argv;
21228int
21229main ()
21230{
21231return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
21232 ;
21233 return 0;
21234}
21235_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000021236for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
21237 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +000021238do
21239 CC="$ac_save_CC $ac_arg"
21240 rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000021241if { (ac_try="$ac_compile"
21242case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21245esac
21246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021248 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000021254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21255 { (case "(($ac_try" in
21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257 *) ac_try_echo=$ac_try;;
21258esac
21259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021261 ac_status=$?
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; } &&
21264 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000021265 { (case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21268esac
21269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000021274 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +000021275else
21276 echo "$as_me: failed program was:" >&5
21277sed 's/^/| /' conftest.$ac_ext >&5
21278
Lev Walkin27fd0b62007-08-27 23:57:45 +000021279
Lev Walkinf15320b2004-06-03 03:38:44 +000021280fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021281
21282rm -f core conftest.err conftest.$ac_objext
21283 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000021284done
Lev Walkin27fd0b62007-08-27 23:57:45 +000021285rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021286CC=$ac_save_CC
21287
21288fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021289# AC_CACHE_VAL
21290case "x$ac_cv_prog_cc_c89" in
21291 x)
21292 { echo "$as_me:$LINENO: result: none needed" >&5
21293echo "${ECHO_T}none needed" >&6; } ;;
21294 xno)
21295 { echo "$as_me:$LINENO: result: unsupported" >&5
21296echo "${ECHO_T}unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000021297 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000021298 CC="$CC $ac_cv_prog_cc_c89"
21299 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
21300echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000021301esac
21302
Lev Walkinf15320b2004-06-03 03:38:44 +000021303
Lev Walkinf15320b2004-06-03 03:38:44 +000021304ac_ext=c
21305ac_cpp='$CPP $CPPFLAGS'
21306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308ac_compiler_gnu=$ac_cv_c_compiler_gnu
21309
21310depcc="$CC" am_compiler_list=
21311
Lev Walkin27fd0b62007-08-27 23:57:45 +000021312{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
21313echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021314if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21316else
21317 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21318 # We make a subdir and do the tests there. Otherwise we can end up
21319 # making bogus files that we don't know about and never remove. For
21320 # instance it was reported that on HP-UX the gcc test will end up
21321 # making a dummy file named `D' -- because `-MD' means `put the output
21322 # in D'.
21323 mkdir conftest.dir
21324 # Copy depcomp to subdir because otherwise we won't find it if we're
21325 # using a relative directory.
21326 cp "$am_depcomp" conftest.dir
21327 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000021328 # We will build objects and dependencies in a subdirectory because
21329 # it helps to detect inapplicable dependency modes. For instance
21330 # both Tru64's cc and ICC support -MD to output dependencies as a
21331 # side effect of compilation, but ICC will put the dependencies in
21332 # the current directory while Tru64 will put them in the object
21333 # directory.
21334 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000021335
21336 am_cv_CC_dependencies_compiler_type=none
21337 if test "$am_compiler_list" = ""; then
21338 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21339 fi
21340 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000021341 # Setup a source with many dependencies, because some compilers
21342 # like to wrap large dependency lists on column 80 (with \), and
21343 # we should not choose a depcomp mode which is confused by this.
21344 #
Lev Walkinf15320b2004-06-03 03:38:44 +000021345 # We need to recreate these files for each test, as the compiler may
21346 # overwrite some of them when testing with obscure command lines.
21347 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000021348 : > sub/conftest.c
21349 for i in 1 2 3 4 5 6; do
21350 echo '#include "conftst'$i'.h"' >> sub/conftest.c
21351 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21352 # Solaris 8's {/usr,}/bin/sh.
21353 touch sub/conftst$i.h
21354 done
21355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000021356
21357 case $depmode in
21358 nosideeffect)
21359 # after this tag, mechanisms are not by side-effect, so they'll
21360 # only be used when explicitly requested
21361 if test "x$enable_dependency_tracking" = xyes; then
21362 continue
21363 else
21364 break
21365 fi
21366 ;;
21367 none) break ;;
21368 esac
21369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
21370 # mode. It turns out that the SunPro C++ compiler does not properly
21371 # handle `-M -o', and we need to detect this.
21372 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +000021373 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21375 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21376 >/dev/null 2>conftest.err &&
21377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21378 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000021379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000021380 # icc doesn't choke on unknown options, it will just issue warnings
21381 # or remarks (even with -Werror). So we grep stderr for any message
21382 # that says an option was ignored or not supported.
21383 # When given -MP, icc 7.0 and 7.1 complain thusly:
21384 # icc: Command line warning: ignoring option '-M'; no argument required
21385 # The diagnosis changed in icc 8.0:
21386 # icc: Command line remark: option '-MP' not supported
21387 if (grep 'ignoring option' conftest.err ||
21388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21389 am_cv_CC_dependencies_compiler_type=$depmode
21390 break
21391 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000021392 fi
21393 done
21394
21395 cd ..
21396 rm -rf conftest.dir
21397else
21398 am_cv_CC_dependencies_compiler_type=none
21399fi
21400
21401fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021402{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
21403echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000021404CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
21405
21406
21407
21408if
21409 test "x$enable_dependency_tracking" != xno \
21410 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
21411 am__fastdepCC_TRUE=
21412 am__fastdepCC_FALSE='#'
21413else
21414 am__fastdepCC_TRUE='#'
21415 am__fastdepCC_FALSE=
21416fi
Lev Walkinf15320b2004-06-03 03:38:44 +000021417
21418
21419ac_ext=c
21420ac_cpp='$CPP $CPPFLAGS'
21421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21423ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkin27fd0b62007-08-27 23:57:45 +000021424{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21425echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021426# On Suns, sometimes $CPP names a directory.
21427if test -n "$CPP" && test -d "$CPP"; then
21428 CPP=
21429fi
21430if test -z "$CPP"; then
21431 if test "${ac_cv_prog_CPP+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21433else
21434 # Double quotes because CPP needs to be expanded
21435 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21436 do
21437 ac_preproc_ok=false
21438for ac_c_preproc_warn_flag in '' yes
21439do
21440 # Use a header file that comes with gcc, so configuring glibc
21441 # with a fresh cross-compiler works.
21442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21443 # <limits.h> exists even on freestanding compilers.
21444 # On the NeXT, cc -E runs the code through the compiler's parser,
21445 # not just through cpp. "Syntax error" is here to catch this case.
21446 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021447/* confdefs.h. */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
21451/* end confdefs.h. */
21452#ifdef __STDC__
21453# include <limits.h>
21454#else
21455# include <assert.h>
21456#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000021457 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000021458_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000021459if { (ac_try="$ac_cpp conftest.$ac_ext"
21460case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21463esac
21464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021466 ac_status=$?
21467 grep -v '^ *+' conftest.er1 >conftest.err
21468 rm -f conftest.er1
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } >/dev/null; then
21472 if test -s conftest.err; then
21473 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000021474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000021475 else
21476 ac_cpp_err=
21477 fi
21478else
21479 ac_cpp_err=yes
21480fi
21481if test -z "$ac_cpp_err"; then
21482 :
21483else
21484 echo "$as_me: failed program was:" >&5
21485sed 's/^/| /' conftest.$ac_ext >&5
21486
21487 # Broken: fails on valid input.
21488continue
21489fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021490
Lev Walkinf15320b2004-06-03 03:38:44 +000021491rm -f conftest.err conftest.$ac_ext
21492
Lev Walkin27fd0b62007-08-27 23:57:45 +000021493 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000021494 # can be detected and how.
21495 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021496/* confdefs.h. */
21497_ACEOF
21498cat confdefs.h >>conftest.$ac_ext
21499cat >>conftest.$ac_ext <<_ACEOF
21500/* end confdefs.h. */
21501#include <ac_nonexistent.h>
21502_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000021503if { (ac_try="$ac_cpp conftest.$ac_ext"
21504case "(($ac_try" in
21505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506 *) ac_try_echo=$ac_try;;
21507esac
21508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021510 ac_status=$?
21511 grep -v '^ *+' conftest.er1 >conftest.err
21512 rm -f conftest.er1
21513 cat conftest.err >&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } >/dev/null; then
21516 if test -s conftest.err; then
21517 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000021518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000021519 else
21520 ac_cpp_err=
21521 fi
21522else
21523 ac_cpp_err=yes
21524fi
21525if test -z "$ac_cpp_err"; then
21526 # Broken: success on invalid input.
21527continue
21528else
21529 echo "$as_me: failed program was:" >&5
21530sed 's/^/| /' conftest.$ac_ext >&5
21531
21532 # Passes both tests.
21533ac_preproc_ok=:
21534break
21535fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021536
Lev Walkinf15320b2004-06-03 03:38:44 +000021537rm -f conftest.err conftest.$ac_ext
21538
21539done
21540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21541rm -f conftest.err conftest.$ac_ext
21542if $ac_preproc_ok; then
21543 break
21544fi
21545
21546 done
21547 ac_cv_prog_CPP=$CPP
21548
21549fi
21550 CPP=$ac_cv_prog_CPP
21551else
21552 ac_cv_prog_CPP=$CPP
21553fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021554{ echo "$as_me:$LINENO: result: $CPP" >&5
21555echo "${ECHO_T}$CPP" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021556ac_preproc_ok=false
21557for ac_c_preproc_warn_flag in '' yes
21558do
21559 # Use a header file that comes with gcc, so configuring glibc
21560 # with a fresh cross-compiler works.
21561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21562 # <limits.h> exists even on freestanding compilers.
21563 # On the NeXT, cc -E runs the code through the compiler's parser,
21564 # not just through cpp. "Syntax error" is here to catch this case.
21565 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021566/* confdefs.h. */
21567_ACEOF
21568cat confdefs.h >>conftest.$ac_ext
21569cat >>conftest.$ac_ext <<_ACEOF
21570/* end confdefs.h. */
21571#ifdef __STDC__
21572# include <limits.h>
21573#else
21574# include <assert.h>
21575#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000021576 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000021577_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000021578if { (ac_try="$ac_cpp conftest.$ac_ext"
21579case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21582esac
21583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021585 ac_status=$?
21586 grep -v '^ *+' conftest.er1 >conftest.err
21587 rm -f conftest.er1
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } >/dev/null; then
21591 if test -s conftest.err; then
21592 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000021593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000021594 else
21595 ac_cpp_err=
21596 fi
21597else
21598 ac_cpp_err=yes
21599fi
21600if test -z "$ac_cpp_err"; then
21601 :
21602else
21603 echo "$as_me: failed program was:" >&5
21604sed 's/^/| /' conftest.$ac_ext >&5
21605
21606 # Broken: fails on valid input.
21607continue
21608fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021609
Lev Walkinf15320b2004-06-03 03:38:44 +000021610rm -f conftest.err conftest.$ac_ext
21611
Lev Walkin27fd0b62007-08-27 23:57:45 +000021612 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000021613 # can be detected and how.
21614 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
21620#include <ac_nonexistent.h>
21621_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000021622if { (ac_try="$ac_cpp conftest.$ac_ext"
21623case "(($ac_try" in
21624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625 *) ac_try_echo=$ac_try;;
21626esac
21627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } >/dev/null; then
21635 if test -s conftest.err; then
21636 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000021637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000021638 else
21639 ac_cpp_err=
21640 fi
21641else
21642 ac_cpp_err=yes
21643fi
21644if test -z "$ac_cpp_err"; then
21645 # Broken: success on invalid input.
21646continue
21647else
21648 echo "$as_me: failed program was:" >&5
21649sed 's/^/| /' conftest.$ac_ext >&5
21650
21651 # Passes both tests.
21652ac_preproc_ok=:
21653break
21654fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021655
Lev Walkinf15320b2004-06-03 03:38:44 +000021656rm -f conftest.err conftest.$ac_ext
21657
21658done
21659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21660rm -f conftest.err conftest.$ac_ext
21661if $ac_preproc_ok; then
21662 :
21663else
21664 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21665See \`config.log' for more details." >&5
21666echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21667See \`config.log' for more details." >&2;}
21668 { (exit 1); exit 1; }; }
21669fi
21670
21671ac_ext=c
21672ac_cpp='$CPP $CPPFLAGS'
21673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21675ac_compiler_gnu=$ac_cv_c_compiler_gnu
21676
21677# Find a good install program. We prefer a C program (faster),
21678# so one script is as good as another. But avoid the broken or
21679# incompatible versions:
21680# SysV /etc/install, /usr/sbin/install
21681# SunOS /usr/etc/install
21682# IRIX /sbin/install
21683# AIX /bin/install
21684# AmigaOS /C/install, which installs bootblocks on floppy discs
21685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
21686# AFS /usr/afsws/bin/install, which mishandles nonexistent args
21687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +000021688# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +000021689# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkin27fd0b62007-08-27 23:57:45 +000021690{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
21691echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021692if test -z "$INSTALL"; then
21693if test "${ac_cv_path_install+set}" = set; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21695else
21696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21697for as_dir in $PATH
21698do
21699 IFS=$as_save_IFS
21700 test -z "$as_dir" && as_dir=.
21701 # Account for people who put trailing slashes in PATH elements.
21702case $as_dir/ in
21703 ./ | .// | /cC/* | \
21704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +000021705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +000021706 /usr/ucb/* ) ;;
21707 *)
21708 # OSF1 and SCO ODT 3.0 have their own names for install.
21709 # Don't use installbsd from OSF since it installs stuff as root
21710 # by default.
21711 for ac_prog in ginstall scoinst install; do
21712 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000021713 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000021714 if test $ac_prog = install &&
21715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21716 # AIX install. It has an incompatible calling convention.
21717 :
21718 elif test $ac_prog = install &&
21719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21720 # program-specific install script used by HP pwplus--don't use.
21721 :
21722 else
21723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21724 break 3
21725 fi
21726 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000021727 done
21728 done
21729 ;;
21730esac
21731done
Lev Walkin27fd0b62007-08-27 23:57:45 +000021732IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000021733
21734
21735fi
21736 if test "${ac_cv_path_install+set}" = set; then
21737 INSTALL=$ac_cv_path_install
21738 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000021739 # As a last resort, use the slow shell script. Don't cache a
21740 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +000021741 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +000021742 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +000021743 INSTALL=$ac_install_sh
21744 fi
21745fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021746{ echo "$as_me:$LINENO: result: $INSTALL" >&5
21747echo "${ECHO_T}$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021748
21749# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
21750# It thinks the first close brace ends the variable substitution.
21751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
21752
21753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
21754
21755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
21756
Lev Walkin27fd0b62007-08-27 23:57:45 +000021757{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
21758echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021759LN_S=$as_ln_s
21760if test "$LN_S" = "ln -s"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000021761 { echo "$as_me:$LINENO: result: yes" >&5
21762echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021763else
Lev Walkin27fd0b62007-08-27 23:57:45 +000021764 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
21765echo "${ECHO_T}no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021766fi
21767
Lev Walkin27fd0b62007-08-27 23:57:45 +000021768{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
21769echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
21770set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
21771if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000021772 echo $ECHO_N "(cached) $ECHO_C" >&6
21773else
21774 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000021775SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +000021776all:
Lev Walkin27fd0b62007-08-27 23:57:45 +000021777 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +000021778_ACEOF
21779# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +000021780case `${MAKE-make} -f conftest.make 2>/dev/null` in
21781 *@@@%%%=?*=@@@%%%*)
21782 eval ac_cv_prog_make_${ac_make}_set=yes;;
21783 *)
21784 eval ac_cv_prog_make_${ac_make}_set=no;;
21785esac
Lev Walkinf15320b2004-06-03 03:38:44 +000021786rm -f conftest.make
21787fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021788if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
21789 { echo "$as_me:$LINENO: result: yes" >&5
21790echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021791 SET_MAKE=
21792else
Lev Walkin27fd0b62007-08-27 23:57:45 +000021793 { echo "$as_me:$LINENO: result: no" >&5
21794echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021795 SET_MAKE="MAKE=${MAKE-make}"
21796fi
21797
21798for ac_prog in 'bison -y' byacc
21799do
21800 # Extract the first word of "$ac_prog", so it can be a program name with args.
21801set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000021802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021804if test "${ac_cv_prog_YACC+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21806else
21807 if test -n "$YACC"; then
21808 ac_cv_prog_YACC="$YACC" # Let the user override the test.
21809else
21810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21811for as_dir in $PATH
21812do
21813 IFS=$as_save_IFS
21814 test -z "$as_dir" && as_dir=.
21815 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000021816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000021817 ac_cv_prog_YACC="$ac_prog"
21818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21819 break 2
21820 fi
21821done
21822done
Lev Walkin27fd0b62007-08-27 23:57:45 +000021823IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000021824
21825fi
21826fi
21827YACC=$ac_cv_prog_YACC
21828if test -n "$YACC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000021829 { echo "$as_me:$LINENO: result: $YACC" >&5
21830echo "${ECHO_T}$YACC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021831else
Lev Walkin27fd0b62007-08-27 23:57:45 +000021832 { echo "$as_me:$LINENO: result: no" >&5
21833echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021834fi
21835
Lev Walkin27fd0b62007-08-27 23:57:45 +000021836
Lev Walkinf15320b2004-06-03 03:38:44 +000021837 test -n "$YACC" && break
21838done
21839test -n "$YACC" || YACC="yacc"
21840
Lev Walkinf15320b2004-06-03 03:38:44 +000021841for ac_prog in flex lex
21842do
21843 # Extract the first word of "$ac_prog", so it can be a program name with args.
21844set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000021845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021847if test "${ac_cv_prog_LEX+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21849else
21850 if test -n "$LEX"; then
21851 ac_cv_prog_LEX="$LEX" # Let the user override the test.
21852else
21853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21854for as_dir in $PATH
21855do
21856 IFS=$as_save_IFS
21857 test -z "$as_dir" && as_dir=.
21858 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000021859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000021860 ac_cv_prog_LEX="$ac_prog"
21861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21862 break 2
21863 fi
21864done
21865done
Lev Walkin27fd0b62007-08-27 23:57:45 +000021866IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000021867
21868fi
21869fi
21870LEX=$ac_cv_prog_LEX
21871if test -n "$LEX"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000021872 { echo "$as_me:$LINENO: result: $LEX" >&5
21873echo "${ECHO_T}$LEX" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021874else
Lev Walkin27fd0b62007-08-27 23:57:45 +000021875 { echo "$as_me:$LINENO: result: no" >&5
21876echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021877fi
21878
Lev Walkin27fd0b62007-08-27 23:57:45 +000021879
Lev Walkinf15320b2004-06-03 03:38:44 +000021880 test -n "$LEX" && break
21881done
21882test -n "$LEX" || LEX=":"
21883
21884if test -z "$LEXLIB"
21885then
Lev Walkin27fd0b62007-08-27 23:57:45 +000021886 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
21887echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021888if test "${ac_cv_lib_fl_yywrap+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890else
21891 ac_check_lib_save_LIBS=$LIBS
21892LIBS="-lfl $LIBS"
21893cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021894/* confdefs.h. */
21895_ACEOF
21896cat confdefs.h >>conftest.$ac_ext
21897cat >>conftest.$ac_ext <<_ACEOF
21898/* end confdefs.h. */
21899
Lev Walkin27fd0b62007-08-27 23:57:45 +000021900/* Override any GCC internal prototype to avoid an error.
21901 Use char because int might match the return type of a GCC
21902 builtin and then its argument prototype would still apply. */
Lev Walkinf15320b2004-06-03 03:38:44 +000021903#ifdef __cplusplus
21904extern "C"
21905#endif
Lev Walkinf15320b2004-06-03 03:38:44 +000021906char yywrap ();
21907int
21908main ()
21909{
Lev Walkin27fd0b62007-08-27 23:57:45 +000021910return yywrap ();
Lev Walkinf15320b2004-06-03 03:38:44 +000021911 ;
21912 return 0;
21913}
21914_ACEOF
21915rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000021916if { (ac_try="$ac_link"
21917case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21920esac
21921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021923 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021924 grep -v '^ *+' conftest.er1 >conftest.err
21925 rm -f conftest.er1
21926 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000021929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21930 { (case "(($ac_try" in
21931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932 *) ac_try_echo=$ac_try;;
21933esac
21934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21935 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021936 ac_status=$?
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; } &&
21939 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000021940 { (case "(($ac_try" in
21941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942 *) ac_try_echo=$ac_try;;
21943esac
21944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021946 ac_status=$?
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; }; then
21949 ac_cv_lib_fl_yywrap=yes
21950else
21951 echo "$as_me: failed program was:" >&5
21952sed 's/^/| /' conftest.$ac_ext >&5
21953
Lev Walkin27fd0b62007-08-27 23:57:45 +000021954 ac_cv_lib_fl_yywrap=no
Lev Walkinf15320b2004-06-03 03:38:44 +000021955fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021956
21957rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000021958 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021959LIBS=$ac_check_lib_save_LIBS
21960fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000021961{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
21962echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021963if test $ac_cv_lib_fl_yywrap = yes; then
21964 LEXLIB="-lfl"
21965else
Lev Walkin27fd0b62007-08-27 23:57:45 +000021966 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
21967echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000021968if test "${ac_cv_lib_l_yywrap+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21970else
21971 ac_check_lib_save_LIBS=$LIBS
21972LIBS="-ll $LIBS"
21973cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021974/* confdefs.h. */
21975_ACEOF
21976cat confdefs.h >>conftest.$ac_ext
21977cat >>conftest.$ac_ext <<_ACEOF
21978/* end confdefs.h. */
21979
Lev Walkin27fd0b62007-08-27 23:57:45 +000021980/* Override any GCC internal prototype to avoid an error.
21981 Use char because int might match the return type of a GCC
21982 builtin and then its argument prototype would still apply. */
Lev Walkinf15320b2004-06-03 03:38:44 +000021983#ifdef __cplusplus
21984extern "C"
21985#endif
Lev Walkinf15320b2004-06-03 03:38:44 +000021986char yywrap ();
21987int
21988main ()
21989{
Lev Walkin27fd0b62007-08-27 23:57:45 +000021990return yywrap ();
Lev Walkinf15320b2004-06-03 03:38:44 +000021991 ;
21992 return 0;
21993}
21994_ACEOF
21995rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000021996if { (ac_try="$ac_link"
21997case "(($ac_try" in
21998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999 *) ac_try_echo=$ac_try;;
22000esac
22001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022003 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022004 grep -v '^ *+' conftest.er1 >conftest.err
22005 rm -f conftest.er1
22006 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000022009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22010 { (case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22013esac
22014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022016 ac_status=$?
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); }; } &&
22019 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000022020 { (case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22023esac
22024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; }; then
22029 ac_cv_lib_l_yywrap=yes
22030else
22031 echo "$as_me: failed program was:" >&5
22032sed 's/^/| /' conftest.$ac_ext >&5
22033
Lev Walkin27fd0b62007-08-27 23:57:45 +000022034 ac_cv_lib_l_yywrap=no
Lev Walkinf15320b2004-06-03 03:38:44 +000022035fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022036
22037rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000022038 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022039LIBS=$ac_check_lib_save_LIBS
22040fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022041{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
22042echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022043if test $ac_cv_lib_l_yywrap = yes; then
22044 LEXLIB="-ll"
22045fi
22046
22047fi
22048
22049fi
22050
22051if test "x$LEX" != "x:"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000022052 { echo "$as_me:$LINENO: checking lex output file root" >&5
22053echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022054if test "${ac_cv_prog_lex_root+set}" = set; then
22055 echo $ECHO_N "(cached) $ECHO_C" >&6
22056else
22057 # The minimal lex program is just a single line: %%. But some broken lexes
22058# (Solaris, I think it was) want two %% lines, so accommodate them.
22059cat >conftest.l <<_ACEOF
22060%%
22061%%
22062_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000022063{ (ac_try="$LEX conftest.l"
22064case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22067esac
22068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$LEX conftest.l") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022070 ac_status=$?
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }
22073if test -f lex.yy.c; then
22074 ac_cv_prog_lex_root=lex.yy
22075elif test -f lexyy.c; then
22076 ac_cv_prog_lex_root=lexyy
22077else
22078 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
22079echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
22080 { (exit 1); exit 1; }; }
22081fi
22082fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022083{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
22084echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022085rm -f conftest.l
22086LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
22087
Lev Walkin27fd0b62007-08-27 23:57:45 +000022088{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
22089echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022090if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
22091 echo $ECHO_N "(cached) $ECHO_C" >&6
22092else
22093 # POSIX says lex can declare yytext either as a pointer or an array; the
22094# default is implementation-dependent. Figure out which it is, since
22095# not all implementations provide the %pointer and %array declarations.
22096ac_cv_prog_lex_yytext_pointer=no
22097echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
22098ac_save_LIBS=$LIBS
22099LIBS="$LIBS $LEXLIB"
22100cat >conftest.$ac_ext <<_ACEOF
22101`cat $LEX_OUTPUT_ROOT.c`
22102_ACEOF
22103rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022104if { (ac_try="$ac_link"
22105case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22108esac
22109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022111 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022112 grep -v '^ *+' conftest.er1 >conftest.err
22113 rm -f conftest.er1
22114 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000022117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22118 { (case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22121esac
22122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; } &&
22127 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000022128 { (case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22131esac
22132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022134 ac_status=$?
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22137 ac_cv_prog_lex_yytext_pointer=yes
22138else
22139 echo "$as_me: failed program was:" >&5
22140sed 's/^/| /' conftest.$ac_ext >&5
22141
Lev Walkin27fd0b62007-08-27 23:57:45 +000022142
Lev Walkinf15320b2004-06-03 03:38:44 +000022143fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022144
22145rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000022146 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022147LIBS=$ac_save_LIBS
22148rm -f "${LEX_OUTPUT_ROOT}.c"
22149
22150fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022151{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
22152echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022153if test $ac_cv_prog_lex_yytext_pointer = yes; then
22154
22155cat >>confdefs.h <<\_ACEOF
22156#define YYTEXT_POINTER 1
22157_ACEOF
22158
22159fi
22160
22161fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022162if test "$LEX" = :; then
22163 LEX=${am_missing_run}flex
22164fi
Lev Walkinc10e06c2005-03-30 05:14:26 +000022165# Extract the first word of "ar", so it can be a program name with args.
22166set dummy ar; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000022167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000022169if test "${ac_cv_path_AR+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22171else
22172 case $AR in
22173 [\\/]* | ?:[\\/]*)
22174 ac_cv_path_AR="$AR" # Let the user override the test with a path.
22175 ;;
22176 *)
22177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22178as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
22179for as_dir in $as_dummy
22180do
22181 IFS=$as_save_IFS
22182 test -z "$as_dir" && as_dir=.
22183 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000022184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinc10e06c2005-03-30 05:14:26 +000022185 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
22186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22187 break 2
22188 fi
22189done
22190done
Lev Walkin27fd0b62007-08-27 23:57:45 +000022191IFS=$as_save_IFS
Lev Walkinc10e06c2005-03-30 05:14:26 +000022192
22193 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
22194 ;;
22195esac
22196fi
22197AR=$ac_cv_path_AR
Lev Walkinc10e06c2005-03-30 05:14:26 +000022198if test -n "$AR"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000022199 { echo "$as_me:$LINENO: result: $AR" >&5
22200echo "${ECHO_T}$AR" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000022201else
Lev Walkin27fd0b62007-08-27 23:57:45 +000022202 { echo "$as_me:$LINENO: result: no" >&5
22203echo "${ECHO_T}no" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000022204fi
Lev Walkinf15320b2004-06-03 03:38:44 +000022205
Lev Walkin27fd0b62007-08-27 23:57:45 +000022206
Lev Walkin5f869d02004-08-23 10:41:38 +000022207case "$host_os" in
Lev Walkin79432302006-03-18 06:39:49 +000022208cygwin)
Lev Walkin59ec6ac2006-03-18 06:25:40 +000022209 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000022210 *mingw*)
22211 CC="$CC -mno-cygwin"
22212 esac
22213 ;;
Lev Walkin59ec6ac2006-03-18 06:25:40 +000022214esac
22215
Lev Walkin27fd0b62007-08-27 23:57:45 +000022216# Check whether --enable-Werror was given.
Lev Walkin04c23172004-09-26 14:18:32 +000022217if test "${enable_Werror+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000022218 enableval=$enable_Werror; enable_werror=$enableval
Lev Walkin04c23172004-09-26 14:18:32 +000022219else
22220 enable_werror=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000022221fi
22222
Lev Walkin04c23172004-09-26 14:18:32 +000022223if test x$enable_werror = xyes; then
22224 ADD_CFLAGS="-Werror -W -Wpointer-arith"
22225fi
Lev Walkinf15320b2004-06-03 03:38:44 +000022226
22227
22228case "$GCC" in
22229 yes)
22230 CFLAGS="$CFLAGS -Wall"
22231 CFLAGS="$CFLAGS -Wshadow"
22232 CFLAGS="$CFLAGS -Wcast-qual"
22233 CFLAGS="$CFLAGS -Wcast-align"
Lev Walkin93636742004-09-26 13:16:33 +000022234 CFLAGS="$CFLAGS -Wchar-subscripts"
Lev Walkinf15320b2004-06-03 03:38:44 +000022235 CFLAGS="$CFLAGS -Wmissing-prototypes"
22236 CFLAGS="$CFLAGS -Wmissing-declarations"
Lev Walkinf15320b2004-06-03 03:38:44 +000022237 ;;
22238esac
22239
22240
Lev Walkin27fd0b62007-08-27 23:57:45 +000022241{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22242echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022243if test "${ac_cv_header_stdc+set}" = set; then
22244 echo $ECHO_N "(cached) $ECHO_C" >&6
22245else
22246 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022247/* confdefs.h. */
22248_ACEOF
22249cat confdefs.h >>conftest.$ac_ext
22250cat >>conftest.$ac_ext <<_ACEOF
22251/* end confdefs.h. */
22252#include <stdlib.h>
22253#include <stdarg.h>
22254#include <string.h>
22255#include <float.h>
22256
22257int
22258main ()
22259{
22260
22261 ;
22262 return 0;
22263}
22264_ACEOF
22265rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022266if { (ac_try="$ac_compile"
22267case "(($ac_try" in
22268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269 *) ac_try_echo=$ac_try;;
22270esac
22271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022273 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022274 grep -v '^ *+' conftest.er1 >conftest.err
22275 rm -f conftest.er1
22276 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000022279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22280 { (case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22283esac
22284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022286 ac_status=$?
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; } &&
22289 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000022290 { (case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22293esac
22294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 ac_cv_header_stdc=yes
22300else
22301 echo "$as_me: failed program was:" >&5
22302sed 's/^/| /' conftest.$ac_ext >&5
22303
Lev Walkin27fd0b62007-08-27 23:57:45 +000022304 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000022305fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022306
22307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022308
22309if test $ac_cv_header_stdc = yes; then
22310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22311 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022312/* confdefs.h. */
22313_ACEOF
22314cat confdefs.h >>conftest.$ac_ext
22315cat >>conftest.$ac_ext <<_ACEOF
22316/* end confdefs.h. */
22317#include <string.h>
22318
22319_ACEOF
22320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22321 $EGREP "memchr" >/dev/null 2>&1; then
22322 :
22323else
22324 ac_cv_header_stdc=no
22325fi
22326rm -f conftest*
22327
22328fi
22329
22330if test $ac_cv_header_stdc = yes; then
22331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22332 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022333/* confdefs.h. */
22334_ACEOF
22335cat confdefs.h >>conftest.$ac_ext
22336cat >>conftest.$ac_ext <<_ACEOF
22337/* end confdefs.h. */
22338#include <stdlib.h>
22339
22340_ACEOF
22341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22342 $EGREP "free" >/dev/null 2>&1; then
22343 :
22344else
22345 ac_cv_header_stdc=no
22346fi
22347rm -f conftest*
22348
22349fi
22350
22351if test $ac_cv_header_stdc = yes; then
22352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22353 if test "$cross_compiling" = yes; then
22354 :
22355else
22356 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022357/* confdefs.h. */
22358_ACEOF
22359cat confdefs.h >>conftest.$ac_ext
22360cat >>conftest.$ac_ext <<_ACEOF
22361/* end confdefs.h. */
22362#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +000022363#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000022364#if ((' ' & 0x0FF) == 0x020)
22365# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22366# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22367#else
22368# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000022369 (('a' <= (c) && (c) <= 'i') \
22370 || ('j' <= (c) && (c) <= 'r') \
22371 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000022372# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22373#endif
22374
22375#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22376int
22377main ()
22378{
22379 int i;
22380 for (i = 0; i < 256; i++)
22381 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000022382 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +000022383 return 2;
22384 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000022385}
22386_ACEOF
22387rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022388if { (ac_try="$ac_link"
22389case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22392esac
22393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000022398 { (case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401esac
22402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022404 ac_status=$?
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 :
22408else
22409 echo "$as_me: program exited with status $ac_status" >&5
22410echo "$as_me: failed program was:" >&5
22411sed 's/^/| /' conftest.$ac_ext >&5
22412
22413( exit $ac_status )
22414ac_cv_header_stdc=no
22415fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22417fi
22418
22419
Lev Walkinf15320b2004-06-03 03:38:44 +000022420fi
22421fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022422{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22423echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022424if test $ac_cv_header_stdc = yes; then
22425
22426cat >>confdefs.h <<\_ACEOF
22427#define STDC_HEADERS 1
22428_ACEOF
22429
22430fi
22431
Lev Walkinf15320b2004-06-03 03:38:44 +000022432
Lev Walkin79f54952004-08-13 16:58:19 +000022433for ac_header in sys/param.h
Lev Walkinf15320b2004-06-03 03:38:44 +000022434do
22435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000022436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000022440 echo $ECHO_N "(cached) $ECHO_C" >&6
22441fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022442ac_res=`eval echo '${'$as_ac_Header'}'`
22443 { echo "$as_me:$LINENO: result: $ac_res" >&5
22444echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022445else
22446 # Is the header compilable?
Lev Walkin27fd0b62007-08-27 23:57:45 +000022447{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022449cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022450/* confdefs.h. */
22451_ACEOF
22452cat confdefs.h >>conftest.$ac_ext
22453cat >>conftest.$ac_ext <<_ACEOF
22454/* end confdefs.h. */
22455$ac_includes_default
22456#include <$ac_header>
22457_ACEOF
22458rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022459if { (ac_try="$ac_compile"
22460case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22463esac
22464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022466 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022467 grep -v '^ *+' conftest.er1 >conftest.err
22468 rm -f conftest.er1
22469 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000022472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22473 { (case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22476esac
22477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; } &&
22482 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000022483 { (case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22486esac
22487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; }; then
22492 ac_header_compiler=yes
22493else
22494 echo "$as_me: failed program was:" >&5
22495sed 's/^/| /' conftest.$ac_ext >&5
22496
Lev Walkin27fd0b62007-08-27 23:57:45 +000022497 ac_header_compiler=no
Lev Walkinf15320b2004-06-03 03:38:44 +000022498fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022499
22500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22502echo "${ECHO_T}$ac_header_compiler" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022503
22504# Is the header present?
Lev Walkin27fd0b62007-08-27 23:57:45 +000022505{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022507cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022508/* confdefs.h. */
22509_ACEOF
22510cat confdefs.h >>conftest.$ac_ext
22511cat >>conftest.$ac_ext <<_ACEOF
22512/* end confdefs.h. */
22513#include <$ac_header>
22514_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000022515if { (ac_try="$ac_cpp conftest.$ac_ext"
22516case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518 *) ac_try_echo=$ac_try;;
22519esac
22520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022522 ac_status=$?
22523 grep -v '^ *+' conftest.er1 >conftest.err
22524 rm -f conftest.er1
22525 cat conftest.err >&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } >/dev/null; then
22528 if test -s conftest.err; then
22529 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000022530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000022531 else
22532 ac_cpp_err=
22533 fi
22534else
22535 ac_cpp_err=yes
22536fi
22537if test -z "$ac_cpp_err"; then
22538 ac_header_preproc=yes
22539else
22540 echo "$as_me: failed program was:" >&5
22541sed 's/^/| /' conftest.$ac_ext >&5
22542
22543 ac_header_preproc=no
22544fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022545
Lev Walkinf15320b2004-06-03 03:38:44 +000022546rm -f conftest.err conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022547{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22548echo "${ECHO_T}$ac_header_preproc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022549
22550# So? What about this header?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22552 yes:no: )
Lev Walkinf15320b2004-06-03 03:38:44 +000022553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000022555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22557 ac_header_preproc=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000022558 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000022559 no:yes:* )
Lev Walkinf15320b2004-06-03 03:38:44 +000022560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000022562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22563echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22567echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000022568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000022570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000022572
Lev Walkinf15320b2004-06-03 03:38:44 +000022573 ;;
22574esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000022575{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000022578 echo $ECHO_N "(cached) $ECHO_C" >&6
22579else
Lev Walkin8e8b5482004-06-17 23:42:48 +000022580 eval "$as_ac_Header=\$ac_header_preproc"
Lev Walkinf15320b2004-06-03 03:38:44 +000022581fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022582ac_res=`eval echo '${'$as_ac_Header'}'`
22583 { echo "$as_me:$LINENO: result: $ac_res" >&5
22584echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022585
22586fi
22587if test `eval echo '${'$as_ac_Header'}'` = yes; then
22588 cat >>confdefs.h <<_ACEOF
22589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22590_ACEOF
22591
22592fi
22593
22594done
22595
22596
Lev Walkin27fd0b62007-08-27 23:57:45 +000022597{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22598echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022599if test "${ac_cv_c_bigendian+set}" = set; then
22600 echo $ECHO_N "(cached) $ECHO_C" >&6
22601else
22602 # See if sys/param.h defines the BYTE_ORDER macro.
22603cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022604/* confdefs.h. */
22605_ACEOF
22606cat confdefs.h >>conftest.$ac_ext
22607cat >>conftest.$ac_ext <<_ACEOF
22608/* end confdefs.h. */
22609#include <sys/types.h>
22610#include <sys/param.h>
22611
22612int
22613main ()
22614{
22615#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22616 bogus endian macros
22617#endif
22618
22619 ;
22620 return 0;
22621}
22622_ACEOF
22623rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022624if { (ac_try="$ac_compile"
22625case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22628esac
22629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022631 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022632 grep -v '^ *+' conftest.er1 >conftest.err
22633 rm -f conftest.er1
22634 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000022637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22638 { (case "(($ac_try" in
22639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640 *) ac_try_echo=$ac_try;;
22641esac
22642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22643 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022644 ac_status=$?
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); }; } &&
22647 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000022648 { (case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22651esac
22652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022654 ac_status=$?
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); }; }; then
22657 # It does; now see whether it defined to BIG_ENDIAN or not.
22658cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022659/* confdefs.h. */
22660_ACEOF
22661cat confdefs.h >>conftest.$ac_ext
22662cat >>conftest.$ac_ext <<_ACEOF
22663/* end confdefs.h. */
22664#include <sys/types.h>
22665#include <sys/param.h>
22666
22667int
22668main ()
22669{
22670#if BYTE_ORDER != BIG_ENDIAN
22671 not big endian
22672#endif
22673
22674 ;
22675 return 0;
22676}
22677_ACEOF
22678rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022679if { (ac_try="$ac_compile"
22680case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22683esac
22684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022686 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022687 grep -v '^ *+' conftest.er1 >conftest.err
22688 rm -f conftest.er1
22689 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000022692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22693 { (case "(($ac_try" in
22694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695 *) ac_try_echo=$ac_try;;
22696esac
22697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22698 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022699 ac_status=$?
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; } &&
22702 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000022703 { (case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22706esac
22707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22708 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022709 ac_status=$?
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; }; then
22712 ac_cv_c_bigendian=yes
22713else
22714 echo "$as_me: failed program was:" >&5
22715sed 's/^/| /' conftest.$ac_ext >&5
22716
Lev Walkin27fd0b62007-08-27 23:57:45 +000022717 ac_cv_c_bigendian=no
Lev Walkinf15320b2004-06-03 03:38:44 +000022718fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022719
22720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022721else
22722 echo "$as_me: failed program was:" >&5
22723sed 's/^/| /' conftest.$ac_ext >&5
22724
Lev Walkin27fd0b62007-08-27 23:57:45 +000022725 # It does not; compile a test program.
Lev Walkinf15320b2004-06-03 03:38:44 +000022726if test "$cross_compiling" = yes; then
22727 # try to guess the endianness by grepping values into an object file
22728 ac_cv_c_bigendian=unknown
22729 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022730/* confdefs.h. */
22731_ACEOF
22732cat confdefs.h >>conftest.$ac_ext
22733cat >>conftest.$ac_ext <<_ACEOF
22734/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000022735short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22736short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Lev Walkinf15320b2004-06-03 03:38:44 +000022737void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000022738short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22739short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Lev Walkinf15320b2004-06-03 03:38:44 +000022740void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22741int
22742main ()
22743{
22744 _ascii (); _ebcdic ();
22745 ;
22746 return 0;
22747}
22748_ACEOF
22749rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022750if { (ac_try="$ac_compile"
22751case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22754esac
22755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022757 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022758 grep -v '^ *+' conftest.er1 >conftest.err
22759 rm -f conftest.er1
22760 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000022763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22764 { (case "(($ac_try" in
22765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766 *) ac_try_echo=$ac_try;;
22767esac
22768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22769 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; } &&
22773 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000022774 { (case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22777esac
22778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022780 ac_status=$?
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22784 ac_cv_c_bigendian=yes
22785fi
22786if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22787 if test "$ac_cv_c_bigendian" = unknown; then
22788 ac_cv_c_bigendian=no
22789 else
22790 # finding both strings is unlikely to happen, but who knows?
22791 ac_cv_c_bigendian=unknown
22792 fi
22793fi
22794else
22795 echo "$as_me: failed program was:" >&5
22796sed 's/^/| /' conftest.$ac_ext >&5
22797
Lev Walkin27fd0b62007-08-27 23:57:45 +000022798
Lev Walkinf15320b2004-06-03 03:38:44 +000022799fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022800
22801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022802else
22803 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022804/* confdefs.h. */
22805_ACEOF
22806cat confdefs.h >>conftest.$ac_ext
22807cat >>conftest.$ac_ext <<_ACEOF
22808/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000022809$ac_includes_default
Lev Walkinf15320b2004-06-03 03:38:44 +000022810int
22811main ()
22812{
Lev Walkin27fd0b62007-08-27 23:57:45 +000022813
Lev Walkinf15320b2004-06-03 03:38:44 +000022814 /* Are we little or big endian? From Harbison&Steele. */
22815 union
22816 {
Lev Walkin27fd0b62007-08-27 23:57:45 +000022817 long int l;
22818 char c[sizeof (long int)];
Lev Walkinf15320b2004-06-03 03:38:44 +000022819 } u;
22820 u.l = 1;
Lev Walkin27fd0b62007-08-27 23:57:45 +000022821 return u.c[sizeof (long int) - 1] == 1;
22822
22823 ;
22824 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000022825}
22826_ACEOF
22827rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022828if { (ac_try="$ac_link"
22829case "(($ac_try" in
22830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831 *) ac_try_echo=$ac_try;;
22832esac
22833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022835 ac_status=$?
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000022838 { (case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22841esac
22842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22843 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022844 ac_status=$?
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; }; then
22847 ac_cv_c_bigendian=no
22848else
22849 echo "$as_me: program exited with status $ac_status" >&5
22850echo "$as_me: failed program was:" >&5
22851sed 's/^/| /' conftest.$ac_ext >&5
22852
22853( exit $ac_status )
22854ac_cv_c_bigendian=yes
22855fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022857fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022858
22859
Lev Walkinf15320b2004-06-03 03:38:44 +000022860fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022861
22862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022863fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022864{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22865echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022866case $ac_cv_c_bigendian in
22867 yes)
22868
22869cat >>confdefs.h <<\_ACEOF
22870#define WORDS_BIGENDIAN 1
22871_ACEOF
22872 ;;
22873 no)
22874 ;;
22875 *)
22876 { { echo "$as_me:$LINENO: error: unknown endianness
22877presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22878echo "$as_me: error: unknown endianness
22879presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22880 { (exit 1); exit 1; }; } ;;
22881esac
22882
Lev Walkin27fd0b62007-08-27 23:57:45 +000022883{ echo "$as_me:$LINENO: checking for off_t" >&5
22884echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022885if test "${ac_cv_type_off_t+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22887else
22888 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022889/* confdefs.h. */
22890_ACEOF
22891cat confdefs.h >>conftest.$ac_ext
22892cat >>conftest.$ac_ext <<_ACEOF
22893/* end confdefs.h. */
22894$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000022895typedef off_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000022896int
22897main ()
22898{
Lev Walkin27fd0b62007-08-27 23:57:45 +000022899if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000022900 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000022901if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000022902 return 0;
22903 ;
22904 return 0;
22905}
22906_ACEOF
22907rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022908if { (ac_try="$ac_compile"
22909case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22912esac
22913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22914 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022915 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022916 grep -v '^ *+' conftest.er1 >conftest.err
22917 rm -f conftest.er1
22918 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000022921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22922 { (case "(($ac_try" in
22923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22924 *) ac_try_echo=$ac_try;;
22925esac
22926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22927 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022928 ac_status=$?
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; } &&
22931 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000022932 { (case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22935esac
22936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022938 ac_status=$?
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; }; then
22941 ac_cv_type_off_t=yes
22942else
22943 echo "$as_me: failed program was:" >&5
22944sed 's/^/| /' conftest.$ac_ext >&5
22945
Lev Walkin27fd0b62007-08-27 23:57:45 +000022946 ac_cv_type_off_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000022947fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022948
22949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022950fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000022951{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22952echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022953if test $ac_cv_type_off_t = yes; then
22954 :
22955else
22956
22957cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000022958#define off_t long int
Lev Walkinf15320b2004-06-03 03:38:44 +000022959_ACEOF
22960
22961fi
22962
Lev Walkin27fd0b62007-08-27 23:57:45 +000022963{ echo "$as_me:$LINENO: checking for size_t" >&5
22964echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000022965if test "${ac_cv_type_size_t+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22967else
22968 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022969/* confdefs.h. */
22970_ACEOF
22971cat confdefs.h >>conftest.$ac_ext
22972cat >>conftest.$ac_ext <<_ACEOF
22973/* end confdefs.h. */
22974$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000022975typedef size_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000022976int
22977main ()
22978{
Lev Walkin27fd0b62007-08-27 23:57:45 +000022979if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000022980 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000022981if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000022982 return 0;
22983 ;
22984 return 0;
22985}
22986_ACEOF
22987rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000022988if { (ac_try="$ac_compile"
22989case "(($ac_try" in
22990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22991 *) ac_try_echo=$ac_try;;
22992esac
22993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22994 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022995 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022996 grep -v '^ *+' conftest.er1 >conftest.err
22997 rm -f conftest.er1
22998 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000023001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23002 { (case "(($ac_try" in
23003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23004 *) ac_try_echo=$ac_try;;
23005esac
23006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23007 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000023008 ac_status=$?
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; } &&
23011 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000023012 { (case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23015esac
23016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023018 ac_status=$?
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_type_size_t=yes
23022else
23023 echo "$as_me: failed program was:" >&5
23024sed 's/^/| /' conftest.$ac_ext >&5
23025
Lev Walkin27fd0b62007-08-27 23:57:45 +000023026 ac_cv_type_size_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000023027fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023028
23029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000023030fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023031{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23032echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000023033if test $ac_cv_type_size_t = yes; then
23034 :
23035else
23036
23037cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000023038#define size_t unsigned int
Lev Walkinf15320b2004-06-03 03:38:44 +000023039_ACEOF
23040
23041fi
23042
Lev Walkin27fd0b62007-08-27 23:57:45 +000023043{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23044echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000023045if test "${ac_cv_struct_tm+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23047else
23048 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000023049/* confdefs.h. */
23050_ACEOF
23051cat confdefs.h >>conftest.$ac_ext
23052cat >>conftest.$ac_ext <<_ACEOF
23053/* end confdefs.h. */
23054#include <sys/types.h>
23055#include <time.h>
23056
23057int
23058main ()
23059{
23060struct tm *tp; tp->tm_sec;
23061 ;
23062 return 0;
23063}
23064_ACEOF
23065rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000023066if { (ac_try="$ac_compile"
23067case "(($ac_try" in
23068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23069 *) ac_try_echo=$ac_try;;
23070esac
23071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23072 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000023073 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000023074 grep -v '^ *+' conftest.er1 >conftest.err
23075 rm -f conftest.er1
23076 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000023079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23080 { (case "(($ac_try" in
23081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082 *) ac_try_echo=$ac_try;;
23083esac
23084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000023086 ac_status=$?
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; } &&
23089 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000023090 { (case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23093esac
23094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023096 ac_status=$?
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23099 ac_cv_struct_tm=time.h
23100else
23101 echo "$as_me: failed program was:" >&5
23102sed 's/^/| /' conftest.$ac_ext >&5
23103
Lev Walkin27fd0b62007-08-27 23:57:45 +000023104 ac_cv_struct_tm=sys/time.h
Lev Walkinf15320b2004-06-03 03:38:44 +000023105fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023106
23107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000023108fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023109{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23110echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000023111if test $ac_cv_struct_tm = sys/time.h; then
23112
23113cat >>confdefs.h <<\_ACEOF
23114#define TM_IN_SYS_TIME 1
23115_ACEOF
23116
23117fi
23118
Lev Walkin27fd0b62007-08-27 23:57:45 +000023119{ echo "$as_me:$LINENO: checking for intmax_t" >&5
23120echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000023121if test "${ac_cv_type_intmax_t+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23123else
23124 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000023125/* confdefs.h. */
23126_ACEOF
23127cat confdefs.h >>conftest.$ac_ext
23128cat >>conftest.$ac_ext <<_ACEOF
23129/* end confdefs.h. */
23130$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000023131typedef intmax_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000023132int
23133main ()
23134{
Lev Walkin27fd0b62007-08-27 23:57:45 +000023135if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000023136 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000023137if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000023138 return 0;
23139 ;
23140 return 0;
23141}
23142_ACEOF
23143rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000023144if { (ac_try="$ac_compile"
23145case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23148esac
23149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000023151 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000023152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000023157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23158 { (case "(($ac_try" in
23159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23160 *) ac_try_echo=$ac_try;;
23161esac
23162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23163 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000023164 ac_status=$?
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; } &&
23167 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000023168 { (case "(($ac_try" in
23169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170 *) ac_try_echo=$ac_try;;
23171esac
23172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023174 ac_status=$?
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); }; }; then
23177 ac_cv_type_intmax_t=yes
23178else
23179 echo "$as_me: failed program was:" >&5
23180sed 's/^/| /' conftest.$ac_ext >&5
23181
Lev Walkin27fd0b62007-08-27 23:57:45 +000023182 ac_cv_type_intmax_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000023183fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023184
23185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000023186fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023187{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
23188echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000023189if test $ac_cv_type_intmax_t = yes; then
23190 :
23191else
23192
23193cat >>confdefs.h <<_ACEOF
23194#define intmax_t int64_t
23195_ACEOF
23196
23197fi
23198
23199
23200
23201
23202for ac_func in strtoimax strtoll
23203do
23204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000023205{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23207if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000023208 echo $ECHO_N "(cached) $ECHO_C" >&6
23209else
23210 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000023211/* confdefs.h. */
23212_ACEOF
23213cat confdefs.h >>conftest.$ac_ext
23214cat >>conftest.$ac_ext <<_ACEOF
23215/* end confdefs.h. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000023216/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23218#define $ac_func innocuous_$ac_func
23219
Lev Walkinf15320b2004-06-03 03:38:44 +000023220/* System header to define __stub macros and hopefully few prototypes,
23221 which can conflict with char $ac_func (); below.
23222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23223 <limits.h> exists even on freestanding compilers. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000023224
Lev Walkinf15320b2004-06-03 03:38:44 +000023225#ifdef __STDC__
23226# include <limits.h>
23227#else
23228# include <assert.h>
23229#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000023230
23231#undef $ac_func
23232
Lev Walkin27fd0b62007-08-27 23:57:45 +000023233/* Override any GCC internal prototype to avoid an error.
23234 Use char because int might match the return type of a GCC
23235 builtin and then its argument prototype would still apply. */
Lev Walkinf15320b2004-06-03 03:38:44 +000023236#ifdef __cplusplus
23237extern "C"
Lev Walkinf15320b2004-06-03 03:38:44 +000023238#endif
Lev Walkinf15320b2004-06-03 03:38:44 +000023239char $ac_func ();
23240/* The GNU C library defines this for functions which it implements
23241 to always fail with ENOSYS. Some functions are actually named
23242 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000023243#if defined __stub_$ac_func || defined __stub___$ac_func
Lev Walkinf15320b2004-06-03 03:38:44 +000023244choke me
Lev Walkinf15320b2004-06-03 03:38:44 +000023245#endif
23246
23247int
23248main ()
23249{
Lev Walkin27fd0b62007-08-27 23:57:45 +000023250return $ac_func ();
Lev Walkinf15320b2004-06-03 03:38:44 +000023251 ;
23252 return 0;
23253}
23254_ACEOF
23255rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000023256if { (ac_try="$ac_link"
23257case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23260esac
23261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000023263 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000023264 grep -v '^ *+' conftest.er1 >conftest.err
23265 rm -f conftest.er1
23266 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000023269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23270 { (case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23273esac
23274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000023276 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000023280 { (case "(($ac_try" in
23281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 *) ac_try_echo=$ac_try;;
23283esac
23284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23285 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023286 ac_status=$?
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; }; then
23289 eval "$as_ac_var=yes"
23290else
23291 echo "$as_me: failed program was:" >&5
23292sed 's/^/| /' conftest.$ac_ext >&5
23293
Lev Walkin27fd0b62007-08-27 23:57:45 +000023294 eval "$as_ac_var=no"
Lev Walkinf15320b2004-06-03 03:38:44 +000023295fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023296
23297rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023298 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000023299fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023300ac_res=`eval echo '${'$as_ac_var'}'`
23301 { echo "$as_me:$LINENO: result: $ac_res" >&5
23302echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000023303if test `eval echo '${'$as_ac_var'}'` = yes; then
23304 cat >>confdefs.h <<_ACEOF
23305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23306_ACEOF
23307
23308fi
23309done
23310
23311
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023312for ac_func in mergesort
23313do
23314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000023315{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23317if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023318 echo $ECHO_N "(cached) $ECHO_C" >&6
23319else
23320 cat >conftest.$ac_ext <<_ACEOF
23321/* confdefs.h. */
23322_ACEOF
23323cat confdefs.h >>conftest.$ac_ext
23324cat >>conftest.$ac_ext <<_ACEOF
23325/* end confdefs.h. */
23326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23328#define $ac_func innocuous_$ac_func
23329
23330/* System header to define __stub macros and hopefully few prototypes,
23331 which can conflict with char $ac_func (); below.
23332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23333 <limits.h> exists even on freestanding compilers. */
23334
23335#ifdef __STDC__
23336# include <limits.h>
23337#else
23338# include <assert.h>
23339#endif
23340
23341#undef $ac_func
23342
Lev Walkin27fd0b62007-08-27 23:57:45 +000023343/* Override any GCC internal prototype to avoid an error.
23344 Use char because int might match the return type of a GCC
23345 builtin and then its argument prototype would still apply. */
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023346#ifdef __cplusplus
23347extern "C"
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023348#endif
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023349char $ac_func ();
23350/* The GNU C library defines this for functions which it implements
23351 to always fail with ENOSYS. Some functions are actually named
23352 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000023353#if defined __stub_$ac_func || defined __stub___$ac_func
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023354choke me
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023355#endif
23356
23357int
23358main ()
23359{
Lev Walkin27fd0b62007-08-27 23:57:45 +000023360return $ac_func ();
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023361 ;
23362 return 0;
23363}
23364_ACEOF
23365rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000023366if { (ac_try="$ac_link"
23367case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23370esac
23371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_link") 2>conftest.er1
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023373 ac_status=$?
23374 grep -v '^ *+' conftest.er1 >conftest.err
23375 rm -f conftest.er1
23376 cat conftest.err >&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000023379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23380 { (case "(($ac_try" in
23381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23382 *) ac_try_echo=$ac_try;;
23383esac
23384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23385 (eval "$ac_try") 2>&5
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023386 ac_status=$?
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; } &&
23389 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000023390 { (case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23393esac
23394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395 (eval "$ac_try") 2>&5
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; }; then
23399 eval "$as_ac_var=yes"
23400else
23401 echo "$as_me: failed program was:" >&5
23402sed 's/^/| /' conftest.$ac_ext >&5
23403
Lev Walkin27fd0b62007-08-27 23:57:45 +000023404 eval "$as_ac_var=no"
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023405fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023406
23407rm -f core conftest.err conftest.$ac_objext \
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023408 conftest$ac_exeext conftest.$ac_ext
23409fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023410ac_res=`eval echo '${'$as_ac_var'}'`
23411 { echo "$as_me:$LINENO: result: $ac_res" >&5
23412echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin49b0a3e2004-06-28 21:22:35 +000023413if test `eval echo '${'$as_ac_var'}'` = yes; then
23414 cat >>confdefs.h <<_ACEOF
23415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23416_ACEOF
23417
23418fi
23419done
23420
23421
Lev Walkin27fd0b62007-08-27 23:57:45 +000023422for ac_func in mkstemps
23423do
23424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23425{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23427if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23428 echo $ECHO_N "(cached) $ECHO_C" >&6
23429else
23430 cat >conftest.$ac_ext <<_ACEOF
23431/* confdefs.h. */
23432_ACEOF
23433cat confdefs.h >>conftest.$ac_ext
23434cat >>conftest.$ac_ext <<_ACEOF
23435/* end confdefs.h. */
23436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23438#define $ac_func innocuous_$ac_func
23439
23440/* System header to define __stub macros and hopefully few prototypes,
23441 which can conflict with char $ac_func (); below.
23442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23443 <limits.h> exists even on freestanding compilers. */
23444
23445#ifdef __STDC__
23446# include <limits.h>
23447#else
23448# include <assert.h>
23449#endif
23450
23451#undef $ac_func
23452
23453/* Override any GCC internal prototype to avoid an error.
23454 Use char because int might match the return type of a GCC
23455 builtin and then its argument prototype would still apply. */
23456#ifdef __cplusplus
23457extern "C"
23458#endif
23459char $ac_func ();
23460/* The GNU C library defines this for functions which it implements
23461 to always fail with ENOSYS. Some functions are actually named
23462 something starting with __ and the normal name is an alias. */
23463#if defined __stub_$ac_func || defined __stub___$ac_func
23464choke me
23465#endif
23466
23467int
23468main ()
23469{
23470return $ac_func ();
23471 ;
23472 return 0;
23473}
23474_ACEOF
23475rm -f conftest.$ac_objext conftest$ac_exeext
23476if { (ac_try="$ac_link"
23477case "(($ac_try" in
23478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479 *) ac_try_echo=$ac_try;;
23480esac
23481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23482 (eval "$ac_link") 2>conftest.er1
23483 ac_status=$?
23484 grep -v '^ *+' conftest.er1 >conftest.err
23485 rm -f conftest.er1
23486 cat conftest.err >&5
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); } &&
23489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23490 { (case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23493esac
23494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23495 (eval "$ac_try") 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest$ac_exeext'
23500 { (case "(($ac_try" in
23501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502 *) ac_try_echo=$ac_try;;
23503esac
23504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505 (eval "$ac_try") 2>&5
23506 ac_status=$?
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; }; then
23509 eval "$as_ac_var=yes"
23510else
23511 echo "$as_me: failed program was:" >&5
23512sed 's/^/| /' conftest.$ac_ext >&5
23513
23514 eval "$as_ac_var=no"
23515fi
23516
23517rm -f core conftest.err conftest.$ac_objext \
23518 conftest$ac_exeext conftest.$ac_ext
23519fi
23520ac_res=`eval echo '${'$as_ac_var'}'`
23521 { echo "$as_me:$LINENO: result: $ac_res" >&5
23522echo "${ECHO_T}$ac_res" >&6; }
23523if test `eval echo '${'$as_ac_var'}'` = yes; then
23524 cat >>confdefs.h <<_ACEOF
23525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23526_ACEOF
23527
23528fi
23529done
Lev Walkinf15320b2004-06-03 03:38:44 +000023530
23531
Lev Walkin27fd0b62007-08-27 23:57:45 +000023532
23533{ echo "$as_me:$LINENO: checking for getopt in -liberty" >&5
23534echo $ECHO_N "checking for getopt in -liberty... $ECHO_C" >&6; }
23535if test "${ac_cv_lib_iberty_getopt+set}" = set; then
23536 echo $ECHO_N "(cached) $ECHO_C" >&6
23537else
23538 ac_check_lib_save_LIBS=$LIBS
23539LIBS="-liberty $LIBS"
23540cat >conftest.$ac_ext <<_ACEOF
23541/* confdefs.h. */
23542_ACEOF
23543cat confdefs.h >>conftest.$ac_ext
23544cat >>conftest.$ac_ext <<_ACEOF
23545/* end confdefs.h. */
23546
23547/* Override any GCC internal prototype to avoid an error.
23548 Use char because int might match the return type of a GCC
23549 builtin and then its argument prototype would still apply. */
23550#ifdef __cplusplus
23551extern "C"
23552#endif
23553char getopt ();
23554int
23555main ()
23556{
23557return getopt ();
23558 ;
23559 return 0;
23560}
23561_ACEOF
23562rm -f conftest.$ac_objext conftest$ac_exeext
23563if { (ac_try="$ac_link"
23564case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23567esac
23568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23569 (eval "$ac_link") 2>conftest.er1
23570 ac_status=$?
23571 grep -v '^ *+' conftest.er1 >conftest.err
23572 rm -f conftest.er1
23573 cat conftest.err >&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } &&
23576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23577 { (case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580esac
23581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_try") 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; } &&
23586 { ac_try='test -s conftest$ac_exeext'
23587 { (case "(($ac_try" in
23588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589 *) ac_try_echo=$ac_try;;
23590esac
23591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592 (eval "$ac_try") 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 ac_cv_lib_iberty_getopt=yes
23597else
23598 echo "$as_me: failed program was:" >&5
23599sed 's/^/| /' conftest.$ac_ext >&5
23600
23601 ac_cv_lib_iberty_getopt=no
23602fi
23603
23604rm -f core conftest.err conftest.$ac_objext \
23605 conftest$ac_exeext conftest.$ac_ext
23606LIBS=$ac_check_lib_save_LIBS
23607fi
23608{ echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_getopt" >&5
23609echo "${ECHO_T}$ac_cv_lib_iberty_getopt" >&6; }
23610if test $ac_cv_lib_iberty_getopt = yes; then
23611 cat >>confdefs.h <<_ACEOF
23612#define HAVE_LIBIBERTY 1
23613_ACEOF
23614
23615 LIBS="-liberty $LIBS"
23616
23617fi
23618
23619
23620ac_config_headers="$ac_config_headers config.h"
23621
23622
23623ac_config_files="$ac_config_files skeletons/standard-modules/Makefile skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/webcgi/Makefile asn1c/tests/Makefile libasn1fix/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
23624
Lev Walkinf15320b2004-06-03 03:38:44 +000023625cat >confcache <<\_ACEOF
23626# This file is a shell script that caches the results of configure
23627# tests run on this system so they can be shared between configure
23628# scripts and configure runs, see configure's option --config-cache.
23629# It is not useful on other systems. If it contains results you don't
23630# want to keep, you may remove or edit it.
23631#
23632# config.status only pays attention to the cache file if you give it
23633# the --recheck option to rerun configure.
23634#
23635# `ac_cv_env_foo' variables (set or unset) will be overridden when
23636# loading this file, other *unset* `ac_cv_foo' will be assigned the
23637# following values.
23638
23639_ACEOF
23640
23641# The following way of writing the cache mishandles newlines in values,
23642# but we know of no workaround that is simple, portable, and efficient.
Lev Walkin27fd0b62007-08-27 23:57:45 +000023643# So, we kill variables containing newlines.
Lev Walkinf15320b2004-06-03 03:38:44 +000023644# Ultrix sh set writes to stderr and can't be redirected directly,
23645# and sets the high bit in the cache file unless we assign to the vars.
Lev Walkin27fd0b62007-08-27 23:57:45 +000023646(
23647 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23648 eval ac_val=\$$ac_var
23649 case $ac_val in #(
23650 *${as_nl}*)
23651 case $ac_var in #(
23652 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23653echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23654 esac
23655 case $ac_var in #(
23656 _ | IFS | as_nl) ;; #(
23657 *) $as_unset $ac_var ;;
23658 esac ;;
23659 esac
23660 done
23661
Lev Walkinf15320b2004-06-03 03:38:44 +000023662 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +000023663 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23664 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +000023665 # `set' does not quote correctly, so add quotes (double-quote
23666 # substitution turns \\\\ into \\, and sed turns \\ into \).
23667 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023668 "s/'/'\\\\''/g;
23669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkin27fd0b62007-08-27 23:57:45 +000023670 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +000023671 *)
23672 # `set' quotes correctly as required by POSIX, so do not add quotes.
Lev Walkin27fd0b62007-08-27 23:57:45 +000023673 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000023674 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000023675 esac |
23676 sort
23677) |
Lev Walkinf15320b2004-06-03 03:38:44 +000023678 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000023679 /^ac_cv_env_/b end
Lev Walkinf15320b2004-06-03 03:38:44 +000023680 t clear
Lev Walkin27fd0b62007-08-27 23:57:45 +000023681 :clear
Lev Walkinf15320b2004-06-03 03:38:44 +000023682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23683 t end
Lev Walkin27fd0b62007-08-27 23:57:45 +000023684 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23685 :end' >>confcache
23686if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23687 if test -w "$cache_file"; then
23688 test "x$cache_file" != "x/dev/null" &&
23689 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23690echo "$as_me: updating cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000023691 cat confcache >$cache_file
23692 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000023693 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23694echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000023695 fi
23696fi
23697rm -f confcache
23698
23699test "x$prefix" = xNONE && prefix=$ac_default_prefix
23700# Let make expand exec_prefix.
23701test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23702
Lev Walkinf15320b2004-06-03 03:38:44 +000023703DEFS=-DHAVE_CONFIG_H
23704
23705ac_libobjs=
23706ac_ltlibobjs=
23707for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23708 # 1. Remove the extension, and $U if already installed.
Lev Walkin27fd0b62007-08-27 23:57:45 +000023709 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23710 ac_i=`echo "$ac_i" | sed "$ac_script"`
23711 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23712 # will be set to the directory where LIBOBJS objects are built.
23713 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23714 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Lev Walkinf15320b2004-06-03 03:38:44 +000023715done
23716LIBOBJS=$ac_libobjs
23717
23718LTLIBOBJS=$ac_ltlibobjs
23719
23720
Lev Walkin8e8b5482004-06-17 23:42:48 +000023721if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23722 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23723Usually this means the macro was only invoked conditionally." >&5
23724echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23725Usually this means the macro was only invoked conditionally." >&2;}
23726 { (exit 1); exit 1; }; }
23727fi
23728if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23729 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23730Usually this means the macro was only invoked conditionally." >&5
23731echo "$as_me: error: conditional \"AMDEP\" was never defined.
23732Usually this means the macro was only invoked conditionally." >&2;}
23733 { (exit 1); exit 1; }; }
23734fi
23735if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23736 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23737Usually this means the macro was only invoked conditionally." >&5
23738echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23739Usually this means the macro was only invoked conditionally." >&2;}
23740 { (exit 1); exit 1; }; }
23741fi
23742if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23743 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23744Usually this means the macro was only invoked conditionally." >&5
23745echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23746Usually this means the macro was only invoked conditionally." >&2;}
23747 { (exit 1); exit 1; }; }
23748fi
23749if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23750 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23751Usually this means the macro was only invoked conditionally." >&5
23752echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23753Usually this means the macro was only invoked conditionally." >&2;}
23754 { (exit 1); exit 1; }; }
23755fi
Lev Walkinf15320b2004-06-03 03:38:44 +000023756
23757: ${CONFIG_STATUS=./config.status}
23758ac_clean_files_save=$ac_clean_files
23759ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23760{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23761echo "$as_me: creating $CONFIG_STATUS" >&6;}
23762cat >$CONFIG_STATUS <<_ACEOF
23763#! $SHELL
23764# Generated by $as_me.
23765# Run this file to recreate the current configuration.
23766# Compiler output produced by configure, useful for debugging
23767# configure, is in config.log if it exists.
23768
23769debug=false
23770ac_cs_recheck=false
23771ac_cs_silent=false
23772SHELL=\${CONFIG_SHELL-$SHELL}
23773_ACEOF
23774
23775cat >>$CONFIG_STATUS <<\_ACEOF
23776## --------------------- ##
23777## M4sh Initialization. ##
23778## --------------------- ##
23779
23780# Be Bourne compatible
23781if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23782 emulate sh
23783 NULLCMD=:
23784 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23785 # is contrary to our usage. Disable this feature.
23786 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000023787 setopt NO_GLOB_SUBST
23788else
23789 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +000023790fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000023791BIN_SH=xpg4; export BIN_SH # for Tru64
Lev Walkin8e8b5482004-06-17 23:42:48 +000023792DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000023793
Lev Walkinf15320b2004-06-03 03:38:44 +000023794
Lev Walkin27fd0b62007-08-27 23:57:45 +000023795# PATH needs CR
Lev Walkinf15320b2004-06-03 03:38:44 +000023796# Avoid depending upon Character Ranges.
23797as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23798as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23799as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23800as_cr_digits='0123456789'
23801as_cr_alnum=$as_cr_Letters$as_cr_digits
23802
23803# The user is always right.
23804if test "${PATH_SEPARATOR+set}" != set; then
23805 echo "#! /bin/sh" >conf$$.sh
23806 echo "exit 0" >>conf$$.sh
23807 chmod +x conf$$.sh
23808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23809 PATH_SEPARATOR=';'
23810 else
23811 PATH_SEPARATOR=:
23812 fi
23813 rm -f conf$$.sh
23814fi
23815
Lev Walkin27fd0b62007-08-27 23:57:45 +000023816# Support unset when possible.
23817if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23818 as_unset=unset
23819else
23820 as_unset=false
23821fi
Lev Walkinf15320b2004-06-03 03:38:44 +000023822
Lev Walkin27fd0b62007-08-27 23:57:45 +000023823
23824# IFS
23825# We need space, tab and new line, in precisely that order. Quoting is
23826# there to prevent editors from complaining about space-tab.
23827# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23828# splitting by setting IFS to empty value.)
23829as_nl='
23830'
23831IFS=" "" $as_nl"
23832
23833# Find who we are. Look in the path if we contain no directory separator.
23834case $0 in
23835 *[\\/]* ) as_myself=$0 ;;
23836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000023837for as_dir in $PATH
23838do
23839 IFS=$as_save_IFS
23840 test -z "$as_dir" && as_dir=.
23841 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23842done
Lev Walkin27fd0b62007-08-27 23:57:45 +000023843IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000023844
Lev Walkin27fd0b62007-08-27 23:57:45 +000023845 ;;
23846esac
23847# We did not find ourselves, most probably we were run as `sh COMMAND'
23848# in which case we are not to be found in the path.
23849if test "x$as_myself" = x; then
23850 as_myself=$0
23851fi
23852if test ! -f "$as_myself"; then
23853 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23854 { (exit 1); exit 1; }
23855fi
23856
23857# Work around bugs in pre-3.0 UWIN ksh.
23858for as_var in ENV MAIL MAILPATH
23859do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23860done
23861PS1='$ '
23862PS2='> '
23863PS4='+ '
23864
23865# NLS nuisances.
23866for as_var in \
23867 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23868 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23869 LC_TELEPHONE LC_TIME
Lev Walkinf15320b2004-06-03 03:38:44 +000023870do
Lev Walkin27fd0b62007-08-27 23:57:45 +000023871 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23872 eval $as_var=C; export $as_var
23873 else
23874 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23875 fi
23876done
23877
23878# Required to use basename.
23879if expr a : '\(a\)' >/dev/null 2>&1 &&
23880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23881 as_expr=expr
23882else
23883 as_expr=false
23884fi
23885
23886if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23887 as_basename=basename
23888else
23889 as_basename=false
23890fi
23891
23892
23893# Name of the executable.
23894as_me=`$as_basename -- "$0" ||
23895$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23896 X"$0" : 'X\(//\)$' \| \
23897 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23898echo X/"$0" |
23899 sed '/^.*\/\([^/][^/]*\)\/*$/{
23900 s//\1/
23901 q
23902 }
23903 /^X\/\(\/\/\)$/{
23904 s//\1/
23905 q
23906 }
23907 /^X\/\(\/\).*/{
23908 s//\1/
23909 q
23910 }
23911 s/.*/./; q'`
23912
23913# CDPATH.
23914$as_unset CDPATH
23915
23916
23917
Lev Walkinf15320b2004-06-03 03:38:44 +000023918 as_lineno_1=$LINENO
23919 as_lineno_2=$LINENO
Lev Walkinf15320b2004-06-03 03:38:44 +000023920 test "x$as_lineno_1" != "x$as_lineno_2" &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000023921 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Lev Walkinf15320b2004-06-03 03:38:44 +000023922
23923 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23924 # uniformly replaced by the line number. The first 'sed' inserts a
Lev Walkin27fd0b62007-08-27 23:57:45 +000023925 # line-number line after each line using $LINENO; the second 'sed'
23926 # does the real work. The second script uses 'N' to pair each
23927 # line-number line with the line containing $LINENO, and appends
23928 # trailing '-' during substitution so that $LINENO is not a special
23929 # case at line end.
Lev Walkinf15320b2004-06-03 03:38:44 +000023930 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Lev Walkin27fd0b62007-08-27 23:57:45 +000023931 # scripts with optimization help from Paolo Bonzini. Blame Lee
23932 # E. McMahon (1931-1989) for sed's syntax. :-)
23933 sed -n '
23934 p
23935 /[$]LINENO/=
23936 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +000023937 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000023938 s/[$]LINENO.*/&-/
23939 t lineno
23940 b
23941 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +000023942 N
Lev Walkin27fd0b62007-08-27 23:57:45 +000023943 :loop
23944 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +000023945 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +000023946 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +000023947 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000023948 chmod +x "$as_me.lineno" ||
23949 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000023950 { (exit 1); exit 1; }; }
23951
23952 # Don't try to exec as it changes $[0], causing all sort of problems
23953 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +000023954 # original and so on. Autoconf is especially sensitive to this).
23955 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +000023956 # Exit status is that of the last command.
23957 exit
23958}
23959
23960
Lev Walkin27fd0b62007-08-27 23:57:45 +000023961if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23962 as_dirname=dirname
23963else
23964 as_dirname=false
23965fi
23966
23967ECHO_C= ECHO_N= ECHO_T=
23968case `echo -n x` in
23969-n*)
23970 case `echo 'x\c'` in
23971 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23972 *) ECHO_C='\c';;
23973 esac;;
23974*)
23975 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +000023976esac
23977
Lev Walkin27fd0b62007-08-27 23:57:45 +000023978if expr a : '\(a\)' >/dev/null 2>&1 &&
23979 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Lev Walkinf15320b2004-06-03 03:38:44 +000023980 as_expr=expr
23981else
23982 as_expr=false
23983fi
23984
23985rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +000023986if test -d conf$$.dir; then
23987 rm -f conf$$.dir/conf$$.file
23988else
23989 rm -f conf$$.dir
23990 mkdir conf$$.dir
23991fi
Lev Walkinf15320b2004-06-03 03:38:44 +000023992echo >conf$$.file
23993if ln -s conf$$.file conf$$ 2>/dev/null; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000023994 as_ln_s='ln -s'
23995 # ... but there are two gotchas:
23996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23998 # In both cases, we have to default to `cp -p'.
23999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinf15320b2004-06-03 03:38:44 +000024000 as_ln_s='cp -p'
Lev Walkinf15320b2004-06-03 03:38:44 +000024001elif ln conf$$.file conf$$ 2>/dev/null; then
24002 as_ln_s=ln
24003else
24004 as_ln_s='cp -p'
24005fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000024006rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24007rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +000024008
24009if mkdir -p . 2>/dev/null; then
24010 as_mkdir_p=:
24011else
Lev Walkin8e8b5482004-06-17 23:42:48 +000024012 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000024013 as_mkdir_p=false
24014fi
24015
Lev Walkin27fd0b62007-08-27 23:57:45 +000024016# Find out whether ``test -x'' works. Don't use a zero-byte file, as
24017# systems may use methods other than mode bits to determine executability.
24018cat >conf$$.file <<_ASEOF
24019#! /bin/sh
24020exit 0
24021_ASEOF
24022chmod +x conf$$.file
24023if test -x conf$$.file >/dev/null 2>&1; then
24024 as_executable_p="test -x"
24025else
24026 as_executable_p=:
24027fi
24028rm -f conf$$.file
Lev Walkinf15320b2004-06-03 03:38:44 +000024029
24030# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000024031as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000024032
24033# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000024034as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000024035
24036
Lev Walkinf15320b2004-06-03 03:38:44 +000024037exec 6>&1
24038
Lev Walkin27fd0b62007-08-27 23:57:45 +000024039# Save the log message, to keep $[0] and so on meaningful, and to
Lev Walkinf15320b2004-06-03 03:38:44 +000024040# report actual input values of CONFIG_FILES etc. instead of their
Lev Walkin27fd0b62007-08-27 23:57:45 +000024041# values after options handling.
24042ac_log="
Lev Walkinf15320b2004-06-03 03:38:44 +000024043This file was extended by $as_me, which was
Lev Walkin27fd0b62007-08-27 23:57:45 +000024044generated by GNU Autoconf 2.60. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000024045
24046 CONFIG_FILES = $CONFIG_FILES
24047 CONFIG_HEADERS = $CONFIG_HEADERS
24048 CONFIG_LINKS = $CONFIG_LINKS
24049 CONFIG_COMMANDS = $CONFIG_COMMANDS
24050 $ $0 $@
24051
Lev Walkin27fd0b62007-08-27 23:57:45 +000024052on `(hostname || uname -n) 2>/dev/null | sed 1q`
24053"
24054
Lev Walkinf15320b2004-06-03 03:38:44 +000024055_ACEOF
24056
Lev Walkin27fd0b62007-08-27 23:57:45 +000024057cat >>$CONFIG_STATUS <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000024058# Files that config.status was made for.
Lev Walkin27fd0b62007-08-27 23:57:45 +000024059config_files="$ac_config_files"
24060config_headers="$ac_config_headers"
24061config_commands="$ac_config_commands"
Lev Walkinf15320b2004-06-03 03:38:44 +000024062
Lev Walkin27fd0b62007-08-27 23:57:45 +000024063_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000024064
24065cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000024066ac_cs_usage="\
24067\`$as_me' instantiates files from templates according to the
24068current configuration.
24069
24070Usage: $0 [OPTIONS] [FILE]...
24071
24072 -h, --help print this help, then exit
24073 -V, --version print version number, then exit
24074 -q, --quiet do not print progress messages
24075 -d, --debug don't remove temporary files
24076 --recheck update $as_me by reconfiguring in the same conditions
24077 --file=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000024078 instantiate the configuration file FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000024079 --header=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000024080 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000024081
24082Configuration files:
24083$config_files
24084
24085Configuration headers:
24086$config_headers
24087
24088Configuration commands:
24089$config_commands
24090
24091Report bugs to <bug-autoconf@gnu.org>."
Lev Walkinf15320b2004-06-03 03:38:44 +000024092
Lev Walkin27fd0b62007-08-27 23:57:45 +000024093_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000024094cat >>$CONFIG_STATUS <<_ACEOF
24095ac_cs_version="\\
24096config.status
Lev Walkin27fd0b62007-08-27 23:57:45 +000024097configured by $0, generated by GNU Autoconf 2.60,
24098 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Lev Walkinf15320b2004-06-03 03:38:44 +000024099
Lev Walkin27fd0b62007-08-27 23:57:45 +000024100Copyright (C) 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000024101This config.status script is free software; the Free Software Foundation
24102gives unlimited permission to copy, distribute and modify it."
Lev Walkin27fd0b62007-08-27 23:57:45 +000024103
24104ac_pwd='$ac_pwd'
24105srcdir='$srcdir'
24106INSTALL='$INSTALL'
Lev Walkinf15320b2004-06-03 03:38:44 +000024107_ACEOF
24108
24109cat >>$CONFIG_STATUS <<\_ACEOF
24110# If no file are specified by the user, then we need to provide default
24111# value. By we need to know if files were specified by the user.
24112ac_need_defaults=:
24113while test $# != 0
24114do
24115 case $1 in
24116 --*=*)
Lev Walkin27fd0b62007-08-27 23:57:45 +000024117 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24118 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +000024119 ac_shift=:
24120 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000024121 *)
Lev Walkinf15320b2004-06-03 03:38:44 +000024122 ac_option=$1
24123 ac_optarg=$2
24124 ac_shift=shift
24125 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000024126 esac
24127
24128 case $ac_option in
24129 # Handling of the options.
Lev Walkinf15320b2004-06-03 03:38:44 +000024130 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24131 ac_cs_recheck=: ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000024132 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24133 echo "$ac_cs_version"; exit ;;
24134 --debug | --debu | --deb | --de | --d | -d )
Lev Walkinf15320b2004-06-03 03:38:44 +000024135 debug=: ;;
24136 --file | --fil | --fi | --f )
24137 $ac_shift
24138 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24139 ac_need_defaults=false;;
24140 --header | --heade | --head | --hea )
24141 $ac_shift
24142 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24143 ac_need_defaults=false;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000024144 --he | --h)
24145 # Conflict between --help and --header
24146 { echo "$as_me: error: ambiguous option: $1
24147Try \`$0 --help' for more information." >&2
24148 { (exit 1); exit 1; }; };;
24149 --help | --hel | -h )
24150 echo "$ac_cs_usage"; exit ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000024151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24152 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24153 ac_cs_silent=: ;;
24154
24155 # This is an error.
Lev Walkin27fd0b62007-08-27 23:57:45 +000024156 -*) { echo "$as_me: error: unrecognized option: $1
24157Try \`$0 --help' for more information." >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000024158 { (exit 1); exit 1; }; } ;;
24159
Lev Walkin27fd0b62007-08-27 23:57:45 +000024160 *) ac_config_targets="$ac_config_targets $1"
24161 ac_need_defaults=false ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000024162
24163 esac
24164 shift
24165done
24166
24167ac_configure_extra_args=
24168
24169if $ac_cs_silent; then
24170 exec 6>/dev/null
24171 ac_configure_extra_args="$ac_configure_extra_args --silent"
24172fi
24173
24174_ACEOF
24175cat >>$CONFIG_STATUS <<_ACEOF
24176if \$ac_cs_recheck; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000024177 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24178 CONFIG_SHELL=$SHELL
24179 export CONFIG_SHELL
24180 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Lev Walkinf15320b2004-06-03 03:38:44 +000024181fi
24182
24183_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000024184cat >>$CONFIG_STATUS <<\_ACEOF
24185exec 5>>config.log
24186{
24187 echo
24188 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24189## Running $as_me. ##
24190_ASBOX
24191 echo "$ac_log"
24192} >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000024193
Lev Walkin27fd0b62007-08-27 23:57:45 +000024194_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000024195cat >>$CONFIG_STATUS <<_ACEOF
24196#
Lev Walkin27fd0b62007-08-27 23:57:45 +000024197# INIT-COMMANDS
Lev Walkinf15320b2004-06-03 03:38:44 +000024198#
Lev Walkin8e8b5482004-06-17 23:42:48 +000024199AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000024200
24201_ACEOF
24202
Lev Walkinf15320b2004-06-03 03:38:44 +000024203cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000024204
24205# Handling of arguments.
Lev Walkinf15320b2004-06-03 03:38:44 +000024206for ac_config_target in $ac_config_targets
24207do
Lev Walkin27fd0b62007-08-27 23:57:45 +000024208 case $ac_config_target in
24209 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24210 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24211 "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;;
24212 "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
24213 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
24214 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
24215 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
24216 "asn1c/webcgi/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;;
24217 "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
24218 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
24219 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
24220 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
24221 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24222 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
24223 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24224 "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
24225 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24226
Lev Walkinf15320b2004-06-03 03:38:44 +000024227 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24228echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24229 { (exit 1); exit 1; }; };;
24230 esac
24231done
24232
Lev Walkin27fd0b62007-08-27 23:57:45 +000024233
Lev Walkinf15320b2004-06-03 03:38:44 +000024234# If the user did not use the arguments to specify the items to instantiate,
24235# then the envvar interface is used. Set only those that are not.
24236# We use the long form for the default assignment because of an extremely
24237# bizarre bug on SunOS 4.1.3.
24238if $ac_need_defaults; then
24239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24242fi
24243
24244# Have a temporary directory for convenience. Make it in the build tree
Lev Walkin27fd0b62007-08-27 23:57:45 +000024245# simply because there is no reason against having it here, and in addition,
Lev Walkinf15320b2004-06-03 03:38:44 +000024246# creating and moving files from /tmp can sometimes cause problems.
Lev Walkin27fd0b62007-08-27 23:57:45 +000024247# Hook for its removal unless debugging.
24248# Note that there is a small window in which the directory will not be cleaned:
24249# after its creation but before its name has been assigned to `$tmp'.
Lev Walkinf15320b2004-06-03 03:38:44 +000024250$debug ||
24251{
Lev Walkin27fd0b62007-08-27 23:57:45 +000024252 tmp=
24253 trap 'exit_status=$?
24254 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24255' 0
Lev Walkinf15320b2004-06-03 03:38:44 +000024256 trap '{ (exit 1); exit 1; }' 1 2 13 15
24257}
Lev Walkinf15320b2004-06-03 03:38:44 +000024258# Create a (secure) tmp directory for tmp files.
24259
24260{
Lev Walkin27fd0b62007-08-27 23:57:45 +000024261 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Lev Walkinf15320b2004-06-03 03:38:44 +000024262 test -n "$tmp" && test -d "$tmp"
24263} ||
24264{
Lev Walkin27fd0b62007-08-27 23:57:45 +000024265 tmp=./conf$$-$RANDOM
24266 (umask 077 && mkdir "$tmp")
Lev Walkinf15320b2004-06-03 03:38:44 +000024267} ||
24268{
24269 echo "$me: cannot create a temporary directory in ." >&2
24270 { (exit 1); exit 1; }
24271}
24272
Lev Walkinf15320b2004-06-03 03:38:44 +000024273#
Lev Walkin27fd0b62007-08-27 23:57:45 +000024274# Set up the sed scripts for CONFIG_FILES section.
Lev Walkinf15320b2004-06-03 03:38:44 +000024275#
24276
24277# No need to generate the scripts if there are no CONFIG_FILES.
24278# This happens for instance when ./config.status config.h
Lev Walkin27fd0b62007-08-27 23:57:45 +000024279if test -n "$CONFIG_FILES"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000024280
24281_ACEOF
24282
Lev Walkin27fd0b62007-08-27 23:57:45 +000024283
24284
24285ac_delim='%!_!# '
24286for ac_last_try in false false false false false :; do
24287 cat >conf$$subs.sed <<_ACEOF
24288SHELL!$SHELL$ac_delim
24289PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24290PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24291PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24292PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24293PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24294PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24295exec_prefix!$exec_prefix$ac_delim
24296prefix!$prefix$ac_delim
24297program_transform_name!$program_transform_name$ac_delim
24298bindir!$bindir$ac_delim
24299sbindir!$sbindir$ac_delim
24300libexecdir!$libexecdir$ac_delim
24301datarootdir!$datarootdir$ac_delim
24302datadir!$datadir$ac_delim
24303sysconfdir!$sysconfdir$ac_delim
24304sharedstatedir!$sharedstatedir$ac_delim
24305localstatedir!$localstatedir$ac_delim
24306includedir!$includedir$ac_delim
24307oldincludedir!$oldincludedir$ac_delim
24308docdir!$docdir$ac_delim
24309infodir!$infodir$ac_delim
24310htmldir!$htmldir$ac_delim
24311dvidir!$dvidir$ac_delim
24312pdfdir!$pdfdir$ac_delim
24313psdir!$psdir$ac_delim
24314libdir!$libdir$ac_delim
24315localedir!$localedir$ac_delim
24316mandir!$mandir$ac_delim
24317DEFS!$DEFS$ac_delim
24318ECHO_C!$ECHO_C$ac_delim
24319ECHO_N!$ECHO_N$ac_delim
24320ECHO_T!$ECHO_T$ac_delim
24321LIBS!$LIBS$ac_delim
24322build_alias!$build_alias$ac_delim
24323host_alias!$host_alias$ac_delim
24324target_alias!$target_alias$ac_delim
24325build!$build$ac_delim
24326build_cpu!$build_cpu$ac_delim
24327build_vendor!$build_vendor$ac_delim
24328build_os!$build_os$ac_delim
24329host!$host$ac_delim
24330host_cpu!$host_cpu$ac_delim
24331host_vendor!$host_vendor$ac_delim
24332host_os!$host_os$ac_delim
24333target!$target$ac_delim
24334target_cpu!$target_cpu$ac_delim
24335target_vendor!$target_vendor$ac_delim
24336target_os!$target_os$ac_delim
24337INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24338INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24339INSTALL_DATA!$INSTALL_DATA$ac_delim
24340CYGPATH_W!$CYGPATH_W$ac_delim
24341PACKAGE!$PACKAGE$ac_delim
24342VERSION!$VERSION$ac_delim
24343ACLOCAL!$ACLOCAL$ac_delim
24344AUTOCONF!$AUTOCONF$ac_delim
24345AUTOMAKE!$AUTOMAKE$ac_delim
24346AUTOHEADER!$AUTOHEADER$ac_delim
24347MAKEINFO!$MAKEINFO$ac_delim
24348install_sh!$install_sh$ac_delim
24349STRIP!$STRIP$ac_delim
24350INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24351mkdir_p!$mkdir_p$ac_delim
24352AWK!$AWK$ac_delim
24353SET_MAKE!$SET_MAKE$ac_delim
24354am__leading_dot!$am__leading_dot$ac_delim
24355AMTAR!$AMTAR$ac_delim
24356am__tar!$am__tar$ac_delim
24357am__untar!$am__untar$ac_delim
24358MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24359MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24360MAINT!$MAINT$ac_delim
24361CC!$CC$ac_delim
24362CFLAGS!$CFLAGS$ac_delim
24363LDFLAGS!$LDFLAGS$ac_delim
24364CPPFLAGS!$CPPFLAGS$ac_delim
24365ac_ct_CC!$ac_ct_CC$ac_delim
24366EXEEXT!$EXEEXT$ac_delim
24367OBJEXT!$OBJEXT$ac_delim
24368DEPDIR!$DEPDIR$ac_delim
24369am__include!$am__include$ac_delim
24370am__quote!$am__quote$ac_delim
24371AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24372AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24373AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24374CCDEPMODE!$CCDEPMODE$ac_delim
24375am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24376am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24377GREP!$GREP$ac_delim
24378EGREP!$EGREP$ac_delim
24379LN_S!$LN_S$ac_delim
24380ECHO!$ECHO$ac_delim
24381AR!$AR$ac_delim
24382RANLIB!$RANLIB$ac_delim
24383CPP!$CPP$ac_delim
24384CXX!$CXX$ac_delim
24385_ACEOF
24386
24387 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24388 break
24389 elif $ac_last_try; then
24390 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24391echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24392 { (exit 1); exit 1; }; }
24393 else
24394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Lev Walkinf15320b2004-06-03 03:38:44 +000024395 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000024396done
24397
24398ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24399if test -n "$ac_eof"; then
24400 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24401 ac_eof=`expr $ac_eof + 1`
24402fi
24403
24404cat >>$CONFIG_STATUS <<_ACEOF
24405cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24407_ACEOF
24408sed '
24409s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24410s/^/s,@/; s/!/@,|#_!!_#|/
24411:n
24412t n
24413s/'"$ac_delim"'$/,g/; t
24414s/$/\\/; p
24415N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24416' >>$CONFIG_STATUS <conf$$subs.sed
24417rm -f conf$$subs.sed
24418cat >>$CONFIG_STATUS <<_ACEOF
24419CEOF$ac_eof
24420_ACEOF
24421
24422
24423ac_delim='%!_!# '
24424for ac_last_try in false false false false false :; do
24425 cat >conf$$subs.sed <<_ACEOF
24426CXXFLAGS!$CXXFLAGS$ac_delim
24427ac_ct_CXX!$ac_ct_CXX$ac_delim
24428CXXDEPMODE!$CXXDEPMODE$ac_delim
24429am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24430am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24431CXXCPP!$CXXCPP$ac_delim
24432F77!$F77$ac_delim
24433FFLAGS!$FFLAGS$ac_delim
24434ac_ct_F77!$ac_ct_F77$ac_delim
24435LIBTOOL!$LIBTOOL$ac_delim
24436CONFIGURE_DEPENDS!$CONFIGURE_DEPENDS$ac_delim
24437YACC!$YACC$ac_delim
24438YFLAGS!$YFLAGS$ac_delim
24439LEX!$LEX$ac_delim
24440LEXLIB!$LEXLIB$ac_delim
24441LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
24442ADD_CFLAGS!$ADD_CFLAGS$ac_delim
24443LIBOBJS!$LIBOBJS$ac_delim
24444LTLIBOBJS!$LTLIBOBJS$ac_delim
24445_ACEOF
24446
24447 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
24448 break
24449 elif $ac_last_try; then
24450 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24451echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24452 { (exit 1); exit 1; }; }
24453 else
24454 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24455 fi
24456done
24457
24458ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24459if test -n "$ac_eof"; then
24460 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24461 ac_eof=`expr $ac_eof + 1`
24462fi
24463
24464cat >>$CONFIG_STATUS <<_ACEOF
24465cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24466/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24467_ACEOF
24468sed '
24469s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24470s/^/s,@/; s/!/@,|#_!!_#|/
24471:n
24472t n
24473s/'"$ac_delim"'$/,g/; t
24474s/$/\\/; p
24475N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24476' >>$CONFIG_STATUS <conf$$subs.sed
24477rm -f conf$$subs.sed
24478cat >>$CONFIG_STATUS <<_ACEOF
24479:end
24480s/|#_!!_#|//g
24481CEOF$ac_eof
24482_ACEOF
24483
24484
24485# VPATH may cause trouble with some makes, so we remove $(srcdir),
24486# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24487# trailing colons and then remove the whole line if VPATH becomes empty
24488# (actually we leave an empty line to preserve line numbers).
24489if test "x$srcdir" = x.; then
24490 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24491s/:*\$(srcdir):*/:/
24492s/:*\${srcdir}:*/:/
24493s/:*@srcdir@:*/:/
24494s/^\([^=]*=[ ]*\):*/\1/
24495s/:*$//
24496s/^[^=]*=[ ]*$//
24497}'
24498fi
24499
24500cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000024501fi # test -n "$CONFIG_FILES"
24502
Lev Walkin27fd0b62007-08-27 23:57:45 +000024503
24504for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24505do
24506 case $ac_tag in
24507 :[FHLC]) ac_mode=$ac_tag; continue;;
24508 esac
24509 case $ac_mode$ac_tag in
24510 :[FHL]*:*);;
24511 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24512echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24513 { (exit 1); exit 1; }; };;
24514 :[FH]-) ac_tag=-:-;;
24515 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24516 esac
24517 ac_save_IFS=$IFS
24518 IFS=:
24519 set x $ac_tag
24520 IFS=$ac_save_IFS
24521 shift
24522 ac_file=$1
24523 shift
24524
24525 case $ac_mode in
24526 :L) ac_source=$1;;
24527 :[FH])
24528 ac_file_inputs=
24529 for ac_f
24530 do
24531 case $ac_f in
24532 -) ac_f="$tmp/stdin";;
24533 *) # Look for the file first in the build tree, then in the source tree
24534 # (if the path is not absolute). The absolute path cannot be DOS-style,
24535 # because $ac_f cannot contain `:'.
24536 test -f "$ac_f" ||
24537 case $ac_f in
24538 [\\/$]*) false;;
24539 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24540 esac ||
24541 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24542echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24543 { (exit 1); exit 1; }; };;
24544 esac
24545 ac_file_inputs="$ac_file_inputs $ac_f"
24546 done
24547
24548 # Let's still pretend it is `configure' which instantiates (i.e., don't
24549 # use $as_me), people would be surprised to read:
24550 # /* config.h. Generated by config.status. */
24551 configure_input="Generated from "`IFS=:
24552 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24553 if test x"$ac_file" != x-; then
24554 configure_input="$ac_file. $configure_input"
24555 { echo "$as_me:$LINENO: creating $ac_file" >&5
24556echo "$as_me: creating $ac_file" >&6;}
24557 fi
24558
24559 case $ac_tag in
24560 *:-:* | *:-) cat >"$tmp/stdin";;
24561 esac
24562 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000024563 esac
24564
Lev Walkin27fd0b62007-08-27 23:57:45 +000024565 ac_dir=`$as_dirname -- "$ac_file" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000024566$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000024567 X"$ac_file" : 'X\(//\)[^/]' \| \
24568 X"$ac_file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000024569 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000024570echo X"$ac_file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000024571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24572 s//\1/
24573 q
24574 }
24575 /^X\(\/\/\)[^/].*/{
24576 s//\1/
24577 q
24578 }
24579 /^X\(\/\/\)$/{
24580 s//\1/
24581 q
24582 }
24583 /^X\(\/\).*/{
24584 s//\1/
24585 q
24586 }
24587 s/.*/./; q'`
24588 { as_dir="$ac_dir"
24589 case $as_dir in #(
24590 -*) as_dir=./$as_dir;;
24591 esac
24592 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Lev Walkinf15320b2004-06-03 03:38:44 +000024593 as_dirs=
Lev Walkin27fd0b62007-08-27 23:57:45 +000024594 while :; do
24595 case $as_dir in #(
24596 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24597 *) as_qdir=$as_dir;;
24598 esac
24599 as_dirs="'$as_qdir' $as_dirs"
24600 as_dir=`$as_dirname -- "$as_dir" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000024601$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000024602 X"$as_dir" : 'X\(//\)[^/]' \| \
24603 X"$as_dir" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000024604 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000024605echo X"$as_dir" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000024606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24607 s//\1/
24608 q
24609 }
24610 /^X\(\/\/\)[^/].*/{
24611 s//\1/
24612 q
24613 }
24614 /^X\(\/\/\)$/{
24615 s//\1/
24616 q
24617 }
24618 /^X\(\/\).*/{
24619 s//\1/
24620 q
24621 }
24622 s/.*/./; q'`
24623 test -d "$as_dir" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000024624 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000024625 test -z "$as_dirs" || eval "mkdir $as_dirs"
24626 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24627echo "$as_me: error: cannot create directory $as_dir" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000024628 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000024629 ac_builddir=.
24630
Lev Walkin27fd0b62007-08-27 23:57:45 +000024631case "$ac_dir" in
24632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24633*)
Lev Walkinf15320b2004-06-03 03:38:44 +000024634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000024635 # A ".." for each directory in $ac_dir_suffix.
24636 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24637 case $ac_top_builddir_sub in
24638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24640 esac ;;
24641esac
24642ac_abs_top_builddir=$ac_pwd
24643ac_abs_builddir=$ac_pwd$ac_dir_suffix
24644# for backward compatibility:
24645ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +000024646
24647case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +000024648 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +000024649 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +000024650 ac_top_srcdir=$ac_top_builddir_sub
24651 ac_abs_top_srcdir=$ac_pwd ;;
24652 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +000024653 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +000024654 ac_top_srcdir=$srcdir
24655 ac_abs_top_srcdir=$srcdir ;;
24656 *) # Relative name.
24657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24658 ac_top_srcdir=$ac_top_build_prefix$srcdir
24659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000024660esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000024661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +000024662
Lev Walkinf15320b2004-06-03 03:38:44 +000024663
Lev Walkin27fd0b62007-08-27 23:57:45 +000024664 case $ac_mode in
24665 :F)
24666 #
24667 # CONFIG_FILE
24668 #
Lev Walkinf15320b2004-06-03 03:38:44 +000024669
24670 case $INSTALL in
24671 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000024672 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000024673 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000024674_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000024675
24676cat >>$CONFIG_STATUS <<\_ACEOF
24677# If the template does not know about datarootdir, expand it.
24678# FIXME: This hack should be removed a few years after 2.60.
24679ac_datarootdir_hack=; ac_datarootdir_seen=
24680
24681case `sed -n '/datarootdir/ {
24682 p
24683 q
24684}
24685/@datadir@/p
24686/@docdir@/p
24687/@infodir@/p
24688/@localedir@/p
24689/@mandir@/p
24690' $ac_file_inputs` in
24691*datarootdir*) ac_datarootdir_seen=yes;;
24692*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24693 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24694echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24695_ACEOF
24696cat >>$CONFIG_STATUS <<_ACEOF
24697 ac_datarootdir_hack='
24698 s&@datadir@&$datadir&g
24699 s&@docdir@&$docdir&g
24700 s&@infodir@&$infodir&g
24701 s&@localedir@&$localedir&g
24702 s&@mandir@&$mandir&g
24703 s&\\\${datarootdir}&$datarootdir&g' ;;
24704esac
24705_ACEOF
24706
24707# Neutralize VPATH when `$srcdir' = `.'.
24708# Shell code in configure.ac might set extrasub.
24709# FIXME: do we really want to maintain this feature?
Lev Walkinf15320b2004-06-03 03:38:44 +000024710cat >>$CONFIG_STATUS <<_ACEOF
24711 sed "$ac_vpsub
24712$extrasub
24713_ACEOF
24714cat >>$CONFIG_STATUS <<\_ACEOF
24715:t
24716/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Lev Walkin27fd0b62007-08-27 23:57:45 +000024717s&@configure_input@&$configure_input&;t t
24718s&@top_builddir@&$ac_top_builddir_sub&;t t
24719s&@srcdir@&$ac_srcdir&;t t
24720s&@abs_srcdir@&$ac_abs_srcdir&;t t
24721s&@top_srcdir@&$ac_top_srcdir&;t t
24722s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24723s&@builddir@&$ac_builddir&;t t
24724s&@abs_builddir@&$ac_abs_builddir&;t t
24725s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24726s&@INSTALL@&$ac_INSTALL&;t t
24727$ac_datarootdir_hack
24728" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Lev Walkinf15320b2004-06-03 03:38:44 +000024729
Lev Walkin27fd0b62007-08-27 23:57:45 +000024730test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24731 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24732 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24733 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24734which seems to be undefined. Please make sure it is defined." >&5
24735echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24736which seems to be undefined. Please make sure it is defined." >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000024737
Lev Walkin27fd0b62007-08-27 23:57:45 +000024738 rm -f "$tmp/stdin"
Lev Walkinf15320b2004-06-03 03:38:44 +000024739 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +000024740 -) cat "$tmp/out"; rm -f "$tmp/out";;
24741 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Lev Walkinf15320b2004-06-03 03:38:44 +000024742 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000024743 ;;
24744 :H)
24745 #
24746 # CONFIG_HEADER
24747 #
Lev Walkinf15320b2004-06-03 03:38:44 +000024748_ACEOF
24749
Lev Walkin27fd0b62007-08-27 23:57:45 +000024750# Transform confdefs.h into a sed script `conftest.defines', that
24751# substitutes the proper values into config.h.in to produce config.h.
24752rm -f conftest.defines conftest.tail
24753# First, append a space to every undef/define line, to ease matching.
24754echo 's/$/ /' >conftest.defines
24755# Then, protect against being on the right side of a sed subst, or in
24756# an unquoted here document, in config.status. If some macros were
24757# called several times there might be several #defines for the same
24758# symbol, which is useless. But do not sort them, since the last
24759# AC_DEFINE must be honored.
24760ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24761# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24762# NAME is the cpp macro being defined, VALUE is the value it is being given.
24763# PARAMS is the parameter list in the macro definition--in most cases, it's
24764# just an empty string.
24765ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24766ac_dB='\\)[ (].*,\\1define\\2'
24767ac_dC=' '
24768ac_dD=' ,'
Lev Walkinf15320b2004-06-03 03:38:44 +000024769
Lev Walkin27fd0b62007-08-27 23:57:45 +000024770uniq confdefs.h |
24771 sed -n '
24772 t rset
24773 :rset
24774 s/^[ ]*#[ ]*define[ ][ ]*//
24775 t ok
24776 d
24777 :ok
24778 s/[\\&,]/\\&/g
24779 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24780 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24781 ' >>conftest.defines
24782
24783# Remove the space that was appended to ease matching.
24784# Then replace #undef with comments. This is necessary, for
Lev Walkinf15320b2004-06-03 03:38:44 +000024785# example, in the case of _POSIX_SOURCE, which is predefined and required
24786# on some systems where configure will not decide to define it.
Lev Walkin27fd0b62007-08-27 23:57:45 +000024787# (The regexp can be short, since the line contains either #define or #undef.)
24788echo 's/ $//
24789s,^[ #]*u.*,/* & */,' >>conftest.defines
Lev Walkinf15320b2004-06-03 03:38:44 +000024790
Lev Walkin27fd0b62007-08-27 23:57:45 +000024791# Break up conftest.defines:
24792ac_max_sed_lines=50
24793
24794# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24795# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24796# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24797# et cetera.
24798ac_in='$ac_file_inputs'
24799ac_out='"$tmp/out1"'
24800ac_nxt='"$tmp/out2"'
24801
24802while :
Lev Walkinf15320b2004-06-03 03:38:44 +000024803do
Lev Walkin27fd0b62007-08-27 23:57:45 +000024804 # Write a here document:
24805 cat >>$CONFIG_STATUS <<_ACEOF
24806 # First, check the format of the line:
24807 cat >"\$tmp/defines.sed" <<\\CEOF
24808/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24809/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24810b
24811:def
24812_ACEOF
24813 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000024814 echo 'CEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000024815 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24816 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24817 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24818 grep . conftest.tail >/dev/null || break
Lev Walkinf15320b2004-06-03 03:38:44 +000024819 rm -f conftest.defines
24820 mv conftest.tail conftest.defines
24821done
Lev Walkin27fd0b62007-08-27 23:57:45 +000024822rm -f conftest.defines conftest.tail
Lev Walkinf15320b2004-06-03 03:38:44 +000024823
Lev Walkin27fd0b62007-08-27 23:57:45 +000024824echo "ac_result=$ac_in" >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000024825cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000024826 if test x"$ac_file" != x-; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000024827 echo "/* $configure_input */" >"$tmp/config.h"
24828 cat "$ac_result" >>"$tmp/config.h"
24829 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Lev Walkinf15320b2004-06-03 03:38:44 +000024830 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24831echo "$as_me: $ac_file is unchanged" >&6;}
24832 else
Lev Walkinf15320b2004-06-03 03:38:44 +000024833 rm -f $ac_file
Lev Walkin27fd0b62007-08-27 23:57:45 +000024834 mv "$tmp/config.h" $ac_file
Lev Walkinf15320b2004-06-03 03:38:44 +000024835 fi
24836 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000024837 echo "/* $configure_input */"
24838 cat "$ac_result"
Lev Walkinf15320b2004-06-03 03:38:44 +000024839 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000024840 rm -f "$tmp/out12"
Lev Walkin8e8b5482004-06-17 23:42:48 +000024841# Compute $ac_file's index in $config_headers.
24842_am_stamp_count=1
24843for _am_header in $config_headers :; do
24844 case $_am_header in
24845 $ac_file | $ac_file:* )
24846 break ;;
24847 * )
24848 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000024849 esac
24850done
Lev Walkin27fd0b62007-08-27 23:57:45 +000024851echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000024852$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24853 X$ac_file : 'X\(//\)[^/]' \| \
24854 X$ac_file : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000024855 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000024856echo X$ac_file |
Lev Walkin27fd0b62007-08-27 23:57:45 +000024857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24858 s//\1/
24859 q
24860 }
24861 /^X\(\/\/\)[^/].*/{
24862 s//\1/
24863 q
24864 }
24865 /^X\(\/\/\)$/{
24866 s//\1/
24867 q
24868 }
24869 /^X\(\/\).*/{
24870 s//\1/
24871 q
24872 }
24873 s/.*/./; q'`/stamp-h$_am_stamp_count
24874 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000024875
Lev Walkin27fd0b62007-08-27 23:57:45 +000024876 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24877echo "$as_me: executing $ac_file commands" >&6;}
24878 ;;
24879 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000024880
24881
Lev Walkin27fd0b62007-08-27 23:57:45 +000024882 case $ac_file$ac_mode in
24883 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000024884 # Strip MF so we end up with the name of the file.
24885 mf=`echo "$mf" | sed -e 's/:.*$//'`
24886 # Check whether this is an Automake generated Makefile or not.
24887 # We used to match only the files named `Makefile.in', but
24888 # some people rename them; so instead we look at the file content.
24889 # Grep'ing the first line is not enough: some people post-process
24890 # each Makefile.in and add a new line on top of each file to say so.
24891 # So let's grep whole file.
24892 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000024893 dirpart=`$as_dirname -- "$mf" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000024894$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24895 X"$mf" : 'X\(//\)[^/]' \| \
24896 X"$mf" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000024897 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000024898echo X"$mf" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000024899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24900 s//\1/
24901 q
24902 }
24903 /^X\(\/\/\)[^/].*/{
24904 s//\1/
24905 q
24906 }
24907 /^X\(\/\/\)$/{
24908 s//\1/
24909 q
24910 }
24911 /^X\(\/\).*/{
24912 s//\1/
24913 q
24914 }
24915 s/.*/./; q'`
Lev Walkin8e8b5482004-06-17 23:42:48 +000024916 else
24917 continue
24918 fi
Lev Walkinc46b7cb2006-08-18 02:27:55 +000024919 # Extract the definition of DEPDIR, am__include, and am__quote
24920 # from the Makefile without running `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +000024921 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000024922 test -z "$DEPDIR" && continue
Lev Walkinc46b7cb2006-08-18 02:27:55 +000024923 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24924 test -z "am__include" && continue
24925 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000024926 # When using ansi2knr, U may be empty or an underscore; expand it
Lev Walkin8e8b5482004-06-17 23:42:48 +000024927 U=`sed -n 's/^U = //p' < "$mf"`
Lev Walkinc46b7cb2006-08-18 02:27:55 +000024928 # Find all dependency output files, they are included files with
24929 # $(DEPDIR) in their names. We invoke sed twice because it is the
24930 # simplest approach to changing $(DEPDIR) to its actual value in the
24931 # expansion.
24932 for file in `sed -n "
24933 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Lev Walkinf15320b2004-06-03 03:38:44 +000024934 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24935 # Make sure the directory exists.
24936 test -f "$dirpart/$file" && continue
Lev Walkin27fd0b62007-08-27 23:57:45 +000024937 fdir=`$as_dirname -- "$file" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000024938$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24939 X"$file" : 'X\(//\)[^/]' \| \
24940 X"$file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000024941 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000024942echo X"$file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000024943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24944 s//\1/
24945 q
24946 }
24947 /^X\(\/\/\)[^/].*/{
24948 s//\1/
24949 q
24950 }
24951 /^X\(\/\/\)$/{
24952 s//\1/
24953 q
24954 }
24955 /^X\(\/\).*/{
24956 s//\1/
24957 q
24958 }
24959 s/.*/./; q'`
24960 { as_dir=$dirpart/$fdir
24961 case $as_dir in #(
24962 -*) as_dir=./$as_dir;;
24963 esac
24964 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Lev Walkin8e8b5482004-06-17 23:42:48 +000024965 as_dirs=
Lev Walkin27fd0b62007-08-27 23:57:45 +000024966 while :; do
24967 case $as_dir in #(
24968 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24969 *) as_qdir=$as_dir;;
24970 esac
24971 as_dirs="'$as_qdir' $as_dirs"
24972 as_dir=`$as_dirname -- "$as_dir" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000024973$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24974 X"$as_dir" : 'X\(//\)[^/]' \| \
24975 X"$as_dir" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000024976 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000024977echo X"$as_dir" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000024978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24979 s//\1/
24980 q
24981 }
24982 /^X\(\/\/\)[^/].*/{
24983 s//\1/
24984 q
24985 }
24986 /^X\(\/\/\)$/{
24987 s//\1/
24988 q
24989 }
24990 /^X\(\/\).*/{
24991 s//\1/
24992 q
24993 }
24994 s/.*/./; q'`
24995 test -d "$as_dir" && break
Lev Walkin8e8b5482004-06-17 23:42:48 +000024996 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000024997 test -z "$as_dirs" || eval "mkdir $as_dirs"
24998 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24999echo "$as_me: error: cannot create directory $as_dir" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000025000 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000025001 # echo "creating $dirpart/$file"
25002 echo '# dummy' > "$dirpart/$file"
25003 done
25004done
25005 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000025006
Lev Walkin27fd0b62007-08-27 23:57:45 +000025007 esac
25008done # for ac_tag
25009
Lev Walkinf15320b2004-06-03 03:38:44 +000025010
25011{ (exit 0); exit 0; }
25012_ACEOF
25013chmod +x $CONFIG_STATUS
25014ac_clean_files=$ac_clean_files_save
25015
25016
25017# configure is writing to config.log, and then calls config.status.
25018# config.status does its own redirection, appending to config.log.
25019# Unfortunately, on DOS this fails, as config.log is still kept open
25020# by configure, so config.status won't be able to write to it; its
25021# output is simply discarded. So we exec the FD to /dev/null,
25022# effectively closing config.log, so it can be properly (re)opened and
25023# appended to by config.status. When coming back to configure, we
25024# need to make the FD available again.
25025if test "$no_create" != yes; then
25026 ac_cs_success=:
25027 ac_config_status_args=
25028 test "$silent" = yes &&
25029 ac_config_status_args="$ac_config_status_args --quiet"
25030 exec 5>/dev/null
25031 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25032 exec 5>>config.log
25033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25034 # would make configure fail if this is the last instruction.
25035 $ac_cs_success || { (exit 1); exit 1; }
25036fi
25037
25038