blob: 68a8b90cf6c645cc06937152109f1da8f4085fd6 [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
vlm83b901d2007-08-27 23:57:45 +00003# Generated by GNU Autoconf 2.60.
vlmfa67ddc2004-06-03 03:38:44 +00004#
vlm83b901d2007-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.
vlmfa67ddc2004-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+"$@"}'='"$@"'
vlm83b901d2007-08-27 23:57:45 +000020 setopt NO_GLOB_SUBST
21else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
vlmfa67ddc2004-06-03 03:38:44 +000023fi
vlm83b901d2007-08-27 23:57:45 +000024BIN_SH=xpg4; export BIN_SH # for Tru64
vlm8f3eb992004-06-17 23:42:48 +000025DUALCASE=1; export DUALCASE # for MKS sh
vlmfa67ddc2004-06-03 03:38:44 +000026
vlmfa67ddc2004-06-03 03:38:44 +000027
vlm83b901d2007-08-27 23:57:45 +000028# PATH needs CR
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +000055
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +000076IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000077
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +0000108 fi
vlm83b901d2007-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=
vlmfa67ddc2004-06-03 03:38:44 +0000217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
vlm83b901d2007-08-27 23:57:45 +0000218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
vlmfa67ddc2004-06-03 03:38:44 +0000219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
vlm83b901d2007-08-27 23:57:45 +0000222 case $as_dir in
vlmfa67ddc2004-06-03 03:38:44 +0000223 /*)
vlm83b901d2007-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(
vlmfa67ddc2004-06-03 03:38:44 +0000322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
vlmfa67ddc2004-06-03 03:38:44 +0000324 test "x$as_lineno_1" != "x$as_lineno_2" &&
vlm83b901d2007-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" || {
vlmfa67ddc2004-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
vlm83b901d2007-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.
vlmfa67ddc2004-06-03 03:38:44 +0000429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
vlm83b901d2007-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 |
vlmfa67ddc2004-06-03 03:38:44 +0000436 sed '
vlm83b901d2007-08-27 23:57:45 +0000437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
vlmfa67ddc2004-06-03 03:38:44 +0000441 N
vlm83b901d2007-08-27 23:57:45 +0000442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
vlmfa67ddc2004-06-03 03:38:44 +0000444 t loop
vlm83b901d2007-08-27 23:57:45 +0000445 s/-\n.*//
vlmfa67ddc2004-06-03 03:38:44 +0000446 ' >$as_me.lineno &&
vlm83b901d2007-08-27 23:57:45 +0000447 chmod +x "$as_me.lineno" ||
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +0000453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
vlmfa67ddc2004-06-03 03:38:44 +0000455 # Exit status is that of the last command.
456 exit
457}
458
459
vlm83b901d2007-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';;
vlmfa67ddc2004-06-03 03:38:44 +0000475esac
476
vlm83b901d2007-08-27 23:57:45 +0000477if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
vlmfa67ddc2004-06-03 03:38:44 +0000479 as_expr=expr
480else
481 as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +0000491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
vlm83b901d2007-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 ||
vlmfa67ddc2004-06-03 03:38:44 +0000499 as_ln_s='cp -p'
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +0000505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
vlmfa67ddc2004-06-03 03:38:44 +0000507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510else
vlm8f3eb992004-06-17 23:42:48 +0000511 test -d ./-p && rmdir ./-p
vlmfa67ddc2004-06-03 03:38:44 +0000512 as_mkdir_p=false
513fi
514
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +0000528
529# Sed expression to map a string onto a valid CPP name.
vlm8f3eb992004-06-17 23:42:48 +0000530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
vlmfa67ddc2004-06-03 03:38:44 +0000531
532# Sed expression to map a string onto a valid variable name.
vlm8f3eb992004-06-17 23:42:48 +0000533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
vlmfa67ddc2004-06-03 03:38:44 +0000534
535
vlmfa67ddc2004-06-03 03:38:44 +0000536
vlm8f3eb992004-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.
vlm55681242007-12-03 14:58:39 +0000574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
vlm8f3eb992004-06-17 23:42:48 +0000575
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, ...
vlm55681242007-12-03 14:58:39 +0000581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
vlm8f3eb992004-06-17 23:42:48 +0000583 (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
vlm83b901d2007-08-27 23:57:45 +0000691exec 7<&0 </dev/null 6>&1
692
vlmfa67ddc2004-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
vlmfa67ddc2004-06-03 03:38:44 +0000698#
699# Initializations.
700#
701ac_default_prefix=/usr/local
vlm83b901d2007-08-27 23:57:45 +0000702ac_clean_files=
vlmfa67ddc2004-06-03 03:38:44 +0000703ac_config_libobj_dir=.
vlm83b901d2007-08-27 23:57:45 +0000704LIBOBJS=
vlmfa67ddc2004-06-03 03:38:44 +0000705cross_compiling=no
706subdirs=
707MFLAGS=
708MAKEFLAGS=
709SHELL=${CONFIG_SHELL-/bin/sh}
710
vlmfa67ddc2004-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>
vlm83b901d2007-08-27 23:57:45 +0000747#endif
748#if HAVE_STDINT_H
749# include <stdint.h>
vlmfa67ddc2004-06-03 03:38:44 +0000750#endif
751#if HAVE_UNISTD_H
752# include <unistd.h>
753#endif"
754
vlm83b901d2007-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'
vlmfa67ddc2004-06-03 03:38:44 +0000871ac_subst_files=''
vlm83b901d2007-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
vlmfa67ddc2004-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.
vlm83b901d2007-08-27 23:57:45 +0000915# (The list follows the same order as the GNU Coding Standards.)
vlmfa67ddc2004-06-03 03:38:44 +0000916bindir='${exec_prefix}/bin'
917sbindir='${exec_prefix}/sbin'
918libexecdir='${exec_prefix}/libexec'
vlm83b901d2007-08-27 23:57:45 +0000919datarootdir='${prefix}/share'
920datadir='${datarootdir}'
vlmfa67ddc2004-06-03 03:38:44 +0000921sysconfdir='${prefix}/etc'
922sharedstatedir='${prefix}/com'
923localstatedir='${prefix}/var'
vlmfa67ddc2004-06-03 03:38:44 +0000924includedir='${prefix}/include'
925oldincludedir='/usr/include'
vlm83b901d2007-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'
vlmfa67ddc2004-06-03 03:38:44 +0000935
936ac_prev=
vlm83b901d2007-08-27 23:57:45 +0000937ac_dashdash=
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +0000942 eval $ac_prev=\$ac_option
vlmfa67ddc2004-06-03 03:38:44 +0000943 ac_prev=
944 continue
945 fi
946
vlm83b901d2007-08-27 23:57:45 +0000947 case $ac_option in
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *) ac_optarg=yes ;;
950 esac
vlmfa67ddc2004-06-03 03:38:44 +0000951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
vlm83b901d2007-08-27 23:57:45 +0000954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +0000978 -datadir | --datadir | --datadi | --datad)
vlmfa67ddc2004-06-03 03:38:44 +0000979 ac_prev=datadir ;;
vlm83b901d2007-08-27 23:57:45 +0000980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
vlmfa67ddc2004-06-03 03:38:44 +0000981 datadir=$ac_optarg ;;
982
vlm83b901d2007-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
vlmfa67ddc2004-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'`
vlm83b901d2007-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 ;;
vlmfa67ddc2004-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'`
vlm83b901d2007-08-27 23:57:45 +00001016 eval enable_$ac_feature=\$ac_optarg ;;
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00001078 -localstatedir | --localstatedir | --localstatedi | --localstated \
vlm83b901d2007-08-27 23:57:45 +00001079 | --localstate | --localstat | --localsta | --localst | --locals)
vlmfa67ddc2004-06-03 03:38:44 +00001080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
vlm83b901d2007-08-27 23:57:45 +00001082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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'`
vlm83b901d2007-08-27 23:57:45 +00001213 eval with_$ac_package=\$ac_optarg ;;
vlmfa67ddc2004-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'`
vlm83b901d2007-08-27 23:57:45 +00001222 eval with_$ac_package=no ;;
vlmfa67ddc2004-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; }; }
vlm83b901d2007-08-27 23:57:45 +00001253 eval $ac_envvar=\$ac_optarg
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00001278do
vlm83b901d2007-08-27 23:57:45 +00001279 eval ac_val=\$$ac_var
vlmfa67ddc2004-06-03 03:38:44 +00001280 case $ac_val in
vlm83b901d2007-08-27 23:57:45 +00001281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
vlmfa67ddc2004-06-03 03:38:44 +00001283 esac
vlm83b901d2007-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; }; }
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$0" ||
vlmfa67ddc2004-06-03 03:38:44 +00001327$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
vlm8f3eb992004-06-17 23:42:48 +00001328 X"$0" : 'X\(//\)[^/]' \| \
1329 X"$0" : 'X\(//\)$' \| \
vlm83b901d2007-08-27 23:57:45 +00001330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
vlmfa67ddc2004-06-03 03:38:44 +00001331echo X"$0" |
vlm83b901d2007-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'`
vlmfa67ddc2004-06-03 03:38:44 +00001349 srcdir=$ac_confdir
vlm83b901d2007-08-27 23:57:45 +00001350 if test ! -r "$srcdir/$ac_unique_file"; then
vlmfa67ddc2004-06-03 03:38:44 +00001351 srcdir=..
1352 fi
1353else
1354 ac_srcdir_defaulted=no
1355fi
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00001359 { (exit 1); exit 1; }; }
vlmfa67ddc2004-06-03 03:38:44 +00001360fi
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00001364 { (exit 1); exit 1; }; }
vlm83b901d2007-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
vlmfa67ddc2004-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
vlmfa67ddc2004-06-03 03:38:44 +00001410Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
vlm8f3eb992004-06-17 23:42:48 +00001412 [$ac_default_prefix]
vlmfa67ddc2004-06-03 03:38:44 +00001413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
vlm8f3eb992004-06-17 23:42:48 +00001414 [PREFIX]
vlmfa67ddc2004-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]
vlmfa67ddc2004-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]
vlm83b901d2007-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]
vlmfa67ddc2004-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]
vlm8f3eb992004-06-17 23:42:48 +00001466 --enable-maintainer-mode enable make rules and dependencies not useful
1467 (and sometimes confusing) to the casual installer
vlm83b901d2007-08-27 23:57:45 +00001468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
vlm8f3eb992004-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
vlmfa67ddc2004-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)
vlm8f3eb992004-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]
vlm83b901d2007-08-27 23:57:45 +00001484 --with-tags[=TAGS] include additional configurations [automatic]
vlmfa67ddc2004-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>
vlm83b901d2007-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>
vlmfa67ddc2004-06-03 03:38:44 +00001493 CPP C preprocessor
vlm8f3eb992004-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
vlm83b901d2007-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.
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001509ac_status=$?
vlmfa67ddc2004-06-03 03:38:44 +00001510fi
1511
1512if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
vlmfa67ddc2004-06-03 03:38:44 +00001514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
vlm83b901d2007-08-27 23:57:45 +00001515 test -d "$ac_dir" || continue
vlmfa67ddc2004-06-03 03:38:44 +00001516 ac_builddir=.
1517
vlm83b901d2007-08-27 23:57:45 +00001518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
vlmfa67ddc2004-06-03 03:38:44 +00001521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00001533
1534case $srcdir in
vlm83b901d2007-08-27 23:57:45 +00001535 .) # We are building in place.
vlmfa67ddc2004-06-03 03:38:44 +00001536 ac_srcdir=.
vlm83b901d2007-08-27 23:57:45 +00001537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
vlmfa67ddc2004-06-03 03:38:44 +00001540 ac_srcdir=$srcdir$ac_dir_suffix;
vlm83b901d2007-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 ;;
vlmfa67ddc2004-06-03 03:38:44 +00001547esac
vlm83b901d2007-08-27 23:57:45 +00001548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
vlm8f3eb992004-06-17 23:42:48 +00001549
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00001558 else
1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
vlm83b901d2007-08-27 23:57:45 +00001560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
vlmfa67ddc2004-06-03 03:38:44 +00001562 done
1563fi
1564
vlm83b901d2007-08-27 23:57:45 +00001565test -n "$ac_init_help" && exit $ac_status
vlmfa67ddc2004-06-03 03:38:44 +00001566if $ac_init_version; then
1567 cat <<\_ACEOF
vlm83b901d2007-08-27 23:57:45 +00001568configure
1569generated by GNU Autoconf 2.60
vlmfa67ddc2004-06-03 03:38:44 +00001570
vlm83b901d2007-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.
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001576 exit
vlmfa67ddc2004-06-03 03:38:44 +00001577fi
vlm83b901d2007-08-27 23:57:45 +00001578cat >config.log <<_ACEOF
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001583generated by GNU Autoconf 2.60. Invocation command line was
vlmfa67ddc2004-06-03 03:38:44 +00001584
1585 $ $0 $@
1586
1587_ACEOF
vlm83b901d2007-08-27 23:57:45 +00001588exec 5>>config.log
vlmfa67ddc2004-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`
vlm83b901d2007-08-27 23:57:45 +00001607/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001621IFS=$as_save_IFS
vlmfa67ddc2004-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=
vlmfa67ddc2004-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 ;;
vlm83b901d2007-08-27 23:57:45 +00001653 *\'*)
vlmfa67ddc2004-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
vlm8f3eb992004-06-17 23:42:48 +00001661 ac_must_keep_next=false # Got value, back to normal.
vlmfa67ddc2004-06-03 03:38:44 +00001662 else
vlm8f3eb992004-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
vlmfa67ddc2004-06-03 03:38:44 +00001674 fi
vlm83b901d2007-08-27 23:57:45 +00001675 ac_configure_args="$ac_configure_args '$ac_arg'"
vlmfa67ddc2004-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.
vlm83b901d2007-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.
vlmfa67ddc2004-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,
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00001715 (set) 2>&1 |
vlm83b901d2007-08-27 23:57:45 +00001716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
vlmfa67ddc2004-06-03 03:38:44 +00001718 sed -n \
vlm83b901d2007-08-27 23:57:45 +00001719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 ;; #(
vlmfa67ddc2004-06-03 03:38:44 +00001722 *)
vlm83b901d2007-08-27 23:57:45 +00001723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
vlmfa67ddc2004-06-03 03:38:44 +00001724 ;;
vlm83b901d2007-08-27 23:57:45 +00001725 esac |
1726 sort
1727)
vlmfa67ddc2004-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
vlm83b901d2007-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'\''"
vlmfa67ddc2004-06-03 03:38:44 +00001743 done | sort
1744 echo
1745
1746 if test -n "$ac_subst_files"; then
1747 cat <<\_ASBOX
vlm83b901d2007-08-27 23:57:45 +00001748## ------------------- ##
1749## File substitutions. ##
1750## ------------------- ##
vlmfa67ddc2004-06-03 03:38:44 +00001751_ASBOX
1752 echo
1753 for ac_var in $ac_subst_files
1754 do
vlm83b901d2007-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'\''"
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001771 cat confdefs.h
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
vlmfa67ddc2004-06-03 03:38:44 +00001780 exit $exit_status
vlm83b901d2007-08-27 23:57:45 +00001781' 0
vlmfa67ddc2004-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.
vlm83b901d2007-08-27 23:57:45 +00001788rm -f -r conftest* confdefs.h
vlmfa67ddc2004-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.
vlm83b901d2007-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"
vlmfa67ddc2004-06-03 03:38:44 +00001826fi
vlm83b901d2007-08-27 23:57:45 +00001827shift
1828for ac_site_file
1829do
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001858for ac_var in $ac_precious_vars; do
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm8f3eb992004-06-17 23:42:48 +00001875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
vlmfa67ddc2004-06-03 03:38:44 +00001876echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
vlm8f3eb992004-06-17 23:42:48 +00001877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
vlmfa67ddc2004-06-03 03:38:44 +00001878echo "$as_me: former value: $ac_old_val" >&2;}
vlm8f3eb992004-06-17 23:42:48 +00001879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
vlmfa67ddc2004-06-03 03:38:44 +00001880echo "$as_me: current value: $ac_new_val" >&2;}
vlm8f3eb992004-06-17 23:42:48 +00001881 ac_cache_corrupted=:
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00001904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
vlmfa67ddc2004-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
vlmfa67ddc2004-06-03 03:38:44 +00001927ac_aux_dir=
vlm83b901d2007-08-27 23:57:45 +00001928for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1929 if test -f "$ac_dir/install-sh"; then
vlmfa67ddc2004-06-03 03:38:44 +00001930 ac_aux_dir=$ac_dir
1931 ac_install_sh="$ac_aux_dir/install-sh -c"
1932 break
vlm83b901d2007-08-27 23:57:45 +00001933 elif test -f "$ac_dir/install.sh"; then
vlmfa67ddc2004-06-03 03:38:44 +00001934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install.sh -c"
1936 break
vlm83b901d2007-08-27 23:57:45 +00001937 elif test -f "$ac_dir/shtool"; then
vlmfa67ddc2004-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
vlm83b901d2007-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;}
vlmfa67ddc2004-06-03 03:38:44 +00001946 { (exit 1); exit 1; }; }
1947fi
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00001957
1958# Make sure we can run config.sub.
vlm83b901d2007-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;}
vlmfa67ddc2004-06-03 03:38:44 +00001962 { (exit 1); exit 1; }; }
1963
vlm83b901d2007-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; }
vlmfa67ddc2004-06-03 03:38:44 +00001966if test "${ac_cv_build+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
vlm83b901d2007-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 &&
vlmfa67ddc2004-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; }; }
vlm83b901d2007-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;}
vlmfa67ddc2004-06-03 03:38:44 +00001979 { (exit 1); exit 1; }; }
1980
1981fi
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00001990build=$ac_cv_build
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00002002
2003
vlm83b901d2007-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; }
vlmfa67ddc2004-06-03 03:38:44 +00002006if test "${ac_cv_host+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008else
vlm83b901d2007-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;}
vlmfa67ddc2004-06-03 03:38:44 +00002015 { (exit 1); exit 1; }; }
vlm83b901d2007-08-27 23:57:45 +00002016fi
vlmfa67ddc2004-06-03 03:38:44 +00002017
2018fi
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00002027host=$ac_cv_host
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00002039
2040
vlm83b901d2007-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; }
vlmfa67ddc2004-06-03 03:38:44 +00002043if test "${ac_cv_target+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
vlm83b901d2007-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;}
vlmfa67ddc2004-06-03 03:38:44 +00002052 { (exit 1); exit 1; }; }
vlm83b901d2007-08-27 23:57:45 +00002053fi
vlmfa67ddc2004-06-03 03:38:44 +00002054
2055fi
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00002064target=$ac_cv_target
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm1fcf7592006-08-18 02:27:55 +00002085am__api_version="1.9"
vlmfa67ddc2004-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"
vlm8f3eb992004-06-17 23:42:48 +00002097# OS/2's system install, which has a completely different semantic
vlmfa67ddc2004-06-03 03:38:44 +00002098# ./install, which can be erroneously created by make from ./install.sh.
vlm83b901d2007-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; }
vlmfa67ddc2004-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/* | \
vlm8f3eb992004-06-17 23:42:48 +00002114 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
vlmfa67ddc2004-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
vlm83b901d2007-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
vlm8f3eb992004-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
vlmfa67ddc2004-06-03 03:38:44 +00002136 done
2137 done
2138 ;;
2139esac
2140done
vlm83b901d2007-08-27 23:57:45 +00002141IFS=$as_save_IFS
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00002150 # break other packages using the cache if that directory is
vlm83b901d2007-08-27 23:57:45 +00002151 # removed, or if the value is a relative name.
vlmfa67ddc2004-06-03 03:38:44 +00002152 INSTALL=$ac_install_sh
2153 fi
2154fi
vlm83b901d2007-08-27 23:57:45 +00002155{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2156echo "${ECHO_T}$INSTALL" >&6; }
vlmfa67ddc2004-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
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00002209{ echo "$as_me:$LINENO: result: yes" >&5
2210echo "${ECHO_T}yes" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002211test "$program_prefix" != NONE &&
vlm83b901d2007-08-27 23:57:45 +00002212 program_transform_name="s&^&$program_prefix&;$program_transform_name"
vlmfa67ddc2004-06-03 03:38:44 +00002213# Use a double $ so make ignores it.
2214test "$program_suffix" != NONE &&
vlm83b901d2007-08-27 23:57:45 +00002215 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
vlmfa67ddc2004-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`
vlm83b901d2007-08-27 23:57:45 +00002222rm -f conftest.sed
vlmfa67ddc2004-06-03 03:38:44 +00002223
vlmfa67ddc2004-06-03 03:38:44 +00002224# expand $ac_aux_dir to an absolute path
vlm8f3eb992004-06-17 23:42:48 +00002225am_aux_dir=`cd $ac_aux_dir && pwd`
vlmfa67ddc2004-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=
vlm8f3eb992004-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
vlm1fcf7592006-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
vlm8f3eb992004-06-17 23:42:48 +00002240 # $(mkdir_p) $(somedir)
vlm1fcf7592006-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 --'
vlm8f3eb992004-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
vlmfa67ddc2004-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
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00002295IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +00002296
2297fi
2298fi
2299AWK=$ac_cv_prog_AWK
2300if test -n "$AWK"; then
vlm83b901d2007-08-27 23:57:45 +00002301 { echo "$as_me:$LINENO: result: $AWK" >&5
2302echo "${ECHO_T}$AWK" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002303else
vlm83b901d2007-08-27 23:57:45 +00002304 { echo "$as_me:$LINENO: result: no" >&5
2305echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002306fi
2307
vlm83b901d2007-08-27 23:57:45 +00002308
vlmfa67ddc2004-06-03 03:38:44 +00002309 test -n "$AWK" && break
2310done
2311
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00002316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318 cat >conftest.make <<\_ACEOF
vlm83b901d2007-08-27 23:57:45 +00002319SHELL = /bin/sh
vlmfa67ddc2004-06-03 03:38:44 +00002320all:
vlm83b901d2007-08-27 23:57:45 +00002321 @echo '@@@%%%=$(MAKE)=@@@%%%'
vlmfa67ddc2004-06-03 03:38:44 +00002322_ACEOF
2323# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00002330rm -f conftest.make
2331fi
vlm83b901d2007-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; }
vlmfa67ddc2004-06-03 03:38:44 +00002335 SET_MAKE=
2336else
vlm83b901d2007-08-27 23:57:45 +00002337 { echo "$as_me:$LINENO: result: no" >&5
2338echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002339 SET_MAKE="MAKE=${MAKE-make}"
2340fi
2341
vlm8f3eb992004-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=.
vlmfa67ddc2004-06-03 03:38:44 +00002346else
vlm8f3eb992004-06-17 23:42:48 +00002347 am__leading_dot=_
vlmfa67ddc2004-06-03 03:38:44 +00002348fi
vlm8f3eb992004-06-17 23:42:48 +00002349rmdir .tst 2>/dev/null
vlmfa67ddc2004-06-03 03:38:44 +00002350
2351# test to see if srcdir already configured
vlm8f3eb992004-06-17 23:42:48 +00002352if test "`cd $srcdir && pwd`" != "`pwd`" &&
vlmfa67ddc2004-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
vlm8f3eb992004-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
vlmfa67ddc2004-06-03 03:38:44 +00002369# Define the identity of the package.
vlm8f3eb992004-06-17 23:42:48 +00002370 PACKAGE=asn1c
vlme81928a2006-10-09 12:29:34 +00002371 VERSION=0.9.22
vlm8f3eb992004-06-17 23:42:48 +00002372
vlmfa67ddc2004-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
vlmfa67ddc2004-06-03 03:38:44 +00002383# Some tools Automake needs.
2384
vlm8f3eb992004-06-17 23:42:48 +00002385ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
vlmfa67ddc2004-06-03 03:38:44 +00002386
2387
2388AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2389
2390
vlm8f3eb992004-06-17 23:42:48 +00002391AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
vlmfa67ddc2004-06-03 03:38:44 +00002392
2393
2394AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2395
2396
2397MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2398
vlmfa67ddc2004-06-03 03:38:44 +00002399install_sh=${install_sh-"$am_aux_dir/install-sh"}
2400
vlm8f3eb992004-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
vlm83b901d2007-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; }
vlm8f3eb992004-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
vlm83b901d2007-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
vlm8f3eb992004-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
vlm83b901d2007-08-27 23:57:45 +00002430IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00002431
2432fi
2433fi
2434STRIP=$ac_cv_prog_STRIP
2435if test -n "$STRIP"; then
vlm83b901d2007-08-27 23:57:45 +00002436 { echo "$as_me:$LINENO: result: $STRIP" >&5
2437echo "${ECHO_T}$STRIP" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00002438else
vlm83b901d2007-08-27 23:57:45 +00002439 { echo "$as_me:$LINENO: result: no" >&5
2440echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00002441fi
2442
vlm83b901d2007-08-27 23:57:45 +00002443
vlm8f3eb992004-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
vlm83b901d2007-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; }
vlm8f3eb992004-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
vlm83b901d2007-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
vlm8f3eb992004-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
vlm83b901d2007-08-27 23:57:45 +00002470IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00002471
vlm8f3eb992004-06-17 23:42:48 +00002472fi
2473fi
2474ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2475if test -n "$ac_ct_STRIP"; then
vlm83b901d2007-08-27 23:57:45 +00002476 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2477echo "${ECHO_T}$ac_ct_STRIP" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00002478else
vlm83b901d2007-08-27 23:57:45 +00002479 { echo "$as_me:$LINENO: result: no" >&5
2480echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00002481fi
2482
vlm83b901d2007-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
vlm8f3eb992004-06-17 23:42:48 +00002498else
2499 STRIP="$ac_cv_prog_STRIP"
2500fi
2501
2502fi
vlmfa67ddc2004-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.
vlm1fcf7592006-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
vlmfa67ddc2004-06-03 03:38:44 +00002514
2515
2516
2517
vlm83b901d2007-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.
vlmfa67ddc2004-06-03 03:38:44 +00002521if test "${enable_maintainer_mode+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +00002522 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
vlmfa67ddc2004-06-03 03:38:44 +00002523else
2524 USE_MAINTAINER_MODE=no
vlm83b901d2007-08-27 23:57:45 +00002525fi
2526
2527 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2528echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
vlmfa67ddc2004-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
vlm8f3eb992004-06-17 23:42:48 +00002538
vlmfa67ddc2004-06-03 03:38:44 +00002539 MAINT=$MAINTAINER_MODE_TRUE
2540
2541
2542
vlm83b901d2007-08-27 23:57:45 +00002543# Check whether --enable-shared was given.
vlmfa67ddc2004-06-03 03:38:44 +00002544if test "${enable_shared+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +00002545 enableval=$enable_shared; p=${PACKAGE-default}
vlm8f3eb992004-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
vlmfa67ddc2004-06-03 03:38:44 +00002562else
2563 enable_shared=yes
vlm83b901d2007-08-27 23:57:45 +00002564fi
vlm8f3eb992004-06-17 23:42:48 +00002565
vlm83b901d2007-08-27 23:57:45 +00002566
2567# Check whether --enable-static was given.
vlmfa67ddc2004-06-03 03:38:44 +00002568if test "${enable_static+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +00002569 enableval=$enable_static; p=${PACKAGE-default}
vlm8f3eb992004-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
vlmfa67ddc2004-06-03 03:38:44 +00002586else
2587 enable_static=yes
vlm83b901d2007-08-27 23:57:45 +00002588fi
vlm8f3eb992004-06-17 23:42:48 +00002589
vlm83b901d2007-08-27 23:57:45 +00002590
2591# Check whether --enable-fast-install was given.
vlmfa67ddc2004-06-03 03:38:44 +00002592if test "${enable_fast_install+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +00002593 enableval=$enable_fast_install; p=${PACKAGE-default}
vlm8f3eb992004-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
vlmfa67ddc2004-06-03 03:38:44 +00002610else
2611 enable_fast_install=yes
vlm83b901d2007-08-27 23:57:45 +00002612fi
2613
vlmfa67ddc2004-06-03 03:38:44 +00002614
vlm8f3eb992004-06-17 23:42:48 +00002615DEPDIR="${am__leading_dot}deps"
vlmfa67ddc2004-06-03 03:38:44 +00002616
vlm83b901d2007-08-27 23:57:45 +00002617ac_config_commands="$ac_config_commands depfiles"
vlmfa67ddc2004-06-03 03:38:44 +00002618
vlmfa67ddc2004-06-03 03:38:44 +00002619
2620am_make=${MAKE-make}
2621cat > confinc << 'END'
vlm8f3eb992004-06-17 23:42:48 +00002622am__doit:
vlmfa67ddc2004-06-03 03:38:44 +00002623 @echo done
vlm8f3eb992004-06-17 23:42:48 +00002624.PHONY: am__doit
vlmfa67ddc2004-06-03 03:38:44 +00002625END
2626# If we don't find an include directive, just comment out the code.
vlm83b901d2007-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; }
vlm8f3eb992004-06-17 23:42:48 +00002629am__include="#"
vlmfa67ddc2004-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'.
vlm8f3eb992004-06-17 23:42:48 +00002639if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
vlmfa67ddc2004-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
vlm8f3eb992004-06-17 23:42:48 +00002649 am__quote="\""
vlmfa67ddc2004-06-03 03:38:44 +00002650 _am_result=BSD
2651 fi
2652fi
2653
2654
vlm83b901d2007-08-27 23:57:45 +00002655{ echo "$as_me:$LINENO: result: $_am_result" >&5
2656echo "${ECHO_T}$_am_result" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002657rm -f confinc confmf
2658
vlm83b901d2007-08-27 23:57:45 +00002659# Check whether --enable-dependency-tracking was given.
vlm8f3eb992004-06-17 23:42:48 +00002660if test "${enable_dependency_tracking+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +00002661 enableval=$enable_dependency_tracking;
2662fi
vlm8f3eb992004-06-17 23:42:48 +00002663
vlm8f3eb992004-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
vlmfa67ddc2004-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
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00002709IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +00002710
2711fi
2712fi
2713CC=$ac_cv_prog_CC
2714if test -n "$CC"; then
vlm83b901d2007-08-27 23:57:45 +00002715 { echo "$as_me:$LINENO: result: $CC" >&5
2716echo "${ECHO_T}$CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002717else
vlm83b901d2007-08-27 23:57:45 +00002718 { echo "$as_me:$LINENO: result: no" >&5
2719echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002720fi
2721
vlm83b901d2007-08-27 23:57:45 +00002722
vlmfa67ddc2004-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
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00002749IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +00002750
2751fi
2752fi
2753ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754if test -n "$ac_ct_CC"; then
vlm83b901d2007-08-27 23:57:45 +00002755 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756echo "${ECHO_T}$ac_ct_CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002757else
vlm83b901d2007-08-27 23:57:45 +00002758 { echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002760fi
2761
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00002777else
2778 CC="$ac_cv_prog_CC"
2779fi
2780
2781if test -z "$CC"; then
vlm83b901d2007-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.
vlmfa67ddc2004-06-03 03:38:44 +00002784set dummy ${ac_tool_prefix}cc; ac_word=$2
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00002806IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +00002807
2808fi
2809fi
2810CC=$ac_cv_prog_CC
2811if test -n "$CC"; then
vlm83b901d2007-08-27 23:57:45 +00002812 { echo "$as_me:$LINENO: result: $CC" >&5
2813echo "${ECHO_T}$CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002814else
vlm83b901d2007-08-27 23:57:45 +00002815 { echo "$as_me:$LINENO: result: no" >&5
2816echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002817fi
2818
vlm83b901d2007-08-27 23:57:45 +00002819
vlmfa67ddc2004-06-03 03:38:44 +00002820 fi
vlmfa67ddc2004-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
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00002851IFS=$as_save_IFS
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00002869 { echo "$as_me:$LINENO: result: $CC" >&5
2870echo "${ECHO_T}$CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002871else
vlm83b901d2007-08-27 23:57:45 +00002872 { echo "$as_me:$LINENO: result: no" >&5
2873echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002874fi
2875
vlm83b901d2007-08-27 23:57:45 +00002876
vlmfa67ddc2004-06-03 03:38:44 +00002877fi
2878if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
vlm83b901d2007-08-27 23:57:45 +00002880 for ac_prog in cl.exe
vlmfa67ddc2004-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
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00002905IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +00002906
2907fi
2908fi
2909CC=$ac_cv_prog_CC
2910if test -n "$CC"; then
vlm83b901d2007-08-27 23:57:45 +00002911 { echo "$as_me:$LINENO: result: $CC" >&5
2912echo "${ECHO_T}$CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002913else
vlm83b901d2007-08-27 23:57:45 +00002914 { echo "$as_me:$LINENO: result: no" >&5
2915echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002916fi
2917
vlm83b901d2007-08-27 23:57:45 +00002918
vlmfa67ddc2004-06-03 03:38:44 +00002919 test -n "$CC" && break
2920 done
2921fi
2922if test -z "$CC"; then
2923 ac_ct_CC=$CC
vlm83b901d2007-08-27 23:57:45 +00002924 for ac_prog in cl.exe
vlmfa67ddc2004-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
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00002949IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +00002950
2951fi
2952fi
2953ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954if test -n "$ac_ct_CC"; then
vlm83b901d2007-08-27 23:57:45 +00002955 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2956echo "${ECHO_T}$ac_ct_CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002957else
vlm83b901d2007-08-27 23:57:45 +00002958 { echo "$as_me:$LINENO: result: no" >&5
2959echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00002960fi
2961
vlm83b901d2007-08-27 23:57:45 +00002962
vlmfa67ddc2004-06-03 03:38:44 +00002963 test -n "$ac_ct_CC" && break
2964done
2965
vlm83b901d2007-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
vlmfa67ddc2004-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.
vlm83b901d2007-08-27 23:57:45 +00002993echo "$as_me:$LINENO: checking for C compiler version" >&5
vlmfa67ddc2004-06-03 03:38:44 +00002994ac_compiler=`set X $ac_compile; echo $2`
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
vlm83b901d2007-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
vlmfa67ddc2004-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
vlmfa67ddc2004-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.
vlm83b901d2007-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; }
vlmfa67ddc2004-06-03 03:38:44 +00003048ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; then
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003084do
3085 test -f "$ac_file" || continue
3086 case $ac_file in
vlm83b901d2007-08-27 23:57:45 +00003087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
vlm8f3eb992004-06-17 23:42:48 +00003088 ;;
vlmfa67ddc2004-06-03 03:38:44 +00003089 [ab].out )
vlm8f3eb992004-06-17 23:42:48 +00003090 # We found the default executable, but exeext='' is most
3091 # certainly right.
3092 break;;
vlmfa67ddc2004-06-03 03:38:44 +00003093 *.* )
vlm83b901d2007-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.
vlm8f3eb992004-06-17 23:42:48 +00003103 break;;
vlmfa67ddc2004-06-03 03:38:44 +00003104 * )
vlm8f3eb992004-06-17 23:42:48 +00003105 break;;
vlmfa67ddc2004-06-03 03:38:44 +00003106 esac
3107done
vlm83b901d2007-08-27 23:57:45 +00003108test "$ac_cv_exeext" = no && ac_cv_exeext=
3109
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00003122{ echo "$as_me:$LINENO: result: $ac_file" >&5
3123echo "${ECHO_T}$ac_file" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00003124
vlm83b901d2007-08-27 23:57:45 +00003125# Check that the compiler produces executables we can run. If not, either
vlmfa67ddc2004-06-03 03:38:44 +00003126# the compiler is broken, or we cross compile.
vlm83b901d2007-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; }
vlmfa67ddc2004-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'
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00003157{ echo "$as_me:$LINENO: result: yes" >&5
3158echo "${ECHO_T}yes" >&6; }
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00003162# Check that the compiler produces executables we can run. If not, either
vlmfa67ddc2004-06-03 03:38:44 +00003163# the compiler is broken, or we cross compile.
vlm83b901d2007-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; }
vlmfa67ddc2004-06-03 03:38:44 +00003168
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00003188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
vlmfa67ddc2004-06-03 03:38:44 +00003189 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
vlm8f3eb992004-06-17 23:42:48 +00003190 break;;
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00003203{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3204echo "${ECHO_T}$ac_cv_exeext" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00003205
3206rm -f conftest.$ac_ext
3207EXEEXT=$ac_cv_exeext
3208ac_exeext=$EXEEXT
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; then
vlm83b901d2007-08-27 23:57:45 +00003240 for ac_file in conftest.o conftest.obj conftest.*; do
3241 test -f "$ac_file" || continue;
vlmfa67ddc2004-06-03 03:38:44 +00003242 case $ac_file in
vlm83b901d2007-08-27 23:57:45 +00003243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00003261{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3262echo "${ECHO_T}$ac_cv_objext" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00003263OBJEXT=$ac_cv_objext
3264ac_objext=$OBJEXT
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003296 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00003297 grep -v '^ *+' conftest.er1 >conftest.err
3298 rm -f conftest.er1
3299 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00003300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
vlm83b901d2007-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
vlm8f3eb992004-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'
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00003327 ac_compiler_gnu=no
vlmfa67ddc2004-06-03 03:38:44 +00003328fi
vlm83b901d2007-08-27 23:57:45 +00003329
3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +00003331ac_cv_c_compiler_gnu=$ac_compiler_gnu
3332
3333fi
vlm83b901d2007-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; }
vlmfa67ddc2004-06-03 03:38:44 +00003336GCC=`test $ac_compiler_gnu = yes && echo yes`
3337ac_test_CFLAGS=${CFLAGS+set}
3338ac_save_CFLAGS=$CFLAGS
vlm83b901d2007-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; }
vlmfa67ddc2004-06-03 03:38:44 +00003341if test "${ac_cv_prog_cc_g+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343else
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003371 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00003372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00003375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
vlm83b901d2007-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
vlm8f3eb992004-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'
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003514fi
vlm83b901d2007-08-27 23:57:45 +00003515
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +00003517fi
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
vlm83b901d2007-08-27 23:57:45 +00003547 ac_cv_prog_cc_c89=no
vlmfa67ddc2004-06-03 03:38:44 +00003548ac_save_CC=$CC
3549cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-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}
vlm8f3eb992004-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
vlm83b901d2007-08-27 23:57:45 +00003581 as 'x'. The following induces an error, until -std is added to get
vlm8f3eb992004-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
vlm83b901d2007-08-27 23:57:45 +00003584 that's true only with -std. */
vlm8f3eb992004-06-17 23:42:48 +00003585int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3586
vlm83b901d2007-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
vlmfa67ddc2004-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
vlm83b901d2007-08-27 23:57:45 +00003606for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3607 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
vlmfa67ddc2004-06-03 03:38:44 +00003608do
3609 CC="$ac_save_CC $ac_arg"
3610 rm -f conftest.$ac_objext
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003618 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00003619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00003622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
vlm83b901d2007-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
vlm8f3eb992004-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'
vlm83b901d2007-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
vlmfa67ddc2004-06-03 03:38:44 +00003641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
vlm83b901d2007-08-27 23:57:45 +00003644 ac_cv_prog_cc_c89=$ac_arg
vlmfa67ddc2004-06-03 03:38:44 +00003645else
3646 echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
vlm83b901d2007-08-27 23:57:45 +00003649
vlmfa67ddc2004-06-03 03:38:44 +00003650fi
vlm83b901d2007-08-27 23:57:45 +00003651
3652rm -f core conftest.err conftest.$ac_objext
3653 test "x$ac_cv_prog_cc_c89" != "xno" && break
vlmfa67ddc2004-06-03 03:38:44 +00003654done
vlm83b901d2007-08-27 23:57:45 +00003655rm -f conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +00003656CC=$ac_save_CC
3657
3658fi
vlm83b901d2007-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; } ;;
vlmfa67ddc2004-06-03 03:38:44 +00003667 *)
vlm83b901d2007-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; } ;;
vlmfa67ddc2004-06-03 03:38:44 +00003671esac
3672
vlmfa67ddc2004-06-03 03:38:44 +00003673
vlmfa67ddc2004-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
vlm83b901d2007-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; }
vlmfa67ddc2004-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
vlm8f3eb992004-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
vlmfa67ddc2004-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
vlm8f3eb992004-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 #
vlmfa67ddc2004-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.
vlm8f3eb992004-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
vlmfa67ddc2004-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 \
vlm8f3eb992004-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 &&
vlmfa67ddc2004-06-03 03:38:44 +00003749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
vlm8f3eb992004-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
vlmfa67ddc2004-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
vlm83b901d2007-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; }
vlm8f3eb992004-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
vlm83b901d2007-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; }
vlm8f3eb992004-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
vlm55681242007-12-03 14:58:39 +00003814 test ! -f $lt_ac_sed && continue
vlm8f3eb992004-06-17 23:42:48 +00003815 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
vlm8f3eb992004-06-17 23:42:48 +00003839
3840fi
3841
vlm55681242007-12-03 14:58:39 +00003842SED=$lt_cv_path_SED
vlm83b901d2007-08-27 23:57:45 +00003843{ echo "$as_me:$LINENO: result: $SED" >&5
3844echo "${ECHO_T}$SED" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00003845
vlm83b901d2007-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
vlm8f3eb992004-06-17 23:42:48 +00003849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850else
vlm83b901d2007-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
vlm8f3eb992004-06-17 23:42:48 +00003889 fi
vlm83b901d2007-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
vlm8f3eb992004-06-17 23:42:48 +00003905fi
vlm83b901d2007-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"
vlmfa67ddc2004-06-03 03:38:44 +00004006
4007
4008
vlm83b901d2007-08-27 23:57:45 +00004009# Check whether --with-gnu-ld was given.
vlmfa67ddc2004-06-03 03:38:44 +00004010if test "${with_gnu_ld+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +00004011 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
vlmfa67ddc2004-06-03 03:38:44 +00004012else
4013 with_gnu_ld=no
vlm83b901d2007-08-27 23:57:45 +00004014fi
4015
vlmfa67ddc2004-06-03 03:38:44 +00004016ac_prog=ld
vlm8f3eb992004-06-17 23:42:48 +00004017if test "$GCC" = yes; then
vlmfa67ddc2004-06-03 03:38:44 +00004018 # Check if gcc -print-prog-name=ld gives a path.
vlm83b901d2007-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; }
vlm8f3eb992004-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
vlmfa67ddc2004-06-03 03:38:44 +00004029 # Accept absolute paths.
vlm8f3eb992004-06-17 23:42:48 +00004030 [\\/]* | ?:[\\/]*)
vlmfa67ddc2004-06-03 03:38:44 +00004031 re_direlt='/[^/][^/]*/\.\./'
vlm8f3eb992004-06-17 23:42:48 +00004032 # Canonicalize the pathname of ld
4033 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
vlmfa67ddc2004-06-03 03:38:44 +00004034 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
vlm8f3eb992004-06-17 23:42:48 +00004035 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
vlmfa67ddc2004-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
vlm83b901d2007-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; }
vlmfa67ddc2004-06-03 03:38:44 +00004051else
vlm83b901d2007-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; }
vlmfa67ddc2004-06-03 03:38:44 +00004054fi
vlm8f3eb992004-06-17 23:42:48 +00004055if test "${lt_cv_path_LD+set}" = set; then
vlmfa67ddc2004-06-03 03:38:44 +00004056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058 if test -z "$LD"; then
vlm8f3eb992004-06-17 23:42:48 +00004059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
vlmfa67ddc2004-06-03 03:38:44 +00004060 for ac_dir in $PATH; do
vlm8f3eb992004-06-17 23:42:48 +00004061 IFS="$lt_save_ifs"
vlmfa67ddc2004-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
vlm8f3eb992004-06-17 23:42:48 +00004064 lt_cv_path_LD="$ac_dir/$ac_prog"
vlmfa67ddc2004-06-03 03:38:44 +00004065 # Check to see if the program is GNU ld. I'd rather use --version,
vlm55681242007-12-03 14:58:39 +00004066 # but apparently some variants of GNU ld only accept -v.
vlmfa67ddc2004-06-03 03:38:44 +00004067 # Break only if it was the GNU/non-GNU ld that we prefer.
vlm8f3eb992004-06-17 23:42:48 +00004068 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4069 *GNU* | *'with BFD'*)
vlmfa67ddc2004-06-03 03:38:44 +00004070 test "$with_gnu_ld" != no && break
vlm8f3eb992004-06-17 23:42:48 +00004071 ;;
4072 *)
vlmfa67ddc2004-06-03 03:38:44 +00004073 test "$with_gnu_ld" != yes && break
vlm8f3eb992004-06-17 23:42:48 +00004074 ;;
4075 esac
vlmfa67ddc2004-06-03 03:38:44 +00004076 fi
4077 done
vlm8f3eb992004-06-17 23:42:48 +00004078 IFS="$lt_save_ifs"
vlmfa67ddc2004-06-03 03:38:44 +00004079else
vlm8f3eb992004-06-17 23:42:48 +00004080 lt_cv_path_LD="$LD" # Let the user override the test with a path.
vlmfa67ddc2004-06-03 03:38:44 +00004081fi
4082fi
4083
vlm8f3eb992004-06-17 23:42:48 +00004084LD="$lt_cv_path_LD"
vlmfa67ddc2004-06-03 03:38:44 +00004085if test -n "$LD"; then
vlm83b901d2007-08-27 23:57:45 +00004086 { echo "$as_me:$LINENO: result: $LD" >&5
4087echo "${ECHO_T}$LD" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00004088else
vlm83b901d2007-08-27 23:57:45 +00004089 { echo "$as_me:$LINENO: result: no" >&5
4090echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-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; }; }
vlm83b901d2007-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; }
vlm8f3eb992004-06-17 23:42:48 +00004097if test "${lt_cv_prog_gnu_ld+set}" = set; then
vlmfa67ddc2004-06-03 03:38:44 +00004098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099else
vlm55681242007-12-03 14:58:39 +00004100 # I'd rather use --version here, but apparently some GNU lds only accept -v.
vlm8f3eb992004-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
vlmfa67ddc2004-06-03 03:38:44 +00004109fi
vlm83b901d2007-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; }
vlm8f3eb992004-06-17 23:42:48 +00004112with_gnu_ld=$lt_cv_prog_gnu_ld
vlmfa67ddc2004-06-03 03:38:44 +00004113
4114
vlm83b901d2007-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; }
vlm8f3eb992004-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
vlm83b901d2007-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; }
vlm8f3eb992004-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'
vlm55681242007-12-03 14:58:39 +00004130case $host_os in
4131 darwin*)
4132 if test "$GCC" = yes; then
4133 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4134 else
4135 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4136 fi
4137 ;;
4138esac
vlm8f3eb992004-06-17 23:42:48 +00004139
vlm83b901d2007-08-27 23:57:45 +00004140{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4141echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00004142if test "${lt_cv_path_NM+set}" = set; then
vlmfa67ddc2004-06-03 03:38:44 +00004143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144else
4145 if test -n "$NM"; then
4146 # Let the user override the test.
vlm8f3eb992004-06-17 23:42:48 +00004147 lt_cv_path_NM="$NM"
vlmfa67ddc2004-06-03 03:38:44 +00004148else
vlm55681242007-12-03 14:58:39 +00004149 lt_nm_to_check="${ac_tool_prefix}nm"
4150 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4151 lt_nm_to_check="$lt_nm_to_check nm"
4152 fi
4153 for lt_tmp_nm in $lt_nm_to_check; do
4154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4155 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4156 IFS="$lt_save_ifs"
4157 test -z "$ac_dir" && ac_dir=.
4158 tmp_nm="$ac_dir/$lt_tmp_nm"
4159 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4160 # Check to see if the nm accepts a BSD-compat flag.
4161 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4162 # nm: unknown option "B" ignored
4163 # Tru64's nm complains that /dev/null is an invalid object file
4164 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4165 */dev/null* | *'Invalid file or object type'*)
4166 lt_cv_path_NM="$tmp_nm -B"
vlm8f3eb992004-06-17 23:42:48 +00004167 break
4168 ;;
4169 *)
vlm55681242007-12-03 14:58:39 +00004170 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4171 */dev/null*)
4172 lt_cv_path_NM="$tmp_nm -p"
4173 break
4174 ;;
4175 *)
4176 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4177 continue # so that we can try to find one that supports BSD flags
4178 ;;
4179 esac
vlm8f3eb992004-06-17 23:42:48 +00004180 ;;
4181 esac
vlm55681242007-12-03 14:58:39 +00004182 fi
4183 done
4184 IFS="$lt_save_ifs"
vlmfa67ddc2004-06-03 03:38:44 +00004185 done
vlm8f3eb992004-06-17 23:42:48 +00004186 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
vlmfa67ddc2004-06-03 03:38:44 +00004187fi
4188fi
vlm83b901d2007-08-27 23:57:45 +00004189{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4190echo "${ECHO_T}$lt_cv_path_NM" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00004191NM="$lt_cv_path_NM"
vlmfa67ddc2004-06-03 03:38:44 +00004192
vlm83b901d2007-08-27 23:57:45 +00004193{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4194echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00004195LN_S=$as_ln_s
4196if test "$LN_S" = "ln -s"; then
vlm83b901d2007-08-27 23:57:45 +00004197 { echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00004199else
vlm83b901d2007-08-27 23:57:45 +00004200 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4201echo "${ECHO_T}no, using $LN_S" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00004202fi
4203
vlm83b901d2007-08-27 23:57:45 +00004204{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4205echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00004206if test "${lt_cv_deplibs_check_method+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209 lt_cv_file_magic_cmd='$MAGIC_CMD'
4210lt_cv_file_magic_test_file=
4211lt_cv_deplibs_check_method='unknown'
4212# Need to set the preceding variable on all platforms that support
4213# interlibrary dependencies.
4214# 'none' -- dependencies not supported.
4215# `unknown' -- same as none, but documents that we really don't know.
4216# 'pass_all' -- all dependencies passed with no checks.
4217# 'test_compile' -- check by making test program.
4218# 'file_magic [[regex]]' -- check by looking for files in library path
4219# which responds to the $file_magic_cmd with a given extended regex.
4220# If you have `file' or equivalent on your system and you're not sure
4221# whether `pass_all' will *always* work, you probably want this one.
vlmfa67ddc2004-06-03 03:38:44 +00004222
vlm8f3eb992004-06-17 23:42:48 +00004223case $host_os in
4224aix4* | aix5*)
4225 lt_cv_deplibs_check_method=pass_all
4226 ;;
vlmfa67ddc2004-06-03 03:38:44 +00004227
vlm8f3eb992004-06-17 23:42:48 +00004228beos*)
4229 lt_cv_deplibs_check_method=pass_all
4230 ;;
4231
vlm55681242007-12-03 14:58:39 +00004232bsdi[45]*)
vlm8f3eb992004-06-17 23:42:48 +00004233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4234 lt_cv_file_magic_cmd='/usr/bin/file -L'
4235 lt_cv_file_magic_test_file=/shlib/libc.so
4236 ;;
4237
4238cygwin*)
4239 # func_win32_libid is a shell function defined in ltmain.sh
4240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4241 lt_cv_file_magic_cmd='func_win32_libid'
4242 ;;
4243
4244mingw* | pw32*)
4245 # Base MSYS/MinGW do not provide the 'file' command needed by
4246 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4247 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4248 lt_cv_file_magic_cmd='$OBJDUMP -f'
4249 ;;
4250
4251darwin* | rhapsody*)
4252 lt_cv_deplibs_check_method=pass_all
4253 ;;
4254
vlm55681242007-12-03 14:58:39 +00004255freebsd* | kfreebsd*-gnu | dragonfly*)
vlm8f3eb992004-06-17 23:42:48 +00004256 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4257 case $host_cpu in
4258 i*86 )
4259 # Not sure whether the presence of OpenBSD here was a mistake.
4260 # Let's accept both of them until this is cleared up.
vlm55681242007-12-03 14:58:39 +00004261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
vlm8f3eb992004-06-17 23:42:48 +00004262 lt_cv_file_magic_cmd=/usr/bin/file
4263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4264 ;;
4265 esac
4266 else
4267 lt_cv_deplibs_check_method=pass_all
4268 fi
4269 ;;
4270
4271gnu*)
4272 lt_cv_deplibs_check_method=pass_all
4273 ;;
4274
4275hpux10.20* | hpux11*)
4276 lt_cv_file_magic_cmd=/usr/bin/file
vlm55681242007-12-03 14:58:39 +00004277 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +00004278 ia64*)
4279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4280 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4281 ;;
4282 hppa*64*)
4283 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]'
4284 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4285 ;;
4286 *)
4287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4288 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4289 ;;
4290 esac
4291 ;;
4292
vlm55681242007-12-03 14:58:39 +00004293interix3*)
4294 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4296 ;;
4297
vlm8f3eb992004-06-17 23:42:48 +00004298irix5* | irix6* | nonstopux*)
4299 case $LD in
4300 *-32|*"-32 ") libmagic=32-bit;;
4301 *-n32|*"-n32 ") libmagic=N32;;
4302 *-64|*"-64 ") libmagic=64-bit;;
4303 *) libmagic=never-match;;
4304 esac
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308# This must be Linux ELF.
4309linux*)
vlm8f3eb992004-06-17 23:42:48 +00004310 lt_cv_deplibs_check_method=pass_all
4311 ;;
4312
4313netbsd*)
4314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4316 else
4317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4318 fi
4319 ;;
4320
4321newos6*)
4322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4323 lt_cv_file_magic_cmd=/usr/bin/file
4324 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4325 ;;
4326
4327nto-qnx*)
4328 lt_cv_deplibs_check_method=unknown
4329 ;;
4330
4331openbsd*)
vlm8f3eb992004-06-17 23:42:48 +00004332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vlm55681242007-12-03 14:58:39 +00004333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
vlm8f3eb992004-06-17 23:42:48 +00004334 else
vlm55681242007-12-03 14:58:39 +00004335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
vlm8f3eb992004-06-17 23:42:48 +00004336 fi
4337 ;;
4338
4339osf3* | osf4* | osf5*)
4340 lt_cv_deplibs_check_method=pass_all
4341 ;;
4342
vlm8f3eb992004-06-17 23:42:48 +00004343solaris*)
4344 lt_cv_deplibs_check_method=pass_all
4345 ;;
4346
vlm55681242007-12-03 14:58:39 +00004347sysv4 | sysv4.3*)
vlm8f3eb992004-06-17 23:42:48 +00004348 case $host_vendor in
4349 motorola)
4350 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]'
4351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4352 ;;
4353 ncr)
4354 lt_cv_deplibs_check_method=pass_all
4355 ;;
4356 sequent)
4357 lt_cv_file_magic_cmd='/bin/file'
4358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4359 ;;
4360 sni)
4361 lt_cv_file_magic_cmd='/bin/file'
4362 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4363 lt_cv_file_magic_test_file=/lib/libc.so
4364 ;;
4365 siemens)
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
vlm55681242007-12-03 14:58:39 +00004368 pc)
4369 lt_cv_deplibs_check_method=pass_all
4370 ;;
vlm8f3eb992004-06-17 23:42:48 +00004371 esac
4372 ;;
4373
vlm55681242007-12-03 14:58:39 +00004374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
vlm8f3eb992004-06-17 23:42:48 +00004375 lt_cv_deplibs_check_method=pass_all
4376 ;;
vlmfa67ddc2004-06-03 03:38:44 +00004377esac
4378
vlm8f3eb992004-06-17 23:42:48 +00004379fi
vlm83b901d2007-08-27 23:57:45 +00004380{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4381echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00004382file_magic_cmd=$lt_cv_file_magic_cmd
4383deplibs_check_method=$lt_cv_deplibs_check_method
4384test -z "$deplibs_check_method" && deplibs_check_method=unknown
4385
4386
4387
4388
4389# If no C compiler was specified, use CC.
4390LTCC=${LTCC-"$CC"}
4391
vlm55681242007-12-03 14:58:39 +00004392# If no C compiler flags were specified, use CFLAGS.
4393LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4394
vlm8f3eb992004-06-17 23:42:48 +00004395# Allow CC to be a program name with arguments.
4396compiler=$CC
vlmfa67ddc2004-06-03 03:38:44 +00004397
4398
vlm83b901d2007-08-27 23:57:45 +00004399# Check whether --enable-libtool-lock was given.
vlmfa67ddc2004-06-03 03:38:44 +00004400if test "${enable_libtool_lock+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +00004401 enableval=$enable_libtool_lock;
4402fi
vlmfa67ddc2004-06-03 03:38:44 +00004403
vlm8f3eb992004-06-17 23:42:48 +00004404test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
vlmfa67ddc2004-06-03 03:38:44 +00004405
4406# Some flags need to be propagated to the compiler or linker for good
4407# libtool support.
vlm8f3eb992004-06-17 23:42:48 +00004408case $host in
4409ia64-*-hpux*)
vlmfa67ddc2004-06-03 03:38:44 +00004410 # Find out which ABI we are using.
vlm8f3eb992004-06-17 23:42:48 +00004411 echo 'int i;' > conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +00004412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413 (eval $ac_compile) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; then
vlm8f3eb992004-06-17 23:42:48 +00004417 case `/usr/bin/file conftest.$ac_objext` in
4418 *ELF-32*)
4419 HPUX_IA64_MODE="32"
4420 ;;
4421 *ELF-64*)
4422 HPUX_IA64_MODE="64"
4423 ;;
4424 esac
4425 fi
4426 rm -rf conftest*
4427 ;;
4428*-*-irix6*)
4429 # Find out which ABI we are using.
vlm55681242007-12-03 14:58:39 +00004430 echo '#line 4430 "configure"' > conftest.$ac_ext
vlm8f3eb992004-06-17 23:42:48 +00004431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; then
4436 if test "$lt_cv_prog_gnu_ld" = yes; then
4437 case `/usr/bin/file conftest.$ac_objext` in
4438 *32-bit*)
4439 LD="${LD-ld} -melf32bsmip"
4440 ;;
4441 *N32*)
4442 LD="${LD-ld} -melf32bmipn32"
4443 ;;
4444 *64-bit*)
4445 LD="${LD-ld} -melf64bmip"
4446 ;;
4447 esac
4448 else
4449 case `/usr/bin/file conftest.$ac_objext` in
vlmfa67ddc2004-06-03 03:38:44 +00004450 *32-bit*)
4451 LD="${LD-ld} -32"
4452 ;;
4453 *N32*)
4454 LD="${LD-ld} -n32"
4455 ;;
4456 *64-bit*)
4457 LD="${LD-ld} -64"
4458 ;;
4459 esac
vlm8f3eb992004-06-17 23:42:48 +00004460 fi
4461 fi
4462 rm -rf conftest*
4463 ;;
4464
4465x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4466 # Find out which ABI we are using.
4467 echo 'int i;' > conftest.$ac_ext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469 (eval $ac_compile) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; then
vlm55681242007-12-03 14:58:39 +00004473 case `/usr/bin/file conftest.o` in
vlm8f3eb992004-06-17 23:42:48 +00004474 *32-bit*)
4475 case $host in
4476 x86_64-*linux*)
4477 LD="${LD-ld} -m elf_i386"
4478 ;;
4479 ppc64-*linux*|powerpc64-*linux*)
4480 LD="${LD-ld} -m elf32ppclinux"
4481 ;;
4482 s390x-*linux*)
4483 LD="${LD-ld} -m elf_s390"
4484 ;;
4485 sparc64-*linux*)
4486 LD="${LD-ld} -m elf32_sparc"
4487 ;;
4488 esac
4489 ;;
4490 *64-bit*)
4491 case $host in
4492 x86_64-*linux*)
4493 LD="${LD-ld} -m elf_x86_64"
4494 ;;
4495 ppc*-*linux*|powerpc*-*linux*)
4496 LD="${LD-ld} -m elf64ppc"
4497 ;;
4498 s390*-*linux*)
4499 LD="${LD-ld} -m elf64_s390"
4500 ;;
4501 sparc*-*linux*)
4502 LD="${LD-ld} -m elf64_sparc"
4503 ;;
4504 esac
4505 ;;
4506 esac
vlmfa67ddc2004-06-03 03:38:44 +00004507 fi
4508 rm -rf conftest*
4509 ;;
4510
4511*-*-sco3.2v5*)
4512 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4513 SAVE_CFLAGS="$CFLAGS"
4514 CFLAGS="$CFLAGS -belf"
vlm83b901d2007-08-27 23:57:45 +00004515 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4516echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00004517if test "${lt_cv_cc_needs_belf+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
vlm8f3eb992004-06-17 23:42:48 +00004520 ac_ext=c
4521ac_cpp='$CPP $CPPFLAGS'
4522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525
4526 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +00004527/* confdefs.h. */
4528_ACEOF
4529cat confdefs.h >>conftest.$ac_ext
4530cat >>conftest.$ac_ext <<_ACEOF
4531/* end confdefs.h. */
4532
4533int
4534main ()
4535{
4536
4537 ;
4538 return 0;
4539}
4540_ACEOF
4541rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +00004542if { (ac_try="$ac_link"
4543case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546esac
4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_link") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +00004549 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +00004550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +00004553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00004555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4556 { (case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559esac
4560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00004562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; } &&
4565 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +00004566 { (case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569esac
4570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +00004572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 lt_cv_cc_needs_belf=yes
4576else
4577 echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
vlm83b901d2007-08-27 23:57:45 +00004580 lt_cv_cc_needs_belf=no
vlmfa67ddc2004-06-03 03:38:44 +00004581fi
vlm83b901d2007-08-27 23:57:45 +00004582
4583rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +00004584 conftest$ac_exeext conftest.$ac_ext
4585 ac_ext=c
4586ac_cpp='$CPP $CPPFLAGS'
4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590
vlmfa67ddc2004-06-03 03:38:44 +00004591fi
vlm83b901d2007-08-27 23:57:45 +00004592{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4593echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +00004594 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4595 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4596 CFLAGS="$SAVE_CFLAGS"
4597 fi
4598 ;;
vlm55681242007-12-03 14:58:39 +00004599sparc*-*solaris*)
4600 # Find out which ABI we are using.
4601 echo 'int i;' > conftest.$ac_ext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; then
4607 case `/usr/bin/file conftest.o` in
4608 *64-bit*)
4609 case $lt_cv_prog_gnu_ld in
4610 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4611 *) LD="${LD-ld} -64" ;;
4612 esac
4613 ;;
4614 esac
4615 fi
4616 rm -rf conftest*
4617 ;;
4618
vlmfa67ddc2004-06-03 03:38:44 +00004619
vlmfa67ddc2004-06-03 03:38:44 +00004620esac
4621
vlm8f3eb992004-06-17 23:42:48 +00004622need_locks="$enable_libtool_lock"
vlmfa67ddc2004-06-03 03:38:44 +00004623
vlmfa67ddc2004-06-03 03:38:44 +00004624
vlm8f3eb992004-06-17 23:42:48 +00004625ac_ext=c
4626ac_cpp='$CPP $CPPFLAGS'
4627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629ac_compiler_gnu=$ac_cv_c_compiler_gnu
vlm83b901d2007-08-27 23:57:45 +00004630{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4631echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00004632# On Suns, sometimes $CPP names a directory.
4633if test -n "$CPP" && test -d "$CPP"; then
4634 CPP=
vlmfa67ddc2004-06-03 03:38:44 +00004635fi
vlm8f3eb992004-06-17 23:42:48 +00004636if test -z "$CPP"; then
4637 if test "${ac_cv_prog_CPP+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640 # Double quotes because CPP needs to be expanded
4641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4642 do
4643 ac_preproc_ok=false
4644for ac_c_preproc_warn_flag in '' yes
4645do
4646 # Use a header file that comes with gcc, so configuring glibc
4647 # with a fresh cross-compiler works.
4648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4649 # <limits.h> exists even on freestanding compilers.
4650 # On the NeXT, cc -E runs the code through the compiler's parser,
4651 # not just through cpp. "Syntax error" is here to catch this case.
4652 cat >conftest.$ac_ext <<_ACEOF
4653/* confdefs.h. */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h. */
4658#ifdef __STDC__
4659# include <limits.h>
4660#else
4661# include <assert.h>
4662#endif
4663 Syntax error
4664_ACEOF
vlm83b901d2007-08-27 23:57:45 +00004665if { (ac_try="$ac_cpp conftest.$ac_ext"
4666case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
4670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00004672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } >/dev/null; then
4678 if test -s conftest.err; then
4679 ac_cpp_err=$ac_c_preproc_warn_flag
4680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4681 else
4682 ac_cpp_err=
vlmfa67ddc2004-06-03 03:38:44 +00004683 fi
4684else
vlm8f3eb992004-06-17 23:42:48 +00004685 ac_cpp_err=yes
vlmfa67ddc2004-06-03 03:38:44 +00004686fi
vlm8f3eb992004-06-17 23:42:48 +00004687if test -z "$ac_cpp_err"; then
4688 :
4689else
4690 echo "$as_me: failed program was:" >&5
4691sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 # Broken: fails on valid input.
4694continue
4695fi
vlm83b901d2007-08-27 23:57:45 +00004696
vlm8f3eb992004-06-17 23:42:48 +00004697rm -f conftest.err conftest.$ac_ext
4698
vlm83b901d2007-08-27 23:57:45 +00004699 # OK, works on sane cases. Now check whether nonexistent headers
vlm8f3eb992004-06-17 23:42:48 +00004700 # can be detected and how.
4701 cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h. */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h. */
4707#include <ac_nonexistent.h>
4708_ACEOF
vlm83b901d2007-08-27 23:57:45 +00004709if { (ac_try="$ac_cpp conftest.$ac_ext"
4710case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713esac
4714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00004716 ac_status=$?
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } >/dev/null; then
4722 if test -s conftest.err; then
4723 ac_cpp_err=$ac_c_preproc_warn_flag
4724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4725 else
4726 ac_cpp_err=
4727 fi
4728else
4729 ac_cpp_err=yes
4730fi
4731if test -z "$ac_cpp_err"; then
4732 # Broken: success on invalid input.
4733continue
4734else
4735 echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 # Passes both tests.
4739ac_preproc_ok=:
4740break
4741fi
vlm83b901d2007-08-27 23:57:45 +00004742
vlm8f3eb992004-06-17 23:42:48 +00004743rm -f conftest.err conftest.$ac_ext
4744
4745done
4746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4747rm -f conftest.err conftest.$ac_ext
4748if $ac_preproc_ok; then
4749 break
4750fi
4751
4752 done
4753 ac_cv_prog_CPP=$CPP
4754
4755fi
4756 CPP=$ac_cv_prog_CPP
4757else
4758 ac_cv_prog_CPP=$CPP
4759fi
vlm83b901d2007-08-27 23:57:45 +00004760{ echo "$as_me:$LINENO: result: $CPP" >&5
4761echo "${ECHO_T}$CPP" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00004762ac_preproc_ok=false
4763for ac_c_preproc_warn_flag in '' yes
4764do
4765 # Use a header file that comes with gcc, so configuring glibc
4766 # with a fresh cross-compiler works.
4767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4768 # <limits.h> exists even on freestanding compilers.
4769 # On the NeXT, cc -E runs the code through the compiler's parser,
4770 # not just through cpp. "Syntax error" is here to catch this case.
4771 cat >conftest.$ac_ext <<_ACEOF
4772/* confdefs.h. */
4773_ACEOF
4774cat confdefs.h >>conftest.$ac_ext
4775cat >>conftest.$ac_ext <<_ACEOF
4776/* end confdefs.h. */
4777#ifdef __STDC__
4778# include <limits.h>
4779#else
4780# include <assert.h>
4781#endif
4782 Syntax error
4783_ACEOF
vlm83b901d2007-08-27 23:57:45 +00004784if { (ac_try="$ac_cpp conftest.$ac_ext"
4785case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788esac
4789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00004791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } >/dev/null; then
4797 if test -s conftest.err; then
4798 ac_cpp_err=$ac_c_preproc_warn_flag
4799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4800 else
4801 ac_cpp_err=
4802 fi
4803else
4804 ac_cpp_err=yes
4805fi
4806if test -z "$ac_cpp_err"; then
4807 :
4808else
4809 echo "$as_me: failed program was:" >&5
4810sed 's/^/| /' conftest.$ac_ext >&5
4811
4812 # Broken: fails on valid input.
4813continue
4814fi
vlm83b901d2007-08-27 23:57:45 +00004815
vlm8f3eb992004-06-17 23:42:48 +00004816rm -f conftest.err conftest.$ac_ext
4817
vlm83b901d2007-08-27 23:57:45 +00004818 # OK, works on sane cases. Now check whether nonexistent headers
vlm8f3eb992004-06-17 23:42:48 +00004819 # can be detected and how.
4820 cat >conftest.$ac_ext <<_ACEOF
4821/* confdefs.h. */
4822_ACEOF
4823cat confdefs.h >>conftest.$ac_ext
4824cat >>conftest.$ac_ext <<_ACEOF
4825/* end confdefs.h. */
4826#include <ac_nonexistent.h>
4827_ACEOF
vlm83b901d2007-08-27 23:57:45 +00004828if { (ac_try="$ac_cpp conftest.$ac_ext"
4829case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832esac
4833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00004835 ac_status=$?
4836 grep -v '^ *+' conftest.er1 >conftest.err
4837 rm -f conftest.er1
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } >/dev/null; then
4841 if test -s conftest.err; then
4842 ac_cpp_err=$ac_c_preproc_warn_flag
4843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4844 else
4845 ac_cpp_err=
4846 fi
4847else
4848 ac_cpp_err=yes
4849fi
4850if test -z "$ac_cpp_err"; then
4851 # Broken: success on invalid input.
4852continue
4853else
4854 echo "$as_me: failed program was:" >&5
4855sed 's/^/| /' conftest.$ac_ext >&5
4856
4857 # Passes both tests.
4858ac_preproc_ok=:
4859break
4860fi
vlm83b901d2007-08-27 23:57:45 +00004861
vlm8f3eb992004-06-17 23:42:48 +00004862rm -f conftest.err conftest.$ac_ext
4863
4864done
4865# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4866rm -f conftest.err conftest.$ac_ext
4867if $ac_preproc_ok; then
4868 :
4869else
4870 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4871See \`config.log' for more details." >&5
4872echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4873See \`config.log' for more details." >&2;}
4874 { (exit 1); exit 1; }; }
4875fi
4876
4877ac_ext=c
4878ac_cpp='$CPP $CPPFLAGS'
4879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882
4883
vlm83b901d2007-08-27 23:57:45 +00004884{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4885echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00004886if test "${ac_cv_header_stdc+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889 cat >conftest.$ac_ext <<_ACEOF
4890/* confdefs.h. */
4891_ACEOF
4892cat confdefs.h >>conftest.$ac_ext
4893cat >>conftest.$ac_ext <<_ACEOF
4894/* end confdefs.h. */
4895#include <stdlib.h>
4896#include <stdarg.h>
4897#include <string.h>
4898#include <float.h>
4899
4900int
4901main ()
4902{
4903
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +00004909if { (ac_try="$ac_compile"
4910case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913esac
4914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_compile") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00004916 ac_status=$?
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00004922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4923 { (case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926esac
4927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00004929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; } &&
4932 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +00004933 { (case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936esac
4937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00004939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 ac_cv_header_stdc=yes
4943else
4944 echo "$as_me: failed program was:" >&5
4945sed 's/^/| /' conftest.$ac_ext >&5
4946
vlm83b901d2007-08-27 23:57:45 +00004947 ac_cv_header_stdc=no
vlm8f3eb992004-06-17 23:42:48 +00004948fi
vlm83b901d2007-08-27 23:57:45 +00004949
4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlm8f3eb992004-06-17 23:42:48 +00004951
4952if test $ac_cv_header_stdc = yes; then
4953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960#include <string.h>
4961
4962_ACEOF
4963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4964 $EGREP "memchr" >/dev/null 2>&1; then
4965 :
4966else
4967 ac_cv_header_stdc=no
4968fi
4969rm -f conftest*
4970
4971fi
4972
4973if test $ac_cv_header_stdc = yes; then
4974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981#include <stdlib.h>
4982
4983_ACEOF
4984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4985 $EGREP "free" >/dev/null 2>&1; then
4986 :
4987else
4988 ac_cv_header_stdc=no
4989fi
4990rm -f conftest*
4991
4992fi
4993
4994if test $ac_cv_header_stdc = yes; then
4995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4996 if test "$cross_compiling" = yes; then
4997 :
4998else
4999 cat >conftest.$ac_ext <<_ACEOF
5000/* confdefs.h. */
5001_ACEOF
5002cat confdefs.h >>conftest.$ac_ext
5003cat >>conftest.$ac_ext <<_ACEOF
5004/* end confdefs.h. */
5005#include <ctype.h>
vlm83b901d2007-08-27 23:57:45 +00005006#include <stdlib.h>
vlm8f3eb992004-06-17 23:42:48 +00005007#if ((' ' & 0x0FF) == 0x020)
5008# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5009# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5010#else
5011# define ISLOWER(c) \
5012 (('a' <= (c) && (c) <= 'i') \
5013 || ('j' <= (c) && (c) <= 'r') \
5014 || ('s' <= (c) && (c) <= 'z'))
5015# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5016#endif
5017
5018#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5019int
5020main ()
5021{
5022 int i;
5023 for (i = 0; i < 256; i++)
5024 if (XOR (islower (i), ISLOWER (i))
5025 || toupper (i) != TOUPPER (i))
vlm83b901d2007-08-27 23:57:45 +00005026 return 2;
5027 return 0;
vlm8f3eb992004-06-17 23:42:48 +00005028}
5029_ACEOF
5030rm -f conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +00005031if { (ac_try="$ac_link"
5032case "(($ac_try" in
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5035esac
5036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_link") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +00005041 { (case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044esac
5045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 :
5051else
5052 echo "$as_me: program exited with status $ac_status" >&5
5053echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056( exit $ac_status )
5057ac_cv_header_stdc=no
5058fi
vlm83b901d2007-08-27 23:57:45 +00005059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5060fi
5061
5062
vlm8f3eb992004-06-17 23:42:48 +00005063fi
5064fi
vlm83b901d2007-08-27 23:57:45 +00005065{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5066echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005067if test $ac_cv_header_stdc = yes; then
5068
5069cat >>confdefs.h <<\_ACEOF
5070#define STDC_HEADERS 1
5071_ACEOF
5072
5073fi
5074
5075# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5086 inttypes.h stdint.h unistd.h
5087do
5088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
vlm83b901d2007-08-27 23:57:45 +00005089{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
vlm8f3eb992004-06-17 23:42:48 +00005092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 cat >conftest.$ac_ext <<_ACEOF
5095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
5099/* end confdefs.h. */
5100$ac_includes_default
5101
5102#include <$ac_header>
5103_ACEOF
5104rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +00005105if { (ac_try="$ac_compile"
5106case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109esac
5110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_compile") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00005112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00005118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5119 { (case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122esac
5123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; } &&
5128 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +00005129 { (case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132esac
5133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 eval "$as_ac_Header=yes"
5139else
5140 echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
vlm83b901d2007-08-27 23:57:45 +00005143 eval "$as_ac_Header=no"
vlm8f3eb992004-06-17 23:42:48 +00005144fi
vlm83b901d2007-08-27 23:57:45 +00005145
5146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlm8f3eb992004-06-17 23:42:48 +00005147fi
vlm83b901d2007-08-27 23:57:45 +00005148ac_res=`eval echo '${'$as_ac_Header'}'`
5149 { echo "$as_me:$LINENO: result: $ac_res" >&5
5150echo "${ECHO_T}$ac_res" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005151if test `eval echo '${'$as_ac_Header'}'` = yes; then
5152 cat >>confdefs.h <<_ACEOF
5153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5154_ACEOF
5155
5156fi
5157
5158done
5159
5160
5161
5162for ac_header in dlfcn.h
5163do
5164as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
vlm83b901d2007-08-27 23:57:45 +00005165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
vlm8f3eb992004-06-17 23:42:48 +00005169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170fi
vlm83b901d2007-08-27 23:57:45 +00005171ac_res=`eval echo '${'$as_ac_Header'}'`
5172 { echo "$as_me:$LINENO: result: $ac_res" >&5
5173echo "${ECHO_T}$ac_res" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005174else
5175 # Is the header compilable?
vlm83b901d2007-08-27 23:57:45 +00005176{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5177echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005178cat >conftest.$ac_ext <<_ACEOF
5179/* confdefs.h. */
5180_ACEOF
5181cat confdefs.h >>conftest.$ac_ext
5182cat >>conftest.$ac_ext <<_ACEOF
5183/* end confdefs.h. */
5184$ac_includes_default
5185#include <$ac_header>
5186_ACEOF
5187rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +00005188if { (ac_try="$ac_compile"
5189case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192esac
5193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compile") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00005195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00005201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5202 { (case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205esac
5206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005208 ac_status=$?
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; } &&
5211 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +00005212 { (case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215esac
5216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 ac_header_compiler=yes
5222else
5223 echo "$as_me: failed program was:" >&5
5224sed 's/^/| /' conftest.$ac_ext >&5
5225
vlm83b901d2007-08-27 23:57:45 +00005226 ac_header_compiler=no
vlm8f3eb992004-06-17 23:42:48 +00005227fi
vlm83b901d2007-08-27 23:57:45 +00005228
5229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5231echo "${ECHO_T}$ac_header_compiler" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005232
5233# Is the header present?
vlm83b901d2007-08-27 23:57:45 +00005234{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005236cat >conftest.$ac_ext <<_ACEOF
5237/* confdefs.h. */
5238_ACEOF
5239cat confdefs.h >>conftest.$ac_ext
5240cat >>conftest.$ac_ext <<_ACEOF
5241/* end confdefs.h. */
5242#include <$ac_header>
5243_ACEOF
vlm83b901d2007-08-27 23:57:45 +00005244if { (ac_try="$ac_cpp conftest.$ac_ext"
5245case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248esac
5249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00005251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } >/dev/null; then
5257 if test -s conftest.err; then
5258 ac_cpp_err=$ac_c_preproc_warn_flag
5259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5260 else
5261 ac_cpp_err=
5262 fi
5263else
5264 ac_cpp_err=yes
5265fi
5266if test -z "$ac_cpp_err"; then
5267 ac_header_preproc=yes
5268else
5269 echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ac_header_preproc=no
5273fi
vlm83b901d2007-08-27 23:57:45 +00005274
vlm8f3eb992004-06-17 23:42:48 +00005275rm -f conftest.err conftest.$ac_ext
vlm83b901d2007-08-27 23:57:45 +00005276{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5277echo "${ECHO_T}$ac_header_preproc" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005278
5279# So? What about this header?
5280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5281 yes:no: )
5282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5283echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5285echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5286 ac_header_preproc=yes
5287 ;;
5288 no:yes:* )
5289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5290echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5292echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5294echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5296echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5300echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
vlm83b901d2007-08-27 23:57:45 +00005301
vlm8f3eb992004-06-17 23:42:48 +00005302 ;;
5303esac
vlm83b901d2007-08-27 23:57:45 +00005304{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
vlm8f3eb992004-06-17 23:42:48 +00005307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 eval "$as_ac_Header=\$ac_header_preproc"
5310fi
vlm83b901d2007-08-27 23:57:45 +00005311ac_res=`eval echo '${'$as_ac_Header'}'`
5312 { echo "$as_me:$LINENO: result: $ac_res" >&5
5313echo "${ECHO_T}$ac_res" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005314
5315fi
5316if test `eval echo '${'$as_ac_Header'}'` = yes; then
5317 cat >>confdefs.h <<_ACEOF
5318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5319_ACEOF
5320
5321fi
5322
5323done
5324
vlm83b901d2007-08-27 23:57:45 +00005325ac_ext=cpp
vlm8f3eb992004-06-17 23:42:48 +00005326ac_cpp='$CXXCPP $CPPFLAGS'
5327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
vlm83b901d2007-08-27 23:57:45 +00005330if test -z "$CXX"; then
5331 if test -n "$CCC"; then
5332 CXX=$CCC
5333 else
5334 if test -n "$ac_tool_prefix"; then
5335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
vlm8f3eb992004-06-17 23:42:48 +00005336 do
5337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5338set dummy $ac_tool_prefix$ac_prog; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +00005339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005341if test "${ac_cv_prog_CXX+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
5344 if test -n "$CXX"; then
5345 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5346else
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +00005353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +00005354 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358done
5359done
vlm83b901d2007-08-27 23:57:45 +00005360IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00005361
5362fi
5363fi
5364CXX=$ac_cv_prog_CXX
5365if test -n "$CXX"; then
vlm83b901d2007-08-27 23:57:45 +00005366 { echo "$as_me:$LINENO: result: $CXX" >&5
5367echo "${ECHO_T}$CXX" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005368else
vlm83b901d2007-08-27 23:57:45 +00005369 { echo "$as_me:$LINENO: result: no" >&5
5370echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005371fi
5372
vlm83b901d2007-08-27 23:57:45 +00005373
vlm8f3eb992004-06-17 23:42:48 +00005374 test -n "$CXX" && break
5375 done
5376fi
5377if test -z "$CXX"; then
5378 ac_ct_CXX=$CXX
vlm83b901d2007-08-27 23:57:45 +00005379 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
vlm8f3eb992004-06-17 23:42:48 +00005380do
5381 # Extract the first word of "$ac_prog", so it can be a program name with args.
5382set dummy $ac_prog; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +00005383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005385if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 if test -n "$ac_ct_CXX"; then
5389 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5390else
5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +00005397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +00005398 ac_cv_prog_ac_ct_CXX="$ac_prog"
5399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402done
5403done
vlm83b901d2007-08-27 23:57:45 +00005404IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00005405
5406fi
5407fi
5408ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5409if test -n "$ac_ct_CXX"; then
vlm83b901d2007-08-27 23:57:45 +00005410 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5411echo "${ECHO_T}$ac_ct_CXX" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005412else
vlm83b901d2007-08-27 23:57:45 +00005413 { echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005415fi
5416
vlm83b901d2007-08-27 23:57:45 +00005417
vlm8f3eb992004-06-17 23:42:48 +00005418 test -n "$ac_ct_CXX" && break
5419done
vlm8f3eb992004-06-17 23:42:48 +00005420
vlm83b901d2007-08-27 23:57:45 +00005421 if test "x$ac_ct_CXX" = x; then
5422 CXX="g++"
5423 else
5424 case $cross_compiling:$ac_tool_warned in
5425yes:)
5426{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5427whose name does not start with the host triplet. If you think this
5428configuration is useful to you, please write to autoconf@gnu.org." >&5
5429echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5430whose name does not start with the host triplet. If you think this
5431configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5432ac_tool_warned=yes ;;
5433esac
5434 CXX=$ac_ct_CXX
5435 fi
vlm8f3eb992004-06-17 23:42:48 +00005436fi
5437
vlm83b901d2007-08-27 23:57:45 +00005438 fi
5439fi
vlm8f3eb992004-06-17 23:42:48 +00005440# Provide some information about the compiler.
vlm83b901d2007-08-27 23:57:45 +00005441echo "$as_me:$LINENO: checking for C++ compiler version" >&5
vlm8f3eb992004-06-17 23:42:48 +00005442ac_compiler=`set X $ac_compile; echo $2`
vlm83b901d2007-08-27 23:57:45 +00005443{ (ac_try="$ac_compiler --version >&5"
5444case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compiler --version >&5") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }
vlm83b901d2007-08-27 23:57:45 +00005453{ (ac_try="$ac_compiler -v >&5"
5454case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457esac
5458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_compiler -v >&5") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }
vlm83b901d2007-08-27 23:57:45 +00005463{ (ac_try="$ac_compiler -V >&5"
5464case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467esac
5468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compiler -V >&5") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }
5473
vlm83b901d2007-08-27 23:57:45 +00005474{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5475echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005476if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 cat >conftest.$ac_ext <<_ACEOF
5480/* confdefs.h. */
5481_ACEOF
5482cat confdefs.h >>conftest.$ac_ext
5483cat >>conftest.$ac_ext <<_ACEOF
5484/* end confdefs.h. */
5485
5486int
5487main ()
5488{
5489#ifndef __GNUC__
5490 choke me
5491#endif
5492
5493 ;
5494 return 0;
5495}
5496_ACEOF
5497rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +00005498if { (ac_try="$ac_compile"
5499case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502esac
5503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_compile") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00005505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00005511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5512 { (case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +00005522 { (case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525esac
5526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_compiler_gnu=yes
5532else
5533 echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
vlm83b901d2007-08-27 23:57:45 +00005536 ac_compiler_gnu=no
vlm8f3eb992004-06-17 23:42:48 +00005537fi
vlm83b901d2007-08-27 23:57:45 +00005538
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlm8f3eb992004-06-17 23:42:48 +00005540ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5541
5542fi
vlm83b901d2007-08-27 23:57:45 +00005543{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5544echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005545GXX=`test $ac_compiler_gnu = yes && echo yes`
5546ac_test_CXXFLAGS=${CXXFLAGS+set}
5547ac_save_CXXFLAGS=$CXXFLAGS
vlm83b901d2007-08-27 23:57:45 +00005548{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5549echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005550if test "${ac_cv_prog_cxx_g+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
vlm83b901d2007-08-27 23:57:45 +00005553 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5554 ac_cxx_werror_flag=yes
5555 ac_cv_prog_cxx_g=no
5556 CXXFLAGS="-g"
5557 cat >conftest.$ac_ext <<_ACEOF
vlm8f3eb992004-06-17 23:42:48 +00005558/* confdefs.h. */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
5562/* end confdefs.h. */
5563
5564int
5565main ()
5566{
5567
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +00005573if { (ac_try="$ac_compile"
5574case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577esac
5578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_compile") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00005580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00005586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5587 { (case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590esac
5591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +00005597 { (case "(($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_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00005603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_prog_cxx_g=yes
5607else
5608 echo "$as_me: failed program was:" >&5
5609sed 's/^/| /' conftest.$ac_ext >&5
5610
vlm83b901d2007-08-27 23:57:45 +00005611 CXXFLAGS=""
5612 cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
5618
5619int
5620main ()
5621{
5622
5623 ;
5624 return 0;
5625}
5626_ACEOF
5627rm -f conftest.$ac_objext
5628if { (ac_try="$ac_compile"
5629case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632esac
5633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5642 { (case "(($ac_try" in
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5645esac
5646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_try") 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; } &&
5651 { ac_try='test -s conftest.$ac_objext'
5652 { (case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655esac
5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_try") 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5661 :
5662else
5663 echo "$as_me: failed program was:" >&5
5664sed 's/^/| /' conftest.$ac_ext >&5
5665
5666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5667 CXXFLAGS="-g"
5668 cat >conftest.$ac_ext <<_ACEOF
5669/* confdefs.h. */
5670_ACEOF
5671cat confdefs.h >>conftest.$ac_ext
5672cat >>conftest.$ac_ext <<_ACEOF
5673/* end confdefs.h. */
5674
5675int
5676main ()
5677{
5678
5679 ;
5680 return 0;
5681}
5682_ACEOF
5683rm -f conftest.$ac_objext
5684if { (ac_try="$ac_compile"
5685case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688esac
5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711esac
5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_prog_cxx_g=yes
5718else
5719 echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722
vlm8f3eb992004-06-17 23:42:48 +00005723fi
vlm83b901d2007-08-27 23:57:45 +00005724
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlm8f3eb992004-06-17 23:42:48 +00005726fi
vlm83b901d2007-08-27 23:57:45 +00005727
5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729fi
5730
5731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5733fi
5734{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5735echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005736if test "$ac_test_CXXFLAGS" = set; then
5737 CXXFLAGS=$ac_save_CXXFLAGS
5738elif test $ac_cv_prog_cxx_g = yes; then
5739 if test "$GXX" = yes; then
5740 CXXFLAGS="-g -O2"
5741 else
5742 CXXFLAGS="-g"
5743 fi
5744else
5745 if test "$GXX" = yes; then
5746 CXXFLAGS="-O2"
5747 else
5748 CXXFLAGS=
5749 fi
5750fi
vlm83b901d2007-08-27 23:57:45 +00005751ac_ext=cpp
vlm8f3eb992004-06-17 23:42:48 +00005752ac_cpp='$CXXCPP $CPPFLAGS'
5753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5756
5757depcc="$CXX" am_compiler_list=
5758
vlm83b901d2007-08-27 23:57:45 +00005759{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5760echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005761if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763else
5764 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5765 # We make a subdir and do the tests there. Otherwise we can end up
5766 # making bogus files that we don't know about and never remove. For
5767 # instance it was reported that on HP-UX the gcc test will end up
5768 # making a dummy file named `D' -- because `-MD' means `put the output
5769 # in D'.
5770 mkdir conftest.dir
5771 # Copy depcomp to subdir because otherwise we won't find it if we're
5772 # using a relative directory.
5773 cp "$am_depcomp" conftest.dir
5774 cd conftest.dir
5775 # We will build objects and dependencies in a subdirectory because
5776 # it helps to detect inapplicable dependency modes. For instance
5777 # both Tru64's cc and ICC support -MD to output dependencies as a
5778 # side effect of compilation, but ICC will put the dependencies in
5779 # the current directory while Tru64 will put them in the object
5780 # directory.
5781 mkdir sub
5782
5783 am_cv_CXX_dependencies_compiler_type=none
5784 if test "$am_compiler_list" = ""; then
5785 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5786 fi
5787 for depmode in $am_compiler_list; do
5788 # Setup a source with many dependencies, because some compilers
5789 # like to wrap large dependency lists on column 80 (with \), and
5790 # we should not choose a depcomp mode which is confused by this.
5791 #
5792 # We need to recreate these files for each test, as the compiler may
5793 # overwrite some of them when testing with obscure command lines.
5794 # This happens at least with the AIX C compiler.
5795 : > sub/conftest.c
5796 for i in 1 2 3 4 5 6; do
5797 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5798 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5799 # Solaris 8's {/usr,}/bin/sh.
5800 touch sub/conftst$i.h
5801 done
5802 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5803
5804 case $depmode in
5805 nosideeffect)
5806 # after this tag, mechanisms are not by side-effect, so they'll
5807 # only be used when explicitly requested
5808 if test "x$enable_dependency_tracking" = xyes; then
5809 continue
5810 else
5811 break
5812 fi
5813 ;;
5814 none) break ;;
5815 esac
5816 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5817 # mode. It turns out that the SunPro C++ compiler does not properly
5818 # handle `-M -o', and we need to detect this.
5819 if depmode=$depmode \
5820 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5822 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5823 >/dev/null 2>conftest.err &&
5824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5825 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5827 # icc doesn't choke on unknown options, it will just issue warnings
5828 # or remarks (even with -Werror). So we grep stderr for any message
5829 # that says an option was ignored or not supported.
5830 # When given -MP, icc 7.0 and 7.1 complain thusly:
5831 # icc: Command line warning: ignoring option '-M'; no argument required
5832 # The diagnosis changed in icc 8.0:
5833 # icc: Command line remark: option '-MP' not supported
5834 if (grep 'ignoring option' conftest.err ||
5835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5836 am_cv_CXX_dependencies_compiler_type=$depmode
5837 break
5838 fi
5839 fi
5840 done
5841
5842 cd ..
5843 rm -rf conftest.dir
5844else
5845 am_cv_CXX_dependencies_compiler_type=none
5846fi
5847
5848fi
vlm83b901d2007-08-27 23:57:45 +00005849{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5850echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005851CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5852
5853
5854
5855if
5856 test "x$enable_dependency_tracking" != xno \
5857 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5858 am__fastdepCXX_TRUE=
5859 am__fastdepCXX_FALSE='#'
5860else
5861 am__fastdepCXX_TRUE='#'
5862 am__fastdepCXX_FALSE=
5863fi
5864
5865
vlm55681242007-12-03 14:58:39 +00005866
5867
5868if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5869 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5870 (test "X$CXX" != "Xg++"))) ; then
5871 ac_ext=cpp
vlm8f3eb992004-06-17 23:42:48 +00005872ac_cpp='$CXXCPP $CPPFLAGS'
5873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
vlm83b901d2007-08-27 23:57:45 +00005876{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5877echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00005878if test -z "$CXXCPP"; then
5879 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882 # Double quotes because CXXCPP needs to be expanded
5883 for CXXCPP in "$CXX -E" "/lib/cpp"
5884 do
5885 ac_preproc_ok=false
5886for ac_cxx_preproc_warn_flag in '' yes
5887do
5888 # Use a header file that comes with gcc, so configuring glibc
5889 # with a fresh cross-compiler works.
5890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5891 # <limits.h> exists even on freestanding compilers.
5892 # On the NeXT, cc -E runs the code through the compiler's parser,
5893 # not just through cpp. "Syntax error" is here to catch this case.
5894 cat >conftest.$ac_ext <<_ACEOF
5895/* confdefs.h. */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h. */
5900#ifdef __STDC__
5901# include <limits.h>
5902#else
5903# include <assert.h>
5904#endif
5905 Syntax error
5906_ACEOF
vlm83b901d2007-08-27 23:57:45 +00005907if { (ac_try="$ac_cpp conftest.$ac_ext"
5908case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911esac
5912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00005914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } >/dev/null; then
5920 if test -s conftest.err; then
5921 ac_cpp_err=$ac_cxx_preproc_warn_flag
5922 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5923 else
5924 ac_cpp_err=
5925 fi
5926else
5927 ac_cpp_err=yes
5928fi
5929if test -z "$ac_cpp_err"; then
5930 :
5931else
5932 echo "$as_me: failed program was:" >&5
5933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 # Broken: fails on valid input.
5936continue
5937fi
vlm83b901d2007-08-27 23:57:45 +00005938
vlm8f3eb992004-06-17 23:42:48 +00005939rm -f conftest.err conftest.$ac_ext
5940
vlm83b901d2007-08-27 23:57:45 +00005941 # OK, works on sane cases. Now check whether nonexistent headers
vlm8f3eb992004-06-17 23:42:48 +00005942 # can be detected and how.
5943 cat >conftest.$ac_ext <<_ACEOF
5944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */
5949#include <ac_nonexistent.h>
5950_ACEOF
vlm83b901d2007-08-27 23:57:45 +00005951if { (ac_try="$ac_cpp conftest.$ac_ext"
5952case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00005958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } >/dev/null; then
5964 if test -s conftest.err; then
5965 ac_cpp_err=$ac_cxx_preproc_warn_flag
5966 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5967 else
5968 ac_cpp_err=
5969 fi
5970else
5971 ac_cpp_err=yes
5972fi
5973if test -z "$ac_cpp_err"; then
5974 # Broken: success on invalid input.
5975continue
5976else
5977 echo "$as_me: failed program was:" >&5
5978sed 's/^/| /' conftest.$ac_ext >&5
5979
5980 # Passes both tests.
5981ac_preproc_ok=:
5982break
5983fi
vlm83b901d2007-08-27 23:57:45 +00005984
vlm8f3eb992004-06-17 23:42:48 +00005985rm -f conftest.err conftest.$ac_ext
5986
5987done
5988# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5989rm -f conftest.err conftest.$ac_ext
5990if $ac_preproc_ok; then
5991 break
5992fi
5993
5994 done
5995 ac_cv_prog_CXXCPP=$CXXCPP
5996
5997fi
5998 CXXCPP=$ac_cv_prog_CXXCPP
5999else
6000 ac_cv_prog_CXXCPP=$CXXCPP
6001fi
vlm83b901d2007-08-27 23:57:45 +00006002{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6003echo "${ECHO_T}$CXXCPP" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006004ac_preproc_ok=false
6005for ac_cxx_preproc_warn_flag in '' yes
6006do
6007 # Use a header file that comes with gcc, so configuring glibc
6008 # with a fresh cross-compiler works.
6009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6010 # <limits.h> exists even on freestanding compilers.
6011 # On the NeXT, cc -E runs the code through the compiler's parser,
6012 # not just through cpp. "Syntax error" is here to catch this case.
6013 cat >conftest.$ac_ext <<_ACEOF
6014/* confdefs.h. */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h. */
6019#ifdef __STDC__
6020# include <limits.h>
6021#else
6022# include <assert.h>
6023#endif
6024 Syntax error
6025_ACEOF
vlm83b901d2007-08-27 23:57:45 +00006026if { (ac_try="$ac_cpp conftest.$ac_ext"
6027case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6030esac
6031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00006033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } >/dev/null; then
6039 if test -s conftest.err; then
6040 ac_cpp_err=$ac_cxx_preproc_warn_flag
6041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6042 else
6043 ac_cpp_err=
6044 fi
6045else
6046 ac_cpp_err=yes
6047fi
6048if test -z "$ac_cpp_err"; then
6049 :
6050else
6051 echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 # Broken: fails on valid input.
6055continue
6056fi
vlm83b901d2007-08-27 23:57:45 +00006057
vlm8f3eb992004-06-17 23:42:48 +00006058rm -f conftest.err conftest.$ac_ext
6059
vlm83b901d2007-08-27 23:57:45 +00006060 # OK, works on sane cases. Now check whether nonexistent headers
vlm8f3eb992004-06-17 23:42:48 +00006061 # can be detected and how.
6062 cat >conftest.$ac_ext <<_ACEOF
6063/* confdefs.h. */
6064_ACEOF
6065cat confdefs.h >>conftest.$ac_ext
6066cat >>conftest.$ac_ext <<_ACEOF
6067/* end confdefs.h. */
6068#include <ac_nonexistent.h>
6069_ACEOF
vlm83b901d2007-08-27 23:57:45 +00006070if { (ac_try="$ac_cpp conftest.$ac_ext"
6071case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074esac
6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00006077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } >/dev/null; then
6083 if test -s conftest.err; then
6084 ac_cpp_err=$ac_cxx_preproc_warn_flag
6085 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6086 else
6087 ac_cpp_err=
6088 fi
6089else
6090 ac_cpp_err=yes
6091fi
6092if test -z "$ac_cpp_err"; then
6093 # Broken: success on invalid input.
6094continue
6095else
6096 echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 # Passes both tests.
6100ac_preproc_ok=:
6101break
6102fi
vlm83b901d2007-08-27 23:57:45 +00006103
vlm8f3eb992004-06-17 23:42:48 +00006104rm -f conftest.err conftest.$ac_ext
6105
6106done
6107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6108rm -f conftest.err conftest.$ac_ext
6109if $ac_preproc_ok; then
6110 :
6111else
6112 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6113See \`config.log' for more details." >&5
6114echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6115See \`config.log' for more details." >&2;}
6116 { (exit 1); exit 1; }; }
6117fi
6118
vlm83b901d2007-08-27 23:57:45 +00006119ac_ext=cpp
vlm8f3eb992004-06-17 23:42:48 +00006120ac_cpp='$CXXCPP $CPPFLAGS'
6121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6124
vlm55681242007-12-03 14:58:39 +00006125fi
6126
vlm8f3eb992004-06-17 23:42:48 +00006127
6128ac_ext=f
6129ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6130ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6132if test -n "$ac_tool_prefix"; then
vlm83b901d2007-08-27 23:57:45 +00006133 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
vlm8f3eb992004-06-17 23:42:48 +00006134 do
6135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +00006137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006139if test "${ac_cv_prog_F77+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 if test -n "$F77"; then
6143 ac_cv_prog_F77="$F77" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +00006151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +00006152 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156done
6157done
vlm83b901d2007-08-27 23:57:45 +00006158IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00006159
6160fi
6161fi
6162F77=$ac_cv_prog_F77
6163if test -n "$F77"; then
vlm83b901d2007-08-27 23:57:45 +00006164 { echo "$as_me:$LINENO: result: $F77" >&5
6165echo "${ECHO_T}$F77" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006166else
vlm83b901d2007-08-27 23:57:45 +00006167 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006169fi
6170
vlm83b901d2007-08-27 23:57:45 +00006171
vlm8f3eb992004-06-17 23:42:48 +00006172 test -n "$F77" && break
6173 done
6174fi
6175if test -z "$F77"; then
6176 ac_ct_F77=$F77
vlm83b901d2007-08-27 23:57:45 +00006177 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
vlm8f3eb992004-06-17 23:42:48 +00006178do
6179 # Extract the first word of "$ac_prog", so it can be a program name with args.
6180set dummy $ac_prog; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +00006181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006183if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186 if test -n "$ac_ct_F77"; then
6187 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +00006195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +00006196 ac_cv_prog_ac_ct_F77="$ac_prog"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200done
6201done
vlm83b901d2007-08-27 23:57:45 +00006202IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00006203
6204fi
6205fi
6206ac_ct_F77=$ac_cv_prog_ac_ct_F77
6207if test -n "$ac_ct_F77"; then
vlm83b901d2007-08-27 23:57:45 +00006208 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6209echo "${ECHO_T}$ac_ct_F77" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006210else
vlm83b901d2007-08-27 23:57:45 +00006211 { echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006213fi
6214
vlm83b901d2007-08-27 23:57:45 +00006215
vlm8f3eb992004-06-17 23:42:48 +00006216 test -n "$ac_ct_F77" && break
6217done
6218
vlm83b901d2007-08-27 23:57:45 +00006219 if test "x$ac_ct_F77" = x; then
6220 F77=""
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223yes:)
6224{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6225whose name does not start with the host triplet. If you think this
6226configuration is useful to you, please write to autoconf@gnu.org." >&5
6227echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6228whose name does not start with the host triplet. If you think this
6229configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6230ac_tool_warned=yes ;;
6231esac
6232 F77=$ac_ct_F77
6233 fi
vlm8f3eb992004-06-17 23:42:48 +00006234fi
6235
6236
6237# Provide some information about the compiler.
vlm83b901d2007-08-27 23:57:45 +00006238echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
vlm8f3eb992004-06-17 23:42:48 +00006239ac_compiler=`set X $ac_compile; echo $2`
vlm83b901d2007-08-27 23:57:45 +00006240{ (ac_try="$ac_compiler --version >&5"
6241case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244esac
6245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_compiler --version >&5") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00006247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }
vlm83b901d2007-08-27 23:57:45 +00006250{ (ac_try="$ac_compiler -v >&5"
6251case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254esac
6255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_compiler -v >&5") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00006257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }
vlm83b901d2007-08-27 23:57:45 +00006260{ (ac_try="$ac_compiler -V >&5"
6261case "(($ac_try" in
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6264esac
6265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_compiler -V >&5") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00006267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }
6270rm -f a.out
6271
6272# If we don't use `.F' as extension, the preprocessor is not run on the
6273# input file. (Note that this only needs to work for GNU compilers.)
6274ac_save_ext=$ac_ext
6275ac_ext=F
vlm83b901d2007-08-27 23:57:45 +00006276{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6277echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006278if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280else
6281 cat >conftest.$ac_ext <<_ACEOF
6282 program main
6283#ifndef __GNUC__
6284 choke me
6285#endif
6286
6287 end
6288_ACEOF
6289rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +00006290if { (ac_try="$ac_compile"
6291case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294esac
6295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_compile") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00006297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00006303 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6304 { (case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307esac
6308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00006310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; } &&
6313 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +00006314 { (case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317esac
6318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00006320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_compiler_gnu=yes
6324else
6325 echo "$as_me: failed program was:" >&5
6326sed 's/^/| /' conftest.$ac_ext >&5
6327
vlm83b901d2007-08-27 23:57:45 +00006328 ac_compiler_gnu=no
vlm8f3eb992004-06-17 23:42:48 +00006329fi
vlm83b901d2007-08-27 23:57:45 +00006330
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlm8f3eb992004-06-17 23:42:48 +00006332ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6333
6334fi
vlm83b901d2007-08-27 23:57:45 +00006335{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6336echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006337ac_ext=$ac_save_ext
6338ac_test_FFLAGS=${FFLAGS+set}
6339ac_save_FFLAGS=$FFLAGS
6340FFLAGS=
vlm83b901d2007-08-27 23:57:45 +00006341{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6342echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006343if test "${ac_cv_prog_f77_g+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346 FFLAGS=-g
6347cat >conftest.$ac_ext <<_ACEOF
6348 program main
6349
6350 end
6351_ACEOF
6352rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +00006353if { (ac_try="$ac_compile"
6354case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357esac
6358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compile") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00006360 ac_status=$?
6361 grep -v '^ *+' conftest.er1 >conftest.err
6362 rm -f conftest.er1
6363 cat conftest.err >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00006366 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6367 { (case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6370esac
6371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00006373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +00006377 { (case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380esac
6381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00006383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_prog_f77_g=yes
6387else
6388 echo "$as_me: failed program was:" >&5
6389sed 's/^/| /' conftest.$ac_ext >&5
6390
vlm83b901d2007-08-27 23:57:45 +00006391 ac_cv_prog_f77_g=no
vlm8f3eb992004-06-17 23:42:48 +00006392fi
vlm83b901d2007-08-27 23:57:45 +00006393
6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlm8f3eb992004-06-17 23:42:48 +00006395
6396fi
vlm83b901d2007-08-27 23:57:45 +00006397{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6398echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006399if test "$ac_test_FFLAGS" = set; then
6400 FFLAGS=$ac_save_FFLAGS
6401elif test $ac_cv_prog_f77_g = yes; then
6402 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6403 FFLAGS="-g -O2"
6404 else
6405 FFLAGS="-g"
6406 fi
6407else
6408 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6409 FFLAGS="-O2"
6410 else
6411 FFLAGS=
6412 fi
6413fi
6414
6415G77=`test $ac_compiler_gnu = yes && echo yes`
6416ac_ext=c
6417ac_cpp='$CPP $CPPFLAGS'
6418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6420ac_compiler_gnu=$ac_cv_c_compiler_gnu
6421
6422
6423
6424# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6425
6426# find the maximum length of command line arguments
vlm83b901d2007-08-27 23:57:45 +00006427{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6428echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006429if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431else
6432 i=0
6433 teststring="ABCD"
6434
6435 case $build_os in
6436 msdosdjgpp*)
6437 # On DJGPP, this test can blow up pretty badly due to problems in libc
6438 # (any single argument exceeding 2000 bytes causes a buffer overrun
6439 # during glob expansion). Even if it were fixed, the result of this
6440 # check would be larger than it should be.
6441 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6442 ;;
6443
6444 gnu*)
6445 # Under GNU Hurd, this test is not required because there is
6446 # no limit to the length of command line arguments.
6447 # Libtool will interpret -1 as no limit whatsoever
6448 lt_cv_sys_max_cmd_len=-1;
6449 ;;
6450
6451 cygwin* | mingw*)
6452 # On Win9x/ME, this test blows up -- it succeeds, but takes
6453 # about 5 minutes as the teststring grows exponentially.
6454 # Worse, since 9x/ME are not pre-emptively multitasking,
6455 # you end up with a "frozen" computer, even though with patience
6456 # the test eventually succeeds (with a max line length of 256k).
6457 # Instead, let's just punt: use the minimum linelength reported by
6458 # all of the supported platforms: 8192 (on NT/2K/XP).
6459 lt_cv_sys_max_cmd_len=8192;
6460 ;;
6461
6462 amigaos*)
6463 # On AmigaOS with pdksh, this test takes hours, literally.
6464 # So we just punt and use a minimum line length of 8192.
6465 lt_cv_sys_max_cmd_len=8192;
6466 ;;
6467
vlm55681242007-12-03 14:58:39 +00006468 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6469 # This has been around since 386BSD, at least. Likely further.
6470 if test -x /sbin/sysctl; then
6471 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6472 elif test -x /usr/sbin/sysctl; then
6473 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6474 else
6475 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6476 fi
6477 # And add a safety zone
6478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6480 ;;
6481
6482 interix*)
6483 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6484 lt_cv_sys_max_cmd_len=196608
6485 ;;
6486
6487 osf*)
6488 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6489 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6490 # nice to cause kernel panics so lets avoid the loop below.
6491 # First set a reasonable default.
6492 lt_cv_sys_max_cmd_len=16384
6493 #
6494 if test -x /sbin/sysconfig; then
6495 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6496 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6497 esac
6498 fi
6499 ;;
6500 sco3.2v5*)
6501 lt_cv_sys_max_cmd_len=102400
6502 ;;
6503 sysv5* | sco5v6* | sysv4.2uw2*)
6504 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6505 if test -n "$kargmax"; then
6506 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6507 else
6508 lt_cv_sys_max_cmd_len=32768
6509 fi
6510 ;;
6511 *)
vlm8f3eb992004-06-17 23:42:48 +00006512 # If test is not a shell built-in, we'll probably end up computing a
6513 # maximum length that is only half of the actual maximum length, but
6514 # we can't tell.
vlm55681242007-12-03 14:58:39 +00006515 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6516 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
vlm8f3eb992004-06-17 23:42:48 +00006517 = "XX$teststring") >/dev/null 2>&1 &&
6518 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6519 lt_cv_sys_max_cmd_len=$new_result &&
6520 test $i != 17 # 1/2 MB should be enough
6521 do
6522 i=`expr $i + 1`
6523 teststring=$teststring$teststring
6524 done
6525 teststring=
6526 # Add a significant safety factor because C++ compilers can tack on massive
6527 # amounts of additional arguments before passing them to the linker.
6528 # It appears as though 1/2 is a usable value.
6529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6530 ;;
6531 esac
6532
6533fi
6534
6535if test -n $lt_cv_sys_max_cmd_len ; then
vlm83b901d2007-08-27 23:57:45 +00006536 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6537echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006538else
vlm83b901d2007-08-27 23:57:45 +00006539 { echo "$as_me:$LINENO: result: none" >&5
6540echo "${ECHO_T}none" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006541fi
6542
6543
6544
6545
6546# Check for command to grab the raw symbol name followed by C symbol from nm.
vlm83b901d2007-08-27 23:57:45 +00006547{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6548echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006549if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551else
6552
6553# These are sane defaults that work on at least a few old systems.
6554# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6555
6556# Character class describing NM global symbol codes.
6557symcode='[BCDEGRST]'
6558
6559# Regexp to match symbols that can be accessed directly from C.
6560sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6561
vlm8f3eb992004-06-17 23:42:48 +00006562# Transform an extracted symbol line into a proper C declaration
6563lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6564
6565# Transform an extracted symbol line into symbol name and symbol address
6566lt_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'"
6567
6568# Define system-specific variables.
6569case $host_os in
6570aix*)
6571 symcode='[BCDT]'
6572 ;;
6573cygwin* | mingw* | pw32*)
6574 symcode='[ABCDGISTW]'
6575 ;;
6576hpux*) # Its linker distinguishes data from code symbols
6577 if test "$host_cpu" = ia64; then
6578 symcode='[ABCDEGRST]'
6579 fi
6580 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6581 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'"
6582 ;;
vlm55681242007-12-03 14:58:39 +00006583linux*)
6584 if test "$host_cpu" = ia64; then
6585 symcode='[ABCDGIRSTW]'
6586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6587 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'"
6588 fi
6589 ;;
vlm8f3eb992004-06-17 23:42:48 +00006590irix* | nonstopux*)
6591 symcode='[BCDEGRST]'
6592 ;;
6593osf*)
6594 symcode='[BCDEGQRST]'
6595 ;;
vlm55681242007-12-03 14:58:39 +00006596solaris*)
vlm8f3eb992004-06-17 23:42:48 +00006597 symcode='[BDRT]'
6598 ;;
vlm55681242007-12-03 14:58:39 +00006599sco3.2v5*)
6600 symcode='[DT]'
6601 ;;
6602sysv4.2uw2*)
6603 symcode='[DT]'
6604 ;;
6605sysv5* | sco5v6* | unixware* | OpenUNIX*)
6606 symcode='[ABDT]'
6607 ;;
vlm8f3eb992004-06-17 23:42:48 +00006608sysv4)
6609 symcode='[DFNSTU]'
6610 ;;
6611esac
6612
6613# Handle CRLF in mingw tool chain
6614opt_cr=
6615case $build_os in
6616mingw*)
6617 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6618 ;;
6619esac
6620
6621# If we're using GNU nm, then use its standard symbol codes.
6622case `$NM -V 2>&1` in
6623*GNU* | *'with BFD'*)
6624 symcode='[ABCDGIRSTW]' ;;
6625esac
6626
6627# Try without a prefix undercore, then with it.
6628for ac_symprfx in "" "_"; do
6629
vlm55681242007-12-03 14:58:39 +00006630 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6631 symxfrm="\\1 $ac_symprfx\\2 \\2"
6632
vlm8f3eb992004-06-17 23:42:48 +00006633 # Write the raw and C identifiers.
vlm55681242007-12-03 14:58:39 +00006634 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
vlm8f3eb992004-06-17 23:42:48 +00006635
6636 # Check to see that the pipe works correctly.
6637 pipe_works=no
6638
6639 rm -f conftest*
6640 cat > conftest.$ac_ext <<EOF
6641#ifdef __cplusplus
6642extern "C" {
6643#endif
6644char nm_test_var;
6645void nm_test_func(){}
6646#ifdef __cplusplus
6647}
6648#endif
6649int main(){nm_test_var='a';nm_test_func();return(0);}
6650EOF
6651
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; then
6657 # Now try to grab the symbols.
6658 nlist=conftest.nm
6659 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6660 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && test -s "$nlist"; then
6664 # Try sorting and uniquifying the output.
6665 if sort "$nlist" | uniq > "$nlist"T; then
6666 mv -f "$nlist"T "$nlist"
6667 else
6668 rm -f "$nlist"T
6669 fi
6670
6671 # Make sure that we snagged all the symbols we need.
6672 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6673 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6674 cat <<EOF > conftest.$ac_ext
6675#ifdef __cplusplus
6676extern "C" {
6677#endif
6678
6679EOF
6680 # Now generate the symbol file.
6681 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6682
6683 cat <<EOF >> conftest.$ac_ext
6684#if defined (__STDC__) && __STDC__
6685# define lt_ptr_t void *
6686#else
6687# define lt_ptr_t char *
6688# define const
6689#endif
6690
6691/* The mapping between symbol names and symbols. */
6692const struct {
6693 const char *name;
6694 lt_ptr_t address;
6695}
6696lt_preloaded_symbols[] =
6697{
6698EOF
6699 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6700 cat <<\EOF >> conftest.$ac_ext
6701 {0, (lt_ptr_t) 0}
6702};
6703
6704#ifdef __cplusplus
6705}
6706#endif
6707EOF
6708 # Now try linking the two files.
6709 mv conftest.$ac_objext conftstm.$ac_objext
6710 lt_save_LIBS="$LIBS"
6711 lt_save_CFLAGS="$CFLAGS"
6712 LIBS="conftstm.$ac_objext"
6713 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6715 (eval $ac_link) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6719 pipe_works=yes
6720 fi
6721 LIBS="$lt_save_LIBS"
6722 CFLAGS="$lt_save_CFLAGS"
6723 else
6724 echo "cannot find nm_test_func in $nlist" >&5
6725 fi
6726 else
6727 echo "cannot find nm_test_var in $nlist" >&5
6728 fi
6729 else
6730 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6731 fi
6732 else
6733 echo "$progname: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6735 fi
6736 rm -f conftest* conftst*
6737
6738 # Do not use the global_symbol_pipe unless it works.
6739 if test "$pipe_works" = yes; then
6740 break
6741 else
6742 lt_cv_sys_global_symbol_pipe=
6743 fi
6744done
6745
6746fi
6747
6748if test -z "$lt_cv_sys_global_symbol_pipe"; then
6749 lt_cv_sys_global_symbol_to_cdecl=
6750fi
6751if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
vlm83b901d2007-08-27 23:57:45 +00006752 { echo "$as_me:$LINENO: result: failed" >&5
6753echo "${ECHO_T}failed" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006754else
vlm83b901d2007-08-27 23:57:45 +00006755 { echo "$as_me:$LINENO: result: ok" >&5
6756echo "${ECHO_T}ok" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006757fi
6758
vlm83b901d2007-08-27 23:57:45 +00006759{ echo "$as_me:$LINENO: checking for objdir" >&5
6760echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006761if test "${lt_cv_objdir+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764 rm -f .libs 2>/dev/null
6765mkdir .libs 2>/dev/null
6766if test -d .libs; then
6767 lt_cv_objdir=.libs
6768else
6769 # MS-DOS does not allow filenames that begin with a dot.
6770 lt_cv_objdir=_libs
6771fi
6772rmdir .libs 2>/dev/null
6773fi
vlm83b901d2007-08-27 23:57:45 +00006774{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6775echo "${ECHO_T}$lt_cv_objdir" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006776objdir=$lt_cv_objdir
6777
6778
6779
6780
6781
6782case $host_os in
6783aix3*)
6784 # AIX sometimes has problems with the GCC collect2 program. For some
6785 # reason, if we set the COLLECT_NAMES environment variable, the problems
6786 # vanish in a puff of smoke.
6787 if test "X${COLLECT_NAMES+set}" != Xset; then
6788 COLLECT_NAMES=
6789 export COLLECT_NAMES
6790 fi
6791 ;;
6792esac
6793
6794# Sed substitution that helps us do robust quoting. It backslashifies
6795# metacharacters that are still active within double-quoted strings.
vlm55681242007-12-03 14:58:39 +00006796Xsed='sed -e 1s/^X//'
vlm8f3eb992004-06-17 23:42:48 +00006797sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6798
6799# Same as above, but do not quote variable references.
6800double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6801
6802# Sed substitution to delay expansion of an escaped shell variable in a
6803# double_quote_subst'ed string.
6804delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6805
6806# Sed substitution to avoid accidental globbing in evaled expressions
6807no_glob_subst='s/\*/\\\*/g'
6808
6809# Constants:
6810rm="rm -f"
6811
6812# Global variables:
6813default_ofile=libtool
6814can_build_shared=yes
6815
vlm55681242007-12-03 14:58:39 +00006816# All known linkers require a `.a' archive for static linking (except MSVC,
vlm8f3eb992004-06-17 23:42:48 +00006817# which needs '.lib').
6818libext=a
6819ltmain="$ac_aux_dir/ltmain.sh"
6820ofile="$default_ofile"
6821with_gnu_ld="$lt_cv_prog_gnu_ld"
6822
6823if test -n "$ac_tool_prefix"; then
6824 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6825set dummy ${ac_tool_prefix}ar; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +00006826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006828if test "${ac_cv_prog_AR+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831 if test -n "$AR"; then
6832 ac_cv_prog_AR="$AR" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +00006840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +00006841 ac_cv_prog_AR="${ac_tool_prefix}ar"
6842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845done
6846done
vlm83b901d2007-08-27 23:57:45 +00006847IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00006848
6849fi
6850fi
6851AR=$ac_cv_prog_AR
6852if test -n "$AR"; then
vlm83b901d2007-08-27 23:57:45 +00006853 { echo "$as_me:$LINENO: result: $AR" >&5
6854echo "${ECHO_T}$AR" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006855else
vlm83b901d2007-08-27 23:57:45 +00006856 { echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006858fi
6859
vlm83b901d2007-08-27 23:57:45 +00006860
vlm8f3eb992004-06-17 23:42:48 +00006861fi
6862if test -z "$ac_cv_prog_AR"; then
6863 ac_ct_AR=$AR
6864 # Extract the first word of "ar", so it can be a program name with args.
6865set dummy ar; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +00006866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006868if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870else
6871 if test -n "$ac_ct_AR"; then
6872 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6873else
6874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875for as_dir in $PATH
6876do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +00006880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +00006881 ac_cv_prog_ac_ct_AR="ar"
6882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885done
6886done
vlm83b901d2007-08-27 23:57:45 +00006887IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00006888
vlm8f3eb992004-06-17 23:42:48 +00006889fi
6890fi
6891ac_ct_AR=$ac_cv_prog_ac_ct_AR
6892if test -n "$ac_ct_AR"; then
vlm83b901d2007-08-27 23:57:45 +00006893 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6894echo "${ECHO_T}$ac_ct_AR" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006895else
vlm83b901d2007-08-27 23:57:45 +00006896 { echo "$as_me:$LINENO: result: no" >&5
6897echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006898fi
6899
vlm83b901d2007-08-27 23:57:45 +00006900 if test "x$ac_ct_AR" = x; then
6901 AR="false"
6902 else
6903 case $cross_compiling:$ac_tool_warned in
6904yes:)
6905{ echo "$as_me:$LINENO: 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." >&5
6908echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6909whose name does not start with the host triplet. If you think this
6910configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6911ac_tool_warned=yes ;;
6912esac
6913 AR=$ac_ct_AR
6914 fi
vlm8f3eb992004-06-17 23:42:48 +00006915else
6916 AR="$ac_cv_prog_AR"
6917fi
6918
6919if test -n "$ac_tool_prefix"; then
6920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6921set dummy ${ac_tool_prefix}ranlib; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +00006922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006924if test "${ac_cv_prog_RANLIB+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927 if test -n "$RANLIB"; then
6928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6929else
6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +00006936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +00006937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941done
6942done
vlm83b901d2007-08-27 23:57:45 +00006943IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00006944
6945fi
6946fi
6947RANLIB=$ac_cv_prog_RANLIB
6948if test -n "$RANLIB"; then
vlm83b901d2007-08-27 23:57:45 +00006949 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6950echo "${ECHO_T}$RANLIB" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006951else
vlm83b901d2007-08-27 23:57:45 +00006952 { echo "$as_me:$LINENO: result: no" >&5
6953echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006954fi
6955
vlm83b901d2007-08-27 23:57:45 +00006956
vlm8f3eb992004-06-17 23:42:48 +00006957fi
6958if test -z "$ac_cv_prog_RANLIB"; then
6959 ac_ct_RANLIB=$RANLIB
6960 # Extract the first word of "ranlib", so it can be a program name with args.
6961set dummy ranlib; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +00006962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006964if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967 if test -n "$ac_ct_RANLIB"; then
6968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +00006976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +00006977 ac_cv_prog_ac_ct_RANLIB="ranlib"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6980 fi
6981done
6982done
vlm83b901d2007-08-27 23:57:45 +00006983IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00006984
vlm8f3eb992004-06-17 23:42:48 +00006985fi
6986fi
6987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6988if test -n "$ac_ct_RANLIB"; then
vlm83b901d2007-08-27 23:57:45 +00006989 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6990echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006991else
vlm83b901d2007-08-27 23:57:45 +00006992 { echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00006994fi
6995
vlm83b901d2007-08-27 23:57:45 +00006996 if test "x$ac_ct_RANLIB" = x; then
6997 RANLIB=":"
6998 else
6999 case $cross_compiling:$ac_tool_warned in
7000yes:)
7001{ echo "$as_me:$LINENO: 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." >&5
7004echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7005whose name does not start with the host triplet. If you think this
7006configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7007ac_tool_warned=yes ;;
7008esac
7009 RANLIB=$ac_ct_RANLIB
7010 fi
vlm8f3eb992004-06-17 23:42:48 +00007011else
7012 RANLIB="$ac_cv_prog_RANLIB"
7013fi
7014
7015if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7017set dummy ${ac_tool_prefix}strip; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +00007018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007020if test "${ac_cv_prog_STRIP+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 if test -n "$STRIP"; then
7024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7025else
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +00007032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +00007033 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037done
7038done
vlm83b901d2007-08-27 23:57:45 +00007039IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00007040
7041fi
7042fi
7043STRIP=$ac_cv_prog_STRIP
7044if test -n "$STRIP"; then
vlm83b901d2007-08-27 23:57:45 +00007045 { echo "$as_me:$LINENO: result: $STRIP" >&5
7046echo "${ECHO_T}$STRIP" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007047else
vlm83b901d2007-08-27 23:57:45 +00007048 { echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007050fi
7051
vlm83b901d2007-08-27 23:57:45 +00007052
vlm8f3eb992004-06-17 23:42:48 +00007053fi
7054if test -z "$ac_cv_prog_STRIP"; then
7055 ac_ct_STRIP=$STRIP
7056 # Extract the first word of "strip", so it can be a program name with args.
7057set dummy strip; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +00007058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007060if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063 if test -n "$ac_ct_STRIP"; then
7064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +00007072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +00007073 ac_cv_prog_ac_ct_STRIP="strip"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078done
vlm83b901d2007-08-27 23:57:45 +00007079IFS=$as_save_IFS
vlm8f3eb992004-06-17 23:42:48 +00007080
vlm8f3eb992004-06-17 23:42:48 +00007081fi
7082fi
7083ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7084if test -n "$ac_ct_STRIP"; then
vlm83b901d2007-08-27 23:57:45 +00007085 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7086echo "${ECHO_T}$ac_ct_STRIP" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007087else
vlm83b901d2007-08-27 23:57:45 +00007088 { echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007090fi
7091
vlm83b901d2007-08-27 23:57:45 +00007092 if test "x$ac_ct_STRIP" = x; then
7093 STRIP=":"
7094 else
7095 case $cross_compiling:$ac_tool_warned in
7096yes:)
7097{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7098whose name does not start with the host triplet. If you think this
7099configuration is useful to you, please write to autoconf@gnu.org." >&5
7100echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7101whose name does not start with the host triplet. If you think this
7102configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7103ac_tool_warned=yes ;;
7104esac
7105 STRIP=$ac_ct_STRIP
7106 fi
vlm8f3eb992004-06-17 23:42:48 +00007107else
7108 STRIP="$ac_cv_prog_STRIP"
7109fi
7110
7111
7112old_CC="$CC"
7113old_CFLAGS="$CFLAGS"
7114
7115# Set sane defaults for various variables
7116test -z "$AR" && AR=ar
7117test -z "$AR_FLAGS" && AR_FLAGS=cru
7118test -z "$AS" && AS=as
7119test -z "$CC" && CC=cc
7120test -z "$LTCC" && LTCC=$CC
vlm55681242007-12-03 14:58:39 +00007121test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
vlm8f3eb992004-06-17 23:42:48 +00007122test -z "$DLLTOOL" && DLLTOOL=dlltool
7123test -z "$LD" && LD=ld
7124test -z "$LN_S" && LN_S="ln -s"
7125test -z "$MAGIC_CMD" && MAGIC_CMD=file
7126test -z "$NM" && NM=nm
7127test -z "$SED" && SED=sed
7128test -z "$OBJDUMP" && OBJDUMP=objdump
7129test -z "$RANLIB" && RANLIB=:
7130test -z "$STRIP" && STRIP=:
7131test -z "$ac_objext" && ac_objext=o
7132
7133# Determine commands to create old-style static archives.
7134old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7135old_postinstall_cmds='chmod 644 $oldlib'
7136old_postuninstall_cmds=
7137
7138if test -n "$RANLIB"; then
7139 case $host_os in
7140 openbsd*)
vlm55681242007-12-03 14:58:39 +00007141 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
vlm8f3eb992004-06-17 23:42:48 +00007142 ;;
7143 *)
vlm55681242007-12-03 14:58:39 +00007144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
vlm8f3eb992004-06-17 23:42:48 +00007145 ;;
7146 esac
7147 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7148fi
7149
vlm55681242007-12-03 14:58:39 +00007150for cc_temp in $compiler""; do
7151 case $cc_temp in
7152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7154 \-*) ;;
7155 *) break;;
7156 esac
7157done
7158cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7159
7160
vlm8f3eb992004-06-17 23:42:48 +00007161# Only perform the check for file, if the check method requires it
7162case $deplibs_check_method in
7163file_magic*)
7164 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
vlm83b901d2007-08-27 23:57:45 +00007165 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7166echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007167if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169else
7170 case $MAGIC_CMD in
7171[\\/*] | ?:[\\/]*)
7172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7173 ;;
7174*)
7175 lt_save_MAGIC_CMD="$MAGIC_CMD"
7176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7178 for ac_dir in $ac_dummy; do
7179 IFS="$lt_save_ifs"
7180 test -z "$ac_dir" && ac_dir=.
7181 if test -f $ac_dir/${ac_tool_prefix}file; then
7182 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7183 if test -n "$file_magic_test_file"; then
7184 case $deplibs_check_method in
7185 "file_magic "*)
vlm55681242007-12-03 14:58:39 +00007186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
vlm8f3eb992004-06-17 23:42:48 +00007187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7189 $EGREP "$file_magic_regex" > /dev/null; then
7190 :
7191 else
7192 cat <<EOF 1>&2
7193
7194*** Warning: the command libtool uses to detect shared libraries,
7195*** $file_magic_cmd, produces output that libtool cannot recognize.
7196*** The result is that libtool may fail to recognize shared libraries
7197*** as such. This will affect the creation of libtool libraries that
7198*** depend on shared libraries, but programs linked with such libtool
7199*** libraries will work regardless of this problem. Nevertheless, you
7200*** may want to report the problem to your system manager and/or to
7201*** bug-libtool@gnu.org
7202
7203EOF
7204 fi ;;
7205 esac
7206 fi
7207 break
7208 fi
7209 done
7210 IFS="$lt_save_ifs"
7211 MAGIC_CMD="$lt_save_MAGIC_CMD"
7212 ;;
7213esac
7214fi
7215
7216MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7217if test -n "$MAGIC_CMD"; then
vlm83b901d2007-08-27 23:57:45 +00007218 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7219echo "${ECHO_T}$MAGIC_CMD" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007220else
vlm83b901d2007-08-27 23:57:45 +00007221 { echo "$as_me:$LINENO: result: no" >&5
7222echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007223fi
7224
7225if test -z "$lt_cv_path_MAGIC_CMD"; then
7226 if test -n "$ac_tool_prefix"; then
vlm83b901d2007-08-27 23:57:45 +00007227 { echo "$as_me:$LINENO: checking for file" >&5
7228echo $ECHO_N "checking for file... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007229if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 case $MAGIC_CMD in
7233[\\/*] | ?:[\\/]*)
7234 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7235 ;;
7236*)
7237 lt_save_MAGIC_CMD="$MAGIC_CMD"
7238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7239 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7240 for ac_dir in $ac_dummy; do
7241 IFS="$lt_save_ifs"
7242 test -z "$ac_dir" && ac_dir=.
7243 if test -f $ac_dir/file; then
7244 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7245 if test -n "$file_magic_test_file"; then
7246 case $deplibs_check_method in
7247 "file_magic "*)
vlm55681242007-12-03 14:58:39 +00007248 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
vlm8f3eb992004-06-17 23:42:48 +00007249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7250 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7251 $EGREP "$file_magic_regex" > /dev/null; then
7252 :
7253 else
7254 cat <<EOF 1>&2
7255
7256*** Warning: the command libtool uses to detect shared libraries,
7257*** $file_magic_cmd, produces output that libtool cannot recognize.
7258*** The result is that libtool may fail to recognize shared libraries
7259*** as such. This will affect the creation of libtool libraries that
7260*** depend on shared libraries, but programs linked with such libtool
7261*** libraries will work regardless of this problem. Nevertheless, you
7262*** may want to report the problem to your system manager and/or to
7263*** bug-libtool@gnu.org
7264
7265EOF
7266 fi ;;
7267 esac
7268 fi
7269 break
7270 fi
7271 done
7272 IFS="$lt_save_ifs"
7273 MAGIC_CMD="$lt_save_MAGIC_CMD"
7274 ;;
7275esac
7276fi
7277
7278MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7279if test -n "$MAGIC_CMD"; then
vlm83b901d2007-08-27 23:57:45 +00007280 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7281echo "${ECHO_T}$MAGIC_CMD" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007282else
vlm83b901d2007-08-27 23:57:45 +00007283 { echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007285fi
7286
7287 else
7288 MAGIC_CMD=:
7289 fi
7290fi
7291
7292 fi
7293 ;;
7294esac
7295
7296enable_dlopen=no
7297enable_win32_dll=no
7298
vlm83b901d2007-08-27 23:57:45 +00007299# Check whether --enable-libtool-lock was given.
vlm8f3eb992004-06-17 23:42:48 +00007300if test "${enable_libtool_lock+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +00007301 enableval=$enable_libtool_lock;
7302fi
vlm8f3eb992004-06-17 23:42:48 +00007303
vlm8f3eb992004-06-17 23:42:48 +00007304test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7305
7306
vlm83b901d2007-08-27 23:57:45 +00007307# Check whether --with-pic was given.
vlm8f3eb992004-06-17 23:42:48 +00007308if test "${with_pic+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +00007309 withval=$with_pic; pic_mode="$withval"
vlm8f3eb992004-06-17 23:42:48 +00007310else
7311 pic_mode=default
vlm83b901d2007-08-27 23:57:45 +00007312fi
7313
vlm8f3eb992004-06-17 23:42:48 +00007314test -z "$pic_mode" && pic_mode=default
7315
7316# Use C for the default configuration in the libtool script
7317tagname=
7318lt_save_CC="$CC"
7319ac_ext=c
7320ac_cpp='$CPP $CPPFLAGS'
7321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
7325
7326# Source file extension for C test sources.
7327ac_ext=c
7328
7329# Object file extension for compiled C test sources.
7330objext=o
7331objext=$objext
7332
7333# Code to be used in simple compile tests
7334lt_simple_compile_test_code="int some_variable = 0;\n"
7335
7336# Code to be used in simple link tests
7337lt_simple_link_test_code='int main(){return(0);}\n'
7338
7339
7340# If no C compiler was specified, use CC.
7341LTCC=${LTCC-"$CC"}
7342
vlm55681242007-12-03 14:58:39 +00007343# If no C compiler flags were specified, use CFLAGS.
7344LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7345
vlm8f3eb992004-06-17 23:42:48 +00007346# Allow CC to be a program name with arguments.
7347compiler=$CC
7348
7349
vlm55681242007-12-03 14:58:39 +00007350# save warnings/boilerplate of simple test code
7351ac_outfile=conftest.$ac_objext
7352printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7353eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7354_lt_compiler_boilerplate=`cat conftest.err`
7355$rm conftest*
vlm8f3eb992004-06-17 23:42:48 +00007356
vlm55681242007-12-03 14:58:39 +00007357ac_outfile=conftest.$ac_objext
7358printf "$lt_simple_link_test_code" >conftest.$ac_ext
7359eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7360_lt_linker_boilerplate=`cat conftest.err`
7361$rm conftest*
vlm8f3eb992004-06-17 23:42:48 +00007362
7363
7364
7365lt_prog_compiler_no_builtin_flag=
7366
7367if test "$GCC" = yes; then
7368 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7369
7370
vlm83b901d2007-08-27 23:57:45 +00007371{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7372echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007373if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375else
7376 lt_cv_prog_compiler_rtti_exceptions=no
7377 ac_outfile=conftest.$ac_objext
7378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7379 lt_compiler_flag="-fno-rtti -fno-exceptions"
7380 # Insert the option either (1) after the last *FLAGS variable, or
7381 # (2) before a word containing "conftest.", or (3) at the end.
7382 # Note that $ac_compile itself does not contain backslashes and begins
7383 # with a dollar sign (not a hyphen), so the echo should work correctly.
7384 # The option is referenced via a variable to avoid confusing sed.
7385 lt_compile=`echo "$ac_compile" | $SED \
vlm55681242007-12-03 14:58:39 +00007386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
vlm8f3eb992004-06-17 23:42:48 +00007387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7388 -e 's:$: $lt_compiler_flag:'`
vlm55681242007-12-03 14:58:39 +00007389 (eval echo "\"\$as_me:7389: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +00007390 (eval "$lt_compile" 2>conftest.err)
7391 ac_status=$?
7392 cat conftest.err >&5
vlm55681242007-12-03 14:58:39 +00007393 echo "$as_me:7393: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +00007394 if (exit $ac_status) && test -s "$ac_outfile"; then
7395 # The compiler can only warn and ignore the option if not recognized
vlm55681242007-12-03 14:58:39 +00007396 # So say no if there are warnings other than the usual output.
7397 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
vlm8f3eb992004-06-17 23:42:48 +00007400 lt_cv_prog_compiler_rtti_exceptions=yes
7401 fi
7402 fi
7403 $rm conftest*
7404
7405fi
vlm83b901d2007-08-27 23:57:45 +00007406{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7407echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007408
7409if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7410 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7411else
7412 :
7413fi
7414
7415fi
7416
7417lt_prog_compiler_wl=
7418lt_prog_compiler_pic=
7419lt_prog_compiler_static=
7420
vlm83b901d2007-08-27 23:57:45 +00007421{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7422echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007423
7424 if test "$GCC" = yes; then
7425 lt_prog_compiler_wl='-Wl,'
7426 lt_prog_compiler_static='-static'
7427
7428 case $host_os in
7429 aix*)
7430 # All AIX code is PIC.
7431 if test "$host_cpu" = ia64; then
7432 # AIX 5 now supports IA64 processor
7433 lt_prog_compiler_static='-Bstatic'
7434 fi
7435 ;;
7436
7437 amigaos*)
7438 # FIXME: we need at least 68020 code to build shared libraries, but
7439 # adding the `-m68020' flag to GCC prevents building anything better,
7440 # like `-m68040'.
7441 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7442 ;;
7443
7444 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7445 # PIC is the default for these OSes.
7446 ;;
7447
7448 mingw* | pw32* | os2*)
7449 # This hack is so that the source file can tell whether it is being
7450 # built for inclusion in a dll (and should export symbols for example).
7451 lt_prog_compiler_pic='-DDLL_EXPORT'
7452 ;;
7453
7454 darwin* | rhapsody*)
7455 # PIC is the default on this platform
7456 # Common symbols not allowed in MH_DYLIB files
7457 lt_prog_compiler_pic='-fno-common'
7458 ;;
7459
vlm55681242007-12-03 14:58:39 +00007460 interix3*)
7461 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7462 # Instead, we relocate shared libraries at runtime.
7463 ;;
7464
vlm8f3eb992004-06-17 23:42:48 +00007465 msdosdjgpp*)
7466 # Just because we use GCC doesn't mean we suddenly get shared libraries
7467 # on systems that don't support them.
7468 lt_prog_compiler_can_build_shared=no
7469 enable_shared=no
7470 ;;
7471
7472 sysv4*MP*)
7473 if test -d /usr/nec; then
7474 lt_prog_compiler_pic=-Kconform_pic
7475 fi
7476 ;;
7477
7478 hpux*)
7479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7480 # not for PA HP-UX.
vlm55681242007-12-03 14:58:39 +00007481 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +00007482 hppa*64*|ia64*)
7483 # +Z the default
7484 ;;
7485 *)
7486 lt_prog_compiler_pic='-fPIC'
7487 ;;
7488 esac
7489 ;;
7490
7491 *)
7492 lt_prog_compiler_pic='-fPIC'
7493 ;;
7494 esac
7495 else
7496 # PORTME Check for flag to pass linker flags through the system compiler.
7497 case $host_os in
7498 aix*)
7499 lt_prog_compiler_wl='-Wl,'
7500 if test "$host_cpu" = ia64; then
7501 # AIX 5 now supports IA64 processor
7502 lt_prog_compiler_static='-Bstatic'
7503 else
7504 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7505 fi
7506 ;;
vlm55681242007-12-03 14:58:39 +00007507 darwin*)
7508 # PIC is the default on this platform
7509 # Common symbols not allowed in MH_DYLIB files
7510 case $cc_basename in
7511 xlc*)
7512 lt_prog_compiler_pic='-qnocommon'
7513 lt_prog_compiler_wl='-Wl,'
7514 ;;
7515 esac
7516 ;;
vlm8f3eb992004-06-17 23:42:48 +00007517
7518 mingw* | pw32* | os2*)
7519 # This hack is so that the source file can tell whether it is being
7520 # built for inclusion in a dll (and should export symbols for example).
7521 lt_prog_compiler_pic='-DDLL_EXPORT'
7522 ;;
7523
7524 hpux9* | hpux10* | hpux11*)
7525 lt_prog_compiler_wl='-Wl,'
7526 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7527 # not for PA HP-UX.
vlm55681242007-12-03 14:58:39 +00007528 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +00007529 hppa*64*|ia64*)
7530 # +Z the default
7531 ;;
7532 *)
7533 lt_prog_compiler_pic='+Z'
7534 ;;
7535 esac
7536 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7537 lt_prog_compiler_static='${wl}-a ${wl}archive'
7538 ;;
7539
7540 irix5* | irix6* | nonstopux*)
7541 lt_prog_compiler_wl='-Wl,'
7542 # PIC (with -KPIC) is the default.
7543 lt_prog_compiler_static='-non_shared'
7544 ;;
7545
7546 newsos6)
7547 lt_prog_compiler_pic='-KPIC'
7548 lt_prog_compiler_static='-Bstatic'
7549 ;;
7550
7551 linux*)
vlm55681242007-12-03 14:58:39 +00007552 case $cc_basename in
vlm8f3eb992004-06-17 23:42:48 +00007553 icc* | ecc*)
7554 lt_prog_compiler_wl='-Wl,'
7555 lt_prog_compiler_pic='-KPIC'
7556 lt_prog_compiler_static='-static'
7557 ;;
vlm55681242007-12-03 14:58:39 +00007558 pgcc* | pgf77* | pgf90* | pgf95*)
7559 # Portland Group compilers (*not* the Pentium gcc compiler,
7560 # which looks to be a dead project)
7561 lt_prog_compiler_wl='-Wl,'
7562 lt_prog_compiler_pic='-fpic'
7563 lt_prog_compiler_static='-Bstatic'
7564 ;;
vlm8f3eb992004-06-17 23:42:48 +00007565 ccc*)
7566 lt_prog_compiler_wl='-Wl,'
7567 # All Alpha code is PIC.
7568 lt_prog_compiler_static='-non_shared'
7569 ;;
7570 esac
7571 ;;
7572
7573 osf3* | osf4* | osf5*)
7574 lt_prog_compiler_wl='-Wl,'
7575 # All OSF/1 code is PIC.
7576 lt_prog_compiler_static='-non_shared'
7577 ;;
7578
vlm8f3eb992004-06-17 23:42:48 +00007579 solaris*)
vlm8f3eb992004-06-17 23:42:48 +00007580 lt_prog_compiler_pic='-KPIC'
7581 lt_prog_compiler_static='-Bstatic'
vlm55681242007-12-03 14:58:39 +00007582 case $cc_basename in
7583 f77* | f90* | f95*)
7584 lt_prog_compiler_wl='-Qoption ld ';;
7585 *)
7586 lt_prog_compiler_wl='-Wl,';;
7587 esac
vlm8f3eb992004-06-17 23:42:48 +00007588 ;;
7589
7590 sunos4*)
7591 lt_prog_compiler_wl='-Qoption ld '
7592 lt_prog_compiler_pic='-PIC'
7593 lt_prog_compiler_static='-Bstatic'
7594 ;;
7595
vlm55681242007-12-03 14:58:39 +00007596 sysv4 | sysv4.2uw2* | sysv4.3*)
vlm8f3eb992004-06-17 23:42:48 +00007597 lt_prog_compiler_wl='-Wl,'
7598 lt_prog_compiler_pic='-KPIC'
7599 lt_prog_compiler_static='-Bstatic'
7600 ;;
7601
7602 sysv4*MP*)
7603 if test -d /usr/nec ;then
7604 lt_prog_compiler_pic='-Kconform_pic'
7605 lt_prog_compiler_static='-Bstatic'
7606 fi
7607 ;;
7608
vlm55681242007-12-03 14:58:39 +00007609 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7610 lt_prog_compiler_wl='-Wl,'
7611 lt_prog_compiler_pic='-KPIC'
7612 lt_prog_compiler_static='-Bstatic'
7613 ;;
7614
7615 unicos*)
7616 lt_prog_compiler_wl='-Wl,'
7617 lt_prog_compiler_can_build_shared=no
7618 ;;
7619
vlm8f3eb992004-06-17 23:42:48 +00007620 uts4*)
7621 lt_prog_compiler_pic='-pic'
7622 lt_prog_compiler_static='-Bstatic'
7623 ;;
7624
7625 *)
7626 lt_prog_compiler_can_build_shared=no
7627 ;;
7628 esac
7629 fi
7630
vlm83b901d2007-08-27 23:57:45 +00007631{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7632echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007633
7634#
7635# Check to make sure the PIC flag actually works.
7636#
7637if test -n "$lt_prog_compiler_pic"; then
7638
vlm83b901d2007-08-27 23:57:45 +00007639{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7640echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007641if test "${lt_prog_compiler_pic_works+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644 lt_prog_compiler_pic_works=no
7645 ac_outfile=conftest.$ac_objext
7646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7647 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7648 # Insert the option either (1) after the last *FLAGS variable, or
7649 # (2) before a word containing "conftest.", or (3) at the end.
7650 # Note that $ac_compile itself does not contain backslashes and begins
7651 # with a dollar sign (not a hyphen), so the echo should work correctly.
7652 # The option is referenced via a variable to avoid confusing sed.
7653 lt_compile=`echo "$ac_compile" | $SED \
vlm55681242007-12-03 14:58:39 +00007654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
vlm8f3eb992004-06-17 23:42:48 +00007655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7656 -e 's:$: $lt_compiler_flag:'`
vlm55681242007-12-03 14:58:39 +00007657 (eval echo "\"\$as_me:7657: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +00007658 (eval "$lt_compile" 2>conftest.err)
7659 ac_status=$?
7660 cat conftest.err >&5
vlm55681242007-12-03 14:58:39 +00007661 echo "$as_me:7661: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +00007662 if (exit $ac_status) && test -s "$ac_outfile"; then
7663 # The compiler can only warn and ignore the option if not recognized
vlm55681242007-12-03 14:58:39 +00007664 # So say no if there are warnings other than the usual output.
7665 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
vlm8f3eb992004-06-17 23:42:48 +00007668 lt_prog_compiler_pic_works=yes
7669 fi
7670 fi
7671 $rm conftest*
7672
7673fi
vlm83b901d2007-08-27 23:57:45 +00007674{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7675echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007676
7677if test x"$lt_prog_compiler_pic_works" = xyes; then
7678 case $lt_prog_compiler_pic in
7679 "" | " "*) ;;
7680 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7681 esac
7682else
7683 lt_prog_compiler_pic=
7684 lt_prog_compiler_can_build_shared=no
7685fi
7686
7687fi
vlm55681242007-12-03 14:58:39 +00007688case $host_os in
vlm8f3eb992004-06-17 23:42:48 +00007689 # For platforms which do not support PIC, -DPIC is meaningless:
7690 *djgpp*)
7691 lt_prog_compiler_pic=
7692 ;;
7693 *)
7694 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7695 ;;
7696esac
7697
vlm55681242007-12-03 14:58:39 +00007698#
7699# Check to make sure the static flag actually works.
7700#
7701wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7702{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7703echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7704if test "${lt_prog_compiler_static_works+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 lt_prog_compiler_static_works=no
7708 save_LDFLAGS="$LDFLAGS"
7709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7710 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7712 # The linker can only warn and ignore the option if not recognized
7713 # So say no if there are warnings
7714 if test -s conftest.err; then
7715 # Append any errors to the config.log.
7716 cat conftest.err 1>&5
7717 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7719 if diff conftest.exp conftest.er2 >/dev/null; then
7720 lt_prog_compiler_static_works=yes
7721 fi
7722 else
7723 lt_prog_compiler_static_works=yes
7724 fi
7725 fi
7726 $rm conftest*
7727 LDFLAGS="$save_LDFLAGS"
7728
7729fi
7730{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7731echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7732
7733if test x"$lt_prog_compiler_static_works" = xyes; then
7734 :
7735else
7736 lt_prog_compiler_static=
7737fi
7738
7739
vlm83b901d2007-08-27 23:57:45 +00007740{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7741echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007742if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744else
7745 lt_cv_prog_compiler_c_o=no
7746 $rm -r conftest 2>/dev/null
7747 mkdir conftest
7748 cd conftest
7749 mkdir out
7750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7751
7752 lt_compiler_flag="-o out/conftest2.$ac_objext"
7753 # Insert the option either (1) after the last *FLAGS variable, or
7754 # (2) before a word containing "conftest.", or (3) at the end.
7755 # Note that $ac_compile itself does not contain backslashes and begins
7756 # with a dollar sign (not a hyphen), so the echo should work correctly.
7757 lt_compile=`echo "$ac_compile" | $SED \
vlm55681242007-12-03 14:58:39 +00007758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
vlm8f3eb992004-06-17 23:42:48 +00007759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7760 -e 's:$: $lt_compiler_flag:'`
vlm55681242007-12-03 14:58:39 +00007761 (eval echo "\"\$as_me:7761: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +00007762 (eval "$lt_compile" 2>out/conftest.err)
7763 ac_status=$?
7764 cat out/conftest.err >&5
vlm55681242007-12-03 14:58:39 +00007765 echo "$as_me:7765: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +00007766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7767 then
7768 # The compiler can only warn and ignore the option if not recognized
7769 # So say no if there are warnings
vlm55681242007-12-03 14:58:39 +00007770 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
vlm8f3eb992004-06-17 23:42:48 +00007773 lt_cv_prog_compiler_c_o=yes
7774 fi
7775 fi
vlm55681242007-12-03 14:58:39 +00007776 chmod u+w . 2>&5
vlm8f3eb992004-06-17 23:42:48 +00007777 $rm conftest*
7778 # SGI C++ compiler will create directory out/ii_files/ for
7779 # template instantiation
7780 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7781 $rm out/* && rmdir out
7782 cd ..
7783 rmdir conftest
7784 $rm conftest*
7785
7786fi
vlm83b901d2007-08-27 23:57:45 +00007787{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7788echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007789
7790
7791hard_links="nottested"
7792if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7793 # do not overwrite the value of need_locks provided by the user
vlm83b901d2007-08-27 23:57:45 +00007794 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7795echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007796 hard_links=yes
7797 $rm conftest*
7798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7799 touch conftest.a
7800 ln conftest.a conftest.b 2>&5 || hard_links=no
7801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
vlm83b901d2007-08-27 23:57:45 +00007802 { echo "$as_me:$LINENO: result: $hard_links" >&5
7803echo "${ECHO_T}$hard_links" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007804 if test "$hard_links" = no; then
7805 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7806echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7807 need_locks=warn
7808 fi
7809else
7810 need_locks=no
7811fi
7812
vlm83b901d2007-08-27 23:57:45 +00007813{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7814echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00007815
7816 runpath_var=
7817 allow_undefined_flag=
7818 enable_shared_with_static_runtimes=no
7819 archive_cmds=
7820 archive_expsym_cmds=
7821 old_archive_From_new_cmds=
7822 old_archive_from_expsyms_cmds=
7823 export_dynamic_flag_spec=
7824 whole_archive_flag_spec=
7825 thread_safe_flag_spec=
7826 hardcode_libdir_flag_spec=
7827 hardcode_libdir_flag_spec_ld=
7828 hardcode_libdir_separator=
7829 hardcode_direct=no
7830 hardcode_minus_L=no
7831 hardcode_shlibpath_var=unsupported
7832 link_all_deplibs=unknown
7833 hardcode_automatic=no
7834 module_cmds=
7835 module_expsym_cmds=
7836 always_export_symbols=no
7837 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7838 # include_expsyms should be a list of space-separated symbols to be *always*
7839 # included in the symbol list
7840 include_expsyms=
7841 # exclude_expsyms can be an extended regexp of symbols to exclude
7842 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7843 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7844 # as well as any symbol that contains `d'.
7845 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7846 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7847 # platforms (ab)use it in PIC code, but their linkers get confused if
7848 # the symbol is explicitly referenced. Since portable code cannot
7849 # rely on this symbol name, it's probably fine to never include it in
7850 # preloaded symbol tables.
7851 extract_expsyms_cmds=
vlm55681242007-12-03 14:58:39 +00007852 # Just being paranoid about ensuring that cc_basename is set.
7853 for cc_temp in $compiler""; do
7854 case $cc_temp in
7855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7857 \-*) ;;
7858 *) break;;
7859 esac
7860done
7861cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vlm8f3eb992004-06-17 23:42:48 +00007862
7863 case $host_os in
7864 cygwin* | mingw* | pw32*)
7865 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7866 # When not using gcc, we currently assume that we are using
7867 # Microsoft Visual C++.
7868 if test "$GCC" != yes; then
7869 with_gnu_ld=no
7870 fi
7871 ;;
vlm55681242007-12-03 14:58:39 +00007872 interix*)
7873 # we just hope/assume this is gcc and not c89 (= MSVC++)
7874 with_gnu_ld=yes
7875 ;;
vlm8f3eb992004-06-17 23:42:48 +00007876 openbsd*)
7877 with_gnu_ld=no
7878 ;;
7879 esac
7880
7881 ld_shlibs=yes
7882 if test "$with_gnu_ld" = yes; then
7883 # If archive_cmds runs LD, not CC, wlarc should be empty
7884 wlarc='${wl}'
7885
vlm55681242007-12-03 14:58:39 +00007886 # Set some defaults for GNU ld with shared library support. These
7887 # are reset later if shared libraries are not supported. Putting them
7888 # here allows them to be overridden if necessary.
7889 runpath_var=LD_RUN_PATH
7890 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7891 export_dynamic_flag_spec='${wl}--export-dynamic'
7892 # ancient GNU ld didn't support --whole-archive et. al.
7893 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7894 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7895 else
7896 whole_archive_flag_spec=
7897 fi
7898 supports_anon_versioning=no
7899 case `$LD -v 2>/dev/null` in
7900 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7901 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7902 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7903 *\ 2.11.*) ;; # other 2.11 versions
7904 *) supports_anon_versioning=yes ;;
7905 esac
7906
vlm8f3eb992004-06-17 23:42:48 +00007907 # See if GNU ld supports shared libraries.
7908 case $host_os in
7909 aix3* | aix4* | aix5*)
7910 # On AIX/PPC, the GNU linker is very broken
7911 if test "$host_cpu" != ia64; then
7912 ld_shlibs=no
7913 cat <<EOF 1>&2
7914
7915*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7916*** to be unable to reliably create shared libraries on AIX.
7917*** Therefore, libtool is disabling shared libraries support. If you
7918*** really care for shared libraries, you may want to modify your PATH
7919*** so that a non-GNU linker is found, and then restart.
7920
7921EOF
7922 fi
7923 ;;
7924
7925 amigaos*)
7926 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)'
7927 hardcode_libdir_flag_spec='-L$libdir'
7928 hardcode_minus_L=yes
7929
7930 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7931 # that the semantics of dynamic libraries on AmigaOS, at least up
7932 # to version 4, is to share data among multiple programs linked
7933 # with the same dynamic library. Since this doesn't match the
7934 # behavior of shared libraries on other platforms, we can't use
7935 # them.
7936 ld_shlibs=no
7937 ;;
7938
7939 beos*)
7940 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7941 allow_undefined_flag=unsupported
7942 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7943 # support --undefined. This deserves some investigation. FIXME
7944 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7945 else
7946 ld_shlibs=no
7947 fi
7948 ;;
7949
7950 cygwin* | mingw* | pw32*)
7951 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7952 # as there is no search path for DLLs.
7953 hardcode_libdir_flag_spec='-L$libdir'
7954 allow_undefined_flag=unsupported
7955 always_export_symbols=no
7956 enable_shared_with_static_runtimes=yes
vlm55681242007-12-03 14:58:39 +00007957 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
vlm8f3eb992004-06-17 23:42:48 +00007958
7959 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vlm55681242007-12-03 14:58:39 +00007960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
vlm8f3eb992004-06-17 23:42:48 +00007961 # If the export-symbols file already is a .def file (1st line
7962 # is EXPORTS), use it as is; otherwise, prepend...
7963 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7964 cp $export_symbols $output_objdir/$soname.def;
7965 else
7966 echo EXPORTS > $output_objdir/$soname.def;
7967 cat $export_symbols >> $output_objdir/$soname.def;
7968 fi~
vlm55681242007-12-03 14:58:39 +00007969 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7970 else
7971 ld_shlibs=no
7972 fi
7973 ;;
7974
7975 interix3*)
7976 hardcode_direct=no
7977 hardcode_shlibpath_var=no
7978 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7979 export_dynamic_flag_spec='${wl}-E'
7980 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7981 # Instead, shared libraries are loaded at an image base (0x10000000 by
7982 # default) and relocated if they conflict, which is a slow very memory
7983 # consuming and fragmenting process. To avoid this, we pick a random,
7984 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7985 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7987 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7988 ;;
7989
7990 linux*)
7991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7992 tmp_addflag=
7993 case $cc_basename,$host_cpu in
7994 pgcc*) # Portland Group C compiler
7995 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7996 tmp_addflag=' $pic_flag'
7997 ;;
7998 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7999 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8000 tmp_addflag=' $pic_flag -Mnomain' ;;
8001 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8002 tmp_addflag=' -i_dynamic' ;;
8003 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8004 tmp_addflag=' -i_dynamic -nofor_main' ;;
8005 ifc* | ifort*) # Intel Fortran compiler
8006 tmp_addflag=' -nofor_main' ;;
8007 esac
8008 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009
8010 if test $supports_anon_versioning = yes; then
8011 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8013 $echo "local: *; };" >> $output_objdir/$libname.ver~
8014 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8015 fi
vlm8f3eb992004-06-17 23:42:48 +00008016 else
8017 ld_shlibs=no
8018 fi
8019 ;;
8020
8021 netbsd*)
8022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8023 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8024 wlarc=
8025 else
8026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8028 fi
8029 ;;
8030
vlm55681242007-12-03 14:58:39 +00008031 solaris*)
vlm8f3eb992004-06-17 23:42:48 +00008032 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8033 ld_shlibs=no
8034 cat <<EOF 1>&2
8035
8036*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8037*** create shared libraries on Solaris systems. Therefore, libtool
8038*** is disabling shared libraries support. We urge you to upgrade GNU
8039*** binutils to release 2.9.1 or newer. Another option is to modify
8040*** your PATH or compiler configuration so that the native linker is
8041*** used, and then restart.
8042
8043EOF
8044 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8047 else
8048 ld_shlibs=no
8049 fi
8050 ;;
8051
vlm55681242007-12-03 14:58:39 +00008052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8053 case `$LD -v 2>&1` in
8054 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8055 ld_shlibs=no
8056 cat <<_LT_EOF 1>&2
8057
8058*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8059*** reliably create shared libraries on SCO systems. Therefore, libtool
8060*** is disabling shared libraries support. We urge you to upgrade GNU
8061*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8062*** your PATH or compiler configuration so that the native linker is
8063*** used, and then restart.
8064
8065_LT_EOF
8066 ;;
8067 *)
8068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8069 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8072 else
8073 ld_shlibs=no
8074 fi
8075 ;;
8076 esac
8077 ;;
8078
vlm8f3eb992004-06-17 23:42:48 +00008079 sunos4*)
8080 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8081 wlarc=
8082 hardcode_direct=yes
8083 hardcode_shlibpath_var=no
8084 ;;
8085
vlm8f3eb992004-06-17 23:42:48 +00008086 *)
8087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8090 else
8091 ld_shlibs=no
8092 fi
8093 ;;
8094 esac
8095
vlm55681242007-12-03 14:58:39 +00008096 if test "$ld_shlibs" = no; then
8097 runpath_var=
8098 hardcode_libdir_flag_spec=
8099 export_dynamic_flag_spec=
8100 whole_archive_flag_spec=
vlm8f3eb992004-06-17 23:42:48 +00008101 fi
8102 else
8103 # PORTME fill in a description of your system's linker (not GNU ld)
8104 case $host_os in
8105 aix3*)
8106 allow_undefined_flag=unsupported
8107 always_export_symbols=yes
8108 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'
8109 # Note: this linker hardcodes the directories in LIBPATH if there
8110 # are no directories specified by -L.
8111 hardcode_minus_L=yes
vlm55681242007-12-03 14:58:39 +00008112 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
vlm8f3eb992004-06-17 23:42:48 +00008113 # Neither direct hardcoding nor static linking is supported with a
8114 # broken collect2.
8115 hardcode_direct=unsupported
8116 fi
8117 ;;
8118
8119 aix4* | aix5*)
8120 if test "$host_cpu" = ia64; then
8121 # On IA64, the linker does run time linking by default, so we don't
8122 # have to do anything special.
8123 aix_use_runtimelinking=no
8124 exp_sym_flag='-Bexport'
8125 no_entry_flag=""
8126 else
8127 # If we're using GNU nm, then we don't want the "-C" option.
8128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8129 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8130 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'
8131 else
8132 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'
8133 fi
8134 aix_use_runtimelinking=no
8135
8136 # Test if we are trying to use run time linking or normal
8137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8138 # need to do runtime linking.
8139 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8140 for ld_flag in $LDFLAGS; do
8141 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8142 aix_use_runtimelinking=yes
8143 break
8144 fi
8145 done
vlm55681242007-12-03 14:58:39 +00008146 ;;
vlm8f3eb992004-06-17 23:42:48 +00008147 esac
8148
8149 exp_sym_flag='-bexport'
8150 no_entry_flag='-bnoentry'
8151 fi
8152
8153 # When large executables or shared objects are built, AIX ld can
8154 # have problems creating the table of contents. If linking a library
8155 # or program results in "error TOC overflow" add -mminimal-toc to
8156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8158
8159 archive_cmds=''
8160 hardcode_direct=yes
8161 hardcode_libdir_separator=':'
8162 link_all_deplibs=yes
8163
8164 if test "$GCC" = yes; then
vlm55681242007-12-03 14:58:39 +00008165 case $host_os in aix4.[012]|aix4.[012].*)
vlm8f3eb992004-06-17 23:42:48 +00008166 # We only want to do this on AIX 4.2 and lower, the check
8167 # below for broken collect2 doesn't work under 4.3+
8168 collect2name=`${CC} -print-prog-name=collect2`
8169 if test -f "$collect2name" && \
8170 strings "$collect2name" | grep resolve_lib_name >/dev/null
8171 then
8172 # We have reworked collect2
8173 hardcode_direct=yes
8174 else
8175 # We have old collect2
8176 hardcode_direct=unsupported
8177 # It fails to find uninstalled libraries when the uninstalled
8178 # path is not listed in the libpath. Setting hardcode_minus_L
8179 # to unsupported forces relinking
8180 hardcode_minus_L=yes
8181 hardcode_libdir_flag_spec='-L$libdir'
8182 hardcode_libdir_separator=
8183 fi
vlm55681242007-12-03 14:58:39 +00008184 ;;
vlm8f3eb992004-06-17 23:42:48 +00008185 esac
8186 shared_flag='-shared'
vlm55681242007-12-03 14:58:39 +00008187 if test "$aix_use_runtimelinking" = yes; then
8188 shared_flag="$shared_flag "'${wl}-G'
8189 fi
vlm8f3eb992004-06-17 23:42:48 +00008190 else
8191 # not using gcc
8192 if test "$host_cpu" = ia64; then
8193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8194 # chokes on -Wl,-G. The following line is correct:
8195 shared_flag='-G'
8196 else
vlm55681242007-12-03 14:58:39 +00008197 if test "$aix_use_runtimelinking" = yes; then
vlm8f3eb992004-06-17 23:42:48 +00008198 shared_flag='${wl}-G'
8199 else
8200 shared_flag='${wl}-bM:SRE'
vlm55681242007-12-03 14:58:39 +00008201 fi
vlm8f3eb992004-06-17 23:42:48 +00008202 fi
8203 fi
8204
8205 # It seems that -bexpall does not export symbols beginning with
8206 # underscore (_), so it is better to generate a list of symbols to export.
8207 always_export_symbols=yes
8208 if test "$aix_use_runtimelinking" = yes; then
8209 # Warning - without using the other runtime loading flags (-brtl),
8210 # -berok will link without error, but may produce a broken library.
8211 allow_undefined_flag='-berok'
8212 # Determine the default libpath from the value encoded in an empty executable.
8213 cat >conftest.$ac_ext <<_ACEOF
8214/* confdefs.h. */
8215_ACEOF
8216cat confdefs.h >>conftest.$ac_ext
8217cat >>conftest.$ac_ext <<_ACEOF
8218/* end confdefs.h. */
8219
8220int
8221main ()
8222{
8223
8224 ;
8225 return 0;
8226}
8227_ACEOF
8228rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +00008229if { (ac_try="$ac_link"
8230case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233esac
8234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00008236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00008242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8243 { (case "(($ac_try" in
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8246esac
8247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00008249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +00008253 { (case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256esac
8257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00008259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262
8263aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8264}'`
8265# Check for a 64-bit object if we didn't find anything.
8266if 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; }
8267}'`; fi
8268else
8269 echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
vlm83b901d2007-08-27 23:57:45 +00008272
vlm8f3eb992004-06-17 23:42:48 +00008273fi
vlm83b901d2007-08-27 23:57:45 +00008274
8275rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +00008276 conftest$ac_exeext conftest.$ac_ext
8277if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8278
8279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
vlm55681242007-12-03 14:58:39 +00008280 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
vlm8f3eb992004-06-17 23:42:48 +00008281 else
8282 if test "$host_cpu" = ia64; then
8283 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8284 allow_undefined_flag="-z nodefs"
vlm55681242007-12-03 14:58:39 +00008285 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
vlm8f3eb992004-06-17 23:42:48 +00008286 else
8287 # Determine the default libpath from the value encoded in an empty executable.
8288 cat >conftest.$ac_ext <<_ACEOF
8289/* confdefs.h. */
8290_ACEOF
8291cat confdefs.h >>conftest.$ac_ext
8292cat >>conftest.$ac_ext <<_ACEOF
8293/* end confdefs.h. */
8294
8295int
8296main ()
8297{
8298
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +00008304if { (ac_try="$ac_link"
8305case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00008311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00008317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8318 { (case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321esac
8322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00008324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; } &&
8327 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +00008328 { (case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331esac
8332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00008334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337
8338aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8339}'`
8340# Check for a 64-bit object if we didn't find anything.
8341if 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; }
8342}'`; fi
8343else
8344 echo "$as_me: failed program was:" >&5
8345sed 's/^/| /' conftest.$ac_ext >&5
8346
vlm83b901d2007-08-27 23:57:45 +00008347
vlm8f3eb992004-06-17 23:42:48 +00008348fi
vlm83b901d2007-08-27 23:57:45 +00008349
8350rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +00008351 conftest$ac_exeext conftest.$ac_ext
8352if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8353
8354 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8355 # Warning - without using the other run time loading flags,
8356 # -berok will link without error, but may produce a broken library.
8357 no_undefined_flag=' ${wl}-bernotok'
8358 allow_undefined_flag=' ${wl}-berok'
vlm8f3eb992004-06-17 23:42:48 +00008359 # Exported symbols can be pulled into shared objects from archives
vlm55681242007-12-03 14:58:39 +00008360 whole_archive_flag_spec='$convenience'
vlm8f3eb992004-06-17 23:42:48 +00008361 archive_cmds_need_lc=yes
vlm55681242007-12-03 14:58:39 +00008362 # This is similar to how AIX traditionally builds its shared libraries.
8363 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
vlm8f3eb992004-06-17 23:42:48 +00008364 fi
8365 fi
8366 ;;
8367
8368 amigaos*)
8369 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)'
8370 hardcode_libdir_flag_spec='-L$libdir'
8371 hardcode_minus_L=yes
8372 # see comment about different semantics on the GNU ld section
8373 ld_shlibs=no
8374 ;;
8375
vlm55681242007-12-03 14:58:39 +00008376 bsdi[45]*)
vlm8f3eb992004-06-17 23:42:48 +00008377 export_dynamic_flag_spec=-rdynamic
8378 ;;
8379
8380 cygwin* | mingw* | pw32*)
8381 # When not using gcc, we currently assume that we are using
8382 # Microsoft Visual C++.
8383 # hardcode_libdir_flag_spec is actually meaningless, as there is
8384 # no search path for DLLs.
8385 hardcode_libdir_flag_spec=' '
8386 allow_undefined_flag=unsupported
8387 # Tell ltmain to make .lib files, not .a files.
8388 libext=lib
8389 # Tell ltmain to make .dll files, not .so files.
8390 shrext_cmds=".dll"
8391 # FIXME: Setting linknames here is a bad hack.
8392 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8393 # The linker will automatically build a .lib file if we build a DLL.
8394 old_archive_From_new_cmds='true'
8395 # FIXME: Should let the user specify the lib program.
8396 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8397 fix_srcfile_path='`cygpath -w "$srcfile"`'
8398 enable_shared_with_static_runtimes=yes
8399 ;;
8400
8401 darwin* | rhapsody*)
vlm55681242007-12-03 14:58:39 +00008402 case $host_os in
8403 rhapsody* | darwin1.[012])
8404 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8405 ;;
8406 *) # Darwin 1.3 on
8407 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8408 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8409 else
8410 case ${MACOSX_DEPLOYMENT_TARGET} in
8411 10.[012])
8412 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8413 ;;
8414 10.*)
8415 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8416 ;;
8417 esac
8418 fi
8419 ;;
vlm8f3eb992004-06-17 23:42:48 +00008420 esac
vlm55681242007-12-03 14:58:39 +00008421 archive_cmds_need_lc=no
vlm8f3eb992004-06-17 23:42:48 +00008422 hardcode_direct=no
8423 hardcode_automatic=yes
8424 hardcode_shlibpath_var=unsupported
vlm55681242007-12-03 14:58:39 +00008425 whole_archive_flag_spec=''
vlm8f3eb992004-06-17 23:42:48 +00008426 link_all_deplibs=yes
vlm55681242007-12-03 14:58:39 +00008427 if test "$GCC" = yes ; then
8428 output_verbose_link_cmd='echo'
8429 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8430 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8431 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8432 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}'
8433 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}'
vlm8f3eb992004-06-17 23:42:48 +00008434 else
vlm55681242007-12-03 14:58:39 +00008435 case $cc_basename in
8436 xlc*)
8437 output_verbose_link_cmd='echo'
8438 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8439 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8440 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8441 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8442 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}'
8443 ;;
8444 *)
8445 ld_shlibs=no
8446 ;;
8447 esac
vlm8f3eb992004-06-17 23:42:48 +00008448 fi
8449 ;;
8450
8451 dgux*)
8452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8453 hardcode_libdir_flag_spec='-L$libdir'
8454 hardcode_shlibpath_var=no
8455 ;;
8456
8457 freebsd1*)
8458 ld_shlibs=no
8459 ;;
8460
8461 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8462 # support. Future versions do this automatically, but an explicit c++rt0.o
8463 # does not break anything, and helps significantly (at the cost of a little
8464 # extra space).
8465 freebsd2.2*)
8466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8467 hardcode_libdir_flag_spec='-R$libdir'
8468 hardcode_direct=yes
8469 hardcode_shlibpath_var=no
8470 ;;
8471
8472 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8473 freebsd2*)
8474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8475 hardcode_direct=yes
8476 hardcode_minus_L=yes
8477 hardcode_shlibpath_var=no
8478 ;;
8479
8480 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vlm55681242007-12-03 14:58:39 +00008481 freebsd* | kfreebsd*-gnu | dragonfly*)
vlm8f3eb992004-06-17 23:42:48 +00008482 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8483 hardcode_libdir_flag_spec='-R$libdir'
8484 hardcode_direct=yes
8485 hardcode_shlibpath_var=no
8486 ;;
8487
8488 hpux9*)
8489 if test "$GCC" = yes; then
8490 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'
8491 else
8492 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'
8493 fi
8494 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8495 hardcode_libdir_separator=:
8496 hardcode_direct=yes
8497
8498 # hardcode_minus_L: Not really in the search PATH,
8499 # but as the default location of the library.
8500 hardcode_minus_L=yes
8501 export_dynamic_flag_spec='${wl}-E'
8502 ;;
8503
vlm55681242007-12-03 14:58:39 +00008504 hpux10*)
vlm8f3eb992004-06-17 23:42:48 +00008505 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vlm55681242007-12-03 14:58:39 +00008506 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8507 else
8508 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8509 fi
8510 if test "$with_gnu_ld" = no; then
8511 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8512 hardcode_libdir_separator=:
8513
8514 hardcode_direct=yes
8515 export_dynamic_flag_spec='${wl}-E'
8516
8517 # hardcode_minus_L: Not really in the search PATH,
8518 # but as the default location of the library.
8519 hardcode_minus_L=yes
8520 fi
8521 ;;
8522
8523 hpux11*)
8524 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8525 case $host_cpu in
8526 hppa*64*)
vlm8f3eb992004-06-17 23:42:48 +00008527 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8528 ;;
vlm55681242007-12-03 14:58:39 +00008529 ia64*)
8530 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8531 ;;
vlm8f3eb992004-06-17 23:42:48 +00008532 *)
8533 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8534 ;;
8535 esac
8536 else
vlm55681242007-12-03 14:58:39 +00008537 case $host_cpu in
8538 hppa*64*)
8539 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 ;;
8541 ia64*)
8542 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +00008543 ;;
8544 *)
vlm55681242007-12-03 14:58:39 +00008545 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +00008546 ;;
8547 esac
8548 fi
8549 if test "$with_gnu_ld" = no; then
vlm55681242007-12-03 14:58:39 +00008550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8551 hardcode_libdir_separator=:
vlm8f3eb992004-06-17 23:42:48 +00008552
vlm55681242007-12-03 14:58:39 +00008553 case $host_cpu in
8554 hppa*64*|ia64*)
8555 hardcode_libdir_flag_spec_ld='+b $libdir'
8556 hardcode_direct=no
8557 hardcode_shlibpath_var=no
vlm8f3eb992004-06-17 23:42:48 +00008558 ;;
8559 *)
vlm8f3eb992004-06-17 23:42:48 +00008560 hardcode_direct=yes
8561 export_dynamic_flag_spec='${wl}-E'
8562
8563 # hardcode_minus_L: Not really in the search PATH,
8564 # but as the default location of the library.
8565 hardcode_minus_L=yes
8566 ;;
8567 esac
8568 fi
8569 ;;
8570
8571 irix5* | irix6* | nonstopux*)
8572 if test "$GCC" = yes; then
8573 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'
8574 else
8575 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'
8576 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8577 fi
8578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8579 hardcode_libdir_separator=:
8580 link_all_deplibs=yes
8581 ;;
8582
8583 netbsd*)
8584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8586 else
8587 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8588 fi
8589 hardcode_libdir_flag_spec='-R$libdir'
8590 hardcode_direct=yes
8591 hardcode_shlibpath_var=no
8592 ;;
8593
8594 newsos6)
8595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8596 hardcode_direct=yes
8597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8598 hardcode_libdir_separator=:
8599 hardcode_shlibpath_var=no
8600 ;;
8601
8602 openbsd*)
8603 hardcode_direct=yes
8604 hardcode_shlibpath_var=no
8605 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8606 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vlm55681242007-12-03 14:58:39 +00008607 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
vlm8f3eb992004-06-17 23:42:48 +00008608 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8609 export_dynamic_flag_spec='${wl}-E'
8610 else
8611 case $host_os in
8612 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8614 hardcode_libdir_flag_spec='-R$libdir'
8615 ;;
8616 *)
8617 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8619 ;;
8620 esac
8621 fi
8622 ;;
8623
8624 os2*)
8625 hardcode_libdir_flag_spec='-L$libdir'
8626 hardcode_minus_L=yes
8627 allow_undefined_flag=unsupported
8628 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'
8629 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8630 ;;
8631
8632 osf3*)
8633 if test "$GCC" = yes; then
8634 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8635 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'
8636 else
8637 allow_undefined_flag=' -expect_unresolved \*'
8638 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'
8639 fi
8640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641 hardcode_libdir_separator=:
8642 ;;
8643
8644 osf4* | osf5*) # as osf3* with the addition of -msym flag
8645 if test "$GCC" = yes; then
8646 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8647 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'
8648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649 else
8650 allow_undefined_flag=' -expect_unresolved \*'
8651 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'
8652 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
vlm55681242007-12-03 14:58:39 +00008653 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
vlm8f3eb992004-06-17 23:42:48 +00008654
8655 # Both c and cxx compiler support -rpath directly
8656 hardcode_libdir_flag_spec='-rpath $libdir'
8657 fi
8658 hardcode_libdir_separator=:
8659 ;;
8660
vlm8f3eb992004-06-17 23:42:48 +00008661 solaris*)
8662 no_undefined_flag=' -z text'
8663 if test "$GCC" = yes; then
vlm55681242007-12-03 14:58:39 +00008664 wlarc='${wl}'
vlm8f3eb992004-06-17 23:42:48 +00008665 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8666 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8667 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8668 else
vlm55681242007-12-03 14:58:39 +00008669 wlarc=''
vlm8f3eb992004-06-17 23:42:48 +00008670 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8671 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8672 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8673 fi
8674 hardcode_libdir_flag_spec='-R$libdir'
8675 hardcode_shlibpath_var=no
8676 case $host_os in
8677 solaris2.[0-5] | solaris2.[0-5].*) ;;
vlm55681242007-12-03 14:58:39 +00008678 *)
8679 # The compiler driver will combine linker options so we
8680 # cannot just pass the convience library names through
8681 # without $wl, iff we do not link with $LD.
8682 # Luckily, gcc supports the same syntax we need for Sun Studio.
8683 # Supported since Solaris 2.6 (maybe 2.5.1?)
8684 case $wlarc in
8685 '')
8686 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8687 *)
8688 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8689 esac ;;
vlm8f3eb992004-06-17 23:42:48 +00008690 esac
8691 link_all_deplibs=yes
8692 ;;
8693
8694 sunos4*)
8695 if test "x$host_vendor" = xsequent; then
8696 # Use $CC to link under sequent, because it throws in some extra .o
8697 # files that make .init and .fini sections work.
8698 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8699 else
8700 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8701 fi
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 hardcode_direct=yes
8704 hardcode_minus_L=yes
8705 hardcode_shlibpath_var=no
8706 ;;
8707
8708 sysv4)
8709 case $host_vendor in
8710 sni)
8711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712 hardcode_direct=yes # is this really true???
8713 ;;
8714 siemens)
8715 ## LD is ld it makes a PLAMLIB
8716 ## CC just makes a GrossModule.
8717 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8718 reload_cmds='$CC -r -o $output$reload_objs'
8719 hardcode_direct=no
8720 ;;
8721 motorola)
8722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8723 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8724 ;;
8725 esac
8726 runpath_var='LD_RUN_PATH'
8727 hardcode_shlibpath_var=no
8728 ;;
8729
8730 sysv4.3*)
8731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732 hardcode_shlibpath_var=no
8733 export_dynamic_flag_spec='-Bexport'
8734 ;;
8735
8736 sysv4*MP*)
8737 if test -d /usr/nec; then
8738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739 hardcode_shlibpath_var=no
8740 runpath_var=LD_RUN_PATH
8741 hardcode_runpath_var=yes
8742 ld_shlibs=yes
8743 fi
8744 ;;
8745
vlm55681242007-12-03 14:58:39 +00008746 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8747 no_undefined_flag='${wl}-z,text'
8748 archive_cmds_need_lc=no
vlm8f3eb992004-06-17 23:42:48 +00008749 hardcode_shlibpath_var=no
vlm55681242007-12-03 14:58:39 +00008750 runpath_var='LD_RUN_PATH'
vlm8f3eb992004-06-17 23:42:48 +00008751
vlm8f3eb992004-06-17 23:42:48 +00008752 if test "$GCC" = yes; then
vlm55681242007-12-03 14:58:39 +00008753 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8754 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +00008755 else
vlm55681242007-12-03 14:58:39 +00008756 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8757 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +00008758 fi
vlm8f3eb992004-06-17 23:42:48 +00008759 ;;
8760
vlm55681242007-12-03 14:58:39 +00008761 sysv5* | sco3.2v5* | sco5v6*)
8762 # Note: We can NOT use -z defs as we might desire, because we do not
8763 # link with -lc, and that would cause any symbols used from libc to
8764 # always be unresolved, which means just about no library would
8765 # ever link correctly. If we're not using GNU ld we use -z text
8766 # though, which does catch some bad symbols but isn't as heavy-handed
8767 # as -z defs.
8768 no_undefined_flag='${wl}-z,text'
8769 allow_undefined_flag='${wl}-z,nodefs'
8770 archive_cmds_need_lc=no
vlm8f3eb992004-06-17 23:42:48 +00008771 hardcode_shlibpath_var=no
vlm55681242007-12-03 14:58:39 +00008772 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8773 hardcode_libdir_separator=':'
8774 link_all_deplibs=yes
8775 export_dynamic_flag_spec='${wl}-Bexport'
vlm8f3eb992004-06-17 23:42:48 +00008776 runpath_var='LD_RUN_PATH'
vlm55681242007-12-03 14:58:39 +00008777
8778 if test "$GCC" = yes; then
8779 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8781 else
8782 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8783 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8784 fi
vlm8f3eb992004-06-17 23:42:48 +00008785 ;;
8786
8787 uts4*)
8788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789 hardcode_libdir_flag_spec='-L$libdir'
8790 hardcode_shlibpath_var=no
8791 ;;
8792
8793 *)
8794 ld_shlibs=no
8795 ;;
8796 esac
8797 fi
8798
vlm83b901d2007-08-27 23:57:45 +00008799{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8800echo "${ECHO_T}$ld_shlibs" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00008801test "$ld_shlibs" = no && can_build_shared=no
8802
vlm8f3eb992004-06-17 23:42:48 +00008803#
8804# Do we need to explicitly link libc?
8805#
8806case "x$archive_cmds_need_lc" in
8807x|xyes)
8808 # Assume -lc should be added
8809 archive_cmds_need_lc=yes
8810
8811 if test "$enable_shared" = yes && test "$GCC" = yes; then
8812 case $archive_cmds in
8813 *'~'*)
8814 # FIXME: we may have to deal with multi-command sequences.
8815 ;;
8816 '$CC '*)
8817 # Test whether the compiler implicitly links with -lc since on some
8818 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8819 # to ld, don't add -lc before -lgcc.
vlm83b901d2007-08-27 23:57:45 +00008820 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8821echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00008822 $rm conftest*
8823 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8824
8825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8826 (eval $ac_compile) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } 2>conftest.err; then
8830 soname=conftest
8831 lib=conftest
8832 libobjs=conftest.$ac_objext
8833 deplibs=
8834 wl=$lt_prog_compiler_wl
vlm55681242007-12-03 14:58:39 +00008835 pic_flag=$lt_prog_compiler_pic
vlm8f3eb992004-06-17 23:42:48 +00008836 compiler_flags=-v
8837 linker_flags=-v
8838 verstring=
8839 output_objdir=.
8840 libname=conftest
8841 lt_save_allow_undefined_flag=$allow_undefined_flag
8842 allow_undefined_flag=
8843 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8844 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }
8848 then
8849 archive_cmds_need_lc=no
8850 else
8851 archive_cmds_need_lc=yes
8852 fi
8853 allow_undefined_flag=$lt_save_allow_undefined_flag
8854 else
8855 cat conftest.err 1>&5
8856 fi
8857 $rm conftest*
vlm83b901d2007-08-27 23:57:45 +00008858 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8859echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00008860 ;;
8861 esac
8862 fi
8863 ;;
8864esac
8865
vlm83b901d2007-08-27 23:57:45 +00008866{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8867echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00008868library_names_spec=
8869libname_spec='lib$name'
8870soname_spec=
8871shrext_cmds=".so"
8872postinstall_cmds=
8873postuninstall_cmds=
8874finish_cmds=
8875finish_eval=
8876shlibpath_var=
8877shlibpath_overrides_runpath=unknown
8878version_type=none
8879dynamic_linker="$host_os ld.so"
8880sys_lib_dlsearch_path_spec="/lib /usr/lib"
8881if test "$GCC" = yes; then
8882 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8883 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8884 # if the path contains ";" then we assume it to be the separator
8885 # otherwise default to the standard path separator (i.e. ":") - it is
8886 # assumed that no part of a normal pathname contains ";" but that should
8887 # okay in the real world where ";" in dirpaths is itself problematic.
8888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8889 else
8890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8891 fi
8892else
8893 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8894fi
8895need_lib_prefix=unknown
8896hardcode_into_libs=no
8897
8898# when you set need_version to no, make sure it does not cause -set_version
8899# flags to be left without arguments
8900need_version=unknown
8901
8902case $host_os in
8903aix3*)
8904 version_type=linux
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8906 shlibpath_var=LIBPATH
8907
8908 # AIX 3 has no versioning support, so we append a major version to the name.
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 ;;
8911
8912aix4* | aix5*)
8913 version_type=linux
8914 need_lib_prefix=no
8915 need_version=no
8916 hardcode_into_libs=yes
8917 if test "$host_cpu" = ia64; then
8918 # AIX 5 supports IA64
8919 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8920 shlibpath_var=LD_LIBRARY_PATH
8921 else
8922 # With GCC up to 2.95.x, collect2 would create an import file
8923 # for dependence libraries. The import file would start with
8924 # the line `#! .'. This would cause the generated library to
8925 # depend on `.', always an invalid library. This was fixed in
8926 # development snapshots of GCC prior to 3.0.
8927 case $host_os in
8928 aix4 | aix4.[01] | aix4.[01].*)
8929 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8930 echo ' yes '
8931 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8932 :
8933 else
8934 can_build_shared=no
8935 fi
8936 ;;
8937 esac
8938 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8939 # soname into executable. Probably we can add versioning support to
8940 # collect2, so additional links can be useful in future.
8941 if test "$aix_use_runtimelinking" = yes; then
8942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8943 # instead of lib<name>.a to let people know that these are not
8944 # typical AIX shared libraries.
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 else
8947 # We preserve .a as extension for shared libraries through AIX4.2
8948 # and later when we are not doing run time linking.
8949 library_names_spec='${libname}${release}.a $libname.a'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 fi
8952 shlibpath_var=LIBPATH
8953 fi
8954 ;;
8955
8956amigaos*)
8957 library_names_spec='$libname.ixlibrary $libname.a'
8958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8959 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'
8960 ;;
8961
8962beos*)
8963 library_names_spec='${libname}${shared_ext}'
8964 dynamic_linker="$host_os ld.so"
8965 shlibpath_var=LIBRARY_PATH
8966 ;;
8967
vlm55681242007-12-03 14:58:39 +00008968bsdi[45]*)
vlm8f3eb992004-06-17 23:42:48 +00008969 version_type=linux
8970 need_version=no
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8976 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8977 # the default ld.so.conf also contains /usr/contrib/lib and
8978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8979 # libtool to hard-code these into programs
8980 ;;
8981
8982cygwin* | mingw* | pw32*)
8983 version_type=windows
8984 shrext_cmds=".dll"
8985 need_version=no
8986 need_lib_prefix=no
8987
8988 case $GCC,$host_os in
8989 yes,cygwin* | yes,mingw* | yes,pw32*)
8990 library_names_spec='$libname.dll.a'
8991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8992 postinstall_cmds='base_file=`basename \${file}`~
8993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8994 dldir=$destdir/`dirname \$dlpath`~
8995 test -d \$dldir || mkdir -p \$dldir~
vlm55681242007-12-03 14:58:39 +00008996 $install_prog $dir/$dlname \$dldir/$dlname~
8997 chmod a+x \$dldir/$dlname'
vlm8f3eb992004-06-17 23:42:48 +00008998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8999 dlpath=$dir/\$dldll~
9000 $rm \$dlpath'
9001 shlibpath_overrides_runpath=yes
9002
9003 case $host_os in
9004 cygwin*)
9005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9008 ;;
9009 mingw*)
9010 # MinGW DLLs use traditional 'lib' prefix
9011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9013 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9014 # It is most probably a Windows format PATH printed by
9015 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9016 # path with ; separators, and with drive letters. We can handle the
9017 # drive letters (cygwin fileutils understands them), so leave them,
9018 # especially as we might pass files found there to a mingw objdump,
9019 # which wouldn't understand a cygwinified path. Ahh.
9020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9021 else
9022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9023 fi
9024 ;;
9025 pw32*)
9026 # pw32 DLLs use 'pw' prefix rather than 'lib'
vlm55681242007-12-03 14:58:39 +00009027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
vlm8f3eb992004-06-17 23:42:48 +00009028 ;;
9029 esac
9030 ;;
9031
9032 *)
9033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9034 ;;
9035 esac
9036 dynamic_linker='Win32 ld.exe'
9037 # FIXME: first we should search . and the directory the executable is in
9038 shlibpath_var=PATH
9039 ;;
9040
9041darwin* | rhapsody*)
9042 dynamic_linker="$host_os dyld"
9043 version_type=darwin
9044 need_lib_prefix=no
9045 need_version=no
9046 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9047 soname_spec='${libname}${release}${major}$shared_ext'
9048 shlibpath_overrides_runpath=yes
9049 shlibpath_var=DYLD_LIBRARY_PATH
vlm55681242007-12-03 14:58:39 +00009050 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
vlm8f3eb992004-06-17 23:42:48 +00009051 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9052 if test "$GCC" = yes; then
9053 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"`
9054 else
9055 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9056 fi
9057 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9058 ;;
9059
9060dgux*)
9061 version_type=linux
9062 need_lib_prefix=no
9063 need_version=no
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9065 soname_spec='${libname}${release}${shared_ext}$major'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 ;;
9068
9069freebsd1*)
9070 dynamic_linker=no
9071 ;;
9072
9073kfreebsd*-gnu)
9074 version_type=linux
9075 need_lib_prefix=no
9076 need_version=no
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9078 soname_spec='${libname}${release}${shared_ext}$major'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=no
9081 hardcode_into_libs=yes
9082 dynamic_linker='GNU ld.so'
9083 ;;
9084
vlm55681242007-12-03 14:58:39 +00009085freebsd* | dragonfly*)
9086 # DragonFly does not have aout. When/if they implement a new
9087 # versioning mechanism, adjust this.
9088 if test -x /usr/bin/objformat; then
9089 objformat=`/usr/bin/objformat`
9090 else
9091 case $host_os in
9092 freebsd[123]*) objformat=aout ;;
9093 *) objformat=elf ;;
9094 esac
9095 fi
vlm8f3eb992004-06-17 23:42:48 +00009096 version_type=freebsd-$objformat
9097 case $version_type in
9098 freebsd-elf*)
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9100 need_version=no
9101 need_lib_prefix=no
9102 ;;
9103 freebsd-*)
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9105 need_version=yes
9106 ;;
9107 esac
9108 shlibpath_var=LD_LIBRARY_PATH
9109 case $host_os in
9110 freebsd2*)
9111 shlibpath_overrides_runpath=yes
9112 ;;
vlm55681242007-12-03 14:58:39 +00009113 freebsd3.[01]* | freebsdelf3.[01]*)
vlm8f3eb992004-06-17 23:42:48 +00009114 shlibpath_overrides_runpath=yes
9115 hardcode_into_libs=yes
9116 ;;
vlm55681242007-12-03 14:58:39 +00009117 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9118 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
vlm8f3eb992004-06-17 23:42:48 +00009119 shlibpath_overrides_runpath=no
9120 hardcode_into_libs=yes
9121 ;;
vlm55681242007-12-03 14:58:39 +00009122 freebsd*) # from 4.6 on
9123 shlibpath_overrides_runpath=yes
9124 hardcode_into_libs=yes
9125 ;;
vlm8f3eb992004-06-17 23:42:48 +00009126 esac
9127 ;;
9128
9129gnu*)
9130 version_type=linux
9131 need_lib_prefix=no
9132 need_version=no
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 hardcode_into_libs=yes
9137 ;;
9138
9139hpux9* | hpux10* | hpux11*)
9140 # Give a soname corresponding to the major version so that dld.sl refuses to
9141 # link against other versions.
9142 version_type=sunos
9143 need_lib_prefix=no
9144 need_version=no
vlm55681242007-12-03 14:58:39 +00009145 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +00009146 ia64*)
9147 shrext_cmds='.so'
9148 hardcode_into_libs=yes
9149 dynamic_linker="$host_os dld.so"
9150 shlibpath_var=LD_LIBRARY_PATH
9151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 if test "X$HPUX_IA64_MODE" = X32; then
9155 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9156 else
9157 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9158 fi
9159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9160 ;;
9161 hppa*64*)
9162 shrext_cmds='.sl'
9163 hardcode_into_libs=yes
9164 dynamic_linker="$host_os dld.sl"
9165 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9171 ;;
9172 *)
9173 shrext_cmds='.sl'
9174 dynamic_linker="$host_os dld.sl"
9175 shlibpath_var=SHLIB_PATH
9176 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 ;;
9180 esac
9181 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9182 postinstall_cmds='chmod 555 $lib'
9183 ;;
9184
vlm55681242007-12-03 14:58:39 +00009185interix3*)
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 shlibpath_overrides_runpath=no
9194 hardcode_into_libs=yes
9195 ;;
9196
vlm8f3eb992004-06-17 23:42:48 +00009197irix5* | irix6* | nonstopux*)
9198 case $host_os in
9199 nonstopux*) version_type=nonstopux ;;
9200 *)
9201 if test "$lt_cv_prog_gnu_ld" = yes; then
9202 version_type=linux
9203 else
9204 version_type=irix
9205 fi ;;
9206 esac
9207 need_lib_prefix=no
9208 need_version=no
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9211 case $host_os in
9212 irix5* | nonstopux*)
9213 libsuff= shlibsuff=
9214 ;;
9215 *)
9216 case $LD in # libtool.m4 will add one of these switches to LD
9217 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9218 libsuff= shlibsuff= libmagic=32-bit;;
9219 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9220 libsuff=32 shlibsuff=N32 libmagic=N32;;
9221 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9222 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9223 *) libsuff= shlibsuff= libmagic=never-match;;
9224 esac
9225 ;;
9226 esac
9227 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9228 shlibpath_overrides_runpath=no
9229 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9230 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9231 hardcode_into_libs=yes
9232 ;;
9233
9234# No shared lib support for Linux oldld, aout, or coff.
9235linux*oldld* | linux*aout* | linux*coff*)
9236 dynamic_linker=no
9237 ;;
9238
9239# This must be Linux ELF.
9240linux*)
9241 version_type=linux
9242 need_lib_prefix=no
9243 need_version=no
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=no
9249 # This implies no fast_install, which is unacceptable.
9250 # Some rework will be needed to allow for fast_install
9251 # before this can be enabled.
9252 hardcode_into_libs=yes
9253
9254 # Append ld.so.conf contents to the search path
9255 if test -f /etc/ld.so.conf; then
vlm55681242007-12-03 14:58:39 +00009256 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
vlm8f3eb992004-06-17 23:42:48 +00009257 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9258 fi
9259
9260 # We used to test for /lib/ld.so.1 and disable shared libraries on
9261 # powerpc, because MkLinux only supported shared libraries with the
9262 # GNU dynamic linker. Since this was broken with cross compilers,
9263 # most powerpc-linux boxes support dynamic linking these days and
9264 # people can always --disable-shared, the test was removed, and we
9265 # assume the GNU/Linux dynamic linker is in use.
9266 dynamic_linker='GNU/Linux ld.so'
9267 ;;
9268
9269knetbsd*-gnu)
9270 version_type=linux
9271 need_lib_prefix=no
9272 need_version=no
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 shlibpath_overrides_runpath=no
9277 hardcode_into_libs=yes
9278 dynamic_linker='GNU ld.so'
9279 ;;
9280
9281netbsd*)
9282 version_type=sunos
9283 need_lib_prefix=no
9284 need_version=no
9285 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9288 dynamic_linker='NetBSD (a.out) ld.so'
9289 else
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 dynamic_linker='NetBSD ld.elf_so'
9293 fi
9294 shlibpath_var=LD_LIBRARY_PATH
9295 shlibpath_overrides_runpath=yes
9296 hardcode_into_libs=yes
9297 ;;
9298
9299newsos6)
9300 version_type=linux
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 ;;
9305
9306nto-qnx*)
9307 version_type=linux
9308 need_lib_prefix=no
9309 need_version=no
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9314 ;;
9315
9316openbsd*)
9317 version_type=sunos
vlm55681242007-12-03 14:58:39 +00009318 sys_lib_dlsearch_path_spec="/usr/lib"
vlm8f3eb992004-06-17 23:42:48 +00009319 need_lib_prefix=no
vlm55681242007-12-03 14:58:39 +00009320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9321 case $host_os in
9322 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9323 *) need_version=no ;;
9324 esac
vlm8f3eb992004-06-17 23:42:48 +00009325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9329 case $host_os in
9330 openbsd2.[89] | openbsd2.[89].*)
9331 shlibpath_overrides_runpath=no
9332 ;;
9333 *)
9334 shlibpath_overrides_runpath=yes
9335 ;;
9336 esac
9337 else
9338 shlibpath_overrides_runpath=yes
9339 fi
9340 ;;
9341
9342os2*)
9343 libname_spec='$name'
9344 shrext_cmds=".dll"
9345 need_lib_prefix=no
9346 library_names_spec='$libname${shared_ext} $libname.a'
9347 dynamic_linker='OS/2 ld.exe'
9348 shlibpath_var=LIBPATH
9349 ;;
9350
9351osf3* | osf4* | osf5*)
9352 version_type=osf
9353 need_lib_prefix=no
9354 need_version=no
9355 soname_spec='${libname}${release}${shared_ext}$major'
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 shlibpath_var=LD_LIBRARY_PATH
9358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9360 ;;
9361
vlm8f3eb992004-06-17 23:42:48 +00009362solaris*)
9363 version_type=linux
9364 need_lib_prefix=no
9365 need_version=no
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 shlibpath_overrides_runpath=yes
9370 hardcode_into_libs=yes
9371 # ldd complains unless libraries are executable
9372 postinstall_cmds='chmod +x $lib'
9373 ;;
9374
9375sunos4*)
9376 version_type=sunos
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 shlibpath_overrides_runpath=yes
9381 if test "$with_gnu_ld" = yes; then
9382 need_lib_prefix=no
9383 fi
9384 need_version=yes
9385 ;;
9386
vlm55681242007-12-03 14:58:39 +00009387sysv4 | sysv4.3*)
vlm8f3eb992004-06-17 23:42:48 +00009388 version_type=linux
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9390 soname_spec='${libname}${release}${shared_ext}$major'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 case $host_vendor in
9393 sni)
9394 shlibpath_overrides_runpath=no
9395 need_lib_prefix=no
9396 export_dynamic_flag_spec='${wl}-Blargedynsym'
9397 runpath_var=LD_RUN_PATH
9398 ;;
9399 siemens)
9400 need_lib_prefix=no
9401 ;;
9402 motorola)
9403 need_lib_prefix=no
9404 need_version=no
9405 shlibpath_overrides_runpath=no
9406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9407 ;;
9408 esac
9409 ;;
9410
9411sysv4*MP*)
9412 if test -d /usr/nec ;then
9413 version_type=linux
9414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9415 soname_spec='$libname${shared_ext}.$major'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 fi
9418 ;;
9419
vlm55681242007-12-03 14:58:39 +00009420sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9421 version_type=freebsd-elf
9422 need_lib_prefix=no
9423 need_version=no
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9425 soname_spec='${libname}${release}${shared_ext}$major'
9426 shlibpath_var=LD_LIBRARY_PATH
9427 hardcode_into_libs=yes
9428 if test "$with_gnu_ld" = yes; then
9429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9430 shlibpath_overrides_runpath=no
9431 else
9432 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9433 shlibpath_overrides_runpath=yes
9434 case $host_os in
9435 sco3.2v5*)
9436 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9437 ;;
9438 esac
9439 fi
9440 sys_lib_dlsearch_path_spec='/usr/lib'
9441 ;;
9442
vlm8f3eb992004-06-17 23:42:48 +00009443uts4*)
9444 version_type=linux
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 shlibpath_var=LD_LIBRARY_PATH
9448 ;;
9449
9450*)
9451 dynamic_linker=no
9452 ;;
9453esac
vlm83b901d2007-08-27 23:57:45 +00009454{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9455echo "${ECHO_T}$dynamic_linker" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009456test "$dynamic_linker" = no && can_build_shared=no
9457
vlm55681242007-12-03 14:58:39 +00009458variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9459if test "$GCC" = yes; then
9460 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9461fi
9462
vlm83b901d2007-08-27 23:57:45 +00009463{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9464echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009465hardcode_action=
9466if test -n "$hardcode_libdir_flag_spec" || \
vlm55681242007-12-03 14:58:39 +00009467 test -n "$runpath_var" || \
9468 test "X$hardcode_automatic" = "Xyes" ; then
vlm8f3eb992004-06-17 23:42:48 +00009469
9470 # We can hardcode non-existant directories.
9471 if test "$hardcode_direct" != no &&
9472 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9473 # have to relink, otherwise we might link with an installed library
9474 # when we should be linking with a yet-to-be-installed one
9475 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9476 test "$hardcode_minus_L" != no; then
9477 # Linking always hardcodes the temporary library directory.
9478 hardcode_action=relink
9479 else
9480 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9481 hardcode_action=immediate
9482 fi
9483else
9484 # We cannot hardcode anything, or else we can only hardcode existing
9485 # directories.
9486 hardcode_action=unsupported
9487fi
vlm83b901d2007-08-27 23:57:45 +00009488{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9489echo "${ECHO_T}$hardcode_action" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009490
9491if test "$hardcode_action" = relink; then
9492 # Fast installation is not supported
9493 enable_fast_install=no
9494elif test "$shlibpath_overrides_runpath" = yes ||
9495 test "$enable_shared" = no; then
9496 # Fast installation is not necessary
9497 enable_fast_install=needless
9498fi
9499
9500striplib=
9501old_striplib=
vlm83b901d2007-08-27 23:57:45 +00009502{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9503echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009504if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9505 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9506 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
vlm83b901d2007-08-27 23:57:45 +00009507 { echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009509else
9510# FIXME - insert some real tests, host_os isn't really good enough
9511 case $host_os in
9512 darwin*)
9513 if test -n "$STRIP" ; then
9514 striplib="$STRIP -x"
vlm83b901d2007-08-27 23:57:45 +00009515 { echo "$as_me:$LINENO: result: yes" >&5
9516echo "${ECHO_T}yes" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009517 else
vlm83b901d2007-08-27 23:57:45 +00009518 { echo "$as_me:$LINENO: result: no" >&5
9519echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009520fi
9521 ;;
9522 *)
vlm83b901d2007-08-27 23:57:45 +00009523 { echo "$as_me:$LINENO: result: no" >&5
9524echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009525 ;;
9526 esac
9527fi
9528
9529if test "x$enable_dlopen" != xyes; then
9530 enable_dlopen=unknown
9531 enable_dlopen_self=unknown
9532 enable_dlopen_self_static=unknown
9533else
9534 lt_cv_dlopen=no
9535 lt_cv_dlopen_libs=
9536
9537 case $host_os in
9538 beos*)
9539 lt_cv_dlopen="load_add_on"
9540 lt_cv_dlopen_libs=
9541 lt_cv_dlopen_self=yes
9542 ;;
9543
9544 mingw* | pw32*)
9545 lt_cv_dlopen="LoadLibrary"
9546 lt_cv_dlopen_libs=
9547 ;;
9548
9549 cygwin*)
9550 lt_cv_dlopen="dlopen"
9551 lt_cv_dlopen_libs=
9552 ;;
9553
9554 darwin*)
9555 # if libdl is installed we need to link against it
vlm83b901d2007-08-27 23:57:45 +00009556 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9557echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009558if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560else
9561 ac_check_lib_save_LIBS=$LIBS
9562LIBS="-ldl $LIBS"
9563cat >conftest.$ac_ext <<_ACEOF
9564/* confdefs.h. */
9565_ACEOF
9566cat confdefs.h >>conftest.$ac_ext
9567cat >>conftest.$ac_ext <<_ACEOF
9568/* end confdefs.h. */
9569
vlm83b901d2007-08-27 23:57:45 +00009570/* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
vlm8f3eb992004-06-17 23:42:48 +00009573#ifdef __cplusplus
9574extern "C"
9575#endif
vlm8f3eb992004-06-17 23:42:48 +00009576char dlopen ();
9577int
9578main ()
9579{
vlm83b901d2007-08-27 23:57:45 +00009580return dlopen ();
vlm8f3eb992004-06-17 23:42:48 +00009581 ;
9582 return 0;
9583}
9584_ACEOF
9585rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +00009586if { (ac_try="$ac_link"
9587case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590esac
9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00009593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00009599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9600 { (case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603esac
9604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00009606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +00009610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613esac
9614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00009616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_lib_dl_dlopen=yes
9620else
9621 echo "$as_me: failed program was:" >&5
9622sed 's/^/| /' conftest.$ac_ext >&5
9623
vlm83b901d2007-08-27 23:57:45 +00009624 ac_cv_lib_dl_dlopen=no
vlm8f3eb992004-06-17 23:42:48 +00009625fi
vlm83b901d2007-08-27 23:57:45 +00009626
9627rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +00009628 conftest$ac_exeext conftest.$ac_ext
9629LIBS=$ac_check_lib_save_LIBS
9630fi
vlm83b901d2007-08-27 23:57:45 +00009631{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9632echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009633if test $ac_cv_lib_dl_dlopen = yes; then
9634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9635else
9636
9637 lt_cv_dlopen="dyld"
9638 lt_cv_dlopen_libs=
9639 lt_cv_dlopen_self=yes
9640
9641fi
9642
9643 ;;
9644
9645 *)
vlm83b901d2007-08-27 23:57:45 +00009646 { echo "$as_me:$LINENO: checking for shl_load" >&5
9647echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009648if test "${ac_cv_func_shl_load+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650else
9651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9659#define shl_load innocuous_shl_load
9660
9661/* System header to define __stub macros and hopefully few prototypes,
9662 which can conflict with char shl_load (); below.
9663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664 <limits.h> exists even on freestanding compilers. */
9665
9666#ifdef __STDC__
9667# include <limits.h>
9668#else
9669# include <assert.h>
9670#endif
9671
9672#undef shl_load
9673
vlm83b901d2007-08-27 23:57:45 +00009674/* Override any GCC internal prototype to avoid an error.
9675 Use char because int might match the return type of a GCC
9676 builtin and then its argument prototype would still apply. */
vlm8f3eb992004-06-17 23:42:48 +00009677#ifdef __cplusplus
9678extern "C"
vlm8f3eb992004-06-17 23:42:48 +00009679#endif
vlm8f3eb992004-06-17 23:42:48 +00009680char shl_load ();
9681/* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
vlm83b901d2007-08-27 23:57:45 +00009684#if defined __stub_shl_load || defined __stub___shl_load
vlm8f3eb992004-06-17 23:42:48 +00009685choke me
vlm8f3eb992004-06-17 23:42:48 +00009686#endif
9687
9688int
9689main ()
9690{
vlm83b901d2007-08-27 23:57:45 +00009691return shl_load ();
vlm8f3eb992004-06-17 23:42:48 +00009692 ;
9693 return 0;
9694}
9695_ACEOF
9696rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +00009697if { (ac_try="$ac_link"
9698case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701esac
9702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00009704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00009710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9711 { (case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9714esac
9715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00009717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; } &&
9720 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +00009721 { (case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724esac
9725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00009727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_func_shl_load=yes
9731else
9732 echo "$as_me: failed program was:" >&5
9733sed 's/^/| /' conftest.$ac_ext >&5
9734
vlm83b901d2007-08-27 23:57:45 +00009735 ac_cv_func_shl_load=no
vlm8f3eb992004-06-17 23:42:48 +00009736fi
vlm83b901d2007-08-27 23:57:45 +00009737
9738rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +00009739 conftest$ac_exeext conftest.$ac_ext
9740fi
vlm83b901d2007-08-27 23:57:45 +00009741{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9742echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009743if test $ac_cv_func_shl_load = yes; then
9744 lt_cv_dlopen="shl_load"
9745else
vlm83b901d2007-08-27 23:57:45 +00009746 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9747echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009748if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9750else
9751 ac_check_lib_save_LIBS=$LIBS
9752LIBS="-ldld $LIBS"
9753cat >conftest.$ac_ext <<_ACEOF
9754/* confdefs.h. */
9755_ACEOF
9756cat confdefs.h >>conftest.$ac_ext
9757cat >>conftest.$ac_ext <<_ACEOF
9758/* end confdefs.h. */
9759
vlm83b901d2007-08-27 23:57:45 +00009760/* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
vlm8f3eb992004-06-17 23:42:48 +00009763#ifdef __cplusplus
9764extern "C"
9765#endif
vlm8f3eb992004-06-17 23:42:48 +00009766char shl_load ();
9767int
9768main ()
9769{
vlm83b901d2007-08-27 23:57:45 +00009770return shl_load ();
vlm8f3eb992004-06-17 23:42:48 +00009771 ;
9772 return 0;
9773}
9774_ACEOF
9775rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +00009776if { (ac_try="$ac_link"
9777case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780esac
9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00009783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00009789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9790 { (case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9793esac
9794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00009796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +00009800 { (case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9803esac
9804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00009806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_lib_dld_shl_load=yes
9810else
9811 echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
9813
vlm83b901d2007-08-27 23:57:45 +00009814 ac_cv_lib_dld_shl_load=no
vlm8f3eb992004-06-17 23:42:48 +00009815fi
vlm83b901d2007-08-27 23:57:45 +00009816
9817rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +00009818 conftest$ac_exeext conftest.$ac_ext
9819LIBS=$ac_check_lib_save_LIBS
9820fi
vlm83b901d2007-08-27 23:57:45 +00009821{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9822echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009823if test $ac_cv_lib_dld_shl_load = yes; then
9824 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9825else
vlm83b901d2007-08-27 23:57:45 +00009826 { echo "$as_me:$LINENO: checking for dlopen" >&5
9827echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009828if test "${ac_cv_func_dlopen+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830else
9831 cat >conftest.$ac_ext <<_ACEOF
9832/* confdefs.h. */
9833_ACEOF
9834cat confdefs.h >>conftest.$ac_ext
9835cat >>conftest.$ac_ext <<_ACEOF
9836/* end confdefs.h. */
9837/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9839#define dlopen innocuous_dlopen
9840
9841/* System header to define __stub macros and hopefully few prototypes,
9842 which can conflict with char dlopen (); below.
9843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9844 <limits.h> exists even on freestanding compilers. */
9845
9846#ifdef __STDC__
9847# include <limits.h>
9848#else
9849# include <assert.h>
9850#endif
9851
9852#undef dlopen
9853
vlm83b901d2007-08-27 23:57:45 +00009854/* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
vlm8f3eb992004-06-17 23:42:48 +00009857#ifdef __cplusplus
9858extern "C"
vlm8f3eb992004-06-17 23:42:48 +00009859#endif
vlm8f3eb992004-06-17 23:42:48 +00009860char dlopen ();
9861/* The GNU C library defines this for functions which it implements
9862 to always fail with ENOSYS. Some functions are actually named
9863 something starting with __ and the normal name is an alias. */
vlm83b901d2007-08-27 23:57:45 +00009864#if defined __stub_dlopen || defined __stub___dlopen
vlm8f3eb992004-06-17 23:42:48 +00009865choke me
vlm8f3eb992004-06-17 23:42:48 +00009866#endif
9867
9868int
9869main ()
9870{
vlm83b901d2007-08-27 23:57:45 +00009871return dlopen ();
vlm8f3eb992004-06-17 23:42:48 +00009872 ;
9873 return 0;
9874}
9875_ACEOF
9876rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +00009877if { (ac_try="$ac_link"
9878case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00009884 ac_status=$?
9885 grep -v '^ *+' conftest.er1 >conftest.err
9886 rm -f conftest.er1
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00009890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9891 { (case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894esac
9895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00009897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +00009901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904esac
9905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00009907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 ac_cv_func_dlopen=yes
9911else
9912 echo "$as_me: failed program was:" >&5
9913sed 's/^/| /' conftest.$ac_ext >&5
9914
vlm83b901d2007-08-27 23:57:45 +00009915 ac_cv_func_dlopen=no
vlm8f3eb992004-06-17 23:42:48 +00009916fi
vlm83b901d2007-08-27 23:57:45 +00009917
9918rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +00009919 conftest$ac_exeext conftest.$ac_ext
9920fi
vlm83b901d2007-08-27 23:57:45 +00009921{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9922echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009923if test $ac_cv_func_dlopen = yes; then
9924 lt_cv_dlopen="dlopen"
9925else
vlm83b901d2007-08-27 23:57:45 +00009926 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9927echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +00009928if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930else
9931 ac_check_lib_save_LIBS=$LIBS
9932LIBS="-ldl $LIBS"
9933cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h. */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
9938/* end confdefs.h. */
9939
vlm83b901d2007-08-27 23:57:45 +00009940/* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
vlm8f3eb992004-06-17 23:42:48 +00009943#ifdef __cplusplus
9944extern "C"
9945#endif
vlm8f3eb992004-06-17 23:42:48 +00009946char dlopen ();
9947int
9948main ()
9949{
vlm83b901d2007-08-27 23:57:45 +00009950return dlopen ();
vlm8f3eb992004-06-17 23:42:48 +00009951 ;
9952 return 0;
9953}
9954_ACEOF
9955rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +00009956if { (ac_try="$ac_link"
9957case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +00009963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +00009969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973esac
9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00009976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +00009980 { (case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983esac
9984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +00009986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_cv_lib_dl_dlopen=yes
9990else
9991 echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
vlm83b901d2007-08-27 23:57:45 +00009994 ac_cv_lib_dl_dlopen=no
vlm8f3eb992004-06-17 23:42:48 +00009995fi
vlm83b901d2007-08-27 23:57:45 +00009996
9997rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +00009998 conftest$ac_exeext conftest.$ac_ext
9999LIBS=$ac_check_lib_save_LIBS
10000fi
vlm83b901d2007-08-27 23:57:45 +000010001{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10002echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010003if test $ac_cv_lib_dl_dlopen = yes; then
10004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10005else
vlm83b901d2007-08-27 23:57:45 +000010006 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10007echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010008if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010else
10011 ac_check_lib_save_LIBS=$LIBS
10012LIBS="-lsvld $LIBS"
10013cat >conftest.$ac_ext <<_ACEOF
10014/* confdefs.h. */
10015_ACEOF
10016cat confdefs.h >>conftest.$ac_ext
10017cat >>conftest.$ac_ext <<_ACEOF
10018/* end confdefs.h. */
10019
vlm83b901d2007-08-27 23:57:45 +000010020/* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
vlm8f3eb992004-06-17 23:42:48 +000010023#ifdef __cplusplus
10024extern "C"
10025#endif
vlm8f3eb992004-06-17 23:42:48 +000010026char dlopen ();
10027int
10028main ()
10029{
vlm83b901d2007-08-27 23:57:45 +000010030return dlopen ();
vlm8f3eb992004-06-17 23:42:48 +000010031 ;
10032 return 0;
10033}
10034_ACEOF
10035rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000010036if { (ac_try="$ac_link"
10037case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +000010043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000010049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10050 { (case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10053esac
10054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000010056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; } &&
10059 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000010060 { (case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10063esac
10064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000010066 ac_status=$?
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; }; then
10069 ac_cv_lib_svld_dlopen=yes
10070else
10071 echo "$as_me: failed program was:" >&5
10072sed 's/^/| /' conftest.$ac_ext >&5
10073
vlm83b901d2007-08-27 23:57:45 +000010074 ac_cv_lib_svld_dlopen=no
vlm8f3eb992004-06-17 23:42:48 +000010075fi
vlm83b901d2007-08-27 23:57:45 +000010076
10077rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000010078 conftest$ac_exeext conftest.$ac_ext
10079LIBS=$ac_check_lib_save_LIBS
10080fi
vlm83b901d2007-08-27 23:57:45 +000010081{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10082echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010083if test $ac_cv_lib_svld_dlopen = yes; then
10084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10085else
vlm83b901d2007-08-27 23:57:45 +000010086 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10087echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010088if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090else
10091 ac_check_lib_save_LIBS=$LIBS
10092LIBS="-ldld $LIBS"
10093cat >conftest.$ac_ext <<_ACEOF
10094/* confdefs.h. */
10095_ACEOF
10096cat confdefs.h >>conftest.$ac_ext
10097cat >>conftest.$ac_ext <<_ACEOF
10098/* end confdefs.h. */
10099
vlm83b901d2007-08-27 23:57:45 +000010100/* Override any GCC internal prototype to avoid an error.
10101 Use char because int might match the return type of a GCC
10102 builtin and then its argument prototype would still apply. */
vlm8f3eb992004-06-17 23:42:48 +000010103#ifdef __cplusplus
10104extern "C"
10105#endif
vlm8f3eb992004-06-17 23:42:48 +000010106char dld_link ();
10107int
10108main ()
10109{
vlm83b901d2007-08-27 23:57:45 +000010110return dld_link ();
vlm8f3eb992004-06-17 23:42:48 +000010111 ;
10112 return 0;
10113}
10114_ACEOF
10115rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000010116if { (ac_try="$ac_link"
10117case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120esac
10121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +000010123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000010129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133esac
10134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000010136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; } &&
10139 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000010140 { (case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10143esac
10144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000010146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
10149 ac_cv_lib_dld_dld_link=yes
10150else
10151 echo "$as_me: failed program was:" >&5
10152sed 's/^/| /' conftest.$ac_ext >&5
10153
vlm83b901d2007-08-27 23:57:45 +000010154 ac_cv_lib_dld_dld_link=no
vlm8f3eb992004-06-17 23:42:48 +000010155fi
vlm83b901d2007-08-27 23:57:45 +000010156
10157rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000010158 conftest$ac_exeext conftest.$ac_ext
10159LIBS=$ac_check_lib_save_LIBS
10160fi
vlm83b901d2007-08-27 23:57:45 +000010161{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10162echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010163if test $ac_cv_lib_dld_dld_link = yes; then
10164 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10165fi
10166
10167
10168fi
10169
10170
10171fi
10172
10173
10174fi
10175
10176
10177fi
10178
10179
10180fi
10181
10182 ;;
10183 esac
10184
10185 if test "x$lt_cv_dlopen" != xno; then
10186 enable_dlopen=yes
10187 else
10188 enable_dlopen=no
10189 fi
10190
10191 case $lt_cv_dlopen in
10192 dlopen)
10193 save_CPPFLAGS="$CPPFLAGS"
10194 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10195
10196 save_LDFLAGS="$LDFLAGS"
vlm55681242007-12-03 14:58:39 +000010197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
vlm8f3eb992004-06-17 23:42:48 +000010198
10199 save_LIBS="$LIBS"
10200 LIBS="$lt_cv_dlopen_libs $LIBS"
10201
vlm83b901d2007-08-27 23:57:45 +000010202 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10203echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010204if test "${lt_cv_dlopen_self+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206else
10207 if test "$cross_compiling" = yes; then :
10208 lt_cv_dlopen_self=cross
10209else
10210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10211 lt_status=$lt_dlunknown
10212 cat > conftest.$ac_ext <<EOF
vlm55681242007-12-03 14:58:39 +000010213#line 10213 "configure"
vlm8f3eb992004-06-17 23:42:48 +000010214#include "confdefs.h"
10215
10216#if HAVE_DLFCN_H
10217#include <dlfcn.h>
10218#endif
10219
10220#include <stdio.h>
10221
10222#ifdef RTLD_GLOBAL
10223# define LT_DLGLOBAL RTLD_GLOBAL
10224#else
10225# ifdef DL_GLOBAL
10226# define LT_DLGLOBAL DL_GLOBAL
10227# else
10228# define LT_DLGLOBAL 0
10229# endif
10230#endif
10231
10232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10233 find out it does not work in some platform. */
10234#ifndef LT_DLLAZY_OR_NOW
10235# ifdef RTLD_LAZY
10236# define LT_DLLAZY_OR_NOW RTLD_LAZY
10237# else
10238# ifdef DL_LAZY
10239# define LT_DLLAZY_OR_NOW DL_LAZY
10240# else
10241# ifdef RTLD_NOW
10242# define LT_DLLAZY_OR_NOW RTLD_NOW
10243# else
10244# ifdef DL_NOW
10245# define LT_DLLAZY_OR_NOW DL_NOW
10246# else
10247# define LT_DLLAZY_OR_NOW 0
10248# endif
10249# endif
10250# endif
10251# endif
10252#endif
10253
10254#ifdef __cplusplus
10255extern "C" void exit (int);
10256#endif
10257
10258void fnord() { int i=42;}
10259int main ()
10260{
10261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10262 int status = $lt_dlunknown;
10263
10264 if (self)
10265 {
10266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10268 /* dlclose (self); */
10269 }
vlm55681242007-12-03 14:58:39 +000010270 else
10271 puts (dlerror ());
vlm8f3eb992004-06-17 23:42:48 +000010272
10273 exit (status);
10274}
10275EOF
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vlm55681242007-12-03 14:58:39 +000010281 (./conftest; exit; ) >&5 2>/dev/null
vlm8f3eb992004-06-17 23:42:48 +000010282 lt_status=$?
10283 case x$lt_status in
10284 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10285 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vlm55681242007-12-03 14:58:39 +000010286 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
vlm8f3eb992004-06-17 23:42:48 +000010287 esac
10288 else :
10289 # compilation failed
10290 lt_cv_dlopen_self=no
10291 fi
10292fi
10293rm -fr conftest*
10294
10295
10296fi
vlm83b901d2007-08-27 23:57:45 +000010297{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10298echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010299
10300 if test "x$lt_cv_dlopen_self" = xyes; then
vlm55681242007-12-03 14:58:39 +000010301 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
vlm83b901d2007-08-27 23:57:45 +000010302 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10303echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010304if test "${lt_cv_dlopen_self_static+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 if test "$cross_compiling" = yes; then :
10308 lt_cv_dlopen_self_static=cross
10309else
10310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10311 lt_status=$lt_dlunknown
10312 cat > conftest.$ac_ext <<EOF
vlm55681242007-12-03 14:58:39 +000010313#line 10313 "configure"
vlm8f3eb992004-06-17 23:42:48 +000010314#include "confdefs.h"
10315
10316#if HAVE_DLFCN_H
10317#include <dlfcn.h>
10318#endif
10319
10320#include <stdio.h>
10321
10322#ifdef RTLD_GLOBAL
10323# define LT_DLGLOBAL RTLD_GLOBAL
10324#else
10325# ifdef DL_GLOBAL
10326# define LT_DLGLOBAL DL_GLOBAL
10327# else
10328# define LT_DLGLOBAL 0
10329# endif
10330#endif
10331
10332/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10333 find out it does not work in some platform. */
10334#ifndef LT_DLLAZY_OR_NOW
10335# ifdef RTLD_LAZY
10336# define LT_DLLAZY_OR_NOW RTLD_LAZY
10337# else
10338# ifdef DL_LAZY
10339# define LT_DLLAZY_OR_NOW DL_LAZY
10340# else
10341# ifdef RTLD_NOW
10342# define LT_DLLAZY_OR_NOW RTLD_NOW
10343# else
10344# ifdef DL_NOW
10345# define LT_DLLAZY_OR_NOW DL_NOW
10346# else
10347# define LT_DLLAZY_OR_NOW 0
10348# endif
10349# endif
10350# endif
10351# endif
10352#endif
10353
10354#ifdef __cplusplus
10355extern "C" void exit (int);
10356#endif
10357
10358void fnord() { int i=42;}
10359int main ()
10360{
10361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10362 int status = $lt_dlunknown;
10363
10364 if (self)
10365 {
10366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10368 /* dlclose (self); */
10369 }
vlm55681242007-12-03 14:58:39 +000010370 else
10371 puts (dlerror ());
vlm8f3eb992004-06-17 23:42:48 +000010372
10373 exit (status);
10374}
10375EOF
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vlm55681242007-12-03 14:58:39 +000010381 (./conftest; exit; ) >&5 2>/dev/null
vlm8f3eb992004-06-17 23:42:48 +000010382 lt_status=$?
10383 case x$lt_status in
10384 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10385 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vlm55681242007-12-03 14:58:39 +000010386 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
vlm8f3eb992004-06-17 23:42:48 +000010387 esac
10388 else :
10389 # compilation failed
10390 lt_cv_dlopen_self_static=no
10391 fi
10392fi
10393rm -fr conftest*
10394
10395
10396fi
vlm83b901d2007-08-27 23:57:45 +000010397{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10398echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010399 fi
10400
10401 CPPFLAGS="$save_CPPFLAGS"
10402 LDFLAGS="$save_LDFLAGS"
10403 LIBS="$save_LIBS"
10404 ;;
10405 esac
10406
10407 case $lt_cv_dlopen_self in
10408 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10409 *) enable_dlopen_self=unknown ;;
10410 esac
10411
10412 case $lt_cv_dlopen_self_static in
10413 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10414 *) enable_dlopen_self_static=unknown ;;
10415 esac
10416fi
10417
10418
vlm55681242007-12-03 14:58:39 +000010419# Report which library types will actually be built
vlm83b901d2007-08-27 23:57:45 +000010420{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10421echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10422{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10423echo "${ECHO_T}$can_build_shared" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010424
vlm83b901d2007-08-27 23:57:45 +000010425{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10426echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010427test "$can_build_shared" = "no" && enable_shared=no
10428
10429# On AIX, shared libraries and static libraries use the same namespace, and
10430# are all built from PIC.
vlm55681242007-12-03 14:58:39 +000010431case $host_os in
vlm8f3eb992004-06-17 23:42:48 +000010432aix3*)
10433 test "$enable_shared" = yes && enable_static=no
10434 if test -n "$RANLIB"; then
10435 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10436 postinstall_cmds='$RANLIB $lib'
10437 fi
10438 ;;
10439
10440aix4* | aix5*)
10441 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10442 test "$enable_shared" = yes && enable_static=no
10443 fi
vlm8f3eb992004-06-17 23:42:48 +000010444 ;;
10445esac
vlm83b901d2007-08-27 23:57:45 +000010446{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10447echo "${ECHO_T}$enable_shared" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010448
vlm83b901d2007-08-27 23:57:45 +000010449{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10450echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010451# Make sure either enable_shared or enable_static is yes.
10452test "$enable_shared" = yes || enable_static=yes
vlm83b901d2007-08-27 23:57:45 +000010453{ echo "$as_me:$LINENO: result: $enable_static" >&5
10454echo "${ECHO_T}$enable_static" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000010455
10456# The else clause should only fire when bootstrapping the
10457# libtool distribution, otherwise you forgot to ship ltmain.sh
10458# with your package, and you will get complaints that there are
10459# no rules to generate ltmain.sh.
10460if test -f "$ltmain"; then
10461 # See if we are running on zsh, and set the options which allow our commands through
10462 # without removal of \ escapes.
10463 if test -n "${ZSH_VERSION+set}" ; then
10464 setopt NO_GLOB_SUBST
10465 fi
10466 # Now quote all the things that may contain metacharacters while being
10467 # careful not to overquote the AC_SUBSTed values. We take copies of the
10468 # variables and quote the copies for generation of the libtool script.
vlm55681242007-12-03 14:58:39 +000010469 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
vlm8f3eb992004-06-17 23:42:48 +000010470 SED SHELL STRIP \
10471 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10472 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10473 deplibs_check_method reload_flag reload_cmds need_locks \
10474 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10475 lt_cv_sys_global_symbol_to_c_name_address \
10476 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10477 old_postinstall_cmds old_postuninstall_cmds \
10478 compiler \
10479 CC \
10480 LD \
10481 lt_prog_compiler_wl \
10482 lt_prog_compiler_pic \
10483 lt_prog_compiler_static \
10484 lt_prog_compiler_no_builtin_flag \
10485 export_dynamic_flag_spec \
10486 thread_safe_flag_spec \
10487 whole_archive_flag_spec \
10488 enable_shared_with_static_runtimes \
10489 old_archive_cmds \
10490 old_archive_from_new_cmds \
10491 predep_objects \
10492 postdep_objects \
10493 predeps \
10494 postdeps \
10495 compiler_lib_search_path \
10496 archive_cmds \
10497 archive_expsym_cmds \
10498 postinstall_cmds \
10499 postuninstall_cmds \
10500 old_archive_from_expsyms_cmds \
10501 allow_undefined_flag \
10502 no_undefined_flag \
10503 export_symbols_cmds \
10504 hardcode_libdir_flag_spec \
10505 hardcode_libdir_flag_spec_ld \
10506 hardcode_libdir_separator \
10507 hardcode_automatic \
10508 module_cmds \
10509 module_expsym_cmds \
10510 lt_cv_prog_compiler_c_o \
10511 exclude_expsyms \
10512 include_expsyms; do
10513
10514 case $var in
10515 old_archive_cmds | \
10516 old_archive_from_new_cmds | \
10517 archive_cmds | \
10518 archive_expsym_cmds | \
10519 module_cmds | \
10520 module_expsym_cmds | \
10521 old_archive_from_expsyms_cmds | \
10522 export_symbols_cmds | \
10523 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10524 postinstall_cmds | postuninstall_cmds | \
10525 old_postinstall_cmds | old_postuninstall_cmds | \
10526 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10527 # Double-quote double-evaled strings.
10528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10529 ;;
10530 *)
10531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10532 ;;
10533 esac
10534 done
10535
10536 case $lt_echo in
10537 *'\$0 --fallback-echo"')
10538 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10539 ;;
10540 esac
10541
10542cfgfile="${ofile}T"
10543 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10544 $rm -f "$cfgfile"
10545 { echo "$as_me:$LINENO: creating $ofile" >&5
10546echo "$as_me: creating $ofile" >&6;}
10547
10548 cat <<__EOF__ >> "$cfgfile"
10549#! $SHELL
10550
10551# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10552# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10553# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10554#
10555# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10556# Free Software Foundation, Inc.
10557#
10558# This file is part of GNU Libtool:
10559# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10560#
10561# This program is free software; you can redistribute it and/or modify
10562# it under the terms of the GNU General Public License as published by
10563# the Free Software Foundation; either version 2 of the License, or
10564# (at your option) any later version.
10565#
10566# This program is distributed in the hope that it will be useful, but
10567# WITHOUT ANY WARRANTY; without even the implied warranty of
10568# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10569# General Public License for more details.
10570#
10571# You should have received a copy of the GNU General Public License
10572# along with this program; if not, write to the Free Software
vlm55681242007-12-03 14:58:39 +000010573# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
vlm8f3eb992004-06-17 23:42:48 +000010574#
10575# As a special exception to the GNU General Public License, if you
10576# distribute this file as part of a program that contains a
10577# configuration script generated by Autoconf, you may include it under
10578# the same distribution terms that you use for the rest of that program.
10579
10580# A sed program that does not truncate output.
10581SED=$lt_SED
10582
10583# Sed that helps us avoid accidentally triggering echo(1) options like -n.
vlm55681242007-12-03 14:58:39 +000010584Xsed="$SED -e 1s/^X//"
vlm8f3eb992004-06-17 23:42:48 +000010585
10586# The HP-UX ksh and POSIX shell print the target directory to stdout
10587# if CDPATH is set.
vlm55681242007-12-03 14:58:39 +000010588(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
vlm8f3eb992004-06-17 23:42:48 +000010589
10590# The names of the tagged configurations supported by this script.
10591available_tags=
10592
10593# ### BEGIN LIBTOOL CONFIG
10594
10595# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10596
10597# Shell to use when invoking shell scripts.
10598SHELL=$lt_SHELL
10599
10600# Whether or not to build shared libraries.
10601build_libtool_libs=$enable_shared
10602
10603# Whether or not to build static libraries.
10604build_old_libs=$enable_static
10605
10606# Whether or not to add -lc for building shared libraries.
10607build_libtool_need_lc=$archive_cmds_need_lc
10608
10609# Whether or not to disallow shared libs when runtime libs are static
10610allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10611
10612# Whether or not to optimize for fast installation.
10613fast_install=$enable_fast_install
10614
10615# The host system.
10616host_alias=$host_alias
10617host=$host
vlm55681242007-12-03 14:58:39 +000010618host_os=$host_os
10619
10620# The build system.
10621build_alias=$build_alias
10622build=$build
10623build_os=$build_os
vlm8f3eb992004-06-17 23:42:48 +000010624
10625# An echo program that does not interpret backslashes.
10626echo=$lt_echo
10627
10628# The archiver.
10629AR=$lt_AR
10630AR_FLAGS=$lt_AR_FLAGS
10631
10632# A C compiler.
10633LTCC=$lt_LTCC
10634
vlm55681242007-12-03 14:58:39 +000010635# LTCC compiler flags.
10636LTCFLAGS=$lt_LTCFLAGS
10637
vlm8f3eb992004-06-17 23:42:48 +000010638# A language-specific compiler.
10639CC=$lt_compiler
10640
10641# Is the compiler the GNU C compiler?
10642with_gcc=$GCC
10643
10644# An ERE matcher.
10645EGREP=$lt_EGREP
10646
10647# The linker used to build libraries.
10648LD=$lt_LD
10649
10650# Whether we need hard or soft links.
10651LN_S=$lt_LN_S
10652
10653# A BSD-compatible nm program.
10654NM=$lt_NM
10655
10656# A symbol stripping program
10657STRIP=$lt_STRIP
10658
10659# Used to examine libraries when file_magic_cmd begins "file"
10660MAGIC_CMD=$MAGIC_CMD
10661
10662# Used on cygwin: DLL creation program.
10663DLLTOOL="$DLLTOOL"
10664
10665# Used on cygwin: object dumper.
10666OBJDUMP="$OBJDUMP"
10667
10668# Used on cygwin: assembler.
10669AS="$AS"
10670
10671# The name of the directory that contains temporary libtool files.
10672objdir=$objdir
10673
10674# How to create reloadable object files.
10675reload_flag=$lt_reload_flag
10676reload_cmds=$lt_reload_cmds
10677
10678# How to pass a linker flag through the compiler.
10679wl=$lt_lt_prog_compiler_wl
10680
10681# Object file suffix (normally "o").
10682objext="$ac_objext"
10683
10684# Old archive suffix (normally "a").
10685libext="$libext"
10686
10687# Shared library suffix (normally ".so").
10688shrext_cmds='$shrext_cmds'
10689
10690# Executable file suffix (normally "").
10691exeext="$exeext"
10692
10693# Additional compiler flags for building library objects.
10694pic_flag=$lt_lt_prog_compiler_pic
10695pic_mode=$pic_mode
10696
10697# What is the maximum length of a command?
10698max_cmd_len=$lt_cv_sys_max_cmd_len
10699
10700# Does compiler simultaneously support -c and -o options?
10701compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10702
vlm55681242007-12-03 14:58:39 +000010703# Must we lock files when doing compilation?
vlm8f3eb992004-06-17 23:42:48 +000010704need_locks=$lt_need_locks
10705
10706# Do we need the lib prefix for modules?
10707need_lib_prefix=$need_lib_prefix
10708
10709# Do we need a version for libraries?
10710need_version=$need_version
10711
10712# Whether dlopen is supported.
10713dlopen_support=$enable_dlopen
10714
10715# Whether dlopen of programs is supported.
10716dlopen_self=$enable_dlopen_self
10717
10718# Whether dlopen of statically linked programs is supported.
10719dlopen_self_static=$enable_dlopen_self_static
10720
10721# Compiler flag to prevent dynamic linking.
10722link_static_flag=$lt_lt_prog_compiler_static
10723
10724# Compiler flag to turn off builtin functions.
10725no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10726
10727# Compiler flag to allow reflexive dlopens.
10728export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10729
10730# Compiler flag to generate shared objects directly from archives.
10731whole_archive_flag_spec=$lt_whole_archive_flag_spec
10732
10733# Compiler flag to generate thread-safe objects.
10734thread_safe_flag_spec=$lt_thread_safe_flag_spec
10735
10736# Library versioning type.
10737version_type=$version_type
10738
10739# Format of library name prefix.
10740libname_spec=$lt_libname_spec
10741
10742# List of archive names. First name is the real one, the rest are links.
10743# The last name is the one that the linker finds with -lNAME.
10744library_names_spec=$lt_library_names_spec
10745
10746# The coded name of the library, if different from the real name.
10747soname_spec=$lt_soname_spec
10748
10749# Commands used to build and install an old-style archive.
10750RANLIB=$lt_RANLIB
10751old_archive_cmds=$lt_old_archive_cmds
10752old_postinstall_cmds=$lt_old_postinstall_cmds
10753old_postuninstall_cmds=$lt_old_postuninstall_cmds
10754
10755# Create an old-style archive from a shared archive.
10756old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10757
10758# Create a temporary old-style archive to link instead of a shared archive.
10759old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10760
10761# Commands used to build and install a shared archive.
10762archive_cmds=$lt_archive_cmds
10763archive_expsym_cmds=$lt_archive_expsym_cmds
10764postinstall_cmds=$lt_postinstall_cmds
10765postuninstall_cmds=$lt_postuninstall_cmds
10766
10767# Commands used to build a loadable module (assumed same as above if empty)
10768module_cmds=$lt_module_cmds
10769module_expsym_cmds=$lt_module_expsym_cmds
10770
10771# Commands to strip libraries.
10772old_striplib=$lt_old_striplib
10773striplib=$lt_striplib
10774
10775# Dependencies to place before the objects being linked to create a
10776# shared library.
10777predep_objects=$lt_predep_objects
10778
10779# Dependencies to place after the objects being linked to create a
10780# shared library.
10781postdep_objects=$lt_postdep_objects
10782
10783# Dependencies to place before the objects being linked to create a
10784# shared library.
10785predeps=$lt_predeps
10786
10787# Dependencies to place after the objects being linked to create a
10788# shared library.
10789postdeps=$lt_postdeps
10790
10791# The library search path used internally by the compiler when linking
10792# a shared library.
10793compiler_lib_search_path=$lt_compiler_lib_search_path
10794
10795# Method to check whether dependent libraries are shared objects.
10796deplibs_check_method=$lt_deplibs_check_method
10797
10798# Command to use when deplibs_check_method == file_magic.
10799file_magic_cmd=$lt_file_magic_cmd
10800
10801# Flag that allows shared libraries with undefined symbols to be built.
10802allow_undefined_flag=$lt_allow_undefined_flag
10803
10804# Flag that forces no undefined symbols.
10805no_undefined_flag=$lt_no_undefined_flag
10806
10807# Commands used to finish a libtool library installation in a directory.
10808finish_cmds=$lt_finish_cmds
10809
10810# Same as above, but a single script fragment to be evaled but not shown.
10811finish_eval=$lt_finish_eval
10812
10813# Take the output of nm and produce a listing of raw symbols and C names.
10814global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10815
10816# Transform the output of nm in a proper C declaration
10817global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10818
10819# Transform the output of nm in a C name address pair
10820global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10821
10822# This is the shared library runtime path variable.
10823runpath_var=$runpath_var
10824
10825# This is the shared library path variable.
10826shlibpath_var=$shlibpath_var
10827
10828# Is shlibpath searched before the hard-coded library search path?
10829shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10830
10831# How to hardcode a shared library path into an executable.
10832hardcode_action=$hardcode_action
10833
10834# Whether we should hardcode library paths into libraries.
10835hardcode_into_libs=$hardcode_into_libs
10836
10837# Flag to hardcode \$libdir into a binary during linking.
10838# This must work even if \$libdir does not exist.
10839hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10840
10841# If ld is used when linking, flag to hardcode \$libdir into
10842# a binary during linking. This must work even if \$libdir does
10843# not exist.
10844hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10845
10846# Whether we need a single -rpath flag with a separated argument.
10847hardcode_libdir_separator=$lt_hardcode_libdir_separator
10848
10849# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10850# resulting binary.
10851hardcode_direct=$hardcode_direct
10852
10853# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10854# resulting binary.
10855hardcode_minus_L=$hardcode_minus_L
10856
10857# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10858# the resulting binary.
10859hardcode_shlibpath_var=$hardcode_shlibpath_var
10860
10861# Set to yes if building a shared library automatically hardcodes DIR into the library
10862# and all subsequent libraries and executables linked against it.
10863hardcode_automatic=$hardcode_automatic
10864
10865# Variables whose values should be saved in libtool wrapper scripts and
10866# restored at relink time.
10867variables_saved_for_relink="$variables_saved_for_relink"
10868
10869# Whether libtool must link a program against all its dependency libraries.
10870link_all_deplibs=$link_all_deplibs
10871
10872# Compile-time system search path for libraries
10873sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10874
10875# Run-time system search path for libraries
10876sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10877
10878# Fix the shell variable \$srcfile for the compiler.
10879fix_srcfile_path="$fix_srcfile_path"
10880
10881# Set to yes if exported symbols are required.
10882always_export_symbols=$always_export_symbols
10883
10884# The commands to list exported symbols.
10885export_symbols_cmds=$lt_export_symbols_cmds
10886
10887# The commands to extract the exported symbol list from a shared archive.
10888extract_expsyms_cmds=$lt_extract_expsyms_cmds
10889
10890# Symbols that should not be listed in the preloaded symbols.
10891exclude_expsyms=$lt_exclude_expsyms
10892
10893# Symbols that must always be exported.
10894include_expsyms=$lt_include_expsyms
10895
10896# ### END LIBTOOL CONFIG
10897
10898__EOF__
10899
10900
10901 case $host_os in
10902 aix3*)
10903 cat <<\EOF >> "$cfgfile"
10904
10905# AIX sometimes has problems with the GCC collect2 program. For some
10906# reason, if we set the COLLECT_NAMES environment variable, the problems
10907# vanish in a puff of smoke.
10908if test "X${COLLECT_NAMES+set}" != Xset; then
10909 COLLECT_NAMES=
10910 export COLLECT_NAMES
10911fi
10912EOF
10913 ;;
10914 esac
10915
10916 # We use sed instead of cat because bash on DJGPP gets confused if
10917 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10918 # text mode, it properly converts lines to CR/LF. This bash problem
10919 # is reportedly fixed, but why not run on old versions too?
10920 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10921
10922 mv -f "$cfgfile" "$ofile" || \
10923 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10924 chmod +x "$ofile"
10925
10926else
10927 # If there is no Makefile yet, we rely on a make rule to execute
10928 # `config.status --recheck' to rerun these tests and create the
10929 # libtool script then.
10930 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10931 if test -f "$ltmain_in"; then
10932 test -f Makefile && make "$ltmain"
10933 fi
10934fi
10935
10936
10937ac_ext=c
10938ac_cpp='$CPP $CPPFLAGS'
10939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941ac_compiler_gnu=$ac_cv_c_compiler_gnu
10942
10943CC="$lt_save_CC"
10944
10945
vlm83b901d2007-08-27 23:57:45 +000010946# Check whether --with-tags was given.
vlm8f3eb992004-06-17 23:42:48 +000010947if test "${with_tags+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +000010948 withval=$with_tags; tagnames="$withval"
10949fi
10950
vlm8f3eb992004-06-17 23:42:48 +000010951
10952if test -f "$ltmain" && test -n "$tagnames"; then
10953 if test ! -f "${ofile}"; then
10954 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10955echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10956 fi
10957
10958 if test -z "$LTCC"; then
10959 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10960 if test -z "$LTCC"; then
10961 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10962echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10963 else
10964 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10965echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10966 fi
10967 fi
vlm55681242007-12-03 14:58:39 +000010968 if test -z "$LTCFLAGS"; then
10969 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10970 fi
vlm8f3eb992004-06-17 23:42:48 +000010971
10972 # Extract list of available tagged configurations in $ofile.
10973 # Note that this assumes the entire list is on one line.
10974 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10975
10976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10977 for tagname in $tagnames; do
10978 IFS="$lt_save_ifs"
10979 # Check whether tagname contains only valid characters
10980 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10981 "") ;;
10982 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10983echo "$as_me: error: invalid tag name: $tagname" >&2;}
10984 { (exit 1); exit 1; }; }
10985 ;;
10986 esac
10987
10988 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10989 then
10990 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10991echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10992 { (exit 1); exit 1; }; }
10993 fi
10994
10995 # Update the list of available tags.
10996 if test -n "$tagname"; then
10997 echo appending configuration tag \"$tagname\" to $ofile
10998
10999 case $tagname in
11000 CXX)
vlm55681242007-12-03 14:58:39 +000011001 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11002 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11003 (test "X$CXX" != "Xg++"))) ; then
vlm83b901d2007-08-27 23:57:45 +000011004 ac_ext=cpp
vlm8f3eb992004-06-17 23:42:48 +000011005ac_cpp='$CXXCPP $CPPFLAGS'
11006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11009
11010
11011
11012
11013archive_cmds_need_lc_CXX=no
11014allow_undefined_flag_CXX=
11015always_export_symbols_CXX=no
11016archive_expsym_cmds_CXX=
11017export_dynamic_flag_spec_CXX=
11018hardcode_direct_CXX=no
11019hardcode_libdir_flag_spec_CXX=
11020hardcode_libdir_flag_spec_ld_CXX=
11021hardcode_libdir_separator_CXX=
11022hardcode_minus_L_CXX=no
vlm55681242007-12-03 14:58:39 +000011023hardcode_shlibpath_var_CXX=unsupported
vlm8f3eb992004-06-17 23:42:48 +000011024hardcode_automatic_CXX=no
11025module_cmds_CXX=
11026module_expsym_cmds_CXX=
11027link_all_deplibs_CXX=unknown
11028old_archive_cmds_CXX=$old_archive_cmds
11029no_undefined_flag_CXX=
11030whole_archive_flag_spec_CXX=
11031enable_shared_with_static_runtimes_CXX=no
11032
11033# Dependencies to place before and after the object being linked:
11034predep_objects_CXX=
11035postdep_objects_CXX=
11036predeps_CXX=
11037postdeps_CXX=
11038compiler_lib_search_path_CXX=
11039
11040# Source file extension for C++ test sources.
vlm55681242007-12-03 14:58:39 +000011041ac_ext=cpp
vlm8f3eb992004-06-17 23:42:48 +000011042
11043# Object file extension for compiled C++ test sources.
11044objext=o
11045objext_CXX=$objext
11046
11047# Code to be used in simple compile tests
11048lt_simple_compile_test_code="int some_variable = 0;\n"
11049
11050# Code to be used in simple link tests
vlm55681242007-12-03 14:58:39 +000011051lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
vlm8f3eb992004-06-17 23:42:48 +000011052
11053# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11054
11055# If no C compiler was specified, use CC.
11056LTCC=${LTCC-"$CC"}
11057
vlm55681242007-12-03 14:58:39 +000011058# If no C compiler flags were specified, use CFLAGS.
11059LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11060
vlm8f3eb992004-06-17 23:42:48 +000011061# Allow CC to be a program name with arguments.
11062compiler=$CC
11063
11064
vlm55681242007-12-03 14:58:39 +000011065# save warnings/boilerplate of simple test code
11066ac_outfile=conftest.$ac_objext
11067printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11068eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11069_lt_compiler_boilerplate=`cat conftest.err`
11070$rm conftest*
11071
11072ac_outfile=conftest.$ac_objext
11073printf "$lt_simple_link_test_code" >conftest.$ac_ext
11074eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11075_lt_linker_boilerplate=`cat conftest.err`
11076$rm conftest*
11077
11078
vlm8f3eb992004-06-17 23:42:48 +000011079# Allow CC to be a program name with arguments.
11080lt_save_CC=$CC
11081lt_save_LD=$LD
11082lt_save_GCC=$GCC
11083GCC=$GXX
11084lt_save_with_gnu_ld=$with_gnu_ld
11085lt_save_path_LD=$lt_cv_path_LD
11086if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11087 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11088else
vlm55681242007-12-03 14:58:39 +000011089 $as_unset lt_cv_prog_gnu_ld
vlm8f3eb992004-06-17 23:42:48 +000011090fi
11091if test -n "${lt_cv_path_LDCXX+set}"; then
11092 lt_cv_path_LD=$lt_cv_path_LDCXX
11093else
vlm55681242007-12-03 14:58:39 +000011094 $as_unset lt_cv_path_LD
vlm8f3eb992004-06-17 23:42:48 +000011095fi
11096test -z "${LDCXX+set}" || LD=$LDCXX
11097CC=${CXX-"c++"}
11098compiler=$CC
11099compiler_CXX=$CC
vlm55681242007-12-03 14:58:39 +000011100for cc_temp in $compiler""; do
11101 case $cc_temp in
11102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11104 \-*) ;;
11105 *) break;;
11106 esac
11107done
11108cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11109
vlm8f3eb992004-06-17 23:42:48 +000011110
11111# We don't want -fno-exception wen compiling C++ code, so set the
11112# no_builtin_flag separately
11113if test "$GXX" = yes; then
11114 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11115else
11116 lt_prog_compiler_no_builtin_flag_CXX=
11117fi
11118
11119if test "$GXX" = yes; then
11120 # Set up default GNU C++ configuration
11121
11122
vlm83b901d2007-08-27 23:57:45 +000011123# Check whether --with-gnu-ld was given.
vlm8f3eb992004-06-17 23:42:48 +000011124if test "${with_gnu_ld+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +000011125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
vlm8f3eb992004-06-17 23:42:48 +000011126else
11127 with_gnu_ld=no
vlm83b901d2007-08-27 23:57:45 +000011128fi
11129
vlm8f3eb992004-06-17 23:42:48 +000011130ac_prog=ld
11131if test "$GCC" = yes; then
11132 # Check if gcc -print-prog-name=ld gives a path.
vlm83b901d2007-08-27 23:57:45 +000011133 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11134echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000011135 case $host in
11136 *-*-mingw*)
11137 # gcc leaves a trailing carriage return which upsets mingw
11138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11139 *)
11140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11141 esac
11142 case $ac_prog in
11143 # Accept absolute paths.
11144 [\\/]* | ?:[\\/]*)
11145 re_direlt='/[^/][^/]*/\.\./'
11146 # Canonicalize the pathname of ld
11147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11150 done
11151 test -z "$LD" && LD="$ac_prog"
11152 ;;
11153 "")
11154 # If it fails, then pretend we aren't using GCC.
11155 ac_prog=ld
11156 ;;
11157 *)
11158 # If it is relative, then search for the first ld in PATH.
11159 with_gnu_ld=unknown
11160 ;;
11161 esac
11162elif test "$with_gnu_ld" = yes; then
vlm83b901d2007-08-27 23:57:45 +000011163 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11164echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000011165else
vlm83b901d2007-08-27 23:57:45 +000011166 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11167echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000011168fi
11169if test "${lt_cv_path_LD+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171else
11172 if test -z "$LD"; then
11173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11174 for ac_dir in $PATH; do
11175 IFS="$lt_save_ifs"
11176 test -z "$ac_dir" && ac_dir=.
11177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11178 lt_cv_path_LD="$ac_dir/$ac_prog"
11179 # Check to see if the program is GNU ld. I'd rather use --version,
vlm55681242007-12-03 14:58:39 +000011180 # but apparently some variants of GNU ld only accept -v.
vlm8f3eb992004-06-17 23:42:48 +000011181 # Break only if it was the GNU/non-GNU ld that we prefer.
11182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11183 *GNU* | *'with BFD'*)
11184 test "$with_gnu_ld" != no && break
11185 ;;
11186 *)
11187 test "$with_gnu_ld" != yes && break
11188 ;;
11189 esac
11190 fi
11191 done
11192 IFS="$lt_save_ifs"
11193else
11194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11195fi
11196fi
11197
11198LD="$lt_cv_path_LD"
11199if test -n "$LD"; then
vlm83b901d2007-08-27 23:57:45 +000011200 { echo "$as_me:$LINENO: result: $LD" >&5
11201echo "${ECHO_T}$LD" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000011202else
vlm83b901d2007-08-27 23:57:45 +000011203 { echo "$as_me:$LINENO: result: no" >&5
11204echo "${ECHO_T}no" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000011205fi
11206test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11207echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11208 { (exit 1); exit 1; }; }
vlm83b901d2007-08-27 23:57:45 +000011209{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11210echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000011211if test "${lt_cv_prog_gnu_ld+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213else
vlm55681242007-12-03 14:58:39 +000011214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
vlm8f3eb992004-06-17 23:42:48 +000011215case `$LD -v 2>&1 </dev/null` in
11216*GNU* | *'with BFD'*)
11217 lt_cv_prog_gnu_ld=yes
11218 ;;
11219*)
11220 lt_cv_prog_gnu_ld=no
11221 ;;
11222esac
11223fi
vlm83b901d2007-08-27 23:57:45 +000011224{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11225echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000011226with_gnu_ld=$lt_cv_prog_gnu_ld
11227
11228
11229
11230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11231 # archiving commands below assume that GNU ld is being used.
11232 if test "$with_gnu_ld" = yes; then
11233 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234 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'
11235
11236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11238
11239 # If archive_cmds runs LD, not CC, wlarc should be empty
11240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11241 # investigate it a little bit more. (MM)
11242 wlarc='${wl}'
11243
11244 # ancient GNU ld didn't support --whole-archive et. al.
11245 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11246 grep 'no-whole-archive' > /dev/null; then
11247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11248 else
11249 whole_archive_flag_spec_CXX=
11250 fi
11251 else
11252 with_gnu_ld=no
11253 wlarc=
11254
11255 # A generic and very simple default shared library creation
11256 # command for GNU C++ for the case where it uses the native
11257 # linker, instead of GNU ld. If possible, this setting should
11258 # overridden to take advantage of the native linker features on
11259 # the platform it is being used on.
11260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11261 fi
11262
11263 # Commands to make compiler produce verbose output that lists
11264 # what "hidden" libraries, object files and flags are used when
11265 # linking a shared library.
11266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11267
11268else
11269 GXX=no
11270 with_gnu_ld=no
11271 wlarc=
11272fi
11273
11274# PORTME: fill in a description of your system's C++ link characteristics
vlm83b901d2007-08-27 23:57:45 +000011275{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11276echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000011277ld_shlibs_CXX=yes
11278case $host_os in
11279 aix3*)
11280 # FIXME: insert proper C++ library support
11281 ld_shlibs_CXX=no
11282 ;;
11283 aix4* | aix5*)
11284 if test "$host_cpu" = ia64; then
11285 # On IA64, the linker does run time linking by default, so we don't
11286 # have to do anything special.
11287 aix_use_runtimelinking=no
11288 exp_sym_flag='-Bexport'
11289 no_entry_flag=""
11290 else
11291 aix_use_runtimelinking=no
11292
11293 # Test if we are trying to use run time linking or normal
11294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11295 # need to do runtime linking.
11296 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11297 for ld_flag in $LDFLAGS; do
11298 case $ld_flag in
11299 *-brtl*)
11300 aix_use_runtimelinking=yes
11301 break
11302 ;;
11303 esac
11304 done
vlm55681242007-12-03 14:58:39 +000011305 ;;
vlm8f3eb992004-06-17 23:42:48 +000011306 esac
11307
11308 exp_sym_flag='-bexport'
11309 no_entry_flag='-bnoentry'
11310 fi
11311
11312 # When large executables or shared objects are built, AIX ld can
11313 # have problems creating the table of contents. If linking a library
11314 # or program results in "error TOC overflow" add -mminimal-toc to
11315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11317
11318 archive_cmds_CXX=''
11319 hardcode_direct_CXX=yes
11320 hardcode_libdir_separator_CXX=':'
11321 link_all_deplibs_CXX=yes
11322
11323 if test "$GXX" = yes; then
vlm55681242007-12-03 14:58:39 +000011324 case $host_os in aix4.[012]|aix4.[012].*)
vlm8f3eb992004-06-17 23:42:48 +000011325 # We only want to do this on AIX 4.2 and lower, the check
11326 # below for broken collect2 doesn't work under 4.3+
11327 collect2name=`${CC} -print-prog-name=collect2`
11328 if test -f "$collect2name" && \
11329 strings "$collect2name" | grep resolve_lib_name >/dev/null
11330 then
11331 # We have reworked collect2
11332 hardcode_direct_CXX=yes
11333 else
11334 # We have old collect2
11335 hardcode_direct_CXX=unsupported
11336 # It fails to find uninstalled libraries when the uninstalled
11337 # path is not listed in the libpath. Setting hardcode_minus_L
11338 # to unsupported forces relinking
11339 hardcode_minus_L_CXX=yes
11340 hardcode_libdir_flag_spec_CXX='-L$libdir'
11341 hardcode_libdir_separator_CXX=
11342 fi
vlm55681242007-12-03 14:58:39 +000011343 ;;
vlm8f3eb992004-06-17 23:42:48 +000011344 esac
11345 shared_flag='-shared'
vlm55681242007-12-03 14:58:39 +000011346 if test "$aix_use_runtimelinking" = yes; then
11347 shared_flag="$shared_flag "'${wl}-G'
11348 fi
vlm8f3eb992004-06-17 23:42:48 +000011349 else
11350 # not using gcc
11351 if test "$host_cpu" = ia64; then
11352 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11353 # chokes on -Wl,-G. The following line is correct:
11354 shared_flag='-G'
11355 else
11356 if test "$aix_use_runtimelinking" = yes; then
11357 shared_flag='${wl}-G'
11358 else
11359 shared_flag='${wl}-bM:SRE'
11360 fi
11361 fi
11362 fi
11363
11364 # It seems that -bexpall does not export symbols beginning with
11365 # underscore (_), so it is better to generate a list of symbols to export.
11366 always_export_symbols_CXX=yes
11367 if test "$aix_use_runtimelinking" = yes; then
11368 # Warning - without using the other runtime loading flags (-brtl),
11369 # -berok will link without error, but may produce a broken library.
11370 allow_undefined_flag_CXX='-berok'
11371 # Determine the default libpath from the value encoded in an empty executable.
11372 cat >conftest.$ac_ext <<_ACEOF
11373/* confdefs.h. */
11374_ACEOF
11375cat confdefs.h >>conftest.$ac_ext
11376cat >>conftest.$ac_ext <<_ACEOF
11377/* end confdefs.h. */
11378
11379int
11380main ()
11381{
11382
11383 ;
11384 return 0;
11385}
11386_ACEOF
11387rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000011388if { (ac_try="$ac_link"
11389case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11392esac
11393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +000011395 ac_status=$?
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000011401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11402 { (case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405esac
11406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000011408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; } &&
11411 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000011412 { (case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415esac
11416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000011418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421
11422aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11423}'`
11424# Check for a 64-bit object if we didn't find anything.
11425if 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; }
11426}'`; fi
11427else
11428 echo "$as_me: failed program was:" >&5
11429sed 's/^/| /' conftest.$ac_ext >&5
11430
vlm83b901d2007-08-27 23:57:45 +000011431
vlm8f3eb992004-06-17 23:42:48 +000011432fi
vlm83b901d2007-08-27 23:57:45 +000011433
11434rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000011435 conftest$ac_exeext conftest.$ac_ext
11436if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11437
11438 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11439
vlm55681242007-12-03 14:58:39 +000011440 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
vlm8f3eb992004-06-17 23:42:48 +000011441 else
11442 if test "$host_cpu" = ia64; then
11443 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11444 allow_undefined_flag_CXX="-z nodefs"
vlm55681242007-12-03 14:58:39 +000011445 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
vlm8f3eb992004-06-17 23:42:48 +000011446 else
11447 # Determine the default libpath from the value encoded in an empty executable.
11448 cat >conftest.$ac_ext <<_ACEOF
11449/* confdefs.h. */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h. */
11454
11455int
11456main ()
11457{
11458
11459 ;
11460 return 0;
11461}
11462_ACEOF
11463rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000011464if { (ac_try="$ac_link"
11465case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468esac
11469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +000011471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000011477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11478 { (case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481esac
11482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000011484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; } &&
11487 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000011488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000011494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497
11498aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11499}'`
11500# Check for a 64-bit object if we didn't find anything.
11501if 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; }
11502}'`; fi
11503else
11504 echo "$as_me: failed program was:" >&5
11505sed 's/^/| /' conftest.$ac_ext >&5
11506
vlm83b901d2007-08-27 23:57:45 +000011507
vlm8f3eb992004-06-17 23:42:48 +000011508fi
vlm83b901d2007-08-27 23:57:45 +000011509
11510rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000011511 conftest$ac_exeext conftest.$ac_ext
11512if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11513
11514 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11515 # Warning - without using the other run time loading flags,
11516 # -berok will link without error, but may produce a broken library.
11517 no_undefined_flag_CXX=' ${wl}-bernotok'
11518 allow_undefined_flag_CXX=' ${wl}-berok'
vlm8f3eb992004-06-17 23:42:48 +000011519 # Exported symbols can be pulled into shared objects from archives
vlm55681242007-12-03 14:58:39 +000011520 whole_archive_flag_spec_CXX='$convenience'
vlm8f3eb992004-06-17 23:42:48 +000011521 archive_cmds_need_lc_CXX=yes
vlm55681242007-12-03 14:58:39 +000011522 # This is similar to how AIX traditionally builds its shared libraries.
11523 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
vlm8f3eb992004-06-17 23:42:48 +000011524 fi
11525 fi
11526 ;;
vlm55681242007-12-03 14:58:39 +000011527
11528 beos*)
11529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11530 allow_undefined_flag_CXX=unsupported
11531 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11532 # support --undefined. This deserves some investigation. FIXME
11533 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11534 else
11535 ld_shlibs_CXX=no
11536 fi
11537 ;;
11538
vlm8f3eb992004-06-17 23:42:48 +000011539 chorus*)
11540 case $cc_basename in
11541 *)
11542 # FIXME: insert proper C++ library support
11543 ld_shlibs_CXX=no
11544 ;;
11545 esac
11546 ;;
11547
11548 cygwin* | mingw* | pw32*)
11549 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11550 # as there is no search path for DLLs.
11551 hardcode_libdir_flag_spec_CXX='-L$libdir'
11552 allow_undefined_flag_CXX=unsupported
11553 always_export_symbols_CXX=no
11554 enable_shared_with_static_runtimes_CXX=yes
11555
11556 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vlm55681242007-12-03 14:58:39 +000011557 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
vlm8f3eb992004-06-17 23:42:48 +000011558 # If the export-symbols file already is a .def file (1st line
11559 # is EXPORTS), use it as is; otherwise, prepend...
11560 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11561 cp $export_symbols $output_objdir/$soname.def;
11562 else
11563 echo EXPORTS > $output_objdir/$soname.def;
11564 cat $export_symbols >> $output_objdir/$soname.def;
11565 fi~
vlm55681242007-12-03 14:58:39 +000011566 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
vlm8f3eb992004-06-17 23:42:48 +000011567 else
11568 ld_shlibs_CXX=no
11569 fi
11570 ;;
vlm55681242007-12-03 14:58:39 +000011571 darwin* | rhapsody*)
11572 case $host_os in
11573 rhapsody* | darwin1.[012])
11574 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11575 ;;
11576 *) # Darwin 1.3 on
11577 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11578 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11579 else
11580 case ${MACOSX_DEPLOYMENT_TARGET} in
11581 10.[012])
11582 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11583 ;;
11584 10.*)
11585 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11586 ;;
11587 esac
11588 fi
11589 ;;
vlm8f3eb992004-06-17 23:42:48 +000011590 esac
vlm55681242007-12-03 14:58:39 +000011591 archive_cmds_need_lc_CXX=no
11592 hardcode_direct_CXX=no
11593 hardcode_automatic_CXX=yes
11594 hardcode_shlibpath_var_CXX=unsupported
11595 whole_archive_flag_spec_CXX=''
11596 link_all_deplibs_CXX=yes
vlm8f3eb992004-06-17 23:42:48 +000011597
vlm55681242007-12-03 14:58:39 +000011598 if test "$GXX" = yes ; then
11599 lt_int_apple_cc_single_mod=no
11600 output_verbose_link_cmd='echo'
11601 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11602 lt_int_apple_cc_single_mod=yes
11603 fi
11604 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11605 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11606 else
11607 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11608 fi
11609 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11610 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11611 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11612 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}'
11613 else
11614 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11615 fi
11616 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}'
11617 else
11618 case $cc_basename in
11619 xlc*)
11620 output_verbose_link_cmd='echo'
11621 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11622 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11624 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11625 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}'
11626 ;;
11627 *)
11628 ld_shlibs_CXX=no
11629 ;;
11630 esac
11631 fi
11632 ;;
vlm8f3eb992004-06-17 23:42:48 +000011633
11634 dgux*)
11635 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000011636 ec++*)
vlm8f3eb992004-06-17 23:42:48 +000011637 # FIXME: insert proper C++ library support
11638 ld_shlibs_CXX=no
11639 ;;
vlm55681242007-12-03 14:58:39 +000011640 ghcx*)
vlm8f3eb992004-06-17 23:42:48 +000011641 # Green Hills C++ Compiler
11642 # FIXME: insert proper C++ library support
11643 ld_shlibs_CXX=no
11644 ;;
11645 *)
11646 # FIXME: insert proper C++ library support
11647 ld_shlibs_CXX=no
11648 ;;
11649 esac
11650 ;;
vlm55681242007-12-03 14:58:39 +000011651 freebsd[12]*)
vlm8f3eb992004-06-17 23:42:48 +000011652 # C++ shared libraries reported to be fairly broken before switch to ELF
11653 ld_shlibs_CXX=no
11654 ;;
11655 freebsd-elf*)
11656 archive_cmds_need_lc_CXX=no
11657 ;;
vlm55681242007-12-03 14:58:39 +000011658 freebsd* | kfreebsd*-gnu | dragonfly*)
vlm8f3eb992004-06-17 23:42:48 +000011659 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11660 # conventions
11661 ld_shlibs_CXX=yes
11662 ;;
11663 gnu*)
11664 ;;
11665 hpux9*)
11666 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11667 hardcode_libdir_separator_CXX=:
11668 export_dynamic_flag_spec_CXX='${wl}-E'
11669 hardcode_direct_CXX=yes
11670 hardcode_minus_L_CXX=yes # Not in the search PATH,
11671 # but as the default
11672 # location of the library.
11673
11674 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000011675 CC*)
vlm8f3eb992004-06-17 23:42:48 +000011676 # FIXME: insert proper C++ library support
11677 ld_shlibs_CXX=no
11678 ;;
vlm55681242007-12-03 14:58:39 +000011679 aCC*)
vlm8f3eb992004-06-17 23:42:48 +000011680 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'
11681 # Commands to make compiler produce verbose output that lists
11682 # what "hidden" libraries, object files and flags are used when
11683 # linking a shared library.
11684 #
11685 # There doesn't appear to be a way to prevent this compiler from
11686 # explicitly linking system object files so we need to strip them
11687 # from the output so that they don't get included in the library
11688 # dependencies.
vlm55681242007-12-03 14:58:39 +000011689 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'
vlm8f3eb992004-06-17 23:42:48 +000011690 ;;
11691 *)
11692 if test "$GXX" = yes; then
11693 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'
11694 else
11695 # FIXME: insert proper C++ library support
11696 ld_shlibs_CXX=no
11697 fi
11698 ;;
11699 esac
11700 ;;
11701 hpux10*|hpux11*)
11702 if test $with_gnu_ld = no; then
vlm55681242007-12-03 14:58:39 +000011703 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11704 hardcode_libdir_separator_CXX=:
11705
11706 case $host_cpu in
11707 hppa*64*|ia64*)
vlm8f3eb992004-06-17 23:42:48 +000011708 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
vlm8f3eb992004-06-17 23:42:48 +000011709 ;;
11710 *)
vlm8f3eb992004-06-17 23:42:48 +000011711 export_dynamic_flag_spec_CXX='${wl}-E'
11712 ;;
11713 esac
11714 fi
vlm55681242007-12-03 14:58:39 +000011715 case $host_cpu in
11716 hppa*64*|ia64*)
vlm8f3eb992004-06-17 23:42:48 +000011717 hardcode_direct_CXX=no
11718 hardcode_shlibpath_var_CXX=no
11719 ;;
vlm8f3eb992004-06-17 23:42:48 +000011720 *)
11721 hardcode_direct_CXX=yes
11722 hardcode_minus_L_CXX=yes # Not in the search PATH,
11723 # but as the default
11724 # location of the library.
11725 ;;
11726 esac
11727
11728 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000011729 CC*)
vlm8f3eb992004-06-17 23:42:48 +000011730 # FIXME: insert proper C++ library support
11731 ld_shlibs_CXX=no
11732 ;;
vlm55681242007-12-03 14:58:39 +000011733 aCC*)
11734 case $host_cpu in
11735 hppa*64*)
11736 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11737 ;;
11738 ia64*)
11739 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000011740 ;;
11741 *)
11742 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11743 ;;
11744 esac
11745 # Commands to make compiler produce verbose output that lists
11746 # what "hidden" libraries, object files and flags are used when
11747 # linking a shared library.
11748 #
11749 # There doesn't appear to be a way to prevent this compiler from
11750 # explicitly linking system object files so we need to strip them
11751 # from the output so that they don't get included in the library
11752 # dependencies.
11753 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11754 ;;
11755 *)
11756 if test "$GXX" = yes; then
11757 if test $with_gnu_ld = no; then
vlm55681242007-12-03 14:58:39 +000011758 case $host_cpu in
11759 hppa*64*)
11760 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11761 ;;
11762 ia64*)
11763 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000011764 ;;
11765 *)
11766 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'
11767 ;;
11768 esac
11769 fi
11770 else
11771 # FIXME: insert proper C++ library support
11772 ld_shlibs_CXX=no
11773 fi
11774 ;;
11775 esac
11776 ;;
vlm55681242007-12-03 14:58:39 +000011777 interix3*)
11778 hardcode_direct_CXX=no
11779 hardcode_shlibpath_var_CXX=no
11780 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11781 export_dynamic_flag_spec_CXX='${wl}-E'
11782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11783 # Instead, shared libraries are loaded at an image base (0x10000000 by
11784 # default) and relocated if they conflict, which is a slow very memory
11785 # consuming and fragmenting process. To avoid this, we pick a random,
11786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11788 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11789 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11790 ;;
vlm8f3eb992004-06-17 23:42:48 +000011791 irix5* | irix6*)
11792 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000011793 CC*)
vlm8f3eb992004-06-17 23:42:48 +000011794 # SGI C++
vlm55681242007-12-03 14:58:39 +000011795 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
vlm8f3eb992004-06-17 23:42:48 +000011796
11797 # Archives containing C++ object files must be created using
11798 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11799 # necessary to make sure instantiated templates are included
11800 # in the archive.
11801 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11802 ;;
11803 *)
11804 if test "$GXX" = yes; then
11805 if test "$with_gnu_ld" = no; then
vlm55681242007-12-03 14:58:39 +000011806 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
vlm8f3eb992004-06-17 23:42:48 +000011807 else
11808 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'
11809 fi
11810 fi
11811 link_all_deplibs_CXX=yes
11812 ;;
11813 esac
11814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11815 hardcode_libdir_separator_CXX=:
11816 ;;
11817 linux*)
11818 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000011819 KCC*)
vlm8f3eb992004-06-17 23:42:48 +000011820 # Kuck and Associates, Inc. (KAI) C++ Compiler
11821
11822 # KCC will only create a shared library if the output file
11823 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11824 # to its proper name (with version) after linking.
11825 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'
11826 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'
11827 # Commands to make compiler produce verbose output that lists
11828 # what "hidden" libraries, object files and flags are used when
11829 # linking a shared library.
11830 #
11831 # There doesn't appear to be a way to prevent this compiler from
11832 # explicitly linking system object files so we need to strip them
11833 # from the output so that they don't get included in the library
11834 # dependencies.
11835 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'
11836
11837 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11838 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11839
11840 # Archives containing C++ object files must be created using
11841 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11842 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11843 ;;
vlm55681242007-12-03 14:58:39 +000011844 icpc*)
vlm8f3eb992004-06-17 23:42:48 +000011845 # Intel C++
11846 with_gnu_ld=yes
vlm55681242007-12-03 14:58:39 +000011847 # version 8.0 and above of icpc choke on multiply defined symbols
11848 # if we add $predep_objects and $postdep_objects, however 7.1 and
11849 # earlier do not add the objects themselves.
11850 case `$CC -V 2>&1` in
11851 *"Version 7."*)
11852 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11853 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'
11854 ;;
11855 *) # Version 8.0 or newer
11856 tmp_idyn=
11857 case $host_cpu in
11858 ia64*) tmp_idyn=' -i_dynamic';;
11859 esac
11860 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11861 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11862 ;;
11863 esac
vlm8f3eb992004-06-17 23:42:48 +000011864 archive_cmds_need_lc_CXX=no
vlm8f3eb992004-06-17 23:42:48 +000011865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11866 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11867 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11868 ;;
vlm55681242007-12-03 14:58:39 +000011869 pgCC*)
11870 # Portland Group C++ compiler
11871 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11872 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11873
11874 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11875 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11876 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11877 ;;
11878 cxx*)
vlm8f3eb992004-06-17 23:42:48 +000011879 # Compaq C++
11880 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11881 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'
11882
11883 runpath_var=LD_RUN_PATH
11884 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11885 hardcode_libdir_separator_CXX=:
11886
11887 # Commands to make compiler produce verbose output that lists
11888 # what "hidden" libraries, object files and flags are used when
11889 # linking a shared library.
11890 #
11891 # There doesn't appear to be a way to prevent this compiler from
11892 # explicitly linking system object files so we need to strip them
11893 # from the output so that they don't get included in the library
11894 # dependencies.
11895 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'
11896 ;;
11897 esac
11898 ;;
11899 lynxos*)
11900 # FIXME: insert proper C++ library support
11901 ld_shlibs_CXX=no
11902 ;;
11903 m88k*)
11904 # FIXME: insert proper C++ library support
11905 ld_shlibs_CXX=no
11906 ;;
11907 mvs*)
11908 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000011909 cxx*)
vlm8f3eb992004-06-17 23:42:48 +000011910 # FIXME: insert proper C++ library support
11911 ld_shlibs_CXX=no
11912 ;;
11913 *)
11914 # FIXME: insert proper C++ library support
11915 ld_shlibs_CXX=no
11916 ;;
11917 esac
11918 ;;
11919 netbsd*)
11920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11921 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11922 wlarc=
11923 hardcode_libdir_flag_spec_CXX='-R$libdir'
11924 hardcode_direct_CXX=yes
11925 hardcode_shlibpath_var_CXX=no
11926 fi
11927 # Workaround some broken pre-1.5 toolchains
11928 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11929 ;;
vlm55681242007-12-03 14:58:39 +000011930 openbsd2*)
11931 # C++ shared libraries are fairly broken
11932 ld_shlibs_CXX=no
11933 ;;
11934 openbsd*)
11935 hardcode_direct_CXX=yes
11936 hardcode_shlibpath_var_CXX=no
11937 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11938 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11939 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11940 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11941 export_dynamic_flag_spec_CXX='${wl}-E'
11942 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11943 fi
11944 output_verbose_link_cmd='echo'
11945 ;;
vlm8f3eb992004-06-17 23:42:48 +000011946 osf3*)
11947 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000011948 KCC*)
vlm8f3eb992004-06-17 23:42:48 +000011949 # Kuck and Associates, Inc. (KAI) C++ Compiler
11950
11951 # KCC will only create a shared library if the output file
11952 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11953 # to its proper name (with version) after linking.
11954 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'
11955
11956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11957 hardcode_libdir_separator_CXX=:
11958
11959 # Archives containing C++ object files must be created using
11960 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11961 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11962
11963 ;;
vlm55681242007-12-03 14:58:39 +000011964 RCC*)
vlm8f3eb992004-06-17 23:42:48 +000011965 # Rational C++ 2.4.1
11966 # FIXME: insert proper C++ library support
11967 ld_shlibs_CXX=no
11968 ;;
vlm55681242007-12-03 14:58:39 +000011969 cxx*)
vlm8f3eb992004-06-17 23:42:48 +000011970 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vlm55681242007-12-03 14:58:39 +000011971 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
vlm8f3eb992004-06-17 23:42:48 +000011972
11973 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11974 hardcode_libdir_separator_CXX=:
11975
11976 # Commands to make compiler produce verbose output that lists
11977 # what "hidden" libraries, object files and flags are used when
11978 # linking a shared library.
11979 #
11980 # There doesn't appear to be a way to prevent this compiler from
11981 # explicitly linking system object files so we need to strip them
11982 # from the output so that they don't get included in the library
11983 # dependencies.
11984 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'
11985 ;;
11986 *)
11987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11988 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vlm55681242007-12-03 14:58:39 +000011989 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
vlm8f3eb992004-06-17 23:42:48 +000011990
11991 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11992 hardcode_libdir_separator_CXX=:
11993
11994 # Commands to make compiler produce verbose output that lists
11995 # what "hidden" libraries, object files and flags are used when
11996 # linking a shared library.
11997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11998
11999 else
12000 # FIXME: insert proper C++ library support
12001 ld_shlibs_CXX=no
12002 fi
12003 ;;
12004 esac
12005 ;;
12006 osf4* | osf5*)
12007 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012008 KCC*)
vlm8f3eb992004-06-17 23:42:48 +000012009 # Kuck and Associates, Inc. (KAI) C++ Compiler
12010
12011 # KCC will only create a shared library if the output file
12012 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12013 # to its proper name (with version) after linking.
12014 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'
12015
12016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12017 hardcode_libdir_separator_CXX=:
12018
12019 # Archives containing C++ object files must be created using
12020 # the KAI C++ compiler.
12021 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12022 ;;
vlm55681242007-12-03 14:58:39 +000012023 RCC*)
vlm8f3eb992004-06-17 23:42:48 +000012024 # Rational C++ 2.4.1
12025 # FIXME: insert proper C++ library support
12026 ld_shlibs_CXX=no
12027 ;;
vlm55681242007-12-03 14:58:39 +000012028 cxx*)
vlm8f3eb992004-06-17 23:42:48 +000012029 allow_undefined_flag_CXX=' -expect_unresolved \*'
vlm55681242007-12-03 14:58:39 +000012030 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
vlm8f3eb992004-06-17 23:42:48 +000012031 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12032 echo "-hidden">> $lib.exp~
vlm55681242007-12-03 14:58:39 +000012033 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
vlm8f3eb992004-06-17 23:42:48 +000012034 $rm $lib.exp'
12035
12036 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12037 hardcode_libdir_separator_CXX=:
12038
12039 # Commands to make compiler produce verbose output that lists
12040 # what "hidden" libraries, object files and flags are used when
12041 # linking a shared library.
12042 #
12043 # There doesn't appear to be a way to prevent this compiler from
12044 # explicitly linking system object files so we need to strip them
12045 # from the output so that they don't get included in the library
12046 # dependencies.
12047 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'
12048 ;;
12049 *)
12050 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12051 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vlm55681242007-12-03 14:58:39 +000012052 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
vlm8f3eb992004-06-17 23:42:48 +000012053
12054 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12055 hardcode_libdir_separator_CXX=:
12056
12057 # Commands to make compiler produce verbose output that lists
12058 # what "hidden" libraries, object files and flags are used when
12059 # linking a shared library.
12060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12061
12062 else
12063 # FIXME: insert proper C++ library support
12064 ld_shlibs_CXX=no
12065 fi
12066 ;;
12067 esac
12068 ;;
12069 psos*)
12070 # FIXME: insert proper C++ library support
12071 ld_shlibs_CXX=no
12072 ;;
vlm8f3eb992004-06-17 23:42:48 +000012073 sunos4*)
12074 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012075 CC*)
vlm8f3eb992004-06-17 23:42:48 +000012076 # Sun C++ 4.x
12077 # FIXME: insert proper C++ library support
12078 ld_shlibs_CXX=no
12079 ;;
vlm55681242007-12-03 14:58:39 +000012080 lcc*)
vlm8f3eb992004-06-17 23:42:48 +000012081 # Lucid
12082 # FIXME: insert proper C++ library support
12083 ld_shlibs_CXX=no
12084 ;;
12085 *)
12086 # FIXME: insert proper C++ library support
12087 ld_shlibs_CXX=no
12088 ;;
12089 esac
12090 ;;
12091 solaris*)
12092 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012093 CC*)
vlm8f3eb992004-06-17 23:42:48 +000012094 # Sun C++ 4.2, 5.x and Centerline C++
vlm55681242007-12-03 14:58:39 +000012095 archive_cmds_need_lc_CXX=yes
vlm8f3eb992004-06-17 23:42:48 +000012096 no_undefined_flag_CXX=' -zdefs'
vlm55681242007-12-03 14:58:39 +000012097 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000012098 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
vlm55681242007-12-03 14:58:39 +000012099 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
vlm8f3eb992004-06-17 23:42:48 +000012100
12101 hardcode_libdir_flag_spec_CXX='-R$libdir'
12102 hardcode_shlibpath_var_CXX=no
12103 case $host_os in
vlm55681242007-12-03 14:58:39 +000012104 solaris2.[0-5] | solaris2.[0-5].*) ;;
vlm8f3eb992004-06-17 23:42:48 +000012105 *)
12106 # The C++ compiler is used as linker so we must use $wl
12107 # flag to pass the commands to the underlying system
vlm55681242007-12-03 14:58:39 +000012108 # linker. We must also pass each convience library through
12109 # to the system linker between allextract/defaultextract.
12110 # The C++ compiler will combine linker options so we
12111 # cannot just pass the convience library names through
12112 # without $wl.
vlm8f3eb992004-06-17 23:42:48 +000012113 # Supported since Solaris 2.6 (maybe 2.5.1?)
vlm55681242007-12-03 14:58:39 +000012114 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
vlm8f3eb992004-06-17 23:42:48 +000012115 ;;
12116 esac
12117 link_all_deplibs_CXX=yes
12118
vlm55681242007-12-03 14:58:39 +000012119 output_verbose_link_cmd='echo'
vlm8f3eb992004-06-17 23:42:48 +000012120
12121 # Archives containing C++ object files must be created using
12122 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12123 # necessary to make sure instantiated templates are included
12124 # in the archive.
12125 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12126 ;;
vlm55681242007-12-03 14:58:39 +000012127 gcx*)
vlm8f3eb992004-06-17 23:42:48 +000012128 # Green Hills C++ Compiler
12129 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12130
12131 # The C++ compiler must be used to create the archive.
12132 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12133 ;;
12134 *)
12135 # GNU C++ compiler with Solaris linker
12136 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12137 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12138 if $CC --version | grep -v '^2\.7' > /dev/null; then
12139 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12140 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12141 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12142
12143 # Commands to make compiler produce verbose output that lists
12144 # what "hidden" libraries, object files and flags are used when
12145 # linking a shared library.
12146 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12147 else
12148 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12149 # platform.
12150 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12151 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12152 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12153
12154 # Commands to make compiler produce verbose output that lists
12155 # what "hidden" libraries, object files and flags are used when
12156 # linking a shared library.
12157 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12158 fi
12159
12160 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12161 fi
12162 ;;
12163 esac
12164 ;;
vlm55681242007-12-03 14:58:39 +000012165 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12166 no_undefined_flag_CXX='${wl}-z,text'
vlm8f3eb992004-06-17 23:42:48 +000012167 archive_cmds_need_lc_CXX=no
vlm55681242007-12-03 14:58:39 +000012168 hardcode_shlibpath_var_CXX=no
12169 runpath_var='LD_RUN_PATH'
12170
12171 case $cc_basename in
12172 CC*)
12173 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12174 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12175 ;;
12176 *)
12177 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12178 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12179 ;;
12180 esac
12181 ;;
12182 sysv5* | sco3.2v5* | sco5v6*)
12183 # Note: We can NOT use -z defs as we might desire, because we do not
12184 # link with -lc, and that would cause any symbols used from libc to
12185 # always be unresolved, which means just about no library would
12186 # ever link correctly. If we're not using GNU ld we use -z text
12187 # though, which does catch some bad symbols but isn't as heavy-handed
12188 # as -z defs.
12189 # For security reasons, it is highly recommended that you always
12190 # use absolute paths for naming shared libraries, and exclude the
12191 # DT_RUNPATH tag from executables and libraries. But doing so
12192 # requires that you compile everything twice, which is a pain.
12193 # So that behaviour is only enabled if SCOABSPATH is set to a
12194 # non-empty value in the environment. Most likely only useful for
12195 # creating official distributions of packages.
12196 # This is a hack until libtool officially supports absolute path
12197 # names for shared libraries.
12198 no_undefined_flag_CXX='${wl}-z,text'
12199 allow_undefined_flag_CXX='${wl}-z,nodefs'
12200 archive_cmds_need_lc_CXX=no
12201 hardcode_shlibpath_var_CXX=no
12202 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12203 hardcode_libdir_separator_CXX=':'
12204 link_all_deplibs_CXX=yes
12205 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12206 runpath_var='LD_RUN_PATH'
12207
12208 case $cc_basename in
12209 CC*)
12210 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12211 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12212 ;;
12213 *)
12214 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12215 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12216 ;;
12217 esac
vlm8f3eb992004-06-17 23:42:48 +000012218 ;;
12219 tandem*)
12220 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012221 NCC*)
vlm8f3eb992004-06-17 23:42:48 +000012222 # NonStop-UX NCC 3.20
12223 # FIXME: insert proper C++ library support
12224 ld_shlibs_CXX=no
12225 ;;
12226 *)
12227 # FIXME: insert proper C++ library support
12228 ld_shlibs_CXX=no
12229 ;;
12230 esac
12231 ;;
12232 vxworks*)
12233 # FIXME: insert proper C++ library support
12234 ld_shlibs_CXX=no
12235 ;;
12236 *)
12237 # FIXME: insert proper C++ library support
12238 ld_shlibs_CXX=no
12239 ;;
12240esac
vlm83b901d2007-08-27 23:57:45 +000012241{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12242echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012243test "$ld_shlibs_CXX" = no && can_build_shared=no
12244
12245GCC_CXX="$GXX"
12246LD_CXX="$LD"
12247
12248
12249cat > conftest.$ac_ext <<EOF
12250class Foo
12251{
12252public:
12253 Foo (void) { a = 0; }
12254private:
12255 int a;
12256};
12257EOF
12258
12259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260 (eval $ac_compile) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; then
12264 # Parse the compiler output and extract the necessary
12265 # objects, libraries and library flags.
12266
12267 # Sentinel used to keep track of whether or not we are before
12268 # the conftest object file.
12269 pre_test_object_deps_done=no
12270
12271 # The `*' in the case matches for architectures that use `case' in
12272 # $output_verbose_cmd can trigger glob expansion during the loop
12273 # eval without this substitution.
vlm55681242007-12-03 14:58:39 +000012274 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
vlm8f3eb992004-06-17 23:42:48 +000012275
12276 for p in `eval $output_verbose_link_cmd`; do
12277 case $p in
12278
12279 -L* | -R* | -l*)
12280 # Some compilers place space between "-{L,R}" and the path.
12281 # Remove the space.
12282 if test $p = "-L" \
12283 || test $p = "-R"; then
12284 prev=$p
12285 continue
12286 else
12287 prev=
12288 fi
12289
12290 if test "$pre_test_object_deps_done" = no; then
12291 case $p in
12292 -L* | -R*)
12293 # Internal compiler library paths should come after those
12294 # provided the user. The postdeps already come after the
12295 # user supplied libs so there is no need to process them.
12296 if test -z "$compiler_lib_search_path_CXX"; then
12297 compiler_lib_search_path_CXX="${prev}${p}"
12298 else
12299 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12300 fi
12301 ;;
12302 # The "-l" case would never come before the object being
12303 # linked, so don't bother handling this case.
12304 esac
12305 else
12306 if test -z "$postdeps_CXX"; then
12307 postdeps_CXX="${prev}${p}"
12308 else
12309 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12310 fi
12311 fi
12312 ;;
12313
12314 *.$objext)
12315 # This assumes that the test object file only shows up
12316 # once in the compiler output.
12317 if test "$p" = "conftest.$objext"; then
12318 pre_test_object_deps_done=yes
12319 continue
12320 fi
12321
12322 if test "$pre_test_object_deps_done" = no; then
12323 if test -z "$predep_objects_CXX"; then
12324 predep_objects_CXX="$p"
12325 else
12326 predep_objects_CXX="$predep_objects_CXX $p"
12327 fi
12328 else
12329 if test -z "$postdep_objects_CXX"; then
12330 postdep_objects_CXX="$p"
12331 else
12332 postdep_objects_CXX="$postdep_objects_CXX $p"
12333 fi
12334 fi
12335 ;;
12336
12337 *) ;; # Ignore the rest.
12338
12339 esac
12340 done
12341
12342 # Clean up.
12343 rm -f a.out a.exe
12344else
12345 echo "libtool.m4: error: problem compiling CXX test program"
12346fi
12347
12348$rm -f confest.$objext
12349
vlm55681242007-12-03 14:58:39 +000012350# PORTME: override above test on systems where it is broken
12351case $host_os in
12352interix3*)
12353 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12354 # hack all around it, let's just trust "g++" to DTRT.
12355 predep_objects_CXX=
12356 postdep_objects_CXX=
12357 postdeps_CXX=
12358 ;;
12359
12360solaris*)
12361 case $cc_basename in
12362 CC*)
12363 # Adding this requires a known-good setup of shared libraries for
12364 # Sun compiler versions before 5.6, else PIC objects from an old
12365 # archive will be linked into the output, leading to subtle bugs.
12366 postdeps_CXX='-lCstd -lCrun'
12367 ;;
12368 esac
12369 ;;
12370esac
12371
12372
vlm8f3eb992004-06-17 23:42:48 +000012373case " $postdeps_CXX " in
12374*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12375esac
12376
12377lt_prog_compiler_wl_CXX=
12378lt_prog_compiler_pic_CXX=
12379lt_prog_compiler_static_CXX=
12380
vlm83b901d2007-08-27 23:57:45 +000012381{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12382echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012383
12384 # C++ specific cases for pic, static, wl, etc.
12385 if test "$GXX" = yes; then
12386 lt_prog_compiler_wl_CXX='-Wl,'
12387 lt_prog_compiler_static_CXX='-static'
12388
12389 case $host_os in
12390 aix*)
12391 # All AIX code is PIC.
12392 if test "$host_cpu" = ia64; then
12393 # AIX 5 now supports IA64 processor
12394 lt_prog_compiler_static_CXX='-Bstatic'
12395 fi
12396 ;;
12397 amigaos*)
12398 # FIXME: we need at least 68020 code to build shared libraries, but
12399 # adding the `-m68020' flag to GCC prevents building anything better,
12400 # like `-m68040'.
12401 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12402 ;;
12403 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12404 # PIC is the default for these OSes.
12405 ;;
12406 mingw* | os2* | pw32*)
12407 # This hack is so that the source file can tell whether it is being
12408 # built for inclusion in a dll (and should export symbols for example).
12409 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12410 ;;
12411 darwin* | rhapsody*)
12412 # PIC is the default on this platform
12413 # Common symbols not allowed in MH_DYLIB files
12414 lt_prog_compiler_pic_CXX='-fno-common'
12415 ;;
12416 *djgpp*)
12417 # DJGPP does not support shared libraries at all
12418 lt_prog_compiler_pic_CXX=
12419 ;;
vlm55681242007-12-03 14:58:39 +000012420 interix3*)
12421 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12422 # Instead, we relocate shared libraries at runtime.
12423 ;;
vlm8f3eb992004-06-17 23:42:48 +000012424 sysv4*MP*)
12425 if test -d /usr/nec; then
12426 lt_prog_compiler_pic_CXX=-Kconform_pic
12427 fi
12428 ;;
12429 hpux*)
12430 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12431 # not for PA HP-UX.
vlm55681242007-12-03 14:58:39 +000012432 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +000012433 hppa*64*|ia64*)
12434 ;;
12435 *)
12436 lt_prog_compiler_pic_CXX='-fPIC'
12437 ;;
12438 esac
12439 ;;
12440 *)
12441 lt_prog_compiler_pic_CXX='-fPIC'
12442 ;;
12443 esac
12444 else
12445 case $host_os in
12446 aix4* | aix5*)
12447 # All AIX code is PIC.
12448 if test "$host_cpu" = ia64; then
12449 # AIX 5 now supports IA64 processor
12450 lt_prog_compiler_static_CXX='-Bstatic'
12451 else
12452 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12453 fi
12454 ;;
12455 chorus*)
12456 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012457 cxch68*)
vlm8f3eb992004-06-17 23:42:48 +000012458 # Green Hills C++ Compiler
12459 # _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"
12460 ;;
12461 esac
12462 ;;
vlm55681242007-12-03 14:58:39 +000012463 darwin*)
12464 # PIC is the default on this platform
12465 # Common symbols not allowed in MH_DYLIB files
12466 case $cc_basename in
12467 xlc*)
12468 lt_prog_compiler_pic_CXX='-qnocommon'
12469 lt_prog_compiler_wl_CXX='-Wl,'
12470 ;;
12471 esac
12472 ;;
vlm8f3eb992004-06-17 23:42:48 +000012473 dgux*)
12474 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012475 ec++*)
vlm8f3eb992004-06-17 23:42:48 +000012476 lt_prog_compiler_pic_CXX='-KPIC'
12477 ;;
vlm55681242007-12-03 14:58:39 +000012478 ghcx*)
vlm8f3eb992004-06-17 23:42:48 +000012479 # Green Hills C++ Compiler
12480 lt_prog_compiler_pic_CXX='-pic'
12481 ;;
12482 *)
12483 ;;
12484 esac
12485 ;;
vlm55681242007-12-03 14:58:39 +000012486 freebsd* | kfreebsd*-gnu | dragonfly*)
vlm8f3eb992004-06-17 23:42:48 +000012487 # FreeBSD uses GNU C++
12488 ;;
12489 hpux9* | hpux10* | hpux11*)
12490 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012491 CC*)
vlm8f3eb992004-06-17 23:42:48 +000012492 lt_prog_compiler_wl_CXX='-Wl,'
vlm55681242007-12-03 14:58:39 +000012493 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
vlm8f3eb992004-06-17 23:42:48 +000012494 if test "$host_cpu" != ia64; then
12495 lt_prog_compiler_pic_CXX='+Z'
12496 fi
12497 ;;
vlm55681242007-12-03 14:58:39 +000012498 aCC*)
vlm8f3eb992004-06-17 23:42:48 +000012499 lt_prog_compiler_wl_CXX='-Wl,'
vlm55681242007-12-03 14:58:39 +000012500 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12501 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +000012502 hppa*64*|ia64*)
12503 # +Z the default
12504 ;;
12505 *)
12506 lt_prog_compiler_pic_CXX='+Z'
12507 ;;
12508 esac
12509 ;;
12510 *)
12511 ;;
12512 esac
12513 ;;
vlm55681242007-12-03 14:58:39 +000012514 interix*)
12515 # This is c89, which is MS Visual C++ (no shared libs)
12516 # Anyone wants to do a port?
12517 ;;
vlm8f3eb992004-06-17 23:42:48 +000012518 irix5* | irix6* | nonstopux*)
12519 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012520 CC*)
vlm8f3eb992004-06-17 23:42:48 +000012521 lt_prog_compiler_wl_CXX='-Wl,'
12522 lt_prog_compiler_static_CXX='-non_shared'
12523 # CC pic flag -KPIC is the default.
12524 ;;
12525 *)
12526 ;;
12527 esac
12528 ;;
12529 linux*)
12530 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012531 KCC*)
vlm8f3eb992004-06-17 23:42:48 +000012532 # KAI C++ Compiler
12533 lt_prog_compiler_wl_CXX='--backend -Wl,'
12534 lt_prog_compiler_pic_CXX='-fPIC'
12535 ;;
vlm55681242007-12-03 14:58:39 +000012536 icpc* | ecpc*)
vlm8f3eb992004-06-17 23:42:48 +000012537 # Intel C++
12538 lt_prog_compiler_wl_CXX='-Wl,'
12539 lt_prog_compiler_pic_CXX='-KPIC'
12540 lt_prog_compiler_static_CXX='-static'
12541 ;;
vlm55681242007-12-03 14:58:39 +000012542 pgCC*)
12543 # Portland Group C++ compiler.
12544 lt_prog_compiler_wl_CXX='-Wl,'
12545 lt_prog_compiler_pic_CXX='-fpic'
12546 lt_prog_compiler_static_CXX='-Bstatic'
12547 ;;
12548 cxx*)
vlm8f3eb992004-06-17 23:42:48 +000012549 # Compaq C++
12550 # Make sure the PIC flag is empty. It appears that all Alpha
12551 # Linux and Compaq Tru64 Unix objects are PIC.
12552 lt_prog_compiler_pic_CXX=
12553 lt_prog_compiler_static_CXX='-non_shared'
12554 ;;
12555 *)
12556 ;;
12557 esac
12558 ;;
12559 lynxos*)
12560 ;;
12561 m88k*)
12562 ;;
12563 mvs*)
12564 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012565 cxx*)
vlm8f3eb992004-06-17 23:42:48 +000012566 lt_prog_compiler_pic_CXX='-W c,exportall'
12567 ;;
12568 *)
12569 ;;
12570 esac
12571 ;;
12572 netbsd*)
12573 ;;
12574 osf3* | osf4* | osf5*)
12575 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012576 KCC*)
vlm8f3eb992004-06-17 23:42:48 +000012577 lt_prog_compiler_wl_CXX='--backend -Wl,'
12578 ;;
vlm55681242007-12-03 14:58:39 +000012579 RCC*)
vlm8f3eb992004-06-17 23:42:48 +000012580 # Rational C++ 2.4.1
12581 lt_prog_compiler_pic_CXX='-pic'
12582 ;;
vlm55681242007-12-03 14:58:39 +000012583 cxx*)
vlm8f3eb992004-06-17 23:42:48 +000012584 # Digital/Compaq C++
12585 lt_prog_compiler_wl_CXX='-Wl,'
12586 # Make sure the PIC flag is empty. It appears that all Alpha
12587 # Linux and Compaq Tru64 Unix objects are PIC.
12588 lt_prog_compiler_pic_CXX=
12589 lt_prog_compiler_static_CXX='-non_shared'
12590 ;;
12591 *)
12592 ;;
12593 esac
12594 ;;
12595 psos*)
12596 ;;
vlm8f3eb992004-06-17 23:42:48 +000012597 solaris*)
12598 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012599 CC*)
vlm8f3eb992004-06-17 23:42:48 +000012600 # Sun C++ 4.2, 5.x and Centerline C++
12601 lt_prog_compiler_pic_CXX='-KPIC'
12602 lt_prog_compiler_static_CXX='-Bstatic'
12603 lt_prog_compiler_wl_CXX='-Qoption ld '
12604 ;;
vlm55681242007-12-03 14:58:39 +000012605 gcx*)
vlm8f3eb992004-06-17 23:42:48 +000012606 # Green Hills C++ Compiler
12607 lt_prog_compiler_pic_CXX='-PIC'
12608 ;;
12609 *)
12610 ;;
12611 esac
12612 ;;
12613 sunos4*)
12614 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012615 CC*)
vlm8f3eb992004-06-17 23:42:48 +000012616 # Sun C++ 4.x
12617 lt_prog_compiler_pic_CXX='-pic'
12618 lt_prog_compiler_static_CXX='-Bstatic'
12619 ;;
vlm55681242007-12-03 14:58:39 +000012620 lcc*)
vlm8f3eb992004-06-17 23:42:48 +000012621 # Lucid
12622 lt_prog_compiler_pic_CXX='-pic'
12623 ;;
12624 *)
12625 ;;
12626 esac
12627 ;;
12628 tandem*)
12629 case $cc_basename in
vlm55681242007-12-03 14:58:39 +000012630 NCC*)
vlm8f3eb992004-06-17 23:42:48 +000012631 # NonStop-UX NCC 3.20
12632 lt_prog_compiler_pic_CXX='-KPIC'
12633 ;;
12634 *)
12635 ;;
12636 esac
12637 ;;
vlm55681242007-12-03 14:58:39 +000012638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12639 case $cc_basename in
12640 CC*)
12641 lt_prog_compiler_wl_CXX='-Wl,'
12642 lt_prog_compiler_pic_CXX='-KPIC'
12643 lt_prog_compiler_static_CXX='-Bstatic'
12644 ;;
12645 esac
vlm8f3eb992004-06-17 23:42:48 +000012646 ;;
12647 vxworks*)
12648 ;;
12649 *)
12650 lt_prog_compiler_can_build_shared_CXX=no
12651 ;;
12652 esac
12653 fi
12654
vlm83b901d2007-08-27 23:57:45 +000012655{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12656echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012657
12658#
12659# Check to make sure the PIC flag actually works.
12660#
12661if test -n "$lt_prog_compiler_pic_CXX"; then
12662
vlm83b901d2007-08-27 23:57:45 +000012663{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12664echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012665if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667else
12668 lt_prog_compiler_pic_works_CXX=no
12669 ac_outfile=conftest.$ac_objext
12670 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12671 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12672 # Insert the option either (1) after the last *FLAGS variable, or
12673 # (2) before a word containing "conftest.", or (3) at the end.
12674 # Note that $ac_compile itself does not contain backslashes and begins
12675 # with a dollar sign (not a hyphen), so the echo should work correctly.
12676 # The option is referenced via a variable to avoid confusing sed.
12677 lt_compile=`echo "$ac_compile" | $SED \
vlm55681242007-12-03 14:58:39 +000012678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
vlm8f3eb992004-06-17 23:42:48 +000012679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12680 -e 's:$: $lt_compiler_flag:'`
vlm55681242007-12-03 14:58:39 +000012681 (eval echo "\"\$as_me:12681: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000012682 (eval "$lt_compile" 2>conftest.err)
12683 ac_status=$?
12684 cat conftest.err >&5
vlm55681242007-12-03 14:58:39 +000012685 echo "$as_me:12685: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000012686 if (exit $ac_status) && test -s "$ac_outfile"; then
12687 # The compiler can only warn and ignore the option if not recognized
vlm55681242007-12-03 14:58:39 +000012688 # So say no if there are warnings other than the usual output.
12689 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
vlm8f3eb992004-06-17 23:42:48 +000012692 lt_prog_compiler_pic_works_CXX=yes
12693 fi
12694 fi
12695 $rm conftest*
12696
12697fi
vlm83b901d2007-08-27 23:57:45 +000012698{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12699echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012700
12701if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12702 case $lt_prog_compiler_pic_CXX in
12703 "" | " "*) ;;
12704 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12705 esac
12706else
12707 lt_prog_compiler_pic_CXX=
12708 lt_prog_compiler_can_build_shared_CXX=no
12709fi
12710
12711fi
vlm55681242007-12-03 14:58:39 +000012712case $host_os in
vlm8f3eb992004-06-17 23:42:48 +000012713 # For platforms which do not support PIC, -DPIC is meaningless:
12714 *djgpp*)
12715 lt_prog_compiler_pic_CXX=
12716 ;;
12717 *)
12718 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12719 ;;
12720esac
12721
vlm55681242007-12-03 14:58:39 +000012722#
12723# Check to make sure the static flag actually works.
12724#
12725wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12726{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12727echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12728if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730else
12731 lt_prog_compiler_static_works_CXX=no
12732 save_LDFLAGS="$LDFLAGS"
12733 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12734 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12736 # The linker can only warn and ignore the option if not recognized
12737 # So say no if there are warnings
12738 if test -s conftest.err; then
12739 # Append any errors to the config.log.
12740 cat conftest.err 1>&5
12741 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12743 if diff conftest.exp conftest.er2 >/dev/null; then
12744 lt_prog_compiler_static_works_CXX=yes
12745 fi
12746 else
12747 lt_prog_compiler_static_works_CXX=yes
12748 fi
12749 fi
12750 $rm conftest*
12751 LDFLAGS="$save_LDFLAGS"
12752
12753fi
12754{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12755echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12756
12757if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12758 :
12759else
12760 lt_prog_compiler_static_CXX=
12761fi
12762
12763
vlm83b901d2007-08-27 23:57:45 +000012764{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12765echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012766if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768else
12769 lt_cv_prog_compiler_c_o_CXX=no
12770 $rm -r conftest 2>/dev/null
12771 mkdir conftest
12772 cd conftest
12773 mkdir out
12774 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12775
12776 lt_compiler_flag="-o out/conftest2.$ac_objext"
12777 # Insert the option either (1) after the last *FLAGS variable, or
12778 # (2) before a word containing "conftest.", or (3) at the end.
12779 # Note that $ac_compile itself does not contain backslashes and begins
12780 # with a dollar sign (not a hyphen), so the echo should work correctly.
12781 lt_compile=`echo "$ac_compile" | $SED \
vlm55681242007-12-03 14:58:39 +000012782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
vlm8f3eb992004-06-17 23:42:48 +000012783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12784 -e 's:$: $lt_compiler_flag:'`
vlm55681242007-12-03 14:58:39 +000012785 (eval echo "\"\$as_me:12785: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000012786 (eval "$lt_compile" 2>out/conftest.err)
12787 ac_status=$?
12788 cat out/conftest.err >&5
vlm55681242007-12-03 14:58:39 +000012789 echo "$as_me:12789: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000012790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12791 then
12792 # The compiler can only warn and ignore the option if not recognized
12793 # So say no if there are warnings
vlm55681242007-12-03 14:58:39 +000012794 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
vlm8f3eb992004-06-17 23:42:48 +000012797 lt_cv_prog_compiler_c_o_CXX=yes
12798 fi
12799 fi
vlm55681242007-12-03 14:58:39 +000012800 chmod u+w . 2>&5
vlm8f3eb992004-06-17 23:42:48 +000012801 $rm conftest*
12802 # SGI C++ compiler will create directory out/ii_files/ for
12803 # template instantiation
12804 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12805 $rm out/* && rmdir out
12806 cd ..
12807 rmdir conftest
12808 $rm conftest*
12809
12810fi
vlm83b901d2007-08-27 23:57:45 +000012811{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12812echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012813
12814
12815hard_links="nottested"
12816if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12817 # do not overwrite the value of need_locks provided by the user
vlm83b901d2007-08-27 23:57:45 +000012818 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12819echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012820 hard_links=yes
12821 $rm conftest*
12822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12823 touch conftest.a
12824 ln conftest.a conftest.b 2>&5 || hard_links=no
12825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
vlm83b901d2007-08-27 23:57:45 +000012826 { echo "$as_me:$LINENO: result: $hard_links" >&5
12827echo "${ECHO_T}$hard_links" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012828 if test "$hard_links" = no; then
12829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12830echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12831 need_locks=warn
12832 fi
12833else
12834 need_locks=no
12835fi
12836
vlm83b901d2007-08-27 23:57:45 +000012837{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12838echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012839
12840 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12841 case $host_os in
12842 aix4* | aix5*)
12843 # If we're using GNU nm, then we don't want the "-C" option.
12844 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12845 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12846 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'
12847 else
12848 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'
12849 fi
12850 ;;
12851 pw32*)
12852 export_symbols_cmds_CXX="$ltdll_cmds"
12853 ;;
12854 cygwin* | mingw*)
vlm55681242007-12-03 14:58:39 +000012855 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
vlm8f3eb992004-06-17 23:42:48 +000012856 ;;
12857 *)
12858 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12859 ;;
12860 esac
12861
vlm83b901d2007-08-27 23:57:45 +000012862{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12863echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012864test "$ld_shlibs_CXX" = no && can_build_shared=no
12865
vlm8f3eb992004-06-17 23:42:48 +000012866#
12867# Do we need to explicitly link libc?
12868#
12869case "x$archive_cmds_need_lc_CXX" in
12870x|xyes)
12871 # Assume -lc should be added
12872 archive_cmds_need_lc_CXX=yes
12873
12874 if test "$enable_shared" = yes && test "$GCC" = yes; then
12875 case $archive_cmds_CXX in
12876 *'~'*)
12877 # FIXME: we may have to deal with multi-command sequences.
12878 ;;
12879 '$CC '*)
12880 # Test whether the compiler implicitly links with -lc since on some
12881 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12882 # to ld, don't add -lc before -lgcc.
vlm83b901d2007-08-27 23:57:45 +000012883 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12884echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012885 $rm conftest*
12886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12887
12888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } 2>conftest.err; then
12893 soname=conftest
12894 lib=conftest
12895 libobjs=conftest.$ac_objext
12896 deplibs=
12897 wl=$lt_prog_compiler_wl_CXX
vlm55681242007-12-03 14:58:39 +000012898 pic_flag=$lt_prog_compiler_pic_CXX
vlm8f3eb992004-06-17 23:42:48 +000012899 compiler_flags=-v
12900 linker_flags=-v
12901 verstring=
12902 output_objdir=.
12903 libname=conftest
12904 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12905 allow_undefined_flag_CXX=
12906 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12907 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }
12911 then
12912 archive_cmds_need_lc_CXX=no
12913 else
12914 archive_cmds_need_lc_CXX=yes
12915 fi
12916 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12917 else
12918 cat conftest.err 1>&5
12919 fi
12920 $rm conftest*
vlm83b901d2007-08-27 23:57:45 +000012921 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12922echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012923 ;;
12924 esac
12925 fi
12926 ;;
12927esac
12928
vlm83b901d2007-08-27 23:57:45 +000012929{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12930echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000012931library_names_spec=
12932libname_spec='lib$name'
12933soname_spec=
12934shrext_cmds=".so"
12935postinstall_cmds=
12936postuninstall_cmds=
12937finish_cmds=
12938finish_eval=
12939shlibpath_var=
12940shlibpath_overrides_runpath=unknown
12941version_type=none
12942dynamic_linker="$host_os ld.so"
12943sys_lib_dlsearch_path_spec="/lib /usr/lib"
12944if test "$GCC" = yes; then
12945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12946 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12947 # if the path contains ";" then we assume it to be the separator
12948 # otherwise default to the standard path separator (i.e. ":") - it is
12949 # assumed that no part of a normal pathname contains ";" but that should
12950 # okay in the real world where ";" in dirpaths is itself problematic.
12951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12952 else
12953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12954 fi
12955else
12956 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12957fi
12958need_lib_prefix=unknown
12959hardcode_into_libs=no
12960
12961# when you set need_version to no, make sure it does not cause -set_version
12962# flags to be left without arguments
12963need_version=unknown
12964
12965case $host_os in
12966aix3*)
12967 version_type=linux
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12969 shlibpath_var=LIBPATH
12970
12971 # AIX 3 has no versioning support, so we append a major version to the name.
12972 soname_spec='${libname}${release}${shared_ext}$major'
12973 ;;
12974
12975aix4* | aix5*)
12976 version_type=linux
12977 need_lib_prefix=no
12978 need_version=no
12979 hardcode_into_libs=yes
12980 if test "$host_cpu" = ia64; then
12981 # AIX 5 supports IA64
12982 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12983 shlibpath_var=LD_LIBRARY_PATH
12984 else
12985 # With GCC up to 2.95.x, collect2 would create an import file
12986 # for dependence libraries. The import file would start with
12987 # the line `#! .'. This would cause the generated library to
12988 # depend on `.', always an invalid library. This was fixed in
12989 # development snapshots of GCC prior to 3.0.
12990 case $host_os in
12991 aix4 | aix4.[01] | aix4.[01].*)
12992 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12993 echo ' yes '
12994 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12995 :
12996 else
12997 can_build_shared=no
12998 fi
12999 ;;
13000 esac
13001 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13002 # soname into executable. Probably we can add versioning support to
13003 # collect2, so additional links can be useful in future.
13004 if test "$aix_use_runtimelinking" = yes; then
13005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13006 # instead of lib<name>.a to let people know that these are not
13007 # typical AIX shared libraries.
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 else
13010 # We preserve .a as extension for shared libraries through AIX4.2
13011 # and later when we are not doing run time linking.
13012 library_names_spec='${libname}${release}.a $libname.a'
13013 soname_spec='${libname}${release}${shared_ext}$major'
13014 fi
13015 shlibpath_var=LIBPATH
13016 fi
13017 ;;
13018
13019amigaos*)
13020 library_names_spec='$libname.ixlibrary $libname.a'
13021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13022 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'
13023 ;;
13024
13025beos*)
13026 library_names_spec='${libname}${shared_ext}'
13027 dynamic_linker="$host_os ld.so"
13028 shlibpath_var=LIBRARY_PATH
13029 ;;
13030
vlm55681242007-12-03 14:58:39 +000013031bsdi[45]*)
vlm8f3eb992004-06-17 23:42:48 +000013032 version_type=linux
13033 need_version=no
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13035 soname_spec='${libname}${release}${shared_ext}$major'
13036 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13037 shlibpath_var=LD_LIBRARY_PATH
13038 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13039 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13040 # the default ld.so.conf also contains /usr/contrib/lib and
13041 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13042 # libtool to hard-code these into programs
13043 ;;
13044
13045cygwin* | mingw* | pw32*)
13046 version_type=windows
13047 shrext_cmds=".dll"
13048 need_version=no
13049 need_lib_prefix=no
13050
13051 case $GCC,$host_os in
13052 yes,cygwin* | yes,mingw* | yes,pw32*)
13053 library_names_spec='$libname.dll.a'
13054 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13055 postinstall_cmds='base_file=`basename \${file}`~
13056 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13057 dldir=$destdir/`dirname \$dlpath`~
13058 test -d \$dldir || mkdir -p \$dldir~
vlm55681242007-12-03 14:58:39 +000013059 $install_prog $dir/$dlname \$dldir/$dlname~
13060 chmod a+x \$dldir/$dlname'
vlm8f3eb992004-06-17 23:42:48 +000013061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13062 dlpath=$dir/\$dldll~
13063 $rm \$dlpath'
13064 shlibpath_overrides_runpath=yes
13065
13066 case $host_os in
13067 cygwin*)
13068 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13069 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13070 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13071 ;;
13072 mingw*)
13073 # MinGW DLLs use traditional 'lib' prefix
13074 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13075 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13076 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13077 # It is most probably a Windows format PATH printed by
13078 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13079 # path with ; separators, and with drive letters. We can handle the
13080 # drive letters (cygwin fileutils understands them), so leave them,
13081 # especially as we might pass files found there to a mingw objdump,
13082 # which wouldn't understand a cygwinified path. Ahh.
13083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13084 else
13085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13086 fi
13087 ;;
13088 pw32*)
13089 # pw32 DLLs use 'pw' prefix rather than 'lib'
vlm55681242007-12-03 14:58:39 +000013090 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
vlm8f3eb992004-06-17 23:42:48 +000013091 ;;
13092 esac
13093 ;;
13094
13095 *)
13096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13097 ;;
13098 esac
13099 dynamic_linker='Win32 ld.exe'
13100 # FIXME: first we should search . and the directory the executable is in
13101 shlibpath_var=PATH
13102 ;;
13103
13104darwin* | rhapsody*)
13105 dynamic_linker="$host_os dyld"
13106 version_type=darwin
13107 need_lib_prefix=no
13108 need_version=no
13109 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13110 soname_spec='${libname}${release}${major}$shared_ext'
13111 shlibpath_overrides_runpath=yes
13112 shlibpath_var=DYLD_LIBRARY_PATH
vlm55681242007-12-03 14:58:39 +000013113 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
vlm8f3eb992004-06-17 23:42:48 +000013114 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13115 if test "$GCC" = yes; then
13116 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"`
13117 else
13118 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13119 fi
13120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13121 ;;
13122
13123dgux*)
13124 version_type=linux
13125 need_lib_prefix=no
13126 need_version=no
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 ;;
13131
13132freebsd1*)
13133 dynamic_linker=no
13134 ;;
13135
13136kfreebsd*-gnu)
13137 version_type=linux
13138 need_lib_prefix=no
13139 need_version=no
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13141 soname_spec='${libname}${release}${shared_ext}$major'
13142 shlibpath_var=LD_LIBRARY_PATH
13143 shlibpath_overrides_runpath=no
13144 hardcode_into_libs=yes
13145 dynamic_linker='GNU ld.so'
13146 ;;
13147
vlm55681242007-12-03 14:58:39 +000013148freebsd* | dragonfly*)
13149 # DragonFly does not have aout. When/if they implement a new
13150 # versioning mechanism, adjust this.
13151 if test -x /usr/bin/objformat; then
13152 objformat=`/usr/bin/objformat`
13153 else
13154 case $host_os in
13155 freebsd[123]*) objformat=aout ;;
13156 *) objformat=elf ;;
13157 esac
13158 fi
vlm8f3eb992004-06-17 23:42:48 +000013159 version_type=freebsd-$objformat
13160 case $version_type in
13161 freebsd-elf*)
13162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13163 need_version=no
13164 need_lib_prefix=no
13165 ;;
13166 freebsd-*)
13167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13168 need_version=yes
13169 ;;
13170 esac
13171 shlibpath_var=LD_LIBRARY_PATH
13172 case $host_os in
13173 freebsd2*)
13174 shlibpath_overrides_runpath=yes
13175 ;;
vlm55681242007-12-03 14:58:39 +000013176 freebsd3.[01]* | freebsdelf3.[01]*)
vlm8f3eb992004-06-17 23:42:48 +000013177 shlibpath_overrides_runpath=yes
13178 hardcode_into_libs=yes
13179 ;;
vlm55681242007-12-03 14:58:39 +000013180 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13181 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
vlm8f3eb992004-06-17 23:42:48 +000013182 shlibpath_overrides_runpath=no
13183 hardcode_into_libs=yes
13184 ;;
vlm55681242007-12-03 14:58:39 +000013185 freebsd*) # from 4.6 on
13186 shlibpath_overrides_runpath=yes
13187 hardcode_into_libs=yes
13188 ;;
vlm8f3eb992004-06-17 23:42:48 +000013189 esac
13190 ;;
13191
13192gnu*)
13193 version_type=linux
13194 need_lib_prefix=no
13195 need_version=no
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13197 soname_spec='${libname}${release}${shared_ext}$major'
13198 shlibpath_var=LD_LIBRARY_PATH
13199 hardcode_into_libs=yes
13200 ;;
13201
13202hpux9* | hpux10* | hpux11*)
13203 # Give a soname corresponding to the major version so that dld.sl refuses to
13204 # link against other versions.
13205 version_type=sunos
13206 need_lib_prefix=no
13207 need_version=no
vlm55681242007-12-03 14:58:39 +000013208 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +000013209 ia64*)
13210 shrext_cmds='.so'
13211 hardcode_into_libs=yes
13212 dynamic_linker="$host_os dld.so"
13213 shlibpath_var=LD_LIBRARY_PATH
13214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13217 if test "X$HPUX_IA64_MODE" = X32; then
13218 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13219 else
13220 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13221 fi
13222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13223 ;;
13224 hppa*64*)
13225 shrext_cmds='.sl'
13226 hardcode_into_libs=yes
13227 dynamic_linker="$host_os dld.sl"
13228 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13229 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13231 soname_spec='${libname}${release}${shared_ext}$major'
13232 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13234 ;;
13235 *)
13236 shrext_cmds='.sl'
13237 dynamic_linker="$host_os dld.sl"
13238 shlibpath_var=SHLIB_PATH
13239 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13241 soname_spec='${libname}${release}${shared_ext}$major'
13242 ;;
13243 esac
13244 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13245 postinstall_cmds='chmod 555 $lib'
13246 ;;
13247
vlm55681242007-12-03 14:58:39 +000013248interix3*)
13249 version_type=linux
13250 need_lib_prefix=no
13251 need_version=no
13252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13253 soname_spec='${libname}${release}${shared_ext}$major'
13254 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13255 shlibpath_var=LD_LIBRARY_PATH
13256 shlibpath_overrides_runpath=no
13257 hardcode_into_libs=yes
13258 ;;
13259
vlm8f3eb992004-06-17 23:42:48 +000013260irix5* | irix6* | nonstopux*)
13261 case $host_os in
13262 nonstopux*) version_type=nonstopux ;;
13263 *)
13264 if test "$lt_cv_prog_gnu_ld" = yes; then
13265 version_type=linux
13266 else
13267 version_type=irix
13268 fi ;;
13269 esac
13270 need_lib_prefix=no
13271 need_version=no
13272 soname_spec='${libname}${release}${shared_ext}$major'
13273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13274 case $host_os in
13275 irix5* | nonstopux*)
13276 libsuff= shlibsuff=
13277 ;;
13278 *)
13279 case $LD in # libtool.m4 will add one of these switches to LD
13280 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13281 libsuff= shlibsuff= libmagic=32-bit;;
13282 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13283 libsuff=32 shlibsuff=N32 libmagic=N32;;
13284 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13285 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13286 *) libsuff= shlibsuff= libmagic=never-match;;
13287 esac
13288 ;;
13289 esac
13290 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13291 shlibpath_overrides_runpath=no
13292 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13293 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13294 hardcode_into_libs=yes
13295 ;;
13296
13297# No shared lib support for Linux oldld, aout, or coff.
13298linux*oldld* | linux*aout* | linux*coff*)
13299 dynamic_linker=no
13300 ;;
13301
13302# This must be Linux ELF.
13303linux*)
13304 version_type=linux
13305 need_lib_prefix=no
13306 need_version=no
13307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13308 soname_spec='${libname}${release}${shared_ext}$major'
13309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13310 shlibpath_var=LD_LIBRARY_PATH
13311 shlibpath_overrides_runpath=no
13312 # This implies no fast_install, which is unacceptable.
13313 # Some rework will be needed to allow for fast_install
13314 # before this can be enabled.
13315 hardcode_into_libs=yes
13316
13317 # Append ld.so.conf contents to the search path
13318 if test -f /etc/ld.so.conf; then
vlm55681242007-12-03 14:58:39 +000013319 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
vlm8f3eb992004-06-17 23:42:48 +000013320 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13321 fi
13322
13323 # We used to test for /lib/ld.so.1 and disable shared libraries on
13324 # powerpc, because MkLinux only supported shared libraries with the
13325 # GNU dynamic linker. Since this was broken with cross compilers,
13326 # most powerpc-linux boxes support dynamic linking these days and
13327 # people can always --disable-shared, the test was removed, and we
13328 # assume the GNU/Linux dynamic linker is in use.
13329 dynamic_linker='GNU/Linux ld.so'
13330 ;;
13331
13332knetbsd*-gnu)
13333 version_type=linux
13334 need_lib_prefix=no
13335 need_version=no
13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13337 soname_spec='${libname}${release}${shared_ext}$major'
13338 shlibpath_var=LD_LIBRARY_PATH
13339 shlibpath_overrides_runpath=no
13340 hardcode_into_libs=yes
13341 dynamic_linker='GNU ld.so'
13342 ;;
13343
13344netbsd*)
13345 version_type=sunos
13346 need_lib_prefix=no
13347 need_version=no
13348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13351 dynamic_linker='NetBSD (a.out) ld.so'
13352 else
13353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13354 soname_spec='${libname}${release}${shared_ext}$major'
13355 dynamic_linker='NetBSD ld.elf_so'
13356 fi
13357 shlibpath_var=LD_LIBRARY_PATH
13358 shlibpath_overrides_runpath=yes
13359 hardcode_into_libs=yes
13360 ;;
13361
13362newsos6)
13363 version_type=linux
13364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13365 shlibpath_var=LD_LIBRARY_PATH
13366 shlibpath_overrides_runpath=yes
13367 ;;
13368
13369nto-qnx*)
13370 version_type=linux
13371 need_lib_prefix=no
13372 need_version=no
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374 soname_spec='${libname}${release}${shared_ext}$major'
13375 shlibpath_var=LD_LIBRARY_PATH
13376 shlibpath_overrides_runpath=yes
13377 ;;
13378
13379openbsd*)
13380 version_type=sunos
vlm55681242007-12-03 14:58:39 +000013381 sys_lib_dlsearch_path_spec="/usr/lib"
vlm8f3eb992004-06-17 23:42:48 +000013382 need_lib_prefix=no
vlm55681242007-12-03 14:58:39 +000013383 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13384 case $host_os in
13385 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13386 *) need_version=no ;;
13387 esac
vlm8f3eb992004-06-17 23:42:48 +000013388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13390 shlibpath_var=LD_LIBRARY_PATH
13391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13392 case $host_os in
13393 openbsd2.[89] | openbsd2.[89].*)
13394 shlibpath_overrides_runpath=no
13395 ;;
13396 *)
13397 shlibpath_overrides_runpath=yes
13398 ;;
13399 esac
13400 else
13401 shlibpath_overrides_runpath=yes
13402 fi
13403 ;;
13404
13405os2*)
13406 libname_spec='$name'
13407 shrext_cmds=".dll"
13408 need_lib_prefix=no
13409 library_names_spec='$libname${shared_ext} $libname.a'
13410 dynamic_linker='OS/2 ld.exe'
13411 shlibpath_var=LIBPATH
13412 ;;
13413
13414osf3* | osf4* | osf5*)
13415 version_type=osf
13416 need_lib_prefix=no
13417 need_version=no
13418 soname_spec='${libname}${release}${shared_ext}$major'
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13422 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13423 ;;
13424
vlm8f3eb992004-06-17 23:42:48 +000013425solaris*)
13426 version_type=linux
13427 need_lib_prefix=no
13428 need_version=no
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13430 soname_spec='${libname}${release}${shared_ext}$major'
13431 shlibpath_var=LD_LIBRARY_PATH
13432 shlibpath_overrides_runpath=yes
13433 hardcode_into_libs=yes
13434 # ldd complains unless libraries are executable
13435 postinstall_cmds='chmod +x $lib'
13436 ;;
13437
13438sunos4*)
13439 version_type=sunos
13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13441 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13442 shlibpath_var=LD_LIBRARY_PATH
13443 shlibpath_overrides_runpath=yes
13444 if test "$with_gnu_ld" = yes; then
13445 need_lib_prefix=no
13446 fi
13447 need_version=yes
13448 ;;
13449
vlm55681242007-12-03 14:58:39 +000013450sysv4 | sysv4.3*)
vlm8f3eb992004-06-17 23:42:48 +000013451 version_type=linux
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453 soname_spec='${libname}${release}${shared_ext}$major'
13454 shlibpath_var=LD_LIBRARY_PATH
13455 case $host_vendor in
13456 sni)
13457 shlibpath_overrides_runpath=no
13458 need_lib_prefix=no
13459 export_dynamic_flag_spec='${wl}-Blargedynsym'
13460 runpath_var=LD_RUN_PATH
13461 ;;
13462 siemens)
13463 need_lib_prefix=no
13464 ;;
13465 motorola)
13466 need_lib_prefix=no
13467 need_version=no
13468 shlibpath_overrides_runpath=no
13469 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13470 ;;
13471 esac
13472 ;;
13473
13474sysv4*MP*)
13475 if test -d /usr/nec ;then
13476 version_type=linux
13477 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13478 soname_spec='$libname${shared_ext}.$major'
13479 shlibpath_var=LD_LIBRARY_PATH
13480 fi
13481 ;;
13482
vlm55681242007-12-03 14:58:39 +000013483sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13484 version_type=freebsd-elf
13485 need_lib_prefix=no
13486 need_version=no
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13488 soname_spec='${libname}${release}${shared_ext}$major'
13489 shlibpath_var=LD_LIBRARY_PATH
13490 hardcode_into_libs=yes
13491 if test "$with_gnu_ld" = yes; then
13492 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13493 shlibpath_overrides_runpath=no
13494 else
13495 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13496 shlibpath_overrides_runpath=yes
13497 case $host_os in
13498 sco3.2v5*)
13499 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13500 ;;
13501 esac
13502 fi
13503 sys_lib_dlsearch_path_spec='/usr/lib'
13504 ;;
13505
vlm8f3eb992004-06-17 23:42:48 +000013506uts4*)
13507 version_type=linux
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509 soname_spec='${libname}${release}${shared_ext}$major'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 ;;
13512
13513*)
13514 dynamic_linker=no
13515 ;;
13516esac
vlm83b901d2007-08-27 23:57:45 +000013517{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13518echo "${ECHO_T}$dynamic_linker" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000013519test "$dynamic_linker" = no && can_build_shared=no
13520
vlm55681242007-12-03 14:58:39 +000013521variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13522if test "$GCC" = yes; then
13523 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13524fi
13525
vlm83b901d2007-08-27 23:57:45 +000013526{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13527echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000013528hardcode_action_CXX=
13529if test -n "$hardcode_libdir_flag_spec_CXX" || \
vlm55681242007-12-03 14:58:39 +000013530 test -n "$runpath_var_CXX" || \
13531 test "X$hardcode_automatic_CXX" = "Xyes" ; then
vlm8f3eb992004-06-17 23:42:48 +000013532
13533 # We can hardcode non-existant directories.
13534 if test "$hardcode_direct_CXX" != no &&
13535 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13536 # have to relink, otherwise we might link with an installed library
13537 # when we should be linking with a yet-to-be-installed one
13538 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13539 test "$hardcode_minus_L_CXX" != no; then
13540 # Linking always hardcodes the temporary library directory.
13541 hardcode_action_CXX=relink
13542 else
13543 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13544 hardcode_action_CXX=immediate
13545 fi
13546else
13547 # We cannot hardcode anything, or else we can only hardcode existing
13548 # directories.
13549 hardcode_action_CXX=unsupported
13550fi
vlm83b901d2007-08-27 23:57:45 +000013551{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13552echo "${ECHO_T}$hardcode_action_CXX" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000013553
13554if test "$hardcode_action_CXX" = relink; then
13555 # Fast installation is not supported
13556 enable_fast_install=no
13557elif test "$shlibpath_overrides_runpath" = yes ||
13558 test "$enable_shared" = no; then
13559 # Fast installation is not necessary
13560 enable_fast_install=needless
13561fi
13562
vlm8f3eb992004-06-17 23:42:48 +000013563
13564# The else clause should only fire when bootstrapping the
13565# libtool distribution, otherwise you forgot to ship ltmain.sh
13566# with your package, and you will get complaints that there are
13567# no rules to generate ltmain.sh.
13568if test -f "$ltmain"; then
13569 # See if we are running on zsh, and set the options which allow our commands through
13570 # without removal of \ escapes.
13571 if test -n "${ZSH_VERSION+set}" ; then
13572 setopt NO_GLOB_SUBST
13573 fi
13574 # Now quote all the things that may contain metacharacters while being
13575 # careful not to overquote the AC_SUBSTed values. We take copies of the
13576 # variables and quote the copies for generation of the libtool script.
vlm55681242007-12-03 14:58:39 +000013577 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
vlm8f3eb992004-06-17 23:42:48 +000013578 SED SHELL STRIP \
13579 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13580 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13581 deplibs_check_method reload_flag reload_cmds need_locks \
13582 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13583 lt_cv_sys_global_symbol_to_c_name_address \
13584 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13585 old_postinstall_cmds old_postuninstall_cmds \
13586 compiler_CXX \
13587 CC_CXX \
13588 LD_CXX \
13589 lt_prog_compiler_wl_CXX \
13590 lt_prog_compiler_pic_CXX \
13591 lt_prog_compiler_static_CXX \
13592 lt_prog_compiler_no_builtin_flag_CXX \
13593 export_dynamic_flag_spec_CXX \
13594 thread_safe_flag_spec_CXX \
13595 whole_archive_flag_spec_CXX \
13596 enable_shared_with_static_runtimes_CXX \
13597 old_archive_cmds_CXX \
13598 old_archive_from_new_cmds_CXX \
13599 predep_objects_CXX \
13600 postdep_objects_CXX \
13601 predeps_CXX \
13602 postdeps_CXX \
13603 compiler_lib_search_path_CXX \
13604 archive_cmds_CXX \
13605 archive_expsym_cmds_CXX \
13606 postinstall_cmds_CXX \
13607 postuninstall_cmds_CXX \
13608 old_archive_from_expsyms_cmds_CXX \
13609 allow_undefined_flag_CXX \
13610 no_undefined_flag_CXX \
13611 export_symbols_cmds_CXX \
13612 hardcode_libdir_flag_spec_CXX \
13613 hardcode_libdir_flag_spec_ld_CXX \
13614 hardcode_libdir_separator_CXX \
13615 hardcode_automatic_CXX \
13616 module_cmds_CXX \
13617 module_expsym_cmds_CXX \
13618 lt_cv_prog_compiler_c_o_CXX \
13619 exclude_expsyms_CXX \
13620 include_expsyms_CXX; do
13621
13622 case $var in
13623 old_archive_cmds_CXX | \
13624 old_archive_from_new_cmds_CXX | \
13625 archive_cmds_CXX | \
13626 archive_expsym_cmds_CXX | \
13627 module_cmds_CXX | \
13628 module_expsym_cmds_CXX | \
13629 old_archive_from_expsyms_cmds_CXX | \
13630 export_symbols_cmds_CXX | \
13631 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13632 postinstall_cmds | postuninstall_cmds | \
13633 old_postinstall_cmds | old_postuninstall_cmds | \
13634 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13635 # Double-quote double-evaled strings.
13636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13637 ;;
13638 *)
13639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13640 ;;
13641 esac
13642 done
13643
13644 case $lt_echo in
13645 *'\$0 --fallback-echo"')
13646 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13647 ;;
13648 esac
13649
13650cfgfile="$ofile"
13651
13652 cat <<__EOF__ >> "$cfgfile"
13653# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13654
13655# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13656
13657# Shell to use when invoking shell scripts.
13658SHELL=$lt_SHELL
13659
13660# Whether or not to build shared libraries.
13661build_libtool_libs=$enable_shared
13662
13663# Whether or not to build static libraries.
13664build_old_libs=$enable_static
13665
13666# Whether or not to add -lc for building shared libraries.
13667build_libtool_need_lc=$archive_cmds_need_lc_CXX
13668
13669# Whether or not to disallow shared libs when runtime libs are static
13670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13671
13672# Whether or not to optimize for fast installation.
13673fast_install=$enable_fast_install
13674
13675# The host system.
13676host_alias=$host_alias
13677host=$host
vlm55681242007-12-03 14:58:39 +000013678host_os=$host_os
13679
13680# The build system.
13681build_alias=$build_alias
13682build=$build
13683build_os=$build_os
vlm8f3eb992004-06-17 23:42:48 +000013684
13685# An echo program that does not interpret backslashes.
13686echo=$lt_echo
13687
13688# The archiver.
13689AR=$lt_AR
13690AR_FLAGS=$lt_AR_FLAGS
13691
13692# A C compiler.
13693LTCC=$lt_LTCC
13694
vlm55681242007-12-03 14:58:39 +000013695# LTCC compiler flags.
13696LTCFLAGS=$lt_LTCFLAGS
13697
vlm8f3eb992004-06-17 23:42:48 +000013698# A language-specific compiler.
13699CC=$lt_compiler_CXX
13700
13701# Is the compiler the GNU C compiler?
13702with_gcc=$GCC_CXX
13703
13704# An ERE matcher.
13705EGREP=$lt_EGREP
13706
13707# The linker used to build libraries.
13708LD=$lt_LD_CXX
13709
13710# Whether we need hard or soft links.
13711LN_S=$lt_LN_S
13712
13713# A BSD-compatible nm program.
13714NM=$lt_NM
13715
13716# A symbol stripping program
13717STRIP=$lt_STRIP
13718
13719# Used to examine libraries when file_magic_cmd begins "file"
13720MAGIC_CMD=$MAGIC_CMD
13721
13722# Used on cygwin: DLL creation program.
13723DLLTOOL="$DLLTOOL"
13724
13725# Used on cygwin: object dumper.
13726OBJDUMP="$OBJDUMP"
13727
13728# Used on cygwin: assembler.
13729AS="$AS"
13730
13731# The name of the directory that contains temporary libtool files.
13732objdir=$objdir
13733
13734# How to create reloadable object files.
13735reload_flag=$lt_reload_flag
13736reload_cmds=$lt_reload_cmds
13737
13738# How to pass a linker flag through the compiler.
13739wl=$lt_lt_prog_compiler_wl_CXX
13740
13741# Object file suffix (normally "o").
13742objext="$ac_objext"
13743
13744# Old archive suffix (normally "a").
13745libext="$libext"
13746
13747# Shared library suffix (normally ".so").
13748shrext_cmds='$shrext_cmds'
13749
13750# Executable file suffix (normally "").
13751exeext="$exeext"
13752
13753# Additional compiler flags for building library objects.
13754pic_flag=$lt_lt_prog_compiler_pic_CXX
13755pic_mode=$pic_mode
13756
13757# What is the maximum length of a command?
13758max_cmd_len=$lt_cv_sys_max_cmd_len
13759
13760# Does compiler simultaneously support -c and -o options?
13761compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13762
vlm55681242007-12-03 14:58:39 +000013763# Must we lock files when doing compilation?
vlm8f3eb992004-06-17 23:42:48 +000013764need_locks=$lt_need_locks
13765
13766# Do we need the lib prefix for modules?
13767need_lib_prefix=$need_lib_prefix
13768
13769# Do we need a version for libraries?
13770need_version=$need_version
13771
13772# Whether dlopen is supported.
13773dlopen_support=$enable_dlopen
13774
13775# Whether dlopen of programs is supported.
13776dlopen_self=$enable_dlopen_self
13777
13778# Whether dlopen of statically linked programs is supported.
13779dlopen_self_static=$enable_dlopen_self_static
13780
13781# Compiler flag to prevent dynamic linking.
13782link_static_flag=$lt_lt_prog_compiler_static_CXX
13783
13784# Compiler flag to turn off builtin functions.
13785no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13786
13787# Compiler flag to allow reflexive dlopens.
13788export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13789
13790# Compiler flag to generate shared objects directly from archives.
13791whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13792
13793# Compiler flag to generate thread-safe objects.
13794thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13795
13796# Library versioning type.
13797version_type=$version_type
13798
13799# Format of library name prefix.
13800libname_spec=$lt_libname_spec
13801
13802# List of archive names. First name is the real one, the rest are links.
13803# The last name is the one that the linker finds with -lNAME.
13804library_names_spec=$lt_library_names_spec
13805
13806# The coded name of the library, if different from the real name.
13807soname_spec=$lt_soname_spec
13808
13809# Commands used to build and install an old-style archive.
13810RANLIB=$lt_RANLIB
13811old_archive_cmds=$lt_old_archive_cmds_CXX
13812old_postinstall_cmds=$lt_old_postinstall_cmds
13813old_postuninstall_cmds=$lt_old_postuninstall_cmds
13814
13815# Create an old-style archive from a shared archive.
13816old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13817
13818# Create a temporary old-style archive to link instead of a shared archive.
13819old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13820
13821# Commands used to build and install a shared archive.
13822archive_cmds=$lt_archive_cmds_CXX
13823archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13824postinstall_cmds=$lt_postinstall_cmds
13825postuninstall_cmds=$lt_postuninstall_cmds
13826
13827# Commands used to build a loadable module (assumed same as above if empty)
13828module_cmds=$lt_module_cmds_CXX
13829module_expsym_cmds=$lt_module_expsym_cmds_CXX
13830
13831# Commands to strip libraries.
13832old_striplib=$lt_old_striplib
13833striplib=$lt_striplib
13834
13835# Dependencies to place before the objects being linked to create a
13836# shared library.
13837predep_objects=$lt_predep_objects_CXX
13838
13839# Dependencies to place after the objects being linked to create a
13840# shared library.
13841postdep_objects=$lt_postdep_objects_CXX
13842
13843# Dependencies to place before the objects being linked to create a
13844# shared library.
13845predeps=$lt_predeps_CXX
13846
13847# Dependencies to place after the objects being linked to create a
13848# shared library.
13849postdeps=$lt_postdeps_CXX
13850
13851# The library search path used internally by the compiler when linking
13852# a shared library.
13853compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13854
13855# Method to check whether dependent libraries are shared objects.
13856deplibs_check_method=$lt_deplibs_check_method
13857
13858# Command to use when deplibs_check_method == file_magic.
13859file_magic_cmd=$lt_file_magic_cmd
13860
13861# Flag that allows shared libraries with undefined symbols to be built.
13862allow_undefined_flag=$lt_allow_undefined_flag_CXX
13863
13864# Flag that forces no undefined symbols.
13865no_undefined_flag=$lt_no_undefined_flag_CXX
13866
13867# Commands used to finish a libtool library installation in a directory.
13868finish_cmds=$lt_finish_cmds
13869
13870# Same as above, but a single script fragment to be evaled but not shown.
13871finish_eval=$lt_finish_eval
13872
13873# Take the output of nm and produce a listing of raw symbols and C names.
13874global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13875
13876# Transform the output of nm in a proper C declaration
13877global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13878
13879# Transform the output of nm in a C name address pair
13880global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13881
13882# This is the shared library runtime path variable.
13883runpath_var=$runpath_var
13884
13885# This is the shared library path variable.
13886shlibpath_var=$shlibpath_var
13887
13888# Is shlibpath searched before the hard-coded library search path?
13889shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13890
13891# How to hardcode a shared library path into an executable.
13892hardcode_action=$hardcode_action_CXX
13893
13894# Whether we should hardcode library paths into libraries.
13895hardcode_into_libs=$hardcode_into_libs
13896
13897# Flag to hardcode \$libdir into a binary during linking.
13898# This must work even if \$libdir does not exist.
13899hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13900
13901# If ld is used when linking, flag to hardcode \$libdir into
13902# a binary during linking. This must work even if \$libdir does
13903# not exist.
13904hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13905
13906# Whether we need a single -rpath flag with a separated argument.
13907hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13908
13909# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13910# resulting binary.
13911hardcode_direct=$hardcode_direct_CXX
13912
13913# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13914# resulting binary.
13915hardcode_minus_L=$hardcode_minus_L_CXX
13916
13917# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13918# the resulting binary.
13919hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13920
13921# Set to yes if building a shared library automatically hardcodes DIR into the library
13922# and all subsequent libraries and executables linked against it.
13923hardcode_automatic=$hardcode_automatic_CXX
13924
13925# Variables whose values should be saved in libtool wrapper scripts and
13926# restored at relink time.
13927variables_saved_for_relink="$variables_saved_for_relink"
13928
13929# Whether libtool must link a program against all its dependency libraries.
13930link_all_deplibs=$link_all_deplibs_CXX
13931
13932# Compile-time system search path for libraries
13933sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13934
13935# Run-time system search path for libraries
13936sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13937
13938# Fix the shell variable \$srcfile for the compiler.
13939fix_srcfile_path="$fix_srcfile_path_CXX"
13940
13941# Set to yes if exported symbols are required.
13942always_export_symbols=$always_export_symbols_CXX
13943
13944# The commands to list exported symbols.
13945export_symbols_cmds=$lt_export_symbols_cmds_CXX
13946
13947# The commands to extract the exported symbol list from a shared archive.
13948extract_expsyms_cmds=$lt_extract_expsyms_cmds
13949
13950# Symbols that should not be listed in the preloaded symbols.
13951exclude_expsyms=$lt_exclude_expsyms_CXX
13952
13953# Symbols that must always be exported.
13954include_expsyms=$lt_include_expsyms_CXX
13955
13956# ### END LIBTOOL TAG CONFIG: $tagname
13957
13958__EOF__
13959
13960
13961else
13962 # If there is no Makefile yet, we rely on a make rule to execute
13963 # `config.status --recheck' to rerun these tests and create the
13964 # libtool script then.
13965 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13966 if test -f "$ltmain_in"; then
13967 test -f Makefile && make "$ltmain"
13968 fi
13969fi
13970
13971
13972ac_ext=c
13973ac_cpp='$CPP $CPPFLAGS'
13974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13976ac_compiler_gnu=$ac_cv_c_compiler_gnu
13977
13978CC=$lt_save_CC
13979LDCXX=$LD
13980LD=$lt_save_LD
13981GCC=$lt_save_GCC
13982with_gnu_ldcxx=$with_gnu_ld
13983with_gnu_ld=$lt_save_with_gnu_ld
13984lt_cv_path_LDCXX=$lt_cv_path_LD
13985lt_cv_path_LD=$lt_save_path_LD
13986lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13987lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13988
13989 else
13990 tagname=""
13991 fi
13992 ;;
13993
13994 F77)
13995 if test -n "$F77" && test "X$F77" != "Xno"; then
13996
13997ac_ext=f
13998ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13999ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14000ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14001
14002
14003archive_cmds_need_lc_F77=no
14004allow_undefined_flag_F77=
14005always_export_symbols_F77=no
14006archive_expsym_cmds_F77=
14007export_dynamic_flag_spec_F77=
14008hardcode_direct_F77=no
14009hardcode_libdir_flag_spec_F77=
14010hardcode_libdir_flag_spec_ld_F77=
14011hardcode_libdir_separator_F77=
14012hardcode_minus_L_F77=no
14013hardcode_automatic_F77=no
14014module_cmds_F77=
14015module_expsym_cmds_F77=
14016link_all_deplibs_F77=unknown
14017old_archive_cmds_F77=$old_archive_cmds
14018no_undefined_flag_F77=
14019whole_archive_flag_spec_F77=
14020enable_shared_with_static_runtimes_F77=no
14021
14022# Source file extension for f77 test sources.
14023ac_ext=f
14024
14025# Object file extension for compiled f77 test sources.
14026objext=o
14027objext_F77=$objext
14028
14029# Code to be used in simple compile tests
14030lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14031
14032# Code to be used in simple link tests
14033lt_simple_link_test_code=" program t\n end\n"
14034
14035# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14036
14037# If no C compiler was specified, use CC.
14038LTCC=${LTCC-"$CC"}
14039
vlm55681242007-12-03 14:58:39 +000014040# If no C compiler flags were specified, use CFLAGS.
14041LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14042
vlm8f3eb992004-06-17 23:42:48 +000014043# Allow CC to be a program name with arguments.
14044compiler=$CC
14045
14046
vlm55681242007-12-03 14:58:39 +000014047# save warnings/boilerplate of simple test code
14048ac_outfile=conftest.$ac_objext
14049printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14050eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14051_lt_compiler_boilerplate=`cat conftest.err`
14052$rm conftest*
14053
14054ac_outfile=conftest.$ac_objext
14055printf "$lt_simple_link_test_code" >conftest.$ac_ext
14056eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14057_lt_linker_boilerplate=`cat conftest.err`
14058$rm conftest*
14059
14060
vlm8f3eb992004-06-17 23:42:48 +000014061# Allow CC to be a program name with arguments.
14062lt_save_CC="$CC"
14063CC=${F77-"f77"}
14064compiler=$CC
14065compiler_F77=$CC
vlm55681242007-12-03 14:58:39 +000014066for cc_temp in $compiler""; do
14067 case $cc_temp in
14068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14070 \-*) ;;
14071 *) break;;
14072 esac
14073done
14074cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14075
vlm8f3eb992004-06-17 23:42:48 +000014076
vlm83b901d2007-08-27 23:57:45 +000014077{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14078echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14079{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14080echo "${ECHO_T}$can_build_shared" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014081
vlm83b901d2007-08-27 23:57:45 +000014082{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14083echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014084test "$can_build_shared" = "no" && enable_shared=no
14085
14086# On AIX, shared libraries and static libraries use the same namespace, and
14087# are all built from PIC.
vlm55681242007-12-03 14:58:39 +000014088case $host_os in
vlm8f3eb992004-06-17 23:42:48 +000014089aix3*)
14090 test "$enable_shared" = yes && enable_static=no
14091 if test -n "$RANLIB"; then
14092 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14093 postinstall_cmds='$RANLIB $lib'
14094 fi
14095 ;;
14096aix4* | aix5*)
vlm55681242007-12-03 14:58:39 +000014097 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14098 test "$enable_shared" = yes && enable_static=no
14099 fi
vlm8f3eb992004-06-17 23:42:48 +000014100 ;;
14101esac
vlm83b901d2007-08-27 23:57:45 +000014102{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14103echo "${ECHO_T}$enable_shared" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014104
vlm83b901d2007-08-27 23:57:45 +000014105{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14106echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014107# Make sure either enable_shared or enable_static is yes.
14108test "$enable_shared" = yes || enable_static=yes
vlm83b901d2007-08-27 23:57:45 +000014109{ echo "$as_me:$LINENO: result: $enable_static" >&5
14110echo "${ECHO_T}$enable_static" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014111
vlm8f3eb992004-06-17 23:42:48 +000014112GCC_F77="$G77"
14113LD_F77="$LD"
14114
14115lt_prog_compiler_wl_F77=
14116lt_prog_compiler_pic_F77=
14117lt_prog_compiler_static_F77=
14118
vlm83b901d2007-08-27 23:57:45 +000014119{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14120echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014121
14122 if test "$GCC" = yes; then
14123 lt_prog_compiler_wl_F77='-Wl,'
14124 lt_prog_compiler_static_F77='-static'
14125
14126 case $host_os in
14127 aix*)
14128 # All AIX code is PIC.
14129 if test "$host_cpu" = ia64; then
14130 # AIX 5 now supports IA64 processor
14131 lt_prog_compiler_static_F77='-Bstatic'
14132 fi
14133 ;;
14134
14135 amigaos*)
14136 # FIXME: we need at least 68020 code to build shared libraries, but
14137 # adding the `-m68020' flag to GCC prevents building anything better,
14138 # like `-m68040'.
14139 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14140 ;;
14141
14142 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14143 # PIC is the default for these OSes.
14144 ;;
14145
14146 mingw* | pw32* | os2*)
14147 # This hack is so that the source file can tell whether it is being
14148 # built for inclusion in a dll (and should export symbols for example).
14149 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14150 ;;
14151
14152 darwin* | rhapsody*)
14153 # PIC is the default on this platform
14154 # Common symbols not allowed in MH_DYLIB files
14155 lt_prog_compiler_pic_F77='-fno-common'
14156 ;;
14157
vlm55681242007-12-03 14:58:39 +000014158 interix3*)
14159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14160 # Instead, we relocate shared libraries at runtime.
14161 ;;
14162
vlm8f3eb992004-06-17 23:42:48 +000014163 msdosdjgpp*)
14164 # Just because we use GCC doesn't mean we suddenly get shared libraries
14165 # on systems that don't support them.
14166 lt_prog_compiler_can_build_shared_F77=no
14167 enable_shared=no
14168 ;;
14169
14170 sysv4*MP*)
14171 if test -d /usr/nec; then
14172 lt_prog_compiler_pic_F77=-Kconform_pic
14173 fi
14174 ;;
14175
14176 hpux*)
14177 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14178 # not for PA HP-UX.
vlm55681242007-12-03 14:58:39 +000014179 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +000014180 hppa*64*|ia64*)
14181 # +Z the default
14182 ;;
14183 *)
14184 lt_prog_compiler_pic_F77='-fPIC'
14185 ;;
14186 esac
14187 ;;
14188
14189 *)
14190 lt_prog_compiler_pic_F77='-fPIC'
14191 ;;
14192 esac
14193 else
14194 # PORTME Check for flag to pass linker flags through the system compiler.
14195 case $host_os in
14196 aix*)
14197 lt_prog_compiler_wl_F77='-Wl,'
14198 if test "$host_cpu" = ia64; then
14199 # AIX 5 now supports IA64 processor
14200 lt_prog_compiler_static_F77='-Bstatic'
14201 else
14202 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14203 fi
14204 ;;
vlm55681242007-12-03 14:58:39 +000014205 darwin*)
14206 # PIC is the default on this platform
14207 # Common symbols not allowed in MH_DYLIB files
14208 case $cc_basename in
14209 xlc*)
14210 lt_prog_compiler_pic_F77='-qnocommon'
14211 lt_prog_compiler_wl_F77='-Wl,'
14212 ;;
14213 esac
14214 ;;
vlm8f3eb992004-06-17 23:42:48 +000014215
14216 mingw* | pw32* | os2*)
14217 # This hack is so that the source file can tell whether it is being
14218 # built for inclusion in a dll (and should export symbols for example).
14219 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14220 ;;
14221
14222 hpux9* | hpux10* | hpux11*)
14223 lt_prog_compiler_wl_F77='-Wl,'
14224 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14225 # not for PA HP-UX.
vlm55681242007-12-03 14:58:39 +000014226 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +000014227 hppa*64*|ia64*)
14228 # +Z the default
14229 ;;
14230 *)
14231 lt_prog_compiler_pic_F77='+Z'
14232 ;;
14233 esac
14234 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14235 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14236 ;;
14237
14238 irix5* | irix6* | nonstopux*)
14239 lt_prog_compiler_wl_F77='-Wl,'
14240 # PIC (with -KPIC) is the default.
14241 lt_prog_compiler_static_F77='-non_shared'
14242 ;;
14243
14244 newsos6)
14245 lt_prog_compiler_pic_F77='-KPIC'
14246 lt_prog_compiler_static_F77='-Bstatic'
14247 ;;
14248
14249 linux*)
vlm55681242007-12-03 14:58:39 +000014250 case $cc_basename in
vlm8f3eb992004-06-17 23:42:48 +000014251 icc* | ecc*)
14252 lt_prog_compiler_wl_F77='-Wl,'
14253 lt_prog_compiler_pic_F77='-KPIC'
14254 lt_prog_compiler_static_F77='-static'
14255 ;;
vlm55681242007-12-03 14:58:39 +000014256 pgcc* | pgf77* | pgf90* | pgf95*)
14257 # Portland Group compilers (*not* the Pentium gcc compiler,
14258 # which looks to be a dead project)
14259 lt_prog_compiler_wl_F77='-Wl,'
14260 lt_prog_compiler_pic_F77='-fpic'
14261 lt_prog_compiler_static_F77='-Bstatic'
14262 ;;
vlm8f3eb992004-06-17 23:42:48 +000014263 ccc*)
14264 lt_prog_compiler_wl_F77='-Wl,'
14265 # All Alpha code is PIC.
14266 lt_prog_compiler_static_F77='-non_shared'
14267 ;;
14268 esac
14269 ;;
14270
14271 osf3* | osf4* | osf5*)
14272 lt_prog_compiler_wl_F77='-Wl,'
14273 # All OSF/1 code is PIC.
14274 lt_prog_compiler_static_F77='-non_shared'
14275 ;;
14276
vlm8f3eb992004-06-17 23:42:48 +000014277 solaris*)
vlm8f3eb992004-06-17 23:42:48 +000014278 lt_prog_compiler_pic_F77='-KPIC'
14279 lt_prog_compiler_static_F77='-Bstatic'
vlm55681242007-12-03 14:58:39 +000014280 case $cc_basename in
14281 f77* | f90* | f95*)
14282 lt_prog_compiler_wl_F77='-Qoption ld ';;
14283 *)
14284 lt_prog_compiler_wl_F77='-Wl,';;
14285 esac
vlm8f3eb992004-06-17 23:42:48 +000014286 ;;
14287
14288 sunos4*)
14289 lt_prog_compiler_wl_F77='-Qoption ld '
14290 lt_prog_compiler_pic_F77='-PIC'
14291 lt_prog_compiler_static_F77='-Bstatic'
14292 ;;
14293
vlm55681242007-12-03 14:58:39 +000014294 sysv4 | sysv4.2uw2* | sysv4.3*)
vlm8f3eb992004-06-17 23:42:48 +000014295 lt_prog_compiler_wl_F77='-Wl,'
14296 lt_prog_compiler_pic_F77='-KPIC'
14297 lt_prog_compiler_static_F77='-Bstatic'
14298 ;;
14299
14300 sysv4*MP*)
14301 if test -d /usr/nec ;then
14302 lt_prog_compiler_pic_F77='-Kconform_pic'
14303 lt_prog_compiler_static_F77='-Bstatic'
14304 fi
14305 ;;
14306
vlm55681242007-12-03 14:58:39 +000014307 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14308 lt_prog_compiler_wl_F77='-Wl,'
14309 lt_prog_compiler_pic_F77='-KPIC'
14310 lt_prog_compiler_static_F77='-Bstatic'
14311 ;;
14312
14313 unicos*)
14314 lt_prog_compiler_wl_F77='-Wl,'
14315 lt_prog_compiler_can_build_shared_F77=no
14316 ;;
14317
vlm8f3eb992004-06-17 23:42:48 +000014318 uts4*)
14319 lt_prog_compiler_pic_F77='-pic'
14320 lt_prog_compiler_static_F77='-Bstatic'
14321 ;;
14322
14323 *)
14324 lt_prog_compiler_can_build_shared_F77=no
14325 ;;
14326 esac
14327 fi
14328
vlm83b901d2007-08-27 23:57:45 +000014329{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14330echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014331
14332#
14333# Check to make sure the PIC flag actually works.
14334#
14335if test -n "$lt_prog_compiler_pic_F77"; then
14336
vlm83b901d2007-08-27 23:57:45 +000014337{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14338echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014339if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14341else
14342 lt_prog_compiler_pic_works_F77=no
14343 ac_outfile=conftest.$ac_objext
14344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14345 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14346 # Insert the option either (1) after the last *FLAGS variable, or
14347 # (2) before a word containing "conftest.", or (3) at the end.
14348 # Note that $ac_compile itself does not contain backslashes and begins
14349 # with a dollar sign (not a hyphen), so the echo should work correctly.
14350 # The option is referenced via a variable to avoid confusing sed.
14351 lt_compile=`echo "$ac_compile" | $SED \
vlm55681242007-12-03 14:58:39 +000014352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
vlm8f3eb992004-06-17 23:42:48 +000014353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14354 -e 's:$: $lt_compiler_flag:'`
vlm55681242007-12-03 14:58:39 +000014355 (eval echo "\"\$as_me:14355: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000014356 (eval "$lt_compile" 2>conftest.err)
14357 ac_status=$?
14358 cat conftest.err >&5
vlm55681242007-12-03 14:58:39 +000014359 echo "$as_me:14359: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000014360 if (exit $ac_status) && test -s "$ac_outfile"; then
14361 # The compiler can only warn and ignore the option if not recognized
vlm55681242007-12-03 14:58:39 +000014362 # So say no if there are warnings other than the usual output.
14363 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14365 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
vlm8f3eb992004-06-17 23:42:48 +000014366 lt_prog_compiler_pic_works_F77=yes
14367 fi
14368 fi
14369 $rm conftest*
14370
14371fi
vlm83b901d2007-08-27 23:57:45 +000014372{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14373echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014374
14375if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14376 case $lt_prog_compiler_pic_F77 in
14377 "" | " "*) ;;
14378 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14379 esac
14380else
14381 lt_prog_compiler_pic_F77=
14382 lt_prog_compiler_can_build_shared_F77=no
14383fi
14384
14385fi
vlm55681242007-12-03 14:58:39 +000014386case $host_os in
vlm8f3eb992004-06-17 23:42:48 +000014387 # For platforms which do not support PIC, -DPIC is meaningless:
14388 *djgpp*)
14389 lt_prog_compiler_pic_F77=
14390 ;;
14391 *)
14392 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14393 ;;
14394esac
14395
vlm55681242007-12-03 14:58:39 +000014396#
14397# Check to make sure the static flag actually works.
14398#
14399wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14400{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14401echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14402if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404else
14405 lt_prog_compiler_static_works_F77=no
14406 save_LDFLAGS="$LDFLAGS"
14407 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14408 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14410 # The linker can only warn and ignore the option if not recognized
14411 # So say no if there are warnings
14412 if test -s conftest.err; then
14413 # Append any errors to the config.log.
14414 cat conftest.err 1>&5
14415 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14417 if diff conftest.exp conftest.er2 >/dev/null; then
14418 lt_prog_compiler_static_works_F77=yes
14419 fi
14420 else
14421 lt_prog_compiler_static_works_F77=yes
14422 fi
14423 fi
14424 $rm conftest*
14425 LDFLAGS="$save_LDFLAGS"
14426
14427fi
14428{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14429echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14430
14431if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14432 :
14433else
14434 lt_prog_compiler_static_F77=
14435fi
14436
14437
vlm83b901d2007-08-27 23:57:45 +000014438{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14439echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014440if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442else
14443 lt_cv_prog_compiler_c_o_F77=no
14444 $rm -r conftest 2>/dev/null
14445 mkdir conftest
14446 cd conftest
14447 mkdir out
14448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14449
14450 lt_compiler_flag="-o out/conftest2.$ac_objext"
14451 # Insert the option either (1) after the last *FLAGS variable, or
14452 # (2) before a word containing "conftest.", or (3) at the end.
14453 # Note that $ac_compile itself does not contain backslashes and begins
14454 # with a dollar sign (not a hyphen), so the echo should work correctly.
14455 lt_compile=`echo "$ac_compile" | $SED \
vlm55681242007-12-03 14:58:39 +000014456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
vlm8f3eb992004-06-17 23:42:48 +000014457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458 -e 's:$: $lt_compiler_flag:'`
vlm55681242007-12-03 14:58:39 +000014459 (eval echo "\"\$as_me:14459: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000014460 (eval "$lt_compile" 2>out/conftest.err)
14461 ac_status=$?
14462 cat out/conftest.err >&5
vlm55681242007-12-03 14:58:39 +000014463 echo "$as_me:14463: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000014464 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14465 then
14466 # The compiler can only warn and ignore the option if not recognized
14467 # So say no if there are warnings
vlm55681242007-12-03 14:58:39 +000014468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
vlm8f3eb992004-06-17 23:42:48 +000014471 lt_cv_prog_compiler_c_o_F77=yes
14472 fi
14473 fi
vlm55681242007-12-03 14:58:39 +000014474 chmod u+w . 2>&5
vlm8f3eb992004-06-17 23:42:48 +000014475 $rm conftest*
14476 # SGI C++ compiler will create directory out/ii_files/ for
14477 # template instantiation
14478 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14479 $rm out/* && rmdir out
14480 cd ..
14481 rmdir conftest
14482 $rm conftest*
14483
14484fi
vlm83b901d2007-08-27 23:57:45 +000014485{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14486echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014487
14488
14489hard_links="nottested"
14490if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14491 # do not overwrite the value of need_locks provided by the user
vlm83b901d2007-08-27 23:57:45 +000014492 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14493echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014494 hard_links=yes
14495 $rm conftest*
14496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14497 touch conftest.a
14498 ln conftest.a conftest.b 2>&5 || hard_links=no
14499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
vlm83b901d2007-08-27 23:57:45 +000014500 { echo "$as_me:$LINENO: result: $hard_links" >&5
14501echo "${ECHO_T}$hard_links" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014502 if test "$hard_links" = no; then
14503 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14504echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14505 need_locks=warn
14506 fi
14507else
14508 need_locks=no
14509fi
14510
vlm83b901d2007-08-27 23:57:45 +000014511{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14512echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000014513
14514 runpath_var=
14515 allow_undefined_flag_F77=
14516 enable_shared_with_static_runtimes_F77=no
14517 archive_cmds_F77=
14518 archive_expsym_cmds_F77=
14519 old_archive_From_new_cmds_F77=
14520 old_archive_from_expsyms_cmds_F77=
14521 export_dynamic_flag_spec_F77=
14522 whole_archive_flag_spec_F77=
14523 thread_safe_flag_spec_F77=
14524 hardcode_libdir_flag_spec_F77=
14525 hardcode_libdir_flag_spec_ld_F77=
14526 hardcode_libdir_separator_F77=
14527 hardcode_direct_F77=no
14528 hardcode_minus_L_F77=no
14529 hardcode_shlibpath_var_F77=unsupported
14530 link_all_deplibs_F77=unknown
14531 hardcode_automatic_F77=no
14532 module_cmds_F77=
14533 module_expsym_cmds_F77=
14534 always_export_symbols_F77=no
14535 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14536 # include_expsyms should be a list of space-separated symbols to be *always*
14537 # included in the symbol list
14538 include_expsyms_F77=
14539 # exclude_expsyms can be an extended regexp of symbols to exclude
14540 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14541 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14542 # as well as any symbol that contains `d'.
14543 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14544 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14545 # platforms (ab)use it in PIC code, but their linkers get confused if
14546 # the symbol is explicitly referenced. Since portable code cannot
14547 # rely on this symbol name, it's probably fine to never include it in
14548 # preloaded symbol tables.
14549 extract_expsyms_cmds=
vlm55681242007-12-03 14:58:39 +000014550 # Just being paranoid about ensuring that cc_basename is set.
14551 for cc_temp in $compiler""; do
14552 case $cc_temp in
14553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14555 \-*) ;;
14556 *) break;;
14557 esac
14558done
14559cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vlm8f3eb992004-06-17 23:42:48 +000014560
14561 case $host_os in
14562 cygwin* | mingw* | pw32*)
14563 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14564 # When not using gcc, we currently assume that we are using
14565 # Microsoft Visual C++.
14566 if test "$GCC" != yes; then
14567 with_gnu_ld=no
14568 fi
14569 ;;
vlm55681242007-12-03 14:58:39 +000014570 interix*)
14571 # we just hope/assume this is gcc and not c89 (= MSVC++)
14572 with_gnu_ld=yes
14573 ;;
vlm8f3eb992004-06-17 23:42:48 +000014574 openbsd*)
14575 with_gnu_ld=no
14576 ;;
14577 esac
14578
14579 ld_shlibs_F77=yes
14580 if test "$with_gnu_ld" = yes; then
14581 # If archive_cmds runs LD, not CC, wlarc should be empty
14582 wlarc='${wl}'
14583
vlm55681242007-12-03 14:58:39 +000014584 # Set some defaults for GNU ld with shared library support. These
14585 # are reset later if shared libraries are not supported. Putting them
14586 # here allows them to be overridden if necessary.
14587 runpath_var=LD_RUN_PATH
14588 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14589 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14590 # ancient GNU ld didn't support --whole-archive et. al.
14591 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14592 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14593 else
14594 whole_archive_flag_spec_F77=
14595 fi
14596 supports_anon_versioning=no
14597 case `$LD -v 2>/dev/null` in
14598 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14599 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14600 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14601 *\ 2.11.*) ;; # other 2.11 versions
14602 *) supports_anon_versioning=yes ;;
14603 esac
14604
vlm8f3eb992004-06-17 23:42:48 +000014605 # See if GNU ld supports shared libraries.
14606 case $host_os in
14607 aix3* | aix4* | aix5*)
14608 # On AIX/PPC, the GNU linker is very broken
14609 if test "$host_cpu" != ia64; then
14610 ld_shlibs_F77=no
14611 cat <<EOF 1>&2
14612
14613*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14614*** to be unable to reliably create shared libraries on AIX.
14615*** Therefore, libtool is disabling shared libraries support. If you
14616*** really care for shared libraries, you may want to modify your PATH
14617*** so that a non-GNU linker is found, and then restart.
14618
14619EOF
14620 fi
14621 ;;
14622
14623 amigaos*)
14624 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)'
14625 hardcode_libdir_flag_spec_F77='-L$libdir'
14626 hardcode_minus_L_F77=yes
14627
14628 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14629 # that the semantics of dynamic libraries on AmigaOS, at least up
14630 # to version 4, is to share data among multiple programs linked
14631 # with the same dynamic library. Since this doesn't match the
14632 # behavior of shared libraries on other platforms, we can't use
14633 # them.
14634 ld_shlibs_F77=no
14635 ;;
14636
14637 beos*)
14638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14639 allow_undefined_flag_F77=unsupported
14640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14641 # support --undefined. This deserves some investigation. FIXME
14642 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14643 else
14644 ld_shlibs_F77=no
14645 fi
14646 ;;
14647
14648 cygwin* | mingw* | pw32*)
14649 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14650 # as there is no search path for DLLs.
14651 hardcode_libdir_flag_spec_F77='-L$libdir'
14652 allow_undefined_flag_F77=unsupported
14653 always_export_symbols_F77=no
14654 enable_shared_with_static_runtimes_F77=yes
vlm55681242007-12-03 14:58:39 +000014655 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
vlm8f3eb992004-06-17 23:42:48 +000014656
14657 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vlm55681242007-12-03 14:58:39 +000014658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
vlm8f3eb992004-06-17 23:42:48 +000014659 # If the export-symbols file already is a .def file (1st line
14660 # is EXPORTS), use it as is; otherwise, prepend...
14661 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14662 cp $export_symbols $output_objdir/$soname.def;
14663 else
14664 echo EXPORTS > $output_objdir/$soname.def;
14665 cat $export_symbols >> $output_objdir/$soname.def;
14666 fi~
vlm55681242007-12-03 14:58:39 +000014667 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
vlm8f3eb992004-06-17 23:42:48 +000014668 else
vlm55681242007-12-03 14:58:39 +000014669 ld_shlibs_F77=no
14670 fi
14671 ;;
14672
14673 interix3*)
14674 hardcode_direct_F77=no
14675 hardcode_shlibpath_var_F77=no
14676 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14677 export_dynamic_flag_spec_F77='${wl}-E'
14678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14679 # Instead, shared libraries are loaded at an image base (0x10000000 by
14680 # default) and relocated if they conflict, which is a slow very memory
14681 # consuming and fragmenting process. To avoid this, we pick a random,
14682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14683 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14684 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14685 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14686 ;;
14687
14688 linux*)
14689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14690 tmp_addflag=
14691 case $cc_basename,$host_cpu in
14692 pgcc*) # Portland Group C compiler
14693 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14694 tmp_addflag=' $pic_flag'
14695 ;;
14696 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14697 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14698 tmp_addflag=' $pic_flag -Mnomain' ;;
14699 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14700 tmp_addflag=' -i_dynamic' ;;
14701 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14702 tmp_addflag=' -i_dynamic -nofor_main' ;;
14703 ifc* | ifort*) # Intel Fortran compiler
14704 tmp_addflag=' -nofor_main' ;;
14705 esac
14706 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14707
14708 if test $supports_anon_versioning = yes; then
14709 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14710 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14711 $echo "local: *; };" >> $output_objdir/$libname.ver~
14712 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14713 fi
14714 else
14715 ld_shlibs_F77=no
vlm8f3eb992004-06-17 23:42:48 +000014716 fi
14717 ;;
14718
14719 netbsd*)
14720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14721 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14722 wlarc=
14723 else
14724 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14725 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14726 fi
14727 ;;
14728
vlm55681242007-12-03 14:58:39 +000014729 solaris*)
vlm8f3eb992004-06-17 23:42:48 +000014730 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14731 ld_shlibs_F77=no
14732 cat <<EOF 1>&2
14733
14734*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14735*** create shared libraries on Solaris systems. Therefore, libtool
14736*** is disabling shared libraries support. We urge you to upgrade GNU
14737*** binutils to release 2.9.1 or newer. Another option is to modify
14738*** your PATH or compiler configuration so that the native linker is
14739*** used, and then restart.
14740
14741EOF
14742 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14743 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14744 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14745 else
14746 ld_shlibs_F77=no
14747 fi
14748 ;;
14749
vlm55681242007-12-03 14:58:39 +000014750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14751 case `$LD -v 2>&1` in
14752 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14753 ld_shlibs_F77=no
14754 cat <<_LT_EOF 1>&2
14755
14756*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14757*** reliably create shared libraries on SCO systems. Therefore, libtool
14758*** is disabling shared libraries support. We urge you to upgrade GNU
14759*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14760*** your PATH or compiler configuration so that the native linker is
14761*** used, and then restart.
14762
14763_LT_EOF
14764 ;;
14765 *)
14766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14767 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14768 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14769 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14770 else
14771 ld_shlibs_F77=no
14772 fi
14773 ;;
14774 esac
14775 ;;
14776
vlm8f3eb992004-06-17 23:42:48 +000014777 sunos4*)
14778 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14779 wlarc=
14780 hardcode_direct_F77=yes
14781 hardcode_shlibpath_var_F77=no
14782 ;;
14783
vlm8f3eb992004-06-17 23:42:48 +000014784 *)
14785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14786 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14788 else
14789 ld_shlibs_F77=no
14790 fi
14791 ;;
14792 esac
14793
vlm55681242007-12-03 14:58:39 +000014794 if test "$ld_shlibs_F77" = no; then
14795 runpath_var=
14796 hardcode_libdir_flag_spec_F77=
14797 export_dynamic_flag_spec_F77=
14798 whole_archive_flag_spec_F77=
vlm8f3eb992004-06-17 23:42:48 +000014799 fi
14800 else
14801 # PORTME fill in a description of your system's linker (not GNU ld)
14802 case $host_os in
14803 aix3*)
14804 allow_undefined_flag_F77=unsupported
14805 always_export_symbols_F77=yes
14806 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'
14807 # Note: this linker hardcodes the directories in LIBPATH if there
14808 # are no directories specified by -L.
14809 hardcode_minus_L_F77=yes
vlm55681242007-12-03 14:58:39 +000014810 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
vlm8f3eb992004-06-17 23:42:48 +000014811 # Neither direct hardcoding nor static linking is supported with a
14812 # broken collect2.
14813 hardcode_direct_F77=unsupported
14814 fi
14815 ;;
14816
14817 aix4* | aix5*)
14818 if test "$host_cpu" = ia64; then
14819 # On IA64, the linker does run time linking by default, so we don't
14820 # have to do anything special.
14821 aix_use_runtimelinking=no
14822 exp_sym_flag='-Bexport'
14823 no_entry_flag=""
14824 else
14825 # If we're using GNU nm, then we don't want the "-C" option.
14826 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14827 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14828 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'
14829 else
14830 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'
14831 fi
14832 aix_use_runtimelinking=no
14833
14834 # Test if we are trying to use run time linking or normal
14835 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14836 # need to do runtime linking.
14837 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14838 for ld_flag in $LDFLAGS; do
14839 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14840 aix_use_runtimelinking=yes
14841 break
14842 fi
14843 done
vlm55681242007-12-03 14:58:39 +000014844 ;;
vlm8f3eb992004-06-17 23:42:48 +000014845 esac
14846
14847 exp_sym_flag='-bexport'
14848 no_entry_flag='-bnoentry'
14849 fi
14850
14851 # When large executables or shared objects are built, AIX ld can
14852 # have problems creating the table of contents. If linking a library
14853 # or program results in "error TOC overflow" add -mminimal-toc to
14854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14856
14857 archive_cmds_F77=''
14858 hardcode_direct_F77=yes
14859 hardcode_libdir_separator_F77=':'
14860 link_all_deplibs_F77=yes
14861
14862 if test "$GCC" = yes; then
vlm55681242007-12-03 14:58:39 +000014863 case $host_os in aix4.[012]|aix4.[012].*)
vlm8f3eb992004-06-17 23:42:48 +000014864 # We only want to do this on AIX 4.2 and lower, the check
14865 # below for broken collect2 doesn't work under 4.3+
14866 collect2name=`${CC} -print-prog-name=collect2`
14867 if test -f "$collect2name" && \
14868 strings "$collect2name" | grep resolve_lib_name >/dev/null
14869 then
14870 # We have reworked collect2
14871 hardcode_direct_F77=yes
14872 else
14873 # We have old collect2
14874 hardcode_direct_F77=unsupported
14875 # It fails to find uninstalled libraries when the uninstalled
14876 # path is not listed in the libpath. Setting hardcode_minus_L
14877 # to unsupported forces relinking
14878 hardcode_minus_L_F77=yes
14879 hardcode_libdir_flag_spec_F77='-L$libdir'
14880 hardcode_libdir_separator_F77=
14881 fi
vlm55681242007-12-03 14:58:39 +000014882 ;;
vlm8f3eb992004-06-17 23:42:48 +000014883 esac
14884 shared_flag='-shared'
vlm55681242007-12-03 14:58:39 +000014885 if test "$aix_use_runtimelinking" = yes; then
14886 shared_flag="$shared_flag "'${wl}-G'
14887 fi
vlm8f3eb992004-06-17 23:42:48 +000014888 else
14889 # not using gcc
14890 if test "$host_cpu" = ia64; then
14891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14892 # chokes on -Wl,-G. The following line is correct:
14893 shared_flag='-G'
14894 else
vlm55681242007-12-03 14:58:39 +000014895 if test "$aix_use_runtimelinking" = yes; then
vlm8f3eb992004-06-17 23:42:48 +000014896 shared_flag='${wl}-G'
14897 else
14898 shared_flag='${wl}-bM:SRE'
vlm55681242007-12-03 14:58:39 +000014899 fi
vlm8f3eb992004-06-17 23:42:48 +000014900 fi
14901 fi
14902
14903 # It seems that -bexpall does not export symbols beginning with
14904 # underscore (_), so it is better to generate a list of symbols to export.
14905 always_export_symbols_F77=yes
14906 if test "$aix_use_runtimelinking" = yes; then
14907 # Warning - without using the other runtime loading flags (-brtl),
14908 # -berok will link without error, but may produce a broken library.
14909 allow_undefined_flag_F77='-berok'
14910 # Determine the default libpath from the value encoded in an empty executable.
14911 cat >conftest.$ac_ext <<_ACEOF
14912 program main
14913
14914 end
14915_ACEOF
14916rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000014917if { (ac_try="$ac_link"
14918case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921esac
14922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +000014924 ac_status=$?
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000014930 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14931 { (case "(($ac_try" in
14932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933 *) ac_try_echo=$ac_try;;
14934esac
14935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000014937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000014941 { (case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14944esac
14945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000014947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950
14951aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14952}'`
14953# Check for a 64-bit object if we didn't find anything.
14954if 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; }
14955}'`; fi
14956else
14957 echo "$as_me: failed program was:" >&5
14958sed 's/^/| /' conftest.$ac_ext >&5
14959
vlm83b901d2007-08-27 23:57:45 +000014960
vlm8f3eb992004-06-17 23:42:48 +000014961fi
vlm83b901d2007-08-27 23:57:45 +000014962
14963rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000014964 conftest$ac_exeext conftest.$ac_ext
14965if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14966
14967 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
vlm55681242007-12-03 14:58:39 +000014968 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
vlm8f3eb992004-06-17 23:42:48 +000014969 else
14970 if test "$host_cpu" = ia64; then
14971 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14972 allow_undefined_flag_F77="-z nodefs"
vlm55681242007-12-03 14:58:39 +000014973 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
vlm8f3eb992004-06-17 23:42:48 +000014974 else
14975 # Determine the default libpath from the value encoded in an empty executable.
14976 cat >conftest.$ac_ext <<_ACEOF
14977 program main
14978
14979 end
14980_ACEOF
14981rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000014982if { (ac_try="$ac_link"
14983case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986esac
14987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +000014989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000014995 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14996 { (case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
14999esac
15000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000015002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; } &&
15005 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000015006 { (case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15009esac
15010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000015012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015
15016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15017}'`
15018# Check for a 64-bit object if we didn't find anything.
15019if 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; }
15020}'`; fi
15021else
15022 echo "$as_me: failed program was:" >&5
15023sed 's/^/| /' conftest.$ac_ext >&5
15024
vlm83b901d2007-08-27 23:57:45 +000015025
vlm8f3eb992004-06-17 23:42:48 +000015026fi
vlm83b901d2007-08-27 23:57:45 +000015027
15028rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000015029 conftest$ac_exeext conftest.$ac_ext
15030if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15031
15032 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15033 # Warning - without using the other run time loading flags,
15034 # -berok will link without error, but may produce a broken library.
15035 no_undefined_flag_F77=' ${wl}-bernotok'
15036 allow_undefined_flag_F77=' ${wl}-berok'
vlm8f3eb992004-06-17 23:42:48 +000015037 # Exported symbols can be pulled into shared objects from archives
vlm55681242007-12-03 14:58:39 +000015038 whole_archive_flag_spec_F77='$convenience'
vlm8f3eb992004-06-17 23:42:48 +000015039 archive_cmds_need_lc_F77=yes
vlm55681242007-12-03 14:58:39 +000015040 # This is similar to how AIX traditionally builds its shared libraries.
15041 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
vlm8f3eb992004-06-17 23:42:48 +000015042 fi
15043 fi
15044 ;;
15045
15046 amigaos*)
15047 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)'
15048 hardcode_libdir_flag_spec_F77='-L$libdir'
15049 hardcode_minus_L_F77=yes
15050 # see comment about different semantics on the GNU ld section
15051 ld_shlibs_F77=no
15052 ;;
15053
vlm55681242007-12-03 14:58:39 +000015054 bsdi[45]*)
vlm8f3eb992004-06-17 23:42:48 +000015055 export_dynamic_flag_spec_F77=-rdynamic
15056 ;;
15057
15058 cygwin* | mingw* | pw32*)
15059 # When not using gcc, we currently assume that we are using
15060 # Microsoft Visual C++.
15061 # hardcode_libdir_flag_spec is actually meaningless, as there is
15062 # no search path for DLLs.
15063 hardcode_libdir_flag_spec_F77=' '
15064 allow_undefined_flag_F77=unsupported
15065 # Tell ltmain to make .lib files, not .a files.
15066 libext=lib
15067 # Tell ltmain to make .dll files, not .so files.
15068 shrext_cmds=".dll"
15069 # FIXME: Setting linknames here is a bad hack.
15070 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15071 # The linker will automatically build a .lib file if we build a DLL.
15072 old_archive_From_new_cmds_F77='true'
15073 # FIXME: Should let the user specify the lib program.
15074 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
vlm55681242007-12-03 14:58:39 +000015075 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
vlm8f3eb992004-06-17 23:42:48 +000015076 enable_shared_with_static_runtimes_F77=yes
15077 ;;
15078
15079 darwin* | rhapsody*)
vlm55681242007-12-03 14:58:39 +000015080 case $host_os in
15081 rhapsody* | darwin1.[012])
15082 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15083 ;;
15084 *) # Darwin 1.3 on
15085 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15086 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15087 else
15088 case ${MACOSX_DEPLOYMENT_TARGET} in
15089 10.[012])
15090 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15091 ;;
15092 10.*)
15093 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15094 ;;
15095 esac
15096 fi
15097 ;;
vlm8f3eb992004-06-17 23:42:48 +000015098 esac
vlm55681242007-12-03 14:58:39 +000015099 archive_cmds_need_lc_F77=no
vlm8f3eb992004-06-17 23:42:48 +000015100 hardcode_direct_F77=no
15101 hardcode_automatic_F77=yes
15102 hardcode_shlibpath_var_F77=unsupported
vlm55681242007-12-03 14:58:39 +000015103 whole_archive_flag_spec_F77=''
vlm8f3eb992004-06-17 23:42:48 +000015104 link_all_deplibs_F77=yes
vlm55681242007-12-03 14:58:39 +000015105 if test "$GCC" = yes ; then
15106 output_verbose_link_cmd='echo'
15107 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15108 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15109 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15110 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15111 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}'
vlm8f3eb992004-06-17 23:42:48 +000015112 else
vlm55681242007-12-03 14:58:39 +000015113 case $cc_basename in
15114 xlc*)
15115 output_verbose_link_cmd='echo'
15116 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15117 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15118 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15119 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15120 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}'
15121 ;;
15122 *)
15123 ld_shlibs_F77=no
15124 ;;
15125 esac
vlm8f3eb992004-06-17 23:42:48 +000015126 fi
15127 ;;
15128
15129 dgux*)
15130 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15131 hardcode_libdir_flag_spec_F77='-L$libdir'
15132 hardcode_shlibpath_var_F77=no
15133 ;;
15134
15135 freebsd1*)
15136 ld_shlibs_F77=no
15137 ;;
15138
15139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15140 # support. Future versions do this automatically, but an explicit c++rt0.o
15141 # does not break anything, and helps significantly (at the cost of a little
15142 # extra space).
15143 freebsd2.2*)
15144 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15145 hardcode_libdir_flag_spec_F77='-R$libdir'
15146 hardcode_direct_F77=yes
15147 hardcode_shlibpath_var_F77=no
15148 ;;
15149
15150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15151 freebsd2*)
15152 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15153 hardcode_direct_F77=yes
15154 hardcode_minus_L_F77=yes
15155 hardcode_shlibpath_var_F77=no
15156 ;;
15157
15158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vlm55681242007-12-03 14:58:39 +000015159 freebsd* | kfreebsd*-gnu | dragonfly*)
vlm8f3eb992004-06-17 23:42:48 +000015160 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15161 hardcode_libdir_flag_spec_F77='-R$libdir'
15162 hardcode_direct_F77=yes
15163 hardcode_shlibpath_var_F77=no
15164 ;;
15165
15166 hpux9*)
15167 if test "$GCC" = yes; then
15168 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'
15169 else
15170 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'
15171 fi
15172 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15173 hardcode_libdir_separator_F77=:
15174 hardcode_direct_F77=yes
15175
15176 # hardcode_minus_L: Not really in the search PATH,
15177 # but as the default location of the library.
15178 hardcode_minus_L_F77=yes
15179 export_dynamic_flag_spec_F77='${wl}-E'
15180 ;;
15181
vlm55681242007-12-03 14:58:39 +000015182 hpux10*)
vlm8f3eb992004-06-17 23:42:48 +000015183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vlm55681242007-12-03 14:58:39 +000015184 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15185 else
15186 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15187 fi
15188 if test "$with_gnu_ld" = no; then
15189 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15190 hardcode_libdir_separator_F77=:
15191
15192 hardcode_direct_F77=yes
15193 export_dynamic_flag_spec_F77='${wl}-E'
15194
15195 # hardcode_minus_L: Not really in the search PATH,
15196 # but as the default location of the library.
15197 hardcode_minus_L_F77=yes
15198 fi
15199 ;;
15200
15201 hpux11*)
15202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15203 case $host_cpu in
15204 hppa*64*)
vlm8f3eb992004-06-17 23:42:48 +000015205 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15206 ;;
vlm55681242007-12-03 14:58:39 +000015207 ia64*)
15208 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15209 ;;
vlm8f3eb992004-06-17 23:42:48 +000015210 *)
15211 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15212 ;;
15213 esac
15214 else
vlm55681242007-12-03 14:58:39 +000015215 case $host_cpu in
15216 hppa*64*)
15217 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15218 ;;
15219 ia64*)
15220 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000015221 ;;
15222 *)
vlm55681242007-12-03 14:58:39 +000015223 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000015224 ;;
15225 esac
15226 fi
15227 if test "$with_gnu_ld" = no; then
vlm55681242007-12-03 14:58:39 +000015228 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15229 hardcode_libdir_separator_F77=:
vlm8f3eb992004-06-17 23:42:48 +000015230
vlm55681242007-12-03 14:58:39 +000015231 case $host_cpu in
15232 hppa*64*|ia64*)
15233 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15234 hardcode_direct_F77=no
15235 hardcode_shlibpath_var_F77=no
vlm8f3eb992004-06-17 23:42:48 +000015236 ;;
15237 *)
vlm8f3eb992004-06-17 23:42:48 +000015238 hardcode_direct_F77=yes
15239 export_dynamic_flag_spec_F77='${wl}-E'
15240
15241 # hardcode_minus_L: Not really in the search PATH,
15242 # but as the default location of the library.
15243 hardcode_minus_L_F77=yes
15244 ;;
15245 esac
15246 fi
15247 ;;
15248
15249 irix5* | irix6* | nonstopux*)
15250 if test "$GCC" = yes; then
15251 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'
15252 else
15253 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'
15254 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15255 fi
15256 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15257 hardcode_libdir_separator_F77=:
15258 link_all_deplibs_F77=yes
15259 ;;
15260
15261 netbsd*)
15262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15263 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15264 else
15265 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15266 fi
15267 hardcode_libdir_flag_spec_F77='-R$libdir'
15268 hardcode_direct_F77=yes
15269 hardcode_shlibpath_var_F77=no
15270 ;;
15271
15272 newsos6)
15273 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15274 hardcode_direct_F77=yes
15275 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15276 hardcode_libdir_separator_F77=:
15277 hardcode_shlibpath_var_F77=no
15278 ;;
15279
15280 openbsd*)
15281 hardcode_direct_F77=yes
15282 hardcode_shlibpath_var_F77=no
15283 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15284 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vlm55681242007-12-03 14:58:39 +000015285 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
vlm8f3eb992004-06-17 23:42:48 +000015286 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15287 export_dynamic_flag_spec_F77='${wl}-E'
15288 else
15289 case $host_os in
15290 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15291 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15292 hardcode_libdir_flag_spec_F77='-R$libdir'
15293 ;;
15294 *)
15295 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15296 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15297 ;;
15298 esac
15299 fi
15300 ;;
15301
15302 os2*)
15303 hardcode_libdir_flag_spec_F77='-L$libdir'
15304 hardcode_minus_L_F77=yes
15305 allow_undefined_flag_F77=unsupported
15306 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'
15307 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15308 ;;
15309
15310 osf3*)
15311 if test "$GCC" = yes; then
15312 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15313 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'
15314 else
15315 allow_undefined_flag_F77=' -expect_unresolved \*'
15316 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'
15317 fi
15318 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15319 hardcode_libdir_separator_F77=:
15320 ;;
15321
15322 osf4* | osf5*) # as osf3* with the addition of -msym flag
15323 if test "$GCC" = yes; then
15324 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15325 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'
15326 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15327 else
15328 allow_undefined_flag_F77=' -expect_unresolved \*'
15329 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'
15330 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~
vlm55681242007-12-03 14:58:39 +000015331 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
vlm8f3eb992004-06-17 23:42:48 +000015332
15333 # Both c and cxx compiler support -rpath directly
15334 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15335 fi
15336 hardcode_libdir_separator_F77=:
15337 ;;
15338
vlm8f3eb992004-06-17 23:42:48 +000015339 solaris*)
15340 no_undefined_flag_F77=' -z text'
15341 if test "$GCC" = yes; then
vlm55681242007-12-03 14:58:39 +000015342 wlarc='${wl}'
vlm8f3eb992004-06-17 23:42:48 +000015343 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15344 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15345 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15346 else
vlm55681242007-12-03 14:58:39 +000015347 wlarc=''
vlm8f3eb992004-06-17 23:42:48 +000015348 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15349 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15350 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15351 fi
15352 hardcode_libdir_flag_spec_F77='-R$libdir'
15353 hardcode_shlibpath_var_F77=no
15354 case $host_os in
15355 solaris2.[0-5] | solaris2.[0-5].*) ;;
vlm55681242007-12-03 14:58:39 +000015356 *)
15357 # The compiler driver will combine linker options so we
15358 # cannot just pass the convience library names through
15359 # without $wl, iff we do not link with $LD.
15360 # Luckily, gcc supports the same syntax we need for Sun Studio.
15361 # Supported since Solaris 2.6 (maybe 2.5.1?)
15362 case $wlarc in
15363 '')
15364 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15365 *)
15366 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15367 esac ;;
vlm8f3eb992004-06-17 23:42:48 +000015368 esac
15369 link_all_deplibs_F77=yes
15370 ;;
15371
15372 sunos4*)
15373 if test "x$host_vendor" = xsequent; then
15374 # Use $CC to link under sequent, because it throws in some extra .o
15375 # files that make .init and .fini sections work.
15376 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15377 else
15378 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15379 fi
15380 hardcode_libdir_flag_spec_F77='-L$libdir'
15381 hardcode_direct_F77=yes
15382 hardcode_minus_L_F77=yes
15383 hardcode_shlibpath_var_F77=no
15384 ;;
15385
15386 sysv4)
15387 case $host_vendor in
15388 sni)
15389 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15390 hardcode_direct_F77=yes # is this really true???
15391 ;;
15392 siemens)
15393 ## LD is ld it makes a PLAMLIB
15394 ## CC just makes a GrossModule.
15395 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15396 reload_cmds_F77='$CC -r -o $output$reload_objs'
15397 hardcode_direct_F77=no
15398 ;;
15399 motorola)
15400 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15401 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15402 ;;
15403 esac
15404 runpath_var='LD_RUN_PATH'
15405 hardcode_shlibpath_var_F77=no
15406 ;;
15407
15408 sysv4.3*)
15409 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15410 hardcode_shlibpath_var_F77=no
15411 export_dynamic_flag_spec_F77='-Bexport'
15412 ;;
15413
15414 sysv4*MP*)
15415 if test -d /usr/nec; then
15416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417 hardcode_shlibpath_var_F77=no
15418 runpath_var=LD_RUN_PATH
15419 hardcode_runpath_var=yes
15420 ld_shlibs_F77=yes
15421 fi
15422 ;;
15423
vlm55681242007-12-03 14:58:39 +000015424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15425 no_undefined_flag_F77='${wl}-z,text'
15426 archive_cmds_need_lc_F77=no
vlm8f3eb992004-06-17 23:42:48 +000015427 hardcode_shlibpath_var_F77=no
vlm55681242007-12-03 14:58:39 +000015428 runpath_var='LD_RUN_PATH'
vlm8f3eb992004-06-17 23:42:48 +000015429
vlm8f3eb992004-06-17 23:42:48 +000015430 if test "$GCC" = yes; then
vlm55681242007-12-03 14:58:39 +000015431 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15432 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000015433 else
vlm55681242007-12-03 14:58:39 +000015434 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15435 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000015436 fi
vlm8f3eb992004-06-17 23:42:48 +000015437 ;;
15438
vlm55681242007-12-03 14:58:39 +000015439 sysv5* | sco3.2v5* | sco5v6*)
15440 # Note: We can NOT use -z defs as we might desire, because we do not
15441 # link with -lc, and that would cause any symbols used from libc to
15442 # always be unresolved, which means just about no library would
15443 # ever link correctly. If we're not using GNU ld we use -z text
15444 # though, which does catch some bad symbols but isn't as heavy-handed
15445 # as -z defs.
15446 no_undefined_flag_F77='${wl}-z,text'
15447 allow_undefined_flag_F77='${wl}-z,nodefs'
15448 archive_cmds_need_lc_F77=no
vlm8f3eb992004-06-17 23:42:48 +000015449 hardcode_shlibpath_var_F77=no
vlm55681242007-12-03 14:58:39 +000015450 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15451 hardcode_libdir_separator_F77=':'
15452 link_all_deplibs_F77=yes
15453 export_dynamic_flag_spec_F77='${wl}-Bexport'
vlm8f3eb992004-06-17 23:42:48 +000015454 runpath_var='LD_RUN_PATH'
vlm55681242007-12-03 14:58:39 +000015455
15456 if test "$GCC" = yes; then
15457 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15458 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15459 else
15460 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15461 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15462 fi
vlm8f3eb992004-06-17 23:42:48 +000015463 ;;
15464
15465 uts4*)
15466 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15467 hardcode_libdir_flag_spec_F77='-L$libdir'
15468 hardcode_shlibpath_var_F77=no
15469 ;;
15470
15471 *)
15472 ld_shlibs_F77=no
15473 ;;
15474 esac
15475 fi
15476
vlm83b901d2007-08-27 23:57:45 +000015477{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15478echo "${ECHO_T}$ld_shlibs_F77" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000015479test "$ld_shlibs_F77" = no && can_build_shared=no
15480
vlm8f3eb992004-06-17 23:42:48 +000015481#
15482# Do we need to explicitly link libc?
15483#
15484case "x$archive_cmds_need_lc_F77" in
15485x|xyes)
15486 # Assume -lc should be added
15487 archive_cmds_need_lc_F77=yes
15488
15489 if test "$enable_shared" = yes && test "$GCC" = yes; then
15490 case $archive_cmds_F77 in
15491 *'~'*)
15492 # FIXME: we may have to deal with multi-command sequences.
15493 ;;
15494 '$CC '*)
15495 # Test whether the compiler implicitly links with -lc since on some
15496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15497 # to ld, don't add -lc before -lgcc.
vlm83b901d2007-08-27 23:57:45 +000015498 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15499echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000015500 $rm conftest*
15501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15502
15503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15504 (eval $ac_compile) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } 2>conftest.err; then
15508 soname=conftest
15509 lib=conftest
15510 libobjs=conftest.$ac_objext
15511 deplibs=
15512 wl=$lt_prog_compiler_wl_F77
vlm55681242007-12-03 14:58:39 +000015513 pic_flag=$lt_prog_compiler_pic_F77
vlm8f3eb992004-06-17 23:42:48 +000015514 compiler_flags=-v
15515 linker_flags=-v
15516 verstring=
15517 output_objdir=.
15518 libname=conftest
15519 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15520 allow_undefined_flag_F77=
15521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15522 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }
15526 then
15527 archive_cmds_need_lc_F77=no
15528 else
15529 archive_cmds_need_lc_F77=yes
15530 fi
15531 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15532 else
15533 cat conftest.err 1>&5
15534 fi
15535 $rm conftest*
vlm83b901d2007-08-27 23:57:45 +000015536 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15537echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000015538 ;;
15539 esac
15540 fi
15541 ;;
15542esac
15543
vlm83b901d2007-08-27 23:57:45 +000015544{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15545echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000015546library_names_spec=
15547libname_spec='lib$name'
15548soname_spec=
15549shrext_cmds=".so"
15550postinstall_cmds=
15551postuninstall_cmds=
15552finish_cmds=
15553finish_eval=
15554shlibpath_var=
15555shlibpath_overrides_runpath=unknown
15556version_type=none
15557dynamic_linker="$host_os ld.so"
15558sys_lib_dlsearch_path_spec="/lib /usr/lib"
15559if test "$GCC" = yes; then
15560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15561 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15562 # if the path contains ";" then we assume it to be the separator
15563 # otherwise default to the standard path separator (i.e. ":") - it is
15564 # assumed that no part of a normal pathname contains ";" but that should
15565 # okay in the real world where ";" in dirpaths is itself problematic.
15566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15567 else
15568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15569 fi
15570else
15571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15572fi
15573need_lib_prefix=unknown
15574hardcode_into_libs=no
15575
15576# when you set need_version to no, make sure it does not cause -set_version
15577# flags to be left without arguments
15578need_version=unknown
15579
15580case $host_os in
15581aix3*)
15582 version_type=linux
15583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15584 shlibpath_var=LIBPATH
15585
15586 # AIX 3 has no versioning support, so we append a major version to the name.
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 ;;
15589
15590aix4* | aix5*)
15591 version_type=linux
15592 need_lib_prefix=no
15593 need_version=no
15594 hardcode_into_libs=yes
15595 if test "$host_cpu" = ia64; then
15596 # AIX 5 supports IA64
15597 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 else
15600 # With GCC up to 2.95.x, collect2 would create an import file
15601 # for dependence libraries. The import file would start with
15602 # the line `#! .'. This would cause the generated library to
15603 # depend on `.', always an invalid library. This was fixed in
15604 # development snapshots of GCC prior to 3.0.
15605 case $host_os in
15606 aix4 | aix4.[01] | aix4.[01].*)
15607 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15608 echo ' yes '
15609 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15610 :
15611 else
15612 can_build_shared=no
15613 fi
15614 ;;
15615 esac
15616 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15617 # soname into executable. Probably we can add versioning support to
15618 # collect2, so additional links can be useful in future.
15619 if test "$aix_use_runtimelinking" = yes; then
15620 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15621 # instead of lib<name>.a to let people know that these are not
15622 # typical AIX shared libraries.
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624 else
15625 # We preserve .a as extension for shared libraries through AIX4.2
15626 # and later when we are not doing run time linking.
15627 library_names_spec='${libname}${release}.a $libname.a'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 fi
15630 shlibpath_var=LIBPATH
15631 fi
15632 ;;
15633
15634amigaos*)
15635 library_names_spec='$libname.ixlibrary $libname.a'
15636 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15637 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'
15638 ;;
15639
15640beos*)
15641 library_names_spec='${libname}${shared_ext}'
15642 dynamic_linker="$host_os ld.so"
15643 shlibpath_var=LIBRARY_PATH
15644 ;;
15645
vlm55681242007-12-03 14:58:39 +000015646bsdi[45]*)
vlm8f3eb992004-06-17 23:42:48 +000015647 version_type=linux
15648 need_version=no
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15655 # the default ld.so.conf also contains /usr/contrib/lib and
15656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15657 # libtool to hard-code these into programs
15658 ;;
15659
15660cygwin* | mingw* | pw32*)
15661 version_type=windows
15662 shrext_cmds=".dll"
15663 need_version=no
15664 need_lib_prefix=no
15665
15666 case $GCC,$host_os in
15667 yes,cygwin* | yes,mingw* | yes,pw32*)
15668 library_names_spec='$libname.dll.a'
15669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15670 postinstall_cmds='base_file=`basename \${file}`~
15671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15672 dldir=$destdir/`dirname \$dlpath`~
15673 test -d \$dldir || mkdir -p \$dldir~
vlm55681242007-12-03 14:58:39 +000015674 $install_prog $dir/$dlname \$dldir/$dlname~
15675 chmod a+x \$dldir/$dlname'
vlm8f3eb992004-06-17 23:42:48 +000015676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15677 dlpath=$dir/\$dldll~
15678 $rm \$dlpath'
15679 shlibpath_overrides_runpath=yes
15680
15681 case $host_os in
15682 cygwin*)
15683 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15684 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15685 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15686 ;;
15687 mingw*)
15688 # MinGW DLLs use traditional 'lib' prefix
15689 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15690 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15691 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15692 # It is most probably a Windows format PATH printed by
15693 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15694 # path with ; separators, and with drive letters. We can handle the
15695 # drive letters (cygwin fileutils understands them), so leave them,
15696 # especially as we might pass files found there to a mingw objdump,
15697 # which wouldn't understand a cygwinified path. Ahh.
15698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15699 else
15700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15701 fi
15702 ;;
15703 pw32*)
15704 # pw32 DLLs use 'pw' prefix rather than 'lib'
vlm55681242007-12-03 14:58:39 +000015705 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
vlm8f3eb992004-06-17 23:42:48 +000015706 ;;
15707 esac
15708 ;;
15709
15710 *)
15711 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15712 ;;
15713 esac
15714 dynamic_linker='Win32 ld.exe'
15715 # FIXME: first we should search . and the directory the executable is in
15716 shlibpath_var=PATH
15717 ;;
15718
15719darwin* | rhapsody*)
15720 dynamic_linker="$host_os dyld"
15721 version_type=darwin
15722 need_lib_prefix=no
15723 need_version=no
15724 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15725 soname_spec='${libname}${release}${major}$shared_ext'
15726 shlibpath_overrides_runpath=yes
15727 shlibpath_var=DYLD_LIBRARY_PATH
vlm55681242007-12-03 14:58:39 +000015728 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
vlm8f3eb992004-06-17 23:42:48 +000015729 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15730 if test "$GCC" = yes; then
15731 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"`
15732 else
15733 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15734 fi
15735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15736 ;;
15737
15738dgux*)
15739 version_type=linux
15740 need_lib_prefix=no
15741 need_version=no
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 shlibpath_var=LD_LIBRARY_PATH
15745 ;;
15746
15747freebsd1*)
15748 dynamic_linker=no
15749 ;;
15750
15751kfreebsd*-gnu)
15752 version_type=linux
15753 need_lib_prefix=no
15754 need_version=no
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 shlibpath_var=LD_LIBRARY_PATH
15758 shlibpath_overrides_runpath=no
15759 hardcode_into_libs=yes
15760 dynamic_linker='GNU ld.so'
15761 ;;
15762
vlm55681242007-12-03 14:58:39 +000015763freebsd* | dragonfly*)
15764 # DragonFly does not have aout. When/if they implement a new
15765 # versioning mechanism, adjust this.
15766 if test -x /usr/bin/objformat; then
15767 objformat=`/usr/bin/objformat`
15768 else
15769 case $host_os in
15770 freebsd[123]*) objformat=aout ;;
15771 *) objformat=elf ;;
15772 esac
15773 fi
vlm8f3eb992004-06-17 23:42:48 +000015774 version_type=freebsd-$objformat
15775 case $version_type in
15776 freebsd-elf*)
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15778 need_version=no
15779 need_lib_prefix=no
15780 ;;
15781 freebsd-*)
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15783 need_version=yes
15784 ;;
15785 esac
15786 shlibpath_var=LD_LIBRARY_PATH
15787 case $host_os in
15788 freebsd2*)
15789 shlibpath_overrides_runpath=yes
15790 ;;
vlm55681242007-12-03 14:58:39 +000015791 freebsd3.[01]* | freebsdelf3.[01]*)
vlm8f3eb992004-06-17 23:42:48 +000015792 shlibpath_overrides_runpath=yes
15793 hardcode_into_libs=yes
15794 ;;
vlm55681242007-12-03 14:58:39 +000015795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
vlm8f3eb992004-06-17 23:42:48 +000015797 shlibpath_overrides_runpath=no
15798 hardcode_into_libs=yes
15799 ;;
vlm55681242007-12-03 14:58:39 +000015800 freebsd*) # from 4.6 on
15801 shlibpath_overrides_runpath=yes
15802 hardcode_into_libs=yes
15803 ;;
vlm8f3eb992004-06-17 23:42:48 +000015804 esac
15805 ;;
15806
15807gnu*)
15808 version_type=linux
15809 need_lib_prefix=no
15810 need_version=no
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 shlibpath_var=LD_LIBRARY_PATH
15814 hardcode_into_libs=yes
15815 ;;
15816
15817hpux9* | hpux10* | hpux11*)
15818 # Give a soname corresponding to the major version so that dld.sl refuses to
15819 # link against other versions.
15820 version_type=sunos
15821 need_lib_prefix=no
15822 need_version=no
vlm55681242007-12-03 14:58:39 +000015823 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +000015824 ia64*)
15825 shrext_cmds='.so'
15826 hardcode_into_libs=yes
15827 dynamic_linker="$host_os dld.so"
15828 shlibpath_var=LD_LIBRARY_PATH
15829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15831 soname_spec='${libname}${release}${shared_ext}$major'
15832 if test "X$HPUX_IA64_MODE" = X32; then
15833 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15834 else
15835 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15836 fi
15837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15838 ;;
15839 hppa*64*)
15840 shrext_cmds='.sl'
15841 hardcode_into_libs=yes
15842 dynamic_linker="$host_os dld.sl"
15843 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15846 soname_spec='${libname}${release}${shared_ext}$major'
15847 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15849 ;;
15850 *)
15851 shrext_cmds='.sl'
15852 dynamic_linker="$host_os dld.sl"
15853 shlibpath_var=SHLIB_PATH
15854 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856 soname_spec='${libname}${release}${shared_ext}$major'
15857 ;;
15858 esac
15859 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15860 postinstall_cmds='chmod 555 $lib'
15861 ;;
15862
vlm55681242007-12-03 14:58:39 +000015863interix3*)
15864 version_type=linux
15865 need_lib_prefix=no
15866 need_version=no
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15868 soname_spec='${libname}${release}${shared_ext}$major'
15869 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15870 shlibpath_var=LD_LIBRARY_PATH
15871 shlibpath_overrides_runpath=no
15872 hardcode_into_libs=yes
15873 ;;
15874
vlm8f3eb992004-06-17 23:42:48 +000015875irix5* | irix6* | nonstopux*)
15876 case $host_os in
15877 nonstopux*) version_type=nonstopux ;;
15878 *)
15879 if test "$lt_cv_prog_gnu_ld" = yes; then
15880 version_type=linux
15881 else
15882 version_type=irix
15883 fi ;;
15884 esac
15885 need_lib_prefix=no
15886 need_version=no
15887 soname_spec='${libname}${release}${shared_ext}$major'
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15889 case $host_os in
15890 irix5* | nonstopux*)
15891 libsuff= shlibsuff=
15892 ;;
15893 *)
15894 case $LD in # libtool.m4 will add one of these switches to LD
15895 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15896 libsuff= shlibsuff= libmagic=32-bit;;
15897 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15898 libsuff=32 shlibsuff=N32 libmagic=N32;;
15899 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15900 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15901 *) libsuff= shlibsuff= libmagic=never-match;;
15902 esac
15903 ;;
15904 esac
15905 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15906 shlibpath_overrides_runpath=no
15907 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15908 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15909 hardcode_into_libs=yes
15910 ;;
15911
15912# No shared lib support for Linux oldld, aout, or coff.
15913linux*oldld* | linux*aout* | linux*coff*)
15914 dynamic_linker=no
15915 ;;
15916
15917# This must be Linux ELF.
15918linux*)
15919 version_type=linux
15920 need_lib_prefix=no
15921 need_version=no
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15925 shlibpath_var=LD_LIBRARY_PATH
15926 shlibpath_overrides_runpath=no
15927 # This implies no fast_install, which is unacceptable.
15928 # Some rework will be needed to allow for fast_install
15929 # before this can be enabled.
15930 hardcode_into_libs=yes
15931
15932 # Append ld.so.conf contents to the search path
15933 if test -f /etc/ld.so.conf; then
vlm55681242007-12-03 14:58:39 +000015934 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
vlm8f3eb992004-06-17 23:42:48 +000015935 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15936 fi
15937
15938 # We used to test for /lib/ld.so.1 and disable shared libraries on
15939 # powerpc, because MkLinux only supported shared libraries with the
15940 # GNU dynamic linker. Since this was broken with cross compilers,
15941 # most powerpc-linux boxes support dynamic linking these days and
15942 # people can always --disable-shared, the test was removed, and we
15943 # assume the GNU/Linux dynamic linker is in use.
15944 dynamic_linker='GNU/Linux ld.so'
15945 ;;
15946
15947knetbsd*-gnu)
15948 version_type=linux
15949 need_lib_prefix=no
15950 need_version=no
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15952 soname_spec='${libname}${release}${shared_ext}$major'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=no
15955 hardcode_into_libs=yes
15956 dynamic_linker='GNU ld.so'
15957 ;;
15958
15959netbsd*)
15960 version_type=sunos
15961 need_lib_prefix=no
15962 need_version=no
15963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15966 dynamic_linker='NetBSD (a.out) ld.so'
15967 else
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 dynamic_linker='NetBSD ld.elf_so'
15971 fi
15972 shlibpath_var=LD_LIBRARY_PATH
15973 shlibpath_overrides_runpath=yes
15974 hardcode_into_libs=yes
15975 ;;
15976
15977newsos6)
15978 version_type=linux
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 shlibpath_overrides_runpath=yes
15982 ;;
15983
15984nto-qnx*)
15985 version_type=linux
15986 need_lib_prefix=no
15987 need_version=no
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989 soname_spec='${libname}${release}${shared_ext}$major'
15990 shlibpath_var=LD_LIBRARY_PATH
15991 shlibpath_overrides_runpath=yes
15992 ;;
15993
15994openbsd*)
15995 version_type=sunos
vlm55681242007-12-03 14:58:39 +000015996 sys_lib_dlsearch_path_spec="/usr/lib"
vlm8f3eb992004-06-17 23:42:48 +000015997 need_lib_prefix=no
vlm55681242007-12-03 14:58:39 +000015998 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15999 case $host_os in
16000 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16001 *) need_version=no ;;
16002 esac
vlm8f3eb992004-06-17 23:42:48 +000016003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16007 case $host_os in
16008 openbsd2.[89] | openbsd2.[89].*)
16009 shlibpath_overrides_runpath=no
16010 ;;
16011 *)
16012 shlibpath_overrides_runpath=yes
16013 ;;
16014 esac
16015 else
16016 shlibpath_overrides_runpath=yes
16017 fi
16018 ;;
16019
16020os2*)
16021 libname_spec='$name'
16022 shrext_cmds=".dll"
16023 need_lib_prefix=no
16024 library_names_spec='$libname${shared_ext} $libname.a'
16025 dynamic_linker='OS/2 ld.exe'
16026 shlibpath_var=LIBPATH
16027 ;;
16028
16029osf3* | osf4* | osf5*)
16030 version_type=osf
16031 need_lib_prefix=no
16032 need_version=no
16033 soname_spec='${libname}${release}${shared_ext}$major'
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035 shlibpath_var=LD_LIBRARY_PATH
16036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16037 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16038 ;;
16039
vlm8f3eb992004-06-17 23:42:48 +000016040solaris*)
16041 version_type=linux
16042 need_lib_prefix=no
16043 need_version=no
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045 soname_spec='${libname}${release}${shared_ext}$major'
16046 shlibpath_var=LD_LIBRARY_PATH
16047 shlibpath_overrides_runpath=yes
16048 hardcode_into_libs=yes
16049 # ldd complains unless libraries are executable
16050 postinstall_cmds='chmod +x $lib'
16051 ;;
16052
16053sunos4*)
16054 version_type=sunos
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=yes
16059 if test "$with_gnu_ld" = yes; then
16060 need_lib_prefix=no
16061 fi
16062 need_version=yes
16063 ;;
16064
vlm55681242007-12-03 14:58:39 +000016065sysv4 | sysv4.3*)
vlm8f3eb992004-06-17 23:42:48 +000016066 version_type=linux
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068 soname_spec='${libname}${release}${shared_ext}$major'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 case $host_vendor in
16071 sni)
16072 shlibpath_overrides_runpath=no
16073 need_lib_prefix=no
16074 export_dynamic_flag_spec='${wl}-Blargedynsym'
16075 runpath_var=LD_RUN_PATH
16076 ;;
16077 siemens)
16078 need_lib_prefix=no
16079 ;;
16080 motorola)
16081 need_lib_prefix=no
16082 need_version=no
16083 shlibpath_overrides_runpath=no
16084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16085 ;;
16086 esac
16087 ;;
16088
16089sysv4*MP*)
16090 if test -d /usr/nec ;then
16091 version_type=linux
16092 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16093 soname_spec='$libname${shared_ext}.$major'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 fi
16096 ;;
16097
vlm55681242007-12-03 14:58:39 +000016098sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16099 version_type=freebsd-elf
16100 need_lib_prefix=no
16101 need_version=no
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16103 soname_spec='${libname}${release}${shared_ext}$major'
16104 shlibpath_var=LD_LIBRARY_PATH
16105 hardcode_into_libs=yes
16106 if test "$with_gnu_ld" = yes; then
16107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16108 shlibpath_overrides_runpath=no
16109 else
16110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16111 shlibpath_overrides_runpath=yes
16112 case $host_os in
16113 sco3.2v5*)
16114 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16115 ;;
16116 esac
16117 fi
16118 sys_lib_dlsearch_path_spec='/usr/lib'
16119 ;;
16120
vlm8f3eb992004-06-17 23:42:48 +000016121uts4*)
16122 version_type=linux
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 ;;
16127
16128*)
16129 dynamic_linker=no
16130 ;;
16131esac
vlm83b901d2007-08-27 23:57:45 +000016132{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16133echo "${ECHO_T}$dynamic_linker" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000016134test "$dynamic_linker" = no && can_build_shared=no
16135
vlm55681242007-12-03 14:58:39 +000016136variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16137if test "$GCC" = yes; then
16138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16139fi
16140
vlm83b901d2007-08-27 23:57:45 +000016141{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16142echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000016143hardcode_action_F77=
16144if test -n "$hardcode_libdir_flag_spec_F77" || \
vlm55681242007-12-03 14:58:39 +000016145 test -n "$runpath_var_F77" || \
16146 test "X$hardcode_automatic_F77" = "Xyes" ; then
vlm8f3eb992004-06-17 23:42:48 +000016147
16148 # We can hardcode non-existant directories.
16149 if test "$hardcode_direct_F77" != no &&
16150 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16151 # have to relink, otherwise we might link with an installed library
16152 # when we should be linking with a yet-to-be-installed one
16153 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16154 test "$hardcode_minus_L_F77" != no; then
16155 # Linking always hardcodes the temporary library directory.
16156 hardcode_action_F77=relink
16157 else
16158 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16159 hardcode_action_F77=immediate
16160 fi
16161else
16162 # We cannot hardcode anything, or else we can only hardcode existing
16163 # directories.
16164 hardcode_action_F77=unsupported
16165fi
vlm83b901d2007-08-27 23:57:45 +000016166{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16167echo "${ECHO_T}$hardcode_action_F77" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000016168
16169if test "$hardcode_action_F77" = relink; then
16170 # Fast installation is not supported
16171 enable_fast_install=no
16172elif test "$shlibpath_overrides_runpath" = yes ||
16173 test "$enable_shared" = no; then
16174 # Fast installation is not necessary
16175 enable_fast_install=needless
16176fi
16177
vlm8f3eb992004-06-17 23:42:48 +000016178
16179# The else clause should only fire when bootstrapping the
16180# libtool distribution, otherwise you forgot to ship ltmain.sh
16181# with your package, and you will get complaints that there are
16182# no rules to generate ltmain.sh.
16183if test -f "$ltmain"; then
16184 # See if we are running on zsh, and set the options which allow our commands through
16185 # without removal of \ escapes.
16186 if test -n "${ZSH_VERSION+set}" ; then
16187 setopt NO_GLOB_SUBST
16188 fi
16189 # Now quote all the things that may contain metacharacters while being
16190 # careful not to overquote the AC_SUBSTed values. We take copies of the
16191 # variables and quote the copies for generation of the libtool script.
vlm55681242007-12-03 14:58:39 +000016192 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
vlm8f3eb992004-06-17 23:42:48 +000016193 SED SHELL STRIP \
16194 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16195 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16196 deplibs_check_method reload_flag reload_cmds need_locks \
16197 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16198 lt_cv_sys_global_symbol_to_c_name_address \
16199 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16200 old_postinstall_cmds old_postuninstall_cmds \
16201 compiler_F77 \
16202 CC_F77 \
16203 LD_F77 \
16204 lt_prog_compiler_wl_F77 \
16205 lt_prog_compiler_pic_F77 \
16206 lt_prog_compiler_static_F77 \
16207 lt_prog_compiler_no_builtin_flag_F77 \
16208 export_dynamic_flag_spec_F77 \
16209 thread_safe_flag_spec_F77 \
16210 whole_archive_flag_spec_F77 \
16211 enable_shared_with_static_runtimes_F77 \
16212 old_archive_cmds_F77 \
16213 old_archive_from_new_cmds_F77 \
16214 predep_objects_F77 \
16215 postdep_objects_F77 \
16216 predeps_F77 \
16217 postdeps_F77 \
16218 compiler_lib_search_path_F77 \
16219 archive_cmds_F77 \
16220 archive_expsym_cmds_F77 \
16221 postinstall_cmds_F77 \
16222 postuninstall_cmds_F77 \
16223 old_archive_from_expsyms_cmds_F77 \
16224 allow_undefined_flag_F77 \
16225 no_undefined_flag_F77 \
16226 export_symbols_cmds_F77 \
16227 hardcode_libdir_flag_spec_F77 \
16228 hardcode_libdir_flag_spec_ld_F77 \
16229 hardcode_libdir_separator_F77 \
16230 hardcode_automatic_F77 \
16231 module_cmds_F77 \
16232 module_expsym_cmds_F77 \
16233 lt_cv_prog_compiler_c_o_F77 \
16234 exclude_expsyms_F77 \
16235 include_expsyms_F77; do
16236
16237 case $var in
16238 old_archive_cmds_F77 | \
16239 old_archive_from_new_cmds_F77 | \
16240 archive_cmds_F77 | \
16241 archive_expsym_cmds_F77 | \
16242 module_cmds_F77 | \
16243 module_expsym_cmds_F77 | \
16244 old_archive_from_expsyms_cmds_F77 | \
16245 export_symbols_cmds_F77 | \
16246 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16247 postinstall_cmds | postuninstall_cmds | \
16248 old_postinstall_cmds | old_postuninstall_cmds | \
16249 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16250 # Double-quote double-evaled strings.
16251 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16252 ;;
16253 *)
16254 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16255 ;;
16256 esac
16257 done
16258
16259 case $lt_echo in
16260 *'\$0 --fallback-echo"')
16261 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16262 ;;
16263 esac
16264
16265cfgfile="$ofile"
16266
16267 cat <<__EOF__ >> "$cfgfile"
16268# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16269
16270# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16271
16272# Shell to use when invoking shell scripts.
16273SHELL=$lt_SHELL
16274
16275# Whether or not to build shared libraries.
16276build_libtool_libs=$enable_shared
16277
16278# Whether or not to build static libraries.
16279build_old_libs=$enable_static
16280
16281# Whether or not to add -lc for building shared libraries.
16282build_libtool_need_lc=$archive_cmds_need_lc_F77
16283
16284# Whether or not to disallow shared libs when runtime libs are static
16285allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16286
16287# Whether or not to optimize for fast installation.
16288fast_install=$enable_fast_install
16289
16290# The host system.
16291host_alias=$host_alias
16292host=$host
vlm55681242007-12-03 14:58:39 +000016293host_os=$host_os
16294
16295# The build system.
16296build_alias=$build_alias
16297build=$build
16298build_os=$build_os
vlm8f3eb992004-06-17 23:42:48 +000016299
16300# An echo program that does not interpret backslashes.
16301echo=$lt_echo
16302
16303# The archiver.
16304AR=$lt_AR
16305AR_FLAGS=$lt_AR_FLAGS
16306
16307# A C compiler.
16308LTCC=$lt_LTCC
16309
vlm55681242007-12-03 14:58:39 +000016310# LTCC compiler flags.
16311LTCFLAGS=$lt_LTCFLAGS
16312
vlm8f3eb992004-06-17 23:42:48 +000016313# A language-specific compiler.
16314CC=$lt_compiler_F77
16315
16316# Is the compiler the GNU C compiler?
16317with_gcc=$GCC_F77
16318
16319# An ERE matcher.
16320EGREP=$lt_EGREP
16321
16322# The linker used to build libraries.
16323LD=$lt_LD_F77
16324
16325# Whether we need hard or soft links.
16326LN_S=$lt_LN_S
16327
16328# A BSD-compatible nm program.
16329NM=$lt_NM
16330
16331# A symbol stripping program
16332STRIP=$lt_STRIP
16333
16334# Used to examine libraries when file_magic_cmd begins "file"
16335MAGIC_CMD=$MAGIC_CMD
16336
16337# Used on cygwin: DLL creation program.
16338DLLTOOL="$DLLTOOL"
16339
16340# Used on cygwin: object dumper.
16341OBJDUMP="$OBJDUMP"
16342
16343# Used on cygwin: assembler.
16344AS="$AS"
16345
16346# The name of the directory that contains temporary libtool files.
16347objdir=$objdir
16348
16349# How to create reloadable object files.
16350reload_flag=$lt_reload_flag
16351reload_cmds=$lt_reload_cmds
16352
16353# How to pass a linker flag through the compiler.
16354wl=$lt_lt_prog_compiler_wl_F77
16355
16356# Object file suffix (normally "o").
16357objext="$ac_objext"
16358
16359# Old archive suffix (normally "a").
16360libext="$libext"
16361
16362# Shared library suffix (normally ".so").
16363shrext_cmds='$shrext_cmds'
16364
16365# Executable file suffix (normally "").
16366exeext="$exeext"
16367
16368# Additional compiler flags for building library objects.
16369pic_flag=$lt_lt_prog_compiler_pic_F77
16370pic_mode=$pic_mode
16371
16372# What is the maximum length of a command?
16373max_cmd_len=$lt_cv_sys_max_cmd_len
16374
16375# Does compiler simultaneously support -c and -o options?
16376compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16377
vlm55681242007-12-03 14:58:39 +000016378# Must we lock files when doing compilation?
vlm8f3eb992004-06-17 23:42:48 +000016379need_locks=$lt_need_locks
16380
16381# Do we need the lib prefix for modules?
16382need_lib_prefix=$need_lib_prefix
16383
16384# Do we need a version for libraries?
16385need_version=$need_version
16386
16387# Whether dlopen is supported.
16388dlopen_support=$enable_dlopen
16389
16390# Whether dlopen of programs is supported.
16391dlopen_self=$enable_dlopen_self
16392
16393# Whether dlopen of statically linked programs is supported.
16394dlopen_self_static=$enable_dlopen_self_static
16395
16396# Compiler flag to prevent dynamic linking.
16397link_static_flag=$lt_lt_prog_compiler_static_F77
16398
16399# Compiler flag to turn off builtin functions.
16400no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16401
16402# Compiler flag to allow reflexive dlopens.
16403export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16404
16405# Compiler flag to generate shared objects directly from archives.
16406whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16407
16408# Compiler flag to generate thread-safe objects.
16409thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16410
16411# Library versioning type.
16412version_type=$version_type
16413
16414# Format of library name prefix.
16415libname_spec=$lt_libname_spec
16416
16417# List of archive names. First name is the real one, the rest are links.
16418# The last name is the one that the linker finds with -lNAME.
16419library_names_spec=$lt_library_names_spec
16420
16421# The coded name of the library, if different from the real name.
16422soname_spec=$lt_soname_spec
16423
16424# Commands used to build and install an old-style archive.
16425RANLIB=$lt_RANLIB
16426old_archive_cmds=$lt_old_archive_cmds_F77
16427old_postinstall_cmds=$lt_old_postinstall_cmds
16428old_postuninstall_cmds=$lt_old_postuninstall_cmds
16429
16430# Create an old-style archive from a shared archive.
16431old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16432
16433# Create a temporary old-style archive to link instead of a shared archive.
16434old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16435
16436# Commands used to build and install a shared archive.
16437archive_cmds=$lt_archive_cmds_F77
16438archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16439postinstall_cmds=$lt_postinstall_cmds
16440postuninstall_cmds=$lt_postuninstall_cmds
16441
16442# Commands used to build a loadable module (assumed same as above if empty)
16443module_cmds=$lt_module_cmds_F77
16444module_expsym_cmds=$lt_module_expsym_cmds_F77
16445
16446# Commands to strip libraries.
16447old_striplib=$lt_old_striplib
16448striplib=$lt_striplib
16449
16450# Dependencies to place before the objects being linked to create a
16451# shared library.
16452predep_objects=$lt_predep_objects_F77
16453
16454# Dependencies to place after the objects being linked to create a
16455# shared library.
16456postdep_objects=$lt_postdep_objects_F77
16457
16458# Dependencies to place before the objects being linked to create a
16459# shared library.
16460predeps=$lt_predeps_F77
16461
16462# Dependencies to place after the objects being linked to create a
16463# shared library.
16464postdeps=$lt_postdeps_F77
16465
16466# The library search path used internally by the compiler when linking
16467# a shared library.
16468compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16469
16470# Method to check whether dependent libraries are shared objects.
16471deplibs_check_method=$lt_deplibs_check_method
16472
16473# Command to use when deplibs_check_method == file_magic.
16474file_magic_cmd=$lt_file_magic_cmd
16475
16476# Flag that allows shared libraries with undefined symbols to be built.
16477allow_undefined_flag=$lt_allow_undefined_flag_F77
16478
16479# Flag that forces no undefined symbols.
16480no_undefined_flag=$lt_no_undefined_flag_F77
16481
16482# Commands used to finish a libtool library installation in a directory.
16483finish_cmds=$lt_finish_cmds
16484
16485# Same as above, but a single script fragment to be evaled but not shown.
16486finish_eval=$lt_finish_eval
16487
16488# Take the output of nm and produce a listing of raw symbols and C names.
16489global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16490
16491# Transform the output of nm in a proper C declaration
16492global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16493
16494# Transform the output of nm in a C name address pair
16495global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16496
16497# This is the shared library runtime path variable.
16498runpath_var=$runpath_var
16499
16500# This is the shared library path variable.
16501shlibpath_var=$shlibpath_var
16502
16503# Is shlibpath searched before the hard-coded library search path?
16504shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16505
16506# How to hardcode a shared library path into an executable.
16507hardcode_action=$hardcode_action_F77
16508
16509# Whether we should hardcode library paths into libraries.
16510hardcode_into_libs=$hardcode_into_libs
16511
16512# Flag to hardcode \$libdir into a binary during linking.
16513# This must work even if \$libdir does not exist.
16514hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16515
16516# If ld is used when linking, flag to hardcode \$libdir into
16517# a binary during linking. This must work even if \$libdir does
16518# not exist.
16519hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16520
16521# Whether we need a single -rpath flag with a separated argument.
16522hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16523
16524# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16525# resulting binary.
16526hardcode_direct=$hardcode_direct_F77
16527
16528# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16529# resulting binary.
16530hardcode_minus_L=$hardcode_minus_L_F77
16531
16532# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16533# the resulting binary.
16534hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16535
16536# Set to yes if building a shared library automatically hardcodes DIR into the library
16537# and all subsequent libraries and executables linked against it.
16538hardcode_automatic=$hardcode_automatic_F77
16539
16540# Variables whose values should be saved in libtool wrapper scripts and
16541# restored at relink time.
16542variables_saved_for_relink="$variables_saved_for_relink"
16543
16544# Whether libtool must link a program against all its dependency libraries.
16545link_all_deplibs=$link_all_deplibs_F77
16546
16547# Compile-time system search path for libraries
16548sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16549
16550# Run-time system search path for libraries
16551sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16552
16553# Fix the shell variable \$srcfile for the compiler.
16554fix_srcfile_path="$fix_srcfile_path_F77"
16555
16556# Set to yes if exported symbols are required.
16557always_export_symbols=$always_export_symbols_F77
16558
16559# The commands to list exported symbols.
16560export_symbols_cmds=$lt_export_symbols_cmds_F77
16561
16562# The commands to extract the exported symbol list from a shared archive.
16563extract_expsyms_cmds=$lt_extract_expsyms_cmds
16564
16565# Symbols that should not be listed in the preloaded symbols.
16566exclude_expsyms=$lt_exclude_expsyms_F77
16567
16568# Symbols that must always be exported.
16569include_expsyms=$lt_include_expsyms_F77
16570
16571# ### END LIBTOOL TAG CONFIG: $tagname
16572
16573__EOF__
16574
16575
16576else
16577 # If there is no Makefile yet, we rely on a make rule to execute
16578 # `config.status --recheck' to rerun these tests and create the
16579 # libtool script then.
16580 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16581 if test -f "$ltmain_in"; then
16582 test -f Makefile && make "$ltmain"
16583 fi
16584fi
16585
16586
16587ac_ext=c
16588ac_cpp='$CPP $CPPFLAGS'
16589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16591ac_compiler_gnu=$ac_cv_c_compiler_gnu
16592
16593CC="$lt_save_CC"
16594
16595 else
16596 tagname=""
16597 fi
16598 ;;
16599
16600 GCJ)
16601 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16602
16603
vlm8f3eb992004-06-17 23:42:48 +000016604# Source file extension for Java test sources.
16605ac_ext=java
16606
16607# Object file extension for compiled Java test sources.
16608objext=o
16609objext_GCJ=$objext
16610
16611# Code to be used in simple compile tests
16612lt_simple_compile_test_code="class foo {}\n"
16613
16614# Code to be used in simple link tests
vlm55681242007-12-03 14:58:39 +000016615lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
vlm8f3eb992004-06-17 23:42:48 +000016616
16617# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16618
16619# If no C compiler was specified, use CC.
16620LTCC=${LTCC-"$CC"}
16621
vlm55681242007-12-03 14:58:39 +000016622# If no C compiler flags were specified, use CFLAGS.
16623LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16624
vlm8f3eb992004-06-17 23:42:48 +000016625# Allow CC to be a program name with arguments.
16626compiler=$CC
16627
16628
vlm55681242007-12-03 14:58:39 +000016629# save warnings/boilerplate of simple test code
16630ac_outfile=conftest.$ac_objext
16631printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16632eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16633_lt_compiler_boilerplate=`cat conftest.err`
16634$rm conftest*
16635
16636ac_outfile=conftest.$ac_objext
16637printf "$lt_simple_link_test_code" >conftest.$ac_ext
16638eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16639_lt_linker_boilerplate=`cat conftest.err`
16640$rm conftest*
16641
16642
vlm8f3eb992004-06-17 23:42:48 +000016643# Allow CC to be a program name with arguments.
16644lt_save_CC="$CC"
16645CC=${GCJ-"gcj"}
16646compiler=$CC
16647compiler_GCJ=$CC
vlm55681242007-12-03 14:58:39 +000016648for cc_temp in $compiler""; do
16649 case $cc_temp in
16650 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16651 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16652 \-*) ;;
16653 *) break;;
16654 esac
16655done
16656cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16657
vlm8f3eb992004-06-17 23:42:48 +000016658
16659# GCJ did not exist at the time GCC didn't implicitly link libc in.
16660archive_cmds_need_lc_GCJ=no
16661
vlm55681242007-12-03 14:58:39 +000016662old_archive_cmds_GCJ=$old_archive_cmds
16663
vlm8f3eb992004-06-17 23:42:48 +000016664
16665lt_prog_compiler_no_builtin_flag_GCJ=
16666
16667if test "$GCC" = yes; then
16668 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16669
16670
vlm83b901d2007-08-27 23:57:45 +000016671{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16672echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000016673if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675else
16676 lt_cv_prog_compiler_rtti_exceptions=no
16677 ac_outfile=conftest.$ac_objext
16678 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16679 lt_compiler_flag="-fno-rtti -fno-exceptions"
16680 # Insert the option either (1) after the last *FLAGS variable, or
16681 # (2) before a word containing "conftest.", or (3) at the end.
16682 # Note that $ac_compile itself does not contain backslashes and begins
16683 # with a dollar sign (not a hyphen), so the echo should work correctly.
16684 # The option is referenced via a variable to avoid confusing sed.
16685 lt_compile=`echo "$ac_compile" | $SED \
vlm55681242007-12-03 14:58:39 +000016686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
vlm8f3eb992004-06-17 23:42:48 +000016687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16688 -e 's:$: $lt_compiler_flag:'`
vlm55681242007-12-03 14:58:39 +000016689 (eval echo "\"\$as_me:16689: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000016690 (eval "$lt_compile" 2>conftest.err)
16691 ac_status=$?
16692 cat conftest.err >&5
vlm55681242007-12-03 14:58:39 +000016693 echo "$as_me:16693: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000016694 if (exit $ac_status) && test -s "$ac_outfile"; then
16695 # The compiler can only warn and ignore the option if not recognized
vlm55681242007-12-03 14:58:39 +000016696 # So say no if there are warnings other than the usual output.
16697 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16699 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
vlm8f3eb992004-06-17 23:42:48 +000016700 lt_cv_prog_compiler_rtti_exceptions=yes
16701 fi
16702 fi
16703 $rm conftest*
16704
16705fi
vlm83b901d2007-08-27 23:57:45 +000016706{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16707echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000016708
16709if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16710 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16711else
16712 :
16713fi
16714
16715fi
16716
16717lt_prog_compiler_wl_GCJ=
16718lt_prog_compiler_pic_GCJ=
16719lt_prog_compiler_static_GCJ=
16720
vlm83b901d2007-08-27 23:57:45 +000016721{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16722echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000016723
16724 if test "$GCC" = yes; then
16725 lt_prog_compiler_wl_GCJ='-Wl,'
16726 lt_prog_compiler_static_GCJ='-static'
16727
16728 case $host_os in
16729 aix*)
16730 # All AIX code is PIC.
16731 if test "$host_cpu" = ia64; then
16732 # AIX 5 now supports IA64 processor
16733 lt_prog_compiler_static_GCJ='-Bstatic'
16734 fi
16735 ;;
16736
16737 amigaos*)
16738 # FIXME: we need at least 68020 code to build shared libraries, but
16739 # adding the `-m68020' flag to GCC prevents building anything better,
16740 # like `-m68040'.
16741 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16742 ;;
16743
16744 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16745 # PIC is the default for these OSes.
16746 ;;
16747
16748 mingw* | pw32* | os2*)
16749 # This hack is so that the source file can tell whether it is being
16750 # built for inclusion in a dll (and should export symbols for example).
16751 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16752 ;;
16753
16754 darwin* | rhapsody*)
16755 # PIC is the default on this platform
16756 # Common symbols not allowed in MH_DYLIB files
16757 lt_prog_compiler_pic_GCJ='-fno-common'
16758 ;;
16759
vlm55681242007-12-03 14:58:39 +000016760 interix3*)
16761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16762 # Instead, we relocate shared libraries at runtime.
16763 ;;
16764
vlm8f3eb992004-06-17 23:42:48 +000016765 msdosdjgpp*)
16766 # Just because we use GCC doesn't mean we suddenly get shared libraries
16767 # on systems that don't support them.
16768 lt_prog_compiler_can_build_shared_GCJ=no
16769 enable_shared=no
16770 ;;
16771
16772 sysv4*MP*)
16773 if test -d /usr/nec; then
16774 lt_prog_compiler_pic_GCJ=-Kconform_pic
16775 fi
16776 ;;
16777
16778 hpux*)
16779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16780 # not for PA HP-UX.
vlm55681242007-12-03 14:58:39 +000016781 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +000016782 hppa*64*|ia64*)
16783 # +Z the default
16784 ;;
16785 *)
16786 lt_prog_compiler_pic_GCJ='-fPIC'
16787 ;;
16788 esac
16789 ;;
16790
16791 *)
16792 lt_prog_compiler_pic_GCJ='-fPIC'
16793 ;;
16794 esac
16795 else
16796 # PORTME Check for flag to pass linker flags through the system compiler.
16797 case $host_os in
16798 aix*)
16799 lt_prog_compiler_wl_GCJ='-Wl,'
16800 if test "$host_cpu" = ia64; then
16801 # AIX 5 now supports IA64 processor
16802 lt_prog_compiler_static_GCJ='-Bstatic'
16803 else
16804 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16805 fi
16806 ;;
vlm55681242007-12-03 14:58:39 +000016807 darwin*)
16808 # PIC is the default on this platform
16809 # Common symbols not allowed in MH_DYLIB files
16810 case $cc_basename in
16811 xlc*)
16812 lt_prog_compiler_pic_GCJ='-qnocommon'
16813 lt_prog_compiler_wl_GCJ='-Wl,'
16814 ;;
16815 esac
16816 ;;
vlm8f3eb992004-06-17 23:42:48 +000016817
16818 mingw* | pw32* | os2*)
16819 # This hack is so that the source file can tell whether it is being
16820 # built for inclusion in a dll (and should export symbols for example).
16821 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16822 ;;
16823
16824 hpux9* | hpux10* | hpux11*)
16825 lt_prog_compiler_wl_GCJ='-Wl,'
16826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16827 # not for PA HP-UX.
vlm55681242007-12-03 14:58:39 +000016828 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +000016829 hppa*64*|ia64*)
16830 # +Z the default
16831 ;;
16832 *)
16833 lt_prog_compiler_pic_GCJ='+Z'
16834 ;;
16835 esac
16836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16837 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16838 ;;
16839
16840 irix5* | irix6* | nonstopux*)
16841 lt_prog_compiler_wl_GCJ='-Wl,'
16842 # PIC (with -KPIC) is the default.
16843 lt_prog_compiler_static_GCJ='-non_shared'
16844 ;;
16845
16846 newsos6)
16847 lt_prog_compiler_pic_GCJ='-KPIC'
16848 lt_prog_compiler_static_GCJ='-Bstatic'
16849 ;;
16850
16851 linux*)
vlm55681242007-12-03 14:58:39 +000016852 case $cc_basename in
vlm8f3eb992004-06-17 23:42:48 +000016853 icc* | ecc*)
16854 lt_prog_compiler_wl_GCJ='-Wl,'
16855 lt_prog_compiler_pic_GCJ='-KPIC'
16856 lt_prog_compiler_static_GCJ='-static'
16857 ;;
vlm55681242007-12-03 14:58:39 +000016858 pgcc* | pgf77* | pgf90* | pgf95*)
16859 # Portland Group compilers (*not* the Pentium gcc compiler,
16860 # which looks to be a dead project)
16861 lt_prog_compiler_wl_GCJ='-Wl,'
16862 lt_prog_compiler_pic_GCJ='-fpic'
16863 lt_prog_compiler_static_GCJ='-Bstatic'
16864 ;;
vlm8f3eb992004-06-17 23:42:48 +000016865 ccc*)
16866 lt_prog_compiler_wl_GCJ='-Wl,'
16867 # All Alpha code is PIC.
16868 lt_prog_compiler_static_GCJ='-non_shared'
16869 ;;
16870 esac
16871 ;;
16872
16873 osf3* | osf4* | osf5*)
16874 lt_prog_compiler_wl_GCJ='-Wl,'
16875 # All OSF/1 code is PIC.
16876 lt_prog_compiler_static_GCJ='-non_shared'
16877 ;;
16878
vlm8f3eb992004-06-17 23:42:48 +000016879 solaris*)
vlm8f3eb992004-06-17 23:42:48 +000016880 lt_prog_compiler_pic_GCJ='-KPIC'
16881 lt_prog_compiler_static_GCJ='-Bstatic'
vlm55681242007-12-03 14:58:39 +000016882 case $cc_basename in
16883 f77* | f90* | f95*)
16884 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16885 *)
16886 lt_prog_compiler_wl_GCJ='-Wl,';;
16887 esac
vlm8f3eb992004-06-17 23:42:48 +000016888 ;;
16889
16890 sunos4*)
16891 lt_prog_compiler_wl_GCJ='-Qoption ld '
16892 lt_prog_compiler_pic_GCJ='-PIC'
16893 lt_prog_compiler_static_GCJ='-Bstatic'
16894 ;;
16895
vlm55681242007-12-03 14:58:39 +000016896 sysv4 | sysv4.2uw2* | sysv4.3*)
vlm8f3eb992004-06-17 23:42:48 +000016897 lt_prog_compiler_wl_GCJ='-Wl,'
16898 lt_prog_compiler_pic_GCJ='-KPIC'
16899 lt_prog_compiler_static_GCJ='-Bstatic'
16900 ;;
16901
16902 sysv4*MP*)
16903 if test -d /usr/nec ;then
16904 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16905 lt_prog_compiler_static_GCJ='-Bstatic'
16906 fi
16907 ;;
16908
vlm55681242007-12-03 14:58:39 +000016909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16910 lt_prog_compiler_wl_GCJ='-Wl,'
16911 lt_prog_compiler_pic_GCJ='-KPIC'
16912 lt_prog_compiler_static_GCJ='-Bstatic'
16913 ;;
16914
16915 unicos*)
16916 lt_prog_compiler_wl_GCJ='-Wl,'
16917 lt_prog_compiler_can_build_shared_GCJ=no
16918 ;;
16919
vlm8f3eb992004-06-17 23:42:48 +000016920 uts4*)
16921 lt_prog_compiler_pic_GCJ='-pic'
16922 lt_prog_compiler_static_GCJ='-Bstatic'
16923 ;;
16924
16925 *)
16926 lt_prog_compiler_can_build_shared_GCJ=no
16927 ;;
16928 esac
16929 fi
16930
vlm83b901d2007-08-27 23:57:45 +000016931{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16932echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000016933
16934#
16935# Check to make sure the PIC flag actually works.
16936#
16937if test -n "$lt_prog_compiler_pic_GCJ"; then
16938
vlm83b901d2007-08-27 23:57:45 +000016939{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16940echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000016941if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16942 echo $ECHO_N "(cached) $ECHO_C" >&6
16943else
16944 lt_prog_compiler_pic_works_GCJ=no
16945 ac_outfile=conftest.$ac_objext
16946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16947 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16948 # Insert the option either (1) after the last *FLAGS variable, or
16949 # (2) before a word containing "conftest.", or (3) at the end.
16950 # Note that $ac_compile itself does not contain backslashes and begins
16951 # with a dollar sign (not a hyphen), so the echo should work correctly.
16952 # The option is referenced via a variable to avoid confusing sed.
16953 lt_compile=`echo "$ac_compile" | $SED \
vlm55681242007-12-03 14:58:39 +000016954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
vlm8f3eb992004-06-17 23:42:48 +000016955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16956 -e 's:$: $lt_compiler_flag:'`
vlm55681242007-12-03 14:58:39 +000016957 (eval echo "\"\$as_me:16957: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000016958 (eval "$lt_compile" 2>conftest.err)
16959 ac_status=$?
16960 cat conftest.err >&5
vlm55681242007-12-03 14:58:39 +000016961 echo "$as_me:16961: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000016962 if (exit $ac_status) && test -s "$ac_outfile"; then
16963 # The compiler can only warn and ignore the option if not recognized
vlm55681242007-12-03 14:58:39 +000016964 # So say no if there are warnings other than the usual output.
16965 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
vlm8f3eb992004-06-17 23:42:48 +000016968 lt_prog_compiler_pic_works_GCJ=yes
16969 fi
16970 fi
16971 $rm conftest*
16972
16973fi
vlm83b901d2007-08-27 23:57:45 +000016974{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16975echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000016976
16977if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16978 case $lt_prog_compiler_pic_GCJ in
16979 "" | " "*) ;;
16980 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16981 esac
16982else
16983 lt_prog_compiler_pic_GCJ=
16984 lt_prog_compiler_can_build_shared_GCJ=no
16985fi
16986
16987fi
vlm55681242007-12-03 14:58:39 +000016988case $host_os in
vlm8f3eb992004-06-17 23:42:48 +000016989 # For platforms which do not support PIC, -DPIC is meaningless:
16990 *djgpp*)
16991 lt_prog_compiler_pic_GCJ=
16992 ;;
16993 *)
16994 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16995 ;;
16996esac
16997
vlm55681242007-12-03 14:58:39 +000016998#
16999# Check to make sure the static flag actually works.
17000#
17001wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17002{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17003echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17004if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17006else
17007 lt_prog_compiler_static_works_GCJ=no
17008 save_LDFLAGS="$LDFLAGS"
17009 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17010 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17011 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17012 # The linker can only warn and ignore the option if not recognized
17013 # So say no if there are warnings
17014 if test -s conftest.err; then
17015 # Append any errors to the config.log.
17016 cat conftest.err 1>&5
17017 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17019 if diff conftest.exp conftest.er2 >/dev/null; then
17020 lt_prog_compiler_static_works_GCJ=yes
17021 fi
17022 else
17023 lt_prog_compiler_static_works_GCJ=yes
17024 fi
17025 fi
17026 $rm conftest*
17027 LDFLAGS="$save_LDFLAGS"
17028
17029fi
17030{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17031echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17032
17033if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17034 :
17035else
17036 lt_prog_compiler_static_GCJ=
17037fi
17038
17039
vlm83b901d2007-08-27 23:57:45 +000017040{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17041echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000017042if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17044else
17045 lt_cv_prog_compiler_c_o_GCJ=no
17046 $rm -r conftest 2>/dev/null
17047 mkdir conftest
17048 cd conftest
17049 mkdir out
17050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17051
17052 lt_compiler_flag="-o out/conftest2.$ac_objext"
17053 # Insert the option either (1) after the last *FLAGS variable, or
17054 # (2) before a word containing "conftest.", or (3) at the end.
17055 # Note that $ac_compile itself does not contain backslashes and begins
17056 # with a dollar sign (not a hyphen), so the echo should work correctly.
17057 lt_compile=`echo "$ac_compile" | $SED \
vlm55681242007-12-03 14:58:39 +000017058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
vlm8f3eb992004-06-17 23:42:48 +000017059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17060 -e 's:$: $lt_compiler_flag:'`
vlm55681242007-12-03 14:58:39 +000017061 (eval echo "\"\$as_me:17061: $lt_compile\"" >&5)
vlm8f3eb992004-06-17 23:42:48 +000017062 (eval "$lt_compile" 2>out/conftest.err)
17063 ac_status=$?
17064 cat out/conftest.err >&5
vlm55681242007-12-03 14:58:39 +000017065 echo "$as_me:17065: \$? = $ac_status" >&5
vlm8f3eb992004-06-17 23:42:48 +000017066 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17067 then
17068 # The compiler can only warn and ignore the option if not recognized
17069 # So say no if there are warnings
vlm55681242007-12-03 14:58:39 +000017070 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17071 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17072 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
vlm8f3eb992004-06-17 23:42:48 +000017073 lt_cv_prog_compiler_c_o_GCJ=yes
17074 fi
17075 fi
vlm55681242007-12-03 14:58:39 +000017076 chmod u+w . 2>&5
vlm8f3eb992004-06-17 23:42:48 +000017077 $rm conftest*
17078 # SGI C++ compiler will create directory out/ii_files/ for
17079 # template instantiation
17080 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17081 $rm out/* && rmdir out
17082 cd ..
17083 rmdir conftest
17084 $rm conftest*
17085
17086fi
vlm83b901d2007-08-27 23:57:45 +000017087{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17088echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000017089
17090
17091hard_links="nottested"
17092if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17093 # do not overwrite the value of need_locks provided by the user
vlm83b901d2007-08-27 23:57:45 +000017094 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17095echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000017096 hard_links=yes
17097 $rm conftest*
17098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17099 touch conftest.a
17100 ln conftest.a conftest.b 2>&5 || hard_links=no
17101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
vlm83b901d2007-08-27 23:57:45 +000017102 { echo "$as_me:$LINENO: result: $hard_links" >&5
17103echo "${ECHO_T}$hard_links" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000017104 if test "$hard_links" = no; then
17105 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17106echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17107 need_locks=warn
17108 fi
17109else
17110 need_locks=no
17111fi
17112
vlm83b901d2007-08-27 23:57:45 +000017113{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17114echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000017115
17116 runpath_var=
17117 allow_undefined_flag_GCJ=
17118 enable_shared_with_static_runtimes_GCJ=no
17119 archive_cmds_GCJ=
17120 archive_expsym_cmds_GCJ=
17121 old_archive_From_new_cmds_GCJ=
17122 old_archive_from_expsyms_cmds_GCJ=
17123 export_dynamic_flag_spec_GCJ=
17124 whole_archive_flag_spec_GCJ=
17125 thread_safe_flag_spec_GCJ=
17126 hardcode_libdir_flag_spec_GCJ=
17127 hardcode_libdir_flag_spec_ld_GCJ=
17128 hardcode_libdir_separator_GCJ=
17129 hardcode_direct_GCJ=no
17130 hardcode_minus_L_GCJ=no
17131 hardcode_shlibpath_var_GCJ=unsupported
17132 link_all_deplibs_GCJ=unknown
17133 hardcode_automatic_GCJ=no
17134 module_cmds_GCJ=
17135 module_expsym_cmds_GCJ=
17136 always_export_symbols_GCJ=no
17137 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17138 # include_expsyms should be a list of space-separated symbols to be *always*
17139 # included in the symbol list
17140 include_expsyms_GCJ=
17141 # exclude_expsyms can be an extended regexp of symbols to exclude
17142 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17143 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17144 # as well as any symbol that contains `d'.
17145 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17146 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17147 # platforms (ab)use it in PIC code, but their linkers get confused if
17148 # the symbol is explicitly referenced. Since portable code cannot
17149 # rely on this symbol name, it's probably fine to never include it in
17150 # preloaded symbol tables.
17151 extract_expsyms_cmds=
vlm55681242007-12-03 14:58:39 +000017152 # Just being paranoid about ensuring that cc_basename is set.
17153 for cc_temp in $compiler""; do
17154 case $cc_temp in
17155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17157 \-*) ;;
17158 *) break;;
17159 esac
17160done
17161cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vlm8f3eb992004-06-17 23:42:48 +000017162
17163 case $host_os in
17164 cygwin* | mingw* | pw32*)
17165 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17166 # When not using gcc, we currently assume that we are using
17167 # Microsoft Visual C++.
17168 if test "$GCC" != yes; then
17169 with_gnu_ld=no
17170 fi
17171 ;;
vlm55681242007-12-03 14:58:39 +000017172 interix*)
17173 # we just hope/assume this is gcc and not c89 (= MSVC++)
17174 with_gnu_ld=yes
17175 ;;
vlm8f3eb992004-06-17 23:42:48 +000017176 openbsd*)
17177 with_gnu_ld=no
17178 ;;
17179 esac
17180
17181 ld_shlibs_GCJ=yes
17182 if test "$with_gnu_ld" = yes; then
17183 # If archive_cmds runs LD, not CC, wlarc should be empty
17184 wlarc='${wl}'
17185
vlm55681242007-12-03 14:58:39 +000017186 # Set some defaults for GNU ld with shared library support. These
17187 # are reset later if shared libraries are not supported. Putting them
17188 # here allows them to be overridden if necessary.
17189 runpath_var=LD_RUN_PATH
17190 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17191 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17192 # ancient GNU ld didn't support --whole-archive et. al.
17193 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17194 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17195 else
17196 whole_archive_flag_spec_GCJ=
17197 fi
17198 supports_anon_versioning=no
17199 case `$LD -v 2>/dev/null` in
17200 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17201 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17202 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17203 *\ 2.11.*) ;; # other 2.11 versions
17204 *) supports_anon_versioning=yes ;;
17205 esac
17206
vlm8f3eb992004-06-17 23:42:48 +000017207 # See if GNU ld supports shared libraries.
17208 case $host_os in
17209 aix3* | aix4* | aix5*)
17210 # On AIX/PPC, the GNU linker is very broken
17211 if test "$host_cpu" != ia64; then
17212 ld_shlibs_GCJ=no
17213 cat <<EOF 1>&2
17214
17215*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17216*** to be unable to reliably create shared libraries on AIX.
17217*** Therefore, libtool is disabling shared libraries support. If you
17218*** really care for shared libraries, you may want to modify your PATH
17219*** so that a non-GNU linker is found, and then restart.
17220
17221EOF
17222 fi
17223 ;;
17224
17225 amigaos*)
17226 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)'
17227 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17228 hardcode_minus_L_GCJ=yes
17229
17230 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17231 # that the semantics of dynamic libraries on AmigaOS, at least up
17232 # to version 4, is to share data among multiple programs linked
17233 # with the same dynamic library. Since this doesn't match the
17234 # behavior of shared libraries on other platforms, we can't use
17235 # them.
17236 ld_shlibs_GCJ=no
17237 ;;
17238
17239 beos*)
17240 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17241 allow_undefined_flag_GCJ=unsupported
17242 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17243 # support --undefined. This deserves some investigation. FIXME
17244 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17245 else
17246 ld_shlibs_GCJ=no
17247 fi
17248 ;;
17249
17250 cygwin* | mingw* | pw32*)
17251 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17252 # as there is no search path for DLLs.
17253 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17254 allow_undefined_flag_GCJ=unsupported
17255 always_export_symbols_GCJ=no
17256 enable_shared_with_static_runtimes_GCJ=yes
vlm55681242007-12-03 14:58:39 +000017257 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
vlm8f3eb992004-06-17 23:42:48 +000017258
17259 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vlm55681242007-12-03 14:58:39 +000017260 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
vlm8f3eb992004-06-17 23:42:48 +000017261 # If the export-symbols file already is a .def file (1st line
17262 # is EXPORTS), use it as is; otherwise, prepend...
17263 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17264 cp $export_symbols $output_objdir/$soname.def;
17265 else
17266 echo EXPORTS > $output_objdir/$soname.def;
17267 cat $export_symbols >> $output_objdir/$soname.def;
17268 fi~
vlm55681242007-12-03 14:58:39 +000017269 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
vlm8f3eb992004-06-17 23:42:48 +000017270 else
vlm55681242007-12-03 14:58:39 +000017271 ld_shlibs_GCJ=no
17272 fi
17273 ;;
17274
17275 interix3*)
17276 hardcode_direct_GCJ=no
17277 hardcode_shlibpath_var_GCJ=no
17278 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17279 export_dynamic_flag_spec_GCJ='${wl}-E'
17280 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17281 # Instead, shared libraries are loaded at an image base (0x10000000 by
17282 # default) and relocated if they conflict, which is a slow very memory
17283 # consuming and fragmenting process. To avoid this, we pick a random,
17284 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17285 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17286 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17287 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17288 ;;
17289
17290 linux*)
17291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17292 tmp_addflag=
17293 case $cc_basename,$host_cpu in
17294 pgcc*) # Portland Group C compiler
17295 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17296 tmp_addflag=' $pic_flag'
17297 ;;
17298 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17299 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17300 tmp_addflag=' $pic_flag -Mnomain' ;;
17301 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17302 tmp_addflag=' -i_dynamic' ;;
17303 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17304 tmp_addflag=' -i_dynamic -nofor_main' ;;
17305 ifc* | ifort*) # Intel Fortran compiler
17306 tmp_addflag=' -nofor_main' ;;
17307 esac
17308 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17309
17310 if test $supports_anon_versioning = yes; then
17311 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17313 $echo "local: *; };" >> $output_objdir/$libname.ver~
17314 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17315 fi
17316 else
17317 ld_shlibs_GCJ=no
vlm8f3eb992004-06-17 23:42:48 +000017318 fi
17319 ;;
17320
17321 netbsd*)
17322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17323 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17324 wlarc=
17325 else
17326 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17327 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17328 fi
17329 ;;
17330
vlm55681242007-12-03 14:58:39 +000017331 solaris*)
vlm8f3eb992004-06-17 23:42:48 +000017332 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17333 ld_shlibs_GCJ=no
17334 cat <<EOF 1>&2
17335
17336*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17337*** create shared libraries on Solaris systems. Therefore, libtool
17338*** is disabling shared libraries support. We urge you to upgrade GNU
17339*** binutils to release 2.9.1 or newer. Another option is to modify
17340*** your PATH or compiler configuration so that the native linker is
17341*** used, and then restart.
17342
17343EOF
17344 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17345 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17346 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17347 else
17348 ld_shlibs_GCJ=no
17349 fi
17350 ;;
17351
vlm55681242007-12-03 14:58:39 +000017352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17353 case `$LD -v 2>&1` in
17354 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17355 ld_shlibs_GCJ=no
17356 cat <<_LT_EOF 1>&2
17357
17358*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17359*** reliably create shared libraries on SCO systems. Therefore, libtool
17360*** is disabling shared libraries support. We urge you to upgrade GNU
17361*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17362*** your PATH or compiler configuration so that the native linker is
17363*** used, and then restart.
17364
17365_LT_EOF
17366 ;;
17367 *)
17368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17369 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17371 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17372 else
17373 ld_shlibs_GCJ=no
17374 fi
17375 ;;
17376 esac
17377 ;;
17378
vlm8f3eb992004-06-17 23:42:48 +000017379 sunos4*)
17380 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17381 wlarc=
17382 hardcode_direct_GCJ=yes
17383 hardcode_shlibpath_var_GCJ=no
17384 ;;
17385
vlm8f3eb992004-06-17 23:42:48 +000017386 *)
17387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17388 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17389 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17390 else
17391 ld_shlibs_GCJ=no
17392 fi
17393 ;;
17394 esac
17395
vlm55681242007-12-03 14:58:39 +000017396 if test "$ld_shlibs_GCJ" = no; then
17397 runpath_var=
17398 hardcode_libdir_flag_spec_GCJ=
17399 export_dynamic_flag_spec_GCJ=
17400 whole_archive_flag_spec_GCJ=
vlm8f3eb992004-06-17 23:42:48 +000017401 fi
17402 else
17403 # PORTME fill in a description of your system's linker (not GNU ld)
17404 case $host_os in
17405 aix3*)
17406 allow_undefined_flag_GCJ=unsupported
17407 always_export_symbols_GCJ=yes
17408 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'
17409 # Note: this linker hardcodes the directories in LIBPATH if there
17410 # are no directories specified by -L.
17411 hardcode_minus_L_GCJ=yes
vlm55681242007-12-03 14:58:39 +000017412 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
vlm8f3eb992004-06-17 23:42:48 +000017413 # Neither direct hardcoding nor static linking is supported with a
17414 # broken collect2.
17415 hardcode_direct_GCJ=unsupported
17416 fi
17417 ;;
17418
17419 aix4* | aix5*)
17420 if test "$host_cpu" = ia64; then
17421 # On IA64, the linker does run time linking by default, so we don't
17422 # have to do anything special.
17423 aix_use_runtimelinking=no
17424 exp_sym_flag='-Bexport'
17425 no_entry_flag=""
17426 else
17427 # If we're using GNU nm, then we don't want the "-C" option.
17428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17429 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17430 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'
17431 else
17432 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'
17433 fi
17434 aix_use_runtimelinking=no
17435
17436 # Test if we are trying to use run time linking or normal
17437 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17438 # need to do runtime linking.
17439 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17440 for ld_flag in $LDFLAGS; do
17441 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17442 aix_use_runtimelinking=yes
17443 break
17444 fi
17445 done
vlm55681242007-12-03 14:58:39 +000017446 ;;
vlm8f3eb992004-06-17 23:42:48 +000017447 esac
17448
17449 exp_sym_flag='-bexport'
17450 no_entry_flag='-bnoentry'
17451 fi
17452
17453 # When large executables or shared objects are built, AIX ld can
17454 # have problems creating the table of contents. If linking a library
17455 # or program results in "error TOC overflow" add -mminimal-toc to
17456 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17457 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17458
17459 archive_cmds_GCJ=''
17460 hardcode_direct_GCJ=yes
17461 hardcode_libdir_separator_GCJ=':'
17462 link_all_deplibs_GCJ=yes
17463
17464 if test "$GCC" = yes; then
vlm55681242007-12-03 14:58:39 +000017465 case $host_os in aix4.[012]|aix4.[012].*)
vlm8f3eb992004-06-17 23:42:48 +000017466 # We only want to do this on AIX 4.2 and lower, the check
17467 # below for broken collect2 doesn't work under 4.3+
17468 collect2name=`${CC} -print-prog-name=collect2`
17469 if test -f "$collect2name" && \
17470 strings "$collect2name" | grep resolve_lib_name >/dev/null
17471 then
17472 # We have reworked collect2
17473 hardcode_direct_GCJ=yes
17474 else
17475 # We have old collect2
17476 hardcode_direct_GCJ=unsupported
17477 # It fails to find uninstalled libraries when the uninstalled
17478 # path is not listed in the libpath. Setting hardcode_minus_L
17479 # to unsupported forces relinking
17480 hardcode_minus_L_GCJ=yes
17481 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17482 hardcode_libdir_separator_GCJ=
17483 fi
vlm55681242007-12-03 14:58:39 +000017484 ;;
vlm8f3eb992004-06-17 23:42:48 +000017485 esac
17486 shared_flag='-shared'
vlm55681242007-12-03 14:58:39 +000017487 if test "$aix_use_runtimelinking" = yes; then
17488 shared_flag="$shared_flag "'${wl}-G'
17489 fi
vlm8f3eb992004-06-17 23:42:48 +000017490 else
17491 # not using gcc
17492 if test "$host_cpu" = ia64; then
17493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17494 # chokes on -Wl,-G. The following line is correct:
17495 shared_flag='-G'
17496 else
vlm55681242007-12-03 14:58:39 +000017497 if test "$aix_use_runtimelinking" = yes; then
vlm8f3eb992004-06-17 23:42:48 +000017498 shared_flag='${wl}-G'
17499 else
17500 shared_flag='${wl}-bM:SRE'
vlm55681242007-12-03 14:58:39 +000017501 fi
vlm8f3eb992004-06-17 23:42:48 +000017502 fi
17503 fi
17504
17505 # It seems that -bexpall does not export symbols beginning with
17506 # underscore (_), so it is better to generate a list of symbols to export.
17507 always_export_symbols_GCJ=yes
17508 if test "$aix_use_runtimelinking" = yes; then
17509 # Warning - without using the other runtime loading flags (-brtl),
17510 # -berok will link without error, but may produce a broken library.
17511 allow_undefined_flag_GCJ='-berok'
17512 # Determine the default libpath from the value encoded in an empty executable.
17513 cat >conftest.$ac_ext <<_ACEOF
17514/* confdefs.h. */
17515_ACEOF
17516cat confdefs.h >>conftest.$ac_ext
17517cat >>conftest.$ac_ext <<_ACEOF
17518/* end confdefs.h. */
17519
17520int
17521main ()
17522{
17523
17524 ;
17525 return 0;
17526}
17527_ACEOF
17528rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000017529if { (ac_try="$ac_link"
17530case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533esac
17534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +000017536 ac_status=$?
17537 grep -v '^ *+' conftest.er1 >conftest.err
17538 rm -f conftest.er1
17539 cat conftest.err >&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000017542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17543 { (case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546esac
17547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000017549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000017553 { (case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17556esac
17557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000017559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; }; then
17562
17563aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17564}'`
17565# Check for a 64-bit object if we didn't find anything.
17566if 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; }
17567}'`; fi
17568else
17569 echo "$as_me: failed program was:" >&5
17570sed 's/^/| /' conftest.$ac_ext >&5
17571
vlm83b901d2007-08-27 23:57:45 +000017572
vlm8f3eb992004-06-17 23:42:48 +000017573fi
vlm83b901d2007-08-27 23:57:45 +000017574
17575rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000017576 conftest$ac_exeext conftest.$ac_ext
17577if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17578
17579 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
vlm55681242007-12-03 14:58:39 +000017580 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
vlm8f3eb992004-06-17 23:42:48 +000017581 else
17582 if test "$host_cpu" = ia64; then
17583 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17584 allow_undefined_flag_GCJ="-z nodefs"
vlm55681242007-12-03 14:58:39 +000017585 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
vlm8f3eb992004-06-17 23:42:48 +000017586 else
17587 # Determine the default libpath from the value encoded in an empty executable.
17588 cat >conftest.$ac_ext <<_ACEOF
17589/* confdefs.h. */
17590_ACEOF
17591cat confdefs.h >>conftest.$ac_ext
17592cat >>conftest.$ac_ext <<_ACEOF
17593/* end confdefs.h. */
17594
17595int
17596main ()
17597{
17598
17599 ;
17600 return 0;
17601}
17602_ACEOF
17603rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000017604if { (ac_try="$ac_link"
17605case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17608esac
17609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_link") 2>conftest.er1
vlm8f3eb992004-06-17 23:42:48 +000017611 ac_status=$?
17612 grep -v '^ *+' conftest.er1 >conftest.err
17613 rm -f conftest.er1
17614 cat conftest.err >&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000017617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17618 { (case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621esac
17622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000017624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; } &&
17627 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000017628 { (case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17631esac
17632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000017634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637
17638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17639}'`
17640# Check for a 64-bit object if we didn't find anything.
17641if 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; }
17642}'`; fi
17643else
17644 echo "$as_me: failed program was:" >&5
17645sed 's/^/| /' conftest.$ac_ext >&5
17646
vlm83b901d2007-08-27 23:57:45 +000017647
vlm8f3eb992004-06-17 23:42:48 +000017648fi
vlm83b901d2007-08-27 23:57:45 +000017649
17650rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000017651 conftest$ac_exeext conftest.$ac_ext
17652if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17653
17654 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17655 # Warning - without using the other run time loading flags,
17656 # -berok will link without error, but may produce a broken library.
17657 no_undefined_flag_GCJ=' ${wl}-bernotok'
17658 allow_undefined_flag_GCJ=' ${wl}-berok'
vlm8f3eb992004-06-17 23:42:48 +000017659 # Exported symbols can be pulled into shared objects from archives
vlm55681242007-12-03 14:58:39 +000017660 whole_archive_flag_spec_GCJ='$convenience'
vlm8f3eb992004-06-17 23:42:48 +000017661 archive_cmds_need_lc_GCJ=yes
vlm55681242007-12-03 14:58:39 +000017662 # This is similar to how AIX traditionally builds its shared libraries.
17663 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
vlm8f3eb992004-06-17 23:42:48 +000017664 fi
17665 fi
17666 ;;
17667
17668 amigaos*)
17669 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)'
17670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17671 hardcode_minus_L_GCJ=yes
17672 # see comment about different semantics on the GNU ld section
17673 ld_shlibs_GCJ=no
17674 ;;
17675
vlm55681242007-12-03 14:58:39 +000017676 bsdi[45]*)
vlm8f3eb992004-06-17 23:42:48 +000017677 export_dynamic_flag_spec_GCJ=-rdynamic
17678 ;;
17679
17680 cygwin* | mingw* | pw32*)
17681 # When not using gcc, we currently assume that we are using
17682 # Microsoft Visual C++.
17683 # hardcode_libdir_flag_spec is actually meaningless, as there is
17684 # no search path for DLLs.
17685 hardcode_libdir_flag_spec_GCJ=' '
17686 allow_undefined_flag_GCJ=unsupported
17687 # Tell ltmain to make .lib files, not .a files.
17688 libext=lib
17689 # Tell ltmain to make .dll files, not .so files.
17690 shrext_cmds=".dll"
17691 # FIXME: Setting linknames here is a bad hack.
17692 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17693 # The linker will automatically build a .lib file if we build a DLL.
17694 old_archive_From_new_cmds_GCJ='true'
17695 # FIXME: Should let the user specify the lib program.
17696 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
vlm55681242007-12-03 14:58:39 +000017697 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
vlm8f3eb992004-06-17 23:42:48 +000017698 enable_shared_with_static_runtimes_GCJ=yes
17699 ;;
17700
17701 darwin* | rhapsody*)
vlm55681242007-12-03 14:58:39 +000017702 case $host_os in
17703 rhapsody* | darwin1.[012])
17704 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17705 ;;
17706 *) # Darwin 1.3 on
17707 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17708 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17709 else
17710 case ${MACOSX_DEPLOYMENT_TARGET} in
17711 10.[012])
17712 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17713 ;;
17714 10.*)
17715 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17716 ;;
17717 esac
17718 fi
17719 ;;
vlm8f3eb992004-06-17 23:42:48 +000017720 esac
vlm55681242007-12-03 14:58:39 +000017721 archive_cmds_need_lc_GCJ=no
vlm8f3eb992004-06-17 23:42:48 +000017722 hardcode_direct_GCJ=no
17723 hardcode_automatic_GCJ=yes
17724 hardcode_shlibpath_var_GCJ=unsupported
vlm55681242007-12-03 14:58:39 +000017725 whole_archive_flag_spec_GCJ=''
vlm8f3eb992004-06-17 23:42:48 +000017726 link_all_deplibs_GCJ=yes
vlm55681242007-12-03 14:58:39 +000017727 if test "$GCC" = yes ; then
17728 output_verbose_link_cmd='echo'
17729 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17730 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17732 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17733 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}'
vlm8f3eb992004-06-17 23:42:48 +000017734 else
vlm55681242007-12-03 14:58:39 +000017735 case $cc_basename in
17736 xlc*)
17737 output_verbose_link_cmd='echo'
17738 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17739 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17741 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17742 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}'
17743 ;;
17744 *)
17745 ld_shlibs_GCJ=no
17746 ;;
17747 esac
vlm8f3eb992004-06-17 23:42:48 +000017748 fi
17749 ;;
17750
17751 dgux*)
17752 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17754 hardcode_shlibpath_var_GCJ=no
17755 ;;
17756
17757 freebsd1*)
17758 ld_shlibs_GCJ=no
17759 ;;
17760
17761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17762 # support. Future versions do this automatically, but an explicit c++rt0.o
17763 # does not break anything, and helps significantly (at the cost of a little
17764 # extra space).
17765 freebsd2.2*)
17766 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17767 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17768 hardcode_direct_GCJ=yes
17769 hardcode_shlibpath_var_GCJ=no
17770 ;;
17771
17772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17773 freebsd2*)
17774 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17775 hardcode_direct_GCJ=yes
17776 hardcode_minus_L_GCJ=yes
17777 hardcode_shlibpath_var_GCJ=no
17778 ;;
17779
17780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vlm55681242007-12-03 14:58:39 +000017781 freebsd* | kfreebsd*-gnu | dragonfly*)
vlm8f3eb992004-06-17 23:42:48 +000017782 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17783 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17784 hardcode_direct_GCJ=yes
17785 hardcode_shlibpath_var_GCJ=no
17786 ;;
17787
17788 hpux9*)
17789 if test "$GCC" = yes; then
17790 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'
17791 else
17792 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'
17793 fi
17794 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17795 hardcode_libdir_separator_GCJ=:
17796 hardcode_direct_GCJ=yes
17797
17798 # hardcode_minus_L: Not really in the search PATH,
17799 # but as the default location of the library.
17800 hardcode_minus_L_GCJ=yes
17801 export_dynamic_flag_spec_GCJ='${wl}-E'
17802 ;;
17803
vlm55681242007-12-03 14:58:39 +000017804 hpux10*)
vlm8f3eb992004-06-17 23:42:48 +000017805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vlm55681242007-12-03 14:58:39 +000017806 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17807 else
17808 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17809 fi
17810 if test "$with_gnu_ld" = no; then
17811 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17812 hardcode_libdir_separator_GCJ=:
17813
17814 hardcode_direct_GCJ=yes
17815 export_dynamic_flag_spec_GCJ='${wl}-E'
17816
17817 # hardcode_minus_L: Not really in the search PATH,
17818 # but as the default location of the library.
17819 hardcode_minus_L_GCJ=yes
17820 fi
17821 ;;
17822
17823 hpux11*)
17824 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17825 case $host_cpu in
17826 hppa*64*)
vlm8f3eb992004-06-17 23:42:48 +000017827 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828 ;;
vlm55681242007-12-03 14:58:39 +000017829 ia64*)
17830 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17831 ;;
vlm8f3eb992004-06-17 23:42:48 +000017832 *)
17833 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17834 ;;
17835 esac
17836 else
vlm55681242007-12-03 14:58:39 +000017837 case $host_cpu in
17838 hppa*64*)
17839 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17840 ;;
17841 ia64*)
17842 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000017843 ;;
17844 *)
vlm55681242007-12-03 14:58:39 +000017845 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000017846 ;;
17847 esac
17848 fi
17849 if test "$with_gnu_ld" = no; then
vlm55681242007-12-03 14:58:39 +000017850 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17851 hardcode_libdir_separator_GCJ=:
vlm8f3eb992004-06-17 23:42:48 +000017852
vlm55681242007-12-03 14:58:39 +000017853 case $host_cpu in
17854 hppa*64*|ia64*)
17855 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17856 hardcode_direct_GCJ=no
17857 hardcode_shlibpath_var_GCJ=no
vlm8f3eb992004-06-17 23:42:48 +000017858 ;;
17859 *)
vlm8f3eb992004-06-17 23:42:48 +000017860 hardcode_direct_GCJ=yes
17861 export_dynamic_flag_spec_GCJ='${wl}-E'
17862
17863 # hardcode_minus_L: Not really in the search PATH,
17864 # but as the default location of the library.
17865 hardcode_minus_L_GCJ=yes
17866 ;;
17867 esac
17868 fi
17869 ;;
17870
17871 irix5* | irix6* | nonstopux*)
17872 if test "$GCC" = yes; then
17873 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'
17874 else
17875 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'
17876 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17877 fi
17878 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17879 hardcode_libdir_separator_GCJ=:
17880 link_all_deplibs_GCJ=yes
17881 ;;
17882
17883 netbsd*)
17884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17885 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17886 else
17887 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17888 fi
17889 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17890 hardcode_direct_GCJ=yes
17891 hardcode_shlibpath_var_GCJ=no
17892 ;;
17893
17894 newsos6)
17895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17896 hardcode_direct_GCJ=yes
17897 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17898 hardcode_libdir_separator_GCJ=:
17899 hardcode_shlibpath_var_GCJ=no
17900 ;;
17901
17902 openbsd*)
17903 hardcode_direct_GCJ=yes
17904 hardcode_shlibpath_var_GCJ=no
17905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17906 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vlm55681242007-12-03 14:58:39 +000017907 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
vlm8f3eb992004-06-17 23:42:48 +000017908 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17909 export_dynamic_flag_spec_GCJ='${wl}-E'
17910 else
17911 case $host_os in
17912 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17913 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17914 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17915 ;;
17916 *)
17917 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17918 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17919 ;;
17920 esac
17921 fi
17922 ;;
17923
17924 os2*)
17925 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17926 hardcode_minus_L_GCJ=yes
17927 allow_undefined_flag_GCJ=unsupported
17928 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'
17929 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17930 ;;
17931
17932 osf3*)
17933 if test "$GCC" = yes; then
17934 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17935 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'
17936 else
17937 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17938 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'
17939 fi
17940 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17941 hardcode_libdir_separator_GCJ=:
17942 ;;
17943
17944 osf4* | osf5*) # as osf3* with the addition of -msym flag
17945 if test "$GCC" = yes; then
17946 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17947 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'
17948 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17949 else
17950 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17951 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'
17952 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~
vlm55681242007-12-03 14:58:39 +000017953 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
vlm8f3eb992004-06-17 23:42:48 +000017954
17955 # Both c and cxx compiler support -rpath directly
17956 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17957 fi
17958 hardcode_libdir_separator_GCJ=:
17959 ;;
17960
vlm8f3eb992004-06-17 23:42:48 +000017961 solaris*)
17962 no_undefined_flag_GCJ=' -z text'
17963 if test "$GCC" = yes; then
vlm55681242007-12-03 14:58:39 +000017964 wlarc='${wl}'
vlm8f3eb992004-06-17 23:42:48 +000017965 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17966 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17967 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17968 else
vlm55681242007-12-03 14:58:39 +000017969 wlarc=''
vlm8f3eb992004-06-17 23:42:48 +000017970 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17971 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17973 fi
17974 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17975 hardcode_shlibpath_var_GCJ=no
17976 case $host_os in
17977 solaris2.[0-5] | solaris2.[0-5].*) ;;
vlm55681242007-12-03 14:58:39 +000017978 *)
17979 # The compiler driver will combine linker options so we
17980 # cannot just pass the convience library names through
17981 # without $wl, iff we do not link with $LD.
17982 # Luckily, gcc supports the same syntax we need for Sun Studio.
17983 # Supported since Solaris 2.6 (maybe 2.5.1?)
17984 case $wlarc in
17985 '')
17986 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17987 *)
17988 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17989 esac ;;
vlm8f3eb992004-06-17 23:42:48 +000017990 esac
17991 link_all_deplibs_GCJ=yes
17992 ;;
17993
17994 sunos4*)
17995 if test "x$host_vendor" = xsequent; then
17996 # Use $CC to link under sequent, because it throws in some extra .o
17997 # files that make .init and .fini sections work.
17998 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17999 else
18000 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18001 fi
18002 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18003 hardcode_direct_GCJ=yes
18004 hardcode_minus_L_GCJ=yes
18005 hardcode_shlibpath_var_GCJ=no
18006 ;;
18007
18008 sysv4)
18009 case $host_vendor in
18010 sni)
18011 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18012 hardcode_direct_GCJ=yes # is this really true???
18013 ;;
18014 siemens)
18015 ## LD is ld it makes a PLAMLIB
18016 ## CC just makes a GrossModule.
18017 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18018 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18019 hardcode_direct_GCJ=no
18020 ;;
18021 motorola)
18022 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18023 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18024 ;;
18025 esac
18026 runpath_var='LD_RUN_PATH'
18027 hardcode_shlibpath_var_GCJ=no
18028 ;;
18029
18030 sysv4.3*)
18031 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18032 hardcode_shlibpath_var_GCJ=no
18033 export_dynamic_flag_spec_GCJ='-Bexport'
18034 ;;
18035
18036 sysv4*MP*)
18037 if test -d /usr/nec; then
18038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18039 hardcode_shlibpath_var_GCJ=no
18040 runpath_var=LD_RUN_PATH
18041 hardcode_runpath_var=yes
18042 ld_shlibs_GCJ=yes
18043 fi
18044 ;;
18045
vlm55681242007-12-03 14:58:39 +000018046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18047 no_undefined_flag_GCJ='${wl}-z,text'
18048 archive_cmds_need_lc_GCJ=no
vlm8f3eb992004-06-17 23:42:48 +000018049 hardcode_shlibpath_var_GCJ=no
vlm55681242007-12-03 14:58:39 +000018050 runpath_var='LD_RUN_PATH'
vlm8f3eb992004-06-17 23:42:48 +000018051
vlm8f3eb992004-06-17 23:42:48 +000018052 if test "$GCC" = yes; then
vlm55681242007-12-03 14:58:39 +000018053 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18054 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000018055 else
vlm55681242007-12-03 14:58:39 +000018056 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18057 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vlm8f3eb992004-06-17 23:42:48 +000018058 fi
vlm8f3eb992004-06-17 23:42:48 +000018059 ;;
18060
vlm55681242007-12-03 14:58:39 +000018061 sysv5* | sco3.2v5* | sco5v6*)
18062 # Note: We can NOT use -z defs as we might desire, because we do not
18063 # link with -lc, and that would cause any symbols used from libc to
18064 # always be unresolved, which means just about no library would
18065 # ever link correctly. If we're not using GNU ld we use -z text
18066 # though, which does catch some bad symbols but isn't as heavy-handed
18067 # as -z defs.
18068 no_undefined_flag_GCJ='${wl}-z,text'
18069 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18070 archive_cmds_need_lc_GCJ=no
vlm8f3eb992004-06-17 23:42:48 +000018071 hardcode_shlibpath_var_GCJ=no
vlm55681242007-12-03 14:58:39 +000018072 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18073 hardcode_libdir_separator_GCJ=':'
18074 link_all_deplibs_GCJ=yes
18075 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
vlm8f3eb992004-06-17 23:42:48 +000018076 runpath_var='LD_RUN_PATH'
vlm55681242007-12-03 14:58:39 +000018077
18078 if test "$GCC" = yes; then
18079 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18080 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18081 else
18082 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18083 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18084 fi
vlm8f3eb992004-06-17 23:42:48 +000018085 ;;
18086
18087 uts4*)
18088 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18089 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18090 hardcode_shlibpath_var_GCJ=no
18091 ;;
18092
18093 *)
18094 ld_shlibs_GCJ=no
18095 ;;
18096 esac
18097 fi
18098
vlm83b901d2007-08-27 23:57:45 +000018099{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18100echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000018101test "$ld_shlibs_GCJ" = no && can_build_shared=no
18102
vlm8f3eb992004-06-17 23:42:48 +000018103#
18104# Do we need to explicitly link libc?
18105#
18106case "x$archive_cmds_need_lc_GCJ" in
18107x|xyes)
18108 # Assume -lc should be added
18109 archive_cmds_need_lc_GCJ=yes
18110
18111 if test "$enable_shared" = yes && test "$GCC" = yes; then
18112 case $archive_cmds_GCJ in
18113 *'~'*)
18114 # FIXME: we may have to deal with multi-command sequences.
18115 ;;
18116 '$CC '*)
18117 # Test whether the compiler implicitly links with -lc since on some
18118 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18119 # to ld, don't add -lc before -lgcc.
vlm83b901d2007-08-27 23:57:45 +000018120 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18121echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000018122 $rm conftest*
18123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18124
18125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18126 (eval $ac_compile) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } 2>conftest.err; then
18130 soname=conftest
18131 lib=conftest
18132 libobjs=conftest.$ac_objext
18133 deplibs=
18134 wl=$lt_prog_compiler_wl_GCJ
vlm55681242007-12-03 14:58:39 +000018135 pic_flag=$lt_prog_compiler_pic_GCJ
vlm8f3eb992004-06-17 23:42:48 +000018136 compiler_flags=-v
18137 linker_flags=-v
18138 verstring=
18139 output_objdir=.
18140 libname=conftest
18141 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18142 allow_undefined_flag_GCJ=
18143 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18144 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }
18148 then
18149 archive_cmds_need_lc_GCJ=no
18150 else
18151 archive_cmds_need_lc_GCJ=yes
18152 fi
18153 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18154 else
18155 cat conftest.err 1>&5
18156 fi
18157 $rm conftest*
vlm83b901d2007-08-27 23:57:45 +000018158 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18159echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000018160 ;;
18161 esac
18162 fi
18163 ;;
18164esac
18165
vlm83b901d2007-08-27 23:57:45 +000018166{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18167echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000018168library_names_spec=
18169libname_spec='lib$name'
18170soname_spec=
18171shrext_cmds=".so"
18172postinstall_cmds=
18173postuninstall_cmds=
18174finish_cmds=
18175finish_eval=
18176shlibpath_var=
18177shlibpath_overrides_runpath=unknown
18178version_type=none
18179dynamic_linker="$host_os ld.so"
18180sys_lib_dlsearch_path_spec="/lib /usr/lib"
18181if test "$GCC" = yes; then
18182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18183 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18184 # if the path contains ";" then we assume it to be the separator
18185 # otherwise default to the standard path separator (i.e. ":") - it is
18186 # assumed that no part of a normal pathname contains ";" but that should
18187 # okay in the real world where ";" in dirpaths is itself problematic.
18188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18189 else
18190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18191 fi
18192else
18193 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18194fi
18195need_lib_prefix=unknown
18196hardcode_into_libs=no
18197
18198# when you set need_version to no, make sure it does not cause -set_version
18199# flags to be left without arguments
18200need_version=unknown
18201
18202case $host_os in
18203aix3*)
18204 version_type=linux
18205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18206 shlibpath_var=LIBPATH
18207
18208 # AIX 3 has no versioning support, so we append a major version to the name.
18209 soname_spec='${libname}${release}${shared_ext}$major'
18210 ;;
18211
18212aix4* | aix5*)
18213 version_type=linux
18214 need_lib_prefix=no
18215 need_version=no
18216 hardcode_into_libs=yes
18217 if test "$host_cpu" = ia64; then
18218 # AIX 5 supports IA64
18219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18220 shlibpath_var=LD_LIBRARY_PATH
18221 else
18222 # With GCC up to 2.95.x, collect2 would create an import file
18223 # for dependence libraries. The import file would start with
18224 # the line `#! .'. This would cause the generated library to
18225 # depend on `.', always an invalid library. This was fixed in
18226 # development snapshots of GCC prior to 3.0.
18227 case $host_os in
18228 aix4 | aix4.[01] | aix4.[01].*)
18229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18230 echo ' yes '
18231 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18232 :
18233 else
18234 can_build_shared=no
18235 fi
18236 ;;
18237 esac
18238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18239 # soname into executable. Probably we can add versioning support to
18240 # collect2, so additional links can be useful in future.
18241 if test "$aix_use_runtimelinking" = yes; then
18242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18243 # instead of lib<name>.a to let people know that these are not
18244 # typical AIX shared libraries.
18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18246 else
18247 # We preserve .a as extension for shared libraries through AIX4.2
18248 # and later when we are not doing run time linking.
18249 library_names_spec='${libname}${release}.a $libname.a'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 fi
18252 shlibpath_var=LIBPATH
18253 fi
18254 ;;
18255
18256amigaos*)
18257 library_names_spec='$libname.ixlibrary $libname.a'
18258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18259 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'
18260 ;;
18261
18262beos*)
18263 library_names_spec='${libname}${shared_ext}'
18264 dynamic_linker="$host_os ld.so"
18265 shlibpath_var=LIBRARY_PATH
18266 ;;
18267
vlm55681242007-12-03 14:58:39 +000018268bsdi[45]*)
vlm8f3eb992004-06-17 23:42:48 +000018269 version_type=linux
18270 need_version=no
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272 soname_spec='${libname}${release}${shared_ext}$major'
18273 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18274 shlibpath_var=LD_LIBRARY_PATH
18275 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18276 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18277 # the default ld.so.conf also contains /usr/contrib/lib and
18278 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18279 # libtool to hard-code these into programs
18280 ;;
18281
18282cygwin* | mingw* | pw32*)
18283 version_type=windows
18284 shrext_cmds=".dll"
18285 need_version=no
18286 need_lib_prefix=no
18287
18288 case $GCC,$host_os in
18289 yes,cygwin* | yes,mingw* | yes,pw32*)
18290 library_names_spec='$libname.dll.a'
18291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18292 postinstall_cmds='base_file=`basename \${file}`~
18293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18294 dldir=$destdir/`dirname \$dlpath`~
18295 test -d \$dldir || mkdir -p \$dldir~
vlm55681242007-12-03 14:58:39 +000018296 $install_prog $dir/$dlname \$dldir/$dlname~
18297 chmod a+x \$dldir/$dlname'
vlm8f3eb992004-06-17 23:42:48 +000018298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18299 dlpath=$dir/\$dldll~
18300 $rm \$dlpath'
18301 shlibpath_overrides_runpath=yes
18302
18303 case $host_os in
18304 cygwin*)
18305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18307 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18308 ;;
18309 mingw*)
18310 # MinGW DLLs use traditional 'lib' prefix
18311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18313 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18314 # It is most probably a Windows format PATH printed by
18315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18316 # path with ; separators, and with drive letters. We can handle the
18317 # drive letters (cygwin fileutils understands them), so leave them,
18318 # especially as we might pass files found there to a mingw objdump,
18319 # which wouldn't understand a cygwinified path. Ahh.
18320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18321 else
18322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18323 fi
18324 ;;
18325 pw32*)
18326 # pw32 DLLs use 'pw' prefix rather than 'lib'
vlm55681242007-12-03 14:58:39 +000018327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
vlm8f3eb992004-06-17 23:42:48 +000018328 ;;
18329 esac
18330 ;;
18331
18332 *)
18333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18334 ;;
18335 esac
18336 dynamic_linker='Win32 ld.exe'
18337 # FIXME: first we should search . and the directory the executable is in
18338 shlibpath_var=PATH
18339 ;;
18340
18341darwin* | rhapsody*)
18342 dynamic_linker="$host_os dyld"
18343 version_type=darwin
18344 need_lib_prefix=no
18345 need_version=no
18346 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18347 soname_spec='${libname}${release}${major}$shared_ext'
18348 shlibpath_overrides_runpath=yes
18349 shlibpath_var=DYLD_LIBRARY_PATH
vlm55681242007-12-03 14:58:39 +000018350 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
vlm8f3eb992004-06-17 23:42:48 +000018351 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18352 if test "$GCC" = yes; then
18353 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"`
18354 else
18355 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18356 fi
18357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18358 ;;
18359
18360dgux*)
18361 version_type=linux
18362 need_lib_prefix=no
18363 need_version=no
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18365 soname_spec='${libname}${release}${shared_ext}$major'
18366 shlibpath_var=LD_LIBRARY_PATH
18367 ;;
18368
18369freebsd1*)
18370 dynamic_linker=no
18371 ;;
18372
18373kfreebsd*-gnu)
18374 version_type=linux
18375 need_lib_prefix=no
18376 need_version=no
18377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18378 soname_spec='${libname}${release}${shared_ext}$major'
18379 shlibpath_var=LD_LIBRARY_PATH
18380 shlibpath_overrides_runpath=no
18381 hardcode_into_libs=yes
18382 dynamic_linker='GNU ld.so'
18383 ;;
18384
vlm55681242007-12-03 14:58:39 +000018385freebsd* | dragonfly*)
18386 # DragonFly does not have aout. When/if they implement a new
18387 # versioning mechanism, adjust this.
18388 if test -x /usr/bin/objformat; then
18389 objformat=`/usr/bin/objformat`
18390 else
18391 case $host_os in
18392 freebsd[123]*) objformat=aout ;;
18393 *) objformat=elf ;;
18394 esac
18395 fi
vlm8f3eb992004-06-17 23:42:48 +000018396 version_type=freebsd-$objformat
18397 case $version_type in
18398 freebsd-elf*)
18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18400 need_version=no
18401 need_lib_prefix=no
18402 ;;
18403 freebsd-*)
18404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18405 need_version=yes
18406 ;;
18407 esac
18408 shlibpath_var=LD_LIBRARY_PATH
18409 case $host_os in
18410 freebsd2*)
18411 shlibpath_overrides_runpath=yes
18412 ;;
vlm55681242007-12-03 14:58:39 +000018413 freebsd3.[01]* | freebsdelf3.[01]*)
vlm8f3eb992004-06-17 23:42:48 +000018414 shlibpath_overrides_runpath=yes
18415 hardcode_into_libs=yes
18416 ;;
vlm55681242007-12-03 14:58:39 +000018417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
vlm8f3eb992004-06-17 23:42:48 +000018419 shlibpath_overrides_runpath=no
18420 hardcode_into_libs=yes
18421 ;;
vlm55681242007-12-03 14:58:39 +000018422 freebsd*) # from 4.6 on
18423 shlibpath_overrides_runpath=yes
18424 hardcode_into_libs=yes
18425 ;;
vlm8f3eb992004-06-17 23:42:48 +000018426 esac
18427 ;;
18428
18429gnu*)
18430 version_type=linux
18431 need_lib_prefix=no
18432 need_version=no
18433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18434 soname_spec='${libname}${release}${shared_ext}$major'
18435 shlibpath_var=LD_LIBRARY_PATH
18436 hardcode_into_libs=yes
18437 ;;
18438
18439hpux9* | hpux10* | hpux11*)
18440 # Give a soname corresponding to the major version so that dld.sl refuses to
18441 # link against other versions.
18442 version_type=sunos
18443 need_lib_prefix=no
18444 need_version=no
vlm55681242007-12-03 14:58:39 +000018445 case $host_cpu in
vlm8f3eb992004-06-17 23:42:48 +000018446 ia64*)
18447 shrext_cmds='.so'
18448 hardcode_into_libs=yes
18449 dynamic_linker="$host_os dld.so"
18450 shlibpath_var=LD_LIBRARY_PATH
18451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18453 soname_spec='${libname}${release}${shared_ext}$major'
18454 if test "X$HPUX_IA64_MODE" = X32; then
18455 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18456 else
18457 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18458 fi
18459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18460 ;;
18461 hppa*64*)
18462 shrext_cmds='.sl'
18463 hardcode_into_libs=yes
18464 dynamic_linker="$host_os dld.sl"
18465 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18468 soname_spec='${libname}${release}${shared_ext}$major'
18469 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18471 ;;
18472 *)
18473 shrext_cmds='.sl'
18474 dynamic_linker="$host_os dld.sl"
18475 shlibpath_var=SHLIB_PATH
18476 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478 soname_spec='${libname}${release}${shared_ext}$major'
18479 ;;
18480 esac
18481 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18482 postinstall_cmds='chmod 555 $lib'
18483 ;;
18484
vlm55681242007-12-03 14:58:39 +000018485interix3*)
18486 version_type=linux
18487 need_lib_prefix=no
18488 need_version=no
18489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18490 soname_spec='${libname}${release}${shared_ext}$major'
18491 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18492 shlibpath_var=LD_LIBRARY_PATH
18493 shlibpath_overrides_runpath=no
18494 hardcode_into_libs=yes
18495 ;;
18496
vlm8f3eb992004-06-17 23:42:48 +000018497irix5* | irix6* | nonstopux*)
18498 case $host_os in
18499 nonstopux*) version_type=nonstopux ;;
18500 *)
18501 if test "$lt_cv_prog_gnu_ld" = yes; then
18502 version_type=linux
18503 else
18504 version_type=irix
18505 fi ;;
18506 esac
18507 need_lib_prefix=no
18508 need_version=no
18509 soname_spec='${libname}${release}${shared_ext}$major'
18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18511 case $host_os in
18512 irix5* | nonstopux*)
18513 libsuff= shlibsuff=
18514 ;;
18515 *)
18516 case $LD in # libtool.m4 will add one of these switches to LD
18517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18518 libsuff= shlibsuff= libmagic=32-bit;;
18519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18520 libsuff=32 shlibsuff=N32 libmagic=N32;;
18521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18522 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18523 *) libsuff= shlibsuff= libmagic=never-match;;
18524 esac
18525 ;;
18526 esac
18527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18528 shlibpath_overrides_runpath=no
18529 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18530 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18531 hardcode_into_libs=yes
18532 ;;
18533
18534# No shared lib support for Linux oldld, aout, or coff.
18535linux*oldld* | linux*aout* | linux*coff*)
18536 dynamic_linker=no
18537 ;;
18538
18539# This must be Linux ELF.
18540linux*)
18541 version_type=linux
18542 need_lib_prefix=no
18543 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18547 shlibpath_var=LD_LIBRARY_PATH
18548 shlibpath_overrides_runpath=no
18549 # This implies no fast_install, which is unacceptable.
18550 # Some rework will be needed to allow for fast_install
18551 # before this can be enabled.
18552 hardcode_into_libs=yes
18553
18554 # Append ld.so.conf contents to the search path
18555 if test -f /etc/ld.so.conf; then
vlm55681242007-12-03 14:58:39 +000018556 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
vlm8f3eb992004-06-17 23:42:48 +000018557 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18558 fi
18559
18560 # We used to test for /lib/ld.so.1 and disable shared libraries on
18561 # powerpc, because MkLinux only supported shared libraries with the
18562 # GNU dynamic linker. Since this was broken with cross compilers,
18563 # most powerpc-linux boxes support dynamic linking these days and
18564 # people can always --disable-shared, the test was removed, and we
18565 # assume the GNU/Linux dynamic linker is in use.
18566 dynamic_linker='GNU/Linux ld.so'
18567 ;;
18568
18569knetbsd*-gnu)
18570 version_type=linux
18571 need_lib_prefix=no
18572 need_version=no
18573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18574 soname_spec='${libname}${release}${shared_ext}$major'
18575 shlibpath_var=LD_LIBRARY_PATH
18576 shlibpath_overrides_runpath=no
18577 hardcode_into_libs=yes
18578 dynamic_linker='GNU ld.so'
18579 ;;
18580
18581netbsd*)
18582 version_type=sunos
18583 need_lib_prefix=no
18584 need_version=no
18585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18588 dynamic_linker='NetBSD (a.out) ld.so'
18589 else
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18591 soname_spec='${libname}${release}${shared_ext}$major'
18592 dynamic_linker='NetBSD ld.elf_so'
18593 fi
18594 shlibpath_var=LD_LIBRARY_PATH
18595 shlibpath_overrides_runpath=yes
18596 hardcode_into_libs=yes
18597 ;;
18598
18599newsos6)
18600 version_type=linux
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18602 shlibpath_var=LD_LIBRARY_PATH
18603 shlibpath_overrides_runpath=yes
18604 ;;
18605
18606nto-qnx*)
18607 version_type=linux
18608 need_lib_prefix=no
18609 need_version=no
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18611 soname_spec='${libname}${release}${shared_ext}$major'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 shlibpath_overrides_runpath=yes
18614 ;;
18615
18616openbsd*)
18617 version_type=sunos
vlm55681242007-12-03 14:58:39 +000018618 sys_lib_dlsearch_path_spec="/usr/lib"
vlm8f3eb992004-06-17 23:42:48 +000018619 need_lib_prefix=no
vlm55681242007-12-03 14:58:39 +000018620 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18621 case $host_os in
18622 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18623 *) need_version=no ;;
18624 esac
vlm8f3eb992004-06-17 23:42:48 +000018625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18627 shlibpath_var=LD_LIBRARY_PATH
18628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18629 case $host_os in
18630 openbsd2.[89] | openbsd2.[89].*)
18631 shlibpath_overrides_runpath=no
18632 ;;
18633 *)
18634 shlibpath_overrides_runpath=yes
18635 ;;
18636 esac
18637 else
18638 shlibpath_overrides_runpath=yes
18639 fi
18640 ;;
18641
18642os2*)
18643 libname_spec='$name'
18644 shrext_cmds=".dll"
18645 need_lib_prefix=no
18646 library_names_spec='$libname${shared_ext} $libname.a'
18647 dynamic_linker='OS/2 ld.exe'
18648 shlibpath_var=LIBPATH
18649 ;;
18650
18651osf3* | osf4* | osf5*)
18652 version_type=osf
18653 need_lib_prefix=no
18654 need_version=no
18655 soname_spec='${libname}${release}${shared_ext}$major'
18656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18657 shlibpath_var=LD_LIBRARY_PATH
18658 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18659 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18660 ;;
18661
vlm8f3eb992004-06-17 23:42:48 +000018662solaris*)
18663 version_type=linux
18664 need_lib_prefix=no
18665 need_version=no
18666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18667 soname_spec='${libname}${release}${shared_ext}$major'
18668 shlibpath_var=LD_LIBRARY_PATH
18669 shlibpath_overrides_runpath=yes
18670 hardcode_into_libs=yes
18671 # ldd complains unless libraries are executable
18672 postinstall_cmds='chmod +x $lib'
18673 ;;
18674
18675sunos4*)
18676 version_type=sunos
18677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18678 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18679 shlibpath_var=LD_LIBRARY_PATH
18680 shlibpath_overrides_runpath=yes
18681 if test "$with_gnu_ld" = yes; then
18682 need_lib_prefix=no
18683 fi
18684 need_version=yes
18685 ;;
18686
vlm55681242007-12-03 14:58:39 +000018687sysv4 | sysv4.3*)
vlm8f3eb992004-06-17 23:42:48 +000018688 version_type=linux
18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18690 soname_spec='${libname}${release}${shared_ext}$major'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 case $host_vendor in
18693 sni)
18694 shlibpath_overrides_runpath=no
18695 need_lib_prefix=no
18696 export_dynamic_flag_spec='${wl}-Blargedynsym'
18697 runpath_var=LD_RUN_PATH
18698 ;;
18699 siemens)
18700 need_lib_prefix=no
18701 ;;
18702 motorola)
18703 need_lib_prefix=no
18704 need_version=no
18705 shlibpath_overrides_runpath=no
18706 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18707 ;;
18708 esac
18709 ;;
18710
18711sysv4*MP*)
18712 if test -d /usr/nec ;then
18713 version_type=linux
18714 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18715 soname_spec='$libname${shared_ext}.$major'
18716 shlibpath_var=LD_LIBRARY_PATH
18717 fi
18718 ;;
18719
vlm55681242007-12-03 14:58:39 +000018720sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18721 version_type=freebsd-elf
18722 need_lib_prefix=no
18723 need_version=no
18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18725 soname_spec='${libname}${release}${shared_ext}$major'
18726 shlibpath_var=LD_LIBRARY_PATH
18727 hardcode_into_libs=yes
18728 if test "$with_gnu_ld" = yes; then
18729 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18730 shlibpath_overrides_runpath=no
18731 else
18732 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18733 shlibpath_overrides_runpath=yes
18734 case $host_os in
18735 sco3.2v5*)
18736 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18737 ;;
18738 esac
18739 fi
18740 sys_lib_dlsearch_path_spec='/usr/lib'
18741 ;;
18742
vlm8f3eb992004-06-17 23:42:48 +000018743uts4*)
18744 version_type=linux
18745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746 soname_spec='${libname}${release}${shared_ext}$major'
18747 shlibpath_var=LD_LIBRARY_PATH
18748 ;;
18749
18750*)
18751 dynamic_linker=no
18752 ;;
18753esac
vlm83b901d2007-08-27 23:57:45 +000018754{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18755echo "${ECHO_T}$dynamic_linker" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000018756test "$dynamic_linker" = no && can_build_shared=no
18757
vlm55681242007-12-03 14:58:39 +000018758variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18759if test "$GCC" = yes; then
18760 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18761fi
18762
vlm83b901d2007-08-27 23:57:45 +000018763{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18764echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000018765hardcode_action_GCJ=
18766if test -n "$hardcode_libdir_flag_spec_GCJ" || \
vlm55681242007-12-03 14:58:39 +000018767 test -n "$runpath_var_GCJ" || \
18768 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
vlm8f3eb992004-06-17 23:42:48 +000018769
18770 # We can hardcode non-existant directories.
18771 if test "$hardcode_direct_GCJ" != no &&
18772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18773 # have to relink, otherwise we might link with an installed library
18774 # when we should be linking with a yet-to-be-installed one
18775 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18776 test "$hardcode_minus_L_GCJ" != no; then
18777 # Linking always hardcodes the temporary library directory.
18778 hardcode_action_GCJ=relink
18779 else
18780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18781 hardcode_action_GCJ=immediate
18782 fi
18783else
18784 # We cannot hardcode anything, or else we can only hardcode existing
18785 # directories.
18786 hardcode_action_GCJ=unsupported
18787fi
vlm83b901d2007-08-27 23:57:45 +000018788{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18789echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000018790
18791if test "$hardcode_action_GCJ" = relink; then
18792 # Fast installation is not supported
18793 enable_fast_install=no
18794elif test "$shlibpath_overrides_runpath" = yes ||
18795 test "$enable_shared" = no; then
18796 # Fast installation is not necessary
18797 enable_fast_install=needless
18798fi
18799
vlm8f3eb992004-06-17 23:42:48 +000018800
18801# The else clause should only fire when bootstrapping the
18802# libtool distribution, otherwise you forgot to ship ltmain.sh
18803# with your package, and you will get complaints that there are
18804# no rules to generate ltmain.sh.
18805if test -f "$ltmain"; then
18806 # See if we are running on zsh, and set the options which allow our commands through
18807 # without removal of \ escapes.
18808 if test -n "${ZSH_VERSION+set}" ; then
18809 setopt NO_GLOB_SUBST
18810 fi
18811 # Now quote all the things that may contain metacharacters while being
18812 # careful not to overquote the AC_SUBSTed values. We take copies of the
18813 # variables and quote the copies for generation of the libtool script.
vlm55681242007-12-03 14:58:39 +000018814 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
vlm8f3eb992004-06-17 23:42:48 +000018815 SED SHELL STRIP \
18816 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18817 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18818 deplibs_check_method reload_flag reload_cmds need_locks \
18819 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18820 lt_cv_sys_global_symbol_to_c_name_address \
18821 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18822 old_postinstall_cmds old_postuninstall_cmds \
18823 compiler_GCJ \
18824 CC_GCJ \
18825 LD_GCJ \
18826 lt_prog_compiler_wl_GCJ \
18827 lt_prog_compiler_pic_GCJ \
18828 lt_prog_compiler_static_GCJ \
18829 lt_prog_compiler_no_builtin_flag_GCJ \
18830 export_dynamic_flag_spec_GCJ \
18831 thread_safe_flag_spec_GCJ \
18832 whole_archive_flag_spec_GCJ \
18833 enable_shared_with_static_runtimes_GCJ \
18834 old_archive_cmds_GCJ \
18835 old_archive_from_new_cmds_GCJ \
18836 predep_objects_GCJ \
18837 postdep_objects_GCJ \
18838 predeps_GCJ \
18839 postdeps_GCJ \
18840 compiler_lib_search_path_GCJ \
18841 archive_cmds_GCJ \
18842 archive_expsym_cmds_GCJ \
18843 postinstall_cmds_GCJ \
18844 postuninstall_cmds_GCJ \
18845 old_archive_from_expsyms_cmds_GCJ \
18846 allow_undefined_flag_GCJ \
18847 no_undefined_flag_GCJ \
18848 export_symbols_cmds_GCJ \
18849 hardcode_libdir_flag_spec_GCJ \
18850 hardcode_libdir_flag_spec_ld_GCJ \
18851 hardcode_libdir_separator_GCJ \
18852 hardcode_automatic_GCJ \
18853 module_cmds_GCJ \
18854 module_expsym_cmds_GCJ \
18855 lt_cv_prog_compiler_c_o_GCJ \
18856 exclude_expsyms_GCJ \
18857 include_expsyms_GCJ; do
18858
18859 case $var in
18860 old_archive_cmds_GCJ | \
18861 old_archive_from_new_cmds_GCJ | \
18862 archive_cmds_GCJ | \
18863 archive_expsym_cmds_GCJ | \
18864 module_cmds_GCJ | \
18865 module_expsym_cmds_GCJ | \
18866 old_archive_from_expsyms_cmds_GCJ | \
18867 export_symbols_cmds_GCJ | \
18868 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18869 postinstall_cmds | postuninstall_cmds | \
18870 old_postinstall_cmds | old_postuninstall_cmds | \
18871 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18872 # Double-quote double-evaled strings.
18873 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18874 ;;
18875 *)
18876 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18877 ;;
18878 esac
18879 done
18880
18881 case $lt_echo in
18882 *'\$0 --fallback-echo"')
18883 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18884 ;;
18885 esac
18886
18887cfgfile="$ofile"
18888
18889 cat <<__EOF__ >> "$cfgfile"
18890# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18891
18892# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18893
18894# Shell to use when invoking shell scripts.
18895SHELL=$lt_SHELL
18896
18897# Whether or not to build shared libraries.
18898build_libtool_libs=$enable_shared
18899
18900# Whether or not to build static libraries.
18901build_old_libs=$enable_static
18902
18903# Whether or not to add -lc for building shared libraries.
18904build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18905
18906# Whether or not to disallow shared libs when runtime libs are static
18907allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18908
18909# Whether or not to optimize for fast installation.
18910fast_install=$enable_fast_install
18911
18912# The host system.
18913host_alias=$host_alias
18914host=$host
vlm55681242007-12-03 14:58:39 +000018915host_os=$host_os
18916
18917# The build system.
18918build_alias=$build_alias
18919build=$build
18920build_os=$build_os
vlm8f3eb992004-06-17 23:42:48 +000018921
18922# An echo program that does not interpret backslashes.
18923echo=$lt_echo
18924
18925# The archiver.
18926AR=$lt_AR
18927AR_FLAGS=$lt_AR_FLAGS
18928
18929# A C compiler.
18930LTCC=$lt_LTCC
18931
vlm55681242007-12-03 14:58:39 +000018932# LTCC compiler flags.
18933LTCFLAGS=$lt_LTCFLAGS
18934
vlm8f3eb992004-06-17 23:42:48 +000018935# A language-specific compiler.
18936CC=$lt_compiler_GCJ
18937
18938# Is the compiler the GNU C compiler?
18939with_gcc=$GCC_GCJ
18940
18941# An ERE matcher.
18942EGREP=$lt_EGREP
18943
18944# The linker used to build libraries.
18945LD=$lt_LD_GCJ
18946
18947# Whether we need hard or soft links.
18948LN_S=$lt_LN_S
18949
18950# A BSD-compatible nm program.
18951NM=$lt_NM
18952
18953# A symbol stripping program
18954STRIP=$lt_STRIP
18955
18956# Used to examine libraries when file_magic_cmd begins "file"
18957MAGIC_CMD=$MAGIC_CMD
18958
18959# Used on cygwin: DLL creation program.
18960DLLTOOL="$DLLTOOL"
18961
18962# Used on cygwin: object dumper.
18963OBJDUMP="$OBJDUMP"
18964
18965# Used on cygwin: assembler.
18966AS="$AS"
18967
18968# The name of the directory that contains temporary libtool files.
18969objdir=$objdir
18970
18971# How to create reloadable object files.
18972reload_flag=$lt_reload_flag
18973reload_cmds=$lt_reload_cmds
18974
18975# How to pass a linker flag through the compiler.
18976wl=$lt_lt_prog_compiler_wl_GCJ
18977
18978# Object file suffix (normally "o").
18979objext="$ac_objext"
18980
18981# Old archive suffix (normally "a").
18982libext="$libext"
18983
18984# Shared library suffix (normally ".so").
18985shrext_cmds='$shrext_cmds'
18986
18987# Executable file suffix (normally "").
18988exeext="$exeext"
18989
18990# Additional compiler flags for building library objects.
18991pic_flag=$lt_lt_prog_compiler_pic_GCJ
18992pic_mode=$pic_mode
18993
18994# What is the maximum length of a command?
18995max_cmd_len=$lt_cv_sys_max_cmd_len
18996
18997# Does compiler simultaneously support -c and -o options?
18998compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18999
vlm55681242007-12-03 14:58:39 +000019000# Must we lock files when doing compilation?
vlm8f3eb992004-06-17 23:42:48 +000019001need_locks=$lt_need_locks
19002
19003# Do we need the lib prefix for modules?
19004need_lib_prefix=$need_lib_prefix
19005
19006# Do we need a version for libraries?
19007need_version=$need_version
19008
19009# Whether dlopen is supported.
19010dlopen_support=$enable_dlopen
19011
19012# Whether dlopen of programs is supported.
19013dlopen_self=$enable_dlopen_self
19014
19015# Whether dlopen of statically linked programs is supported.
19016dlopen_self_static=$enable_dlopen_self_static
19017
19018# Compiler flag to prevent dynamic linking.
19019link_static_flag=$lt_lt_prog_compiler_static_GCJ
19020
19021# Compiler flag to turn off builtin functions.
19022no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19023
19024# Compiler flag to allow reflexive dlopens.
19025export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19026
19027# Compiler flag to generate shared objects directly from archives.
19028whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19029
19030# Compiler flag to generate thread-safe objects.
19031thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19032
19033# Library versioning type.
19034version_type=$version_type
19035
19036# Format of library name prefix.
19037libname_spec=$lt_libname_spec
19038
19039# List of archive names. First name is the real one, the rest are links.
19040# The last name is the one that the linker finds with -lNAME.
19041library_names_spec=$lt_library_names_spec
19042
19043# The coded name of the library, if different from the real name.
19044soname_spec=$lt_soname_spec
19045
19046# Commands used to build and install an old-style archive.
19047RANLIB=$lt_RANLIB
19048old_archive_cmds=$lt_old_archive_cmds_GCJ
19049old_postinstall_cmds=$lt_old_postinstall_cmds
19050old_postuninstall_cmds=$lt_old_postuninstall_cmds
19051
19052# Create an old-style archive from a shared archive.
19053old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19054
19055# Create a temporary old-style archive to link instead of a shared archive.
19056old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19057
19058# Commands used to build and install a shared archive.
19059archive_cmds=$lt_archive_cmds_GCJ
19060archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19061postinstall_cmds=$lt_postinstall_cmds
19062postuninstall_cmds=$lt_postuninstall_cmds
19063
19064# Commands used to build a loadable module (assumed same as above if empty)
19065module_cmds=$lt_module_cmds_GCJ
19066module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19067
19068# Commands to strip libraries.
19069old_striplib=$lt_old_striplib
19070striplib=$lt_striplib
19071
19072# Dependencies to place before the objects being linked to create a
19073# shared library.
19074predep_objects=$lt_predep_objects_GCJ
19075
19076# Dependencies to place after the objects being linked to create a
19077# shared library.
19078postdep_objects=$lt_postdep_objects_GCJ
19079
19080# Dependencies to place before the objects being linked to create a
19081# shared library.
19082predeps=$lt_predeps_GCJ
19083
19084# Dependencies to place after the objects being linked to create a
19085# shared library.
19086postdeps=$lt_postdeps_GCJ
19087
19088# The library search path used internally by the compiler when linking
19089# a shared library.
19090compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19091
19092# Method to check whether dependent libraries are shared objects.
19093deplibs_check_method=$lt_deplibs_check_method
19094
19095# Command to use when deplibs_check_method == file_magic.
19096file_magic_cmd=$lt_file_magic_cmd
19097
19098# Flag that allows shared libraries with undefined symbols to be built.
19099allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19100
19101# Flag that forces no undefined symbols.
19102no_undefined_flag=$lt_no_undefined_flag_GCJ
19103
19104# Commands used to finish a libtool library installation in a directory.
19105finish_cmds=$lt_finish_cmds
19106
19107# Same as above, but a single script fragment to be evaled but not shown.
19108finish_eval=$lt_finish_eval
19109
19110# Take the output of nm and produce a listing of raw symbols and C names.
19111global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19112
19113# Transform the output of nm in a proper C declaration
19114global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19115
19116# Transform the output of nm in a C name address pair
19117global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19118
19119# This is the shared library runtime path variable.
19120runpath_var=$runpath_var
19121
19122# This is the shared library path variable.
19123shlibpath_var=$shlibpath_var
19124
19125# Is shlibpath searched before the hard-coded library search path?
19126shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19127
19128# How to hardcode a shared library path into an executable.
19129hardcode_action=$hardcode_action_GCJ
19130
19131# Whether we should hardcode library paths into libraries.
19132hardcode_into_libs=$hardcode_into_libs
19133
19134# Flag to hardcode \$libdir into a binary during linking.
19135# This must work even if \$libdir does not exist.
19136hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19137
19138# If ld is used when linking, flag to hardcode \$libdir into
19139# a binary during linking. This must work even if \$libdir does
19140# not exist.
19141hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19142
19143# Whether we need a single -rpath flag with a separated argument.
19144hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19145
19146# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19147# resulting binary.
19148hardcode_direct=$hardcode_direct_GCJ
19149
19150# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19151# resulting binary.
19152hardcode_minus_L=$hardcode_minus_L_GCJ
19153
19154# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19155# the resulting binary.
19156hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19157
19158# Set to yes if building a shared library automatically hardcodes DIR into the library
19159# and all subsequent libraries and executables linked against it.
19160hardcode_automatic=$hardcode_automatic_GCJ
19161
19162# Variables whose values should be saved in libtool wrapper scripts and
19163# restored at relink time.
19164variables_saved_for_relink="$variables_saved_for_relink"
19165
19166# Whether libtool must link a program against all its dependency libraries.
19167link_all_deplibs=$link_all_deplibs_GCJ
19168
19169# Compile-time system search path for libraries
19170sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19171
19172# Run-time system search path for libraries
19173sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19174
19175# Fix the shell variable \$srcfile for the compiler.
19176fix_srcfile_path="$fix_srcfile_path_GCJ"
19177
19178# Set to yes if exported symbols are required.
19179always_export_symbols=$always_export_symbols_GCJ
19180
19181# The commands to list exported symbols.
19182export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19183
19184# The commands to extract the exported symbol list from a shared archive.
19185extract_expsyms_cmds=$lt_extract_expsyms_cmds
19186
19187# Symbols that should not be listed in the preloaded symbols.
19188exclude_expsyms=$lt_exclude_expsyms_GCJ
19189
19190# Symbols that must always be exported.
19191include_expsyms=$lt_include_expsyms_GCJ
19192
19193# ### END LIBTOOL TAG CONFIG: $tagname
19194
19195__EOF__
19196
19197
19198else
19199 # If there is no Makefile yet, we rely on a make rule to execute
19200 # `config.status --recheck' to rerun these tests and create the
19201 # libtool script then.
19202 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19203 if test -f "$ltmain_in"; then
19204 test -f Makefile && make "$ltmain"
19205 fi
19206fi
19207
19208
19209ac_ext=c
19210ac_cpp='$CPP $CPPFLAGS'
19211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19213ac_compiler_gnu=$ac_cv_c_compiler_gnu
19214
19215CC="$lt_save_CC"
19216
19217 else
19218 tagname=""
19219 fi
19220 ;;
19221
19222 RC)
19223
19224
vlm8f3eb992004-06-17 23:42:48 +000019225# Source file extension for RC test sources.
19226ac_ext=rc
19227
19228# Object file extension for compiled RC test sources.
19229objext=o
19230objext_RC=$objext
19231
19232# Code to be used in simple compile tests
19233lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19234
19235# Code to be used in simple link tests
19236lt_simple_link_test_code="$lt_simple_compile_test_code"
19237
19238# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19239
19240# If no C compiler was specified, use CC.
19241LTCC=${LTCC-"$CC"}
19242
vlm55681242007-12-03 14:58:39 +000019243# If no C compiler flags were specified, use CFLAGS.
19244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19245
vlm8f3eb992004-06-17 23:42:48 +000019246# Allow CC to be a program name with arguments.
19247compiler=$CC
19248
19249
vlm55681242007-12-03 14:58:39 +000019250# save warnings/boilerplate of simple test code
19251ac_outfile=conftest.$ac_objext
19252printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19253eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19254_lt_compiler_boilerplate=`cat conftest.err`
19255$rm conftest*
19256
19257ac_outfile=conftest.$ac_objext
19258printf "$lt_simple_link_test_code" >conftest.$ac_ext
19259eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19260_lt_linker_boilerplate=`cat conftest.err`
19261$rm conftest*
19262
19263
vlm8f3eb992004-06-17 23:42:48 +000019264# Allow CC to be a program name with arguments.
19265lt_save_CC="$CC"
19266CC=${RC-"windres"}
19267compiler=$CC
19268compiler_RC=$CC
vlm55681242007-12-03 14:58:39 +000019269for cc_temp in $compiler""; do
19270 case $cc_temp in
19271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19273 \-*) ;;
19274 *) break;;
19275 esac
19276done
19277cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19278
vlm8f3eb992004-06-17 23:42:48 +000019279lt_cv_prog_compiler_c_o_RC=yes
19280
19281# The else clause should only fire when bootstrapping the
19282# libtool distribution, otherwise you forgot to ship ltmain.sh
19283# with your package, and you will get complaints that there are
19284# no rules to generate ltmain.sh.
19285if test -f "$ltmain"; then
19286 # See if we are running on zsh, and set the options which allow our commands through
19287 # without removal of \ escapes.
19288 if test -n "${ZSH_VERSION+set}" ; then
19289 setopt NO_GLOB_SUBST
19290 fi
19291 # Now quote all the things that may contain metacharacters while being
19292 # careful not to overquote the AC_SUBSTed values. We take copies of the
19293 # variables and quote the copies for generation of the libtool script.
vlm55681242007-12-03 14:58:39 +000019294 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
vlm8f3eb992004-06-17 23:42:48 +000019295 SED SHELL STRIP \
19296 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19297 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19298 deplibs_check_method reload_flag reload_cmds need_locks \
19299 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19300 lt_cv_sys_global_symbol_to_c_name_address \
19301 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19302 old_postinstall_cmds old_postuninstall_cmds \
19303 compiler_RC \
19304 CC_RC \
19305 LD_RC \
19306 lt_prog_compiler_wl_RC \
19307 lt_prog_compiler_pic_RC \
19308 lt_prog_compiler_static_RC \
19309 lt_prog_compiler_no_builtin_flag_RC \
19310 export_dynamic_flag_spec_RC \
19311 thread_safe_flag_spec_RC \
19312 whole_archive_flag_spec_RC \
19313 enable_shared_with_static_runtimes_RC \
19314 old_archive_cmds_RC \
19315 old_archive_from_new_cmds_RC \
19316 predep_objects_RC \
19317 postdep_objects_RC \
19318 predeps_RC \
19319 postdeps_RC \
19320 compiler_lib_search_path_RC \
19321 archive_cmds_RC \
19322 archive_expsym_cmds_RC \
19323 postinstall_cmds_RC \
19324 postuninstall_cmds_RC \
19325 old_archive_from_expsyms_cmds_RC \
19326 allow_undefined_flag_RC \
19327 no_undefined_flag_RC \
19328 export_symbols_cmds_RC \
19329 hardcode_libdir_flag_spec_RC \
19330 hardcode_libdir_flag_spec_ld_RC \
19331 hardcode_libdir_separator_RC \
19332 hardcode_automatic_RC \
19333 module_cmds_RC \
19334 module_expsym_cmds_RC \
19335 lt_cv_prog_compiler_c_o_RC \
19336 exclude_expsyms_RC \
19337 include_expsyms_RC; do
19338
19339 case $var in
19340 old_archive_cmds_RC | \
19341 old_archive_from_new_cmds_RC | \
19342 archive_cmds_RC | \
19343 archive_expsym_cmds_RC | \
19344 module_cmds_RC | \
19345 module_expsym_cmds_RC | \
19346 old_archive_from_expsyms_cmds_RC | \
19347 export_symbols_cmds_RC | \
19348 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19349 postinstall_cmds | postuninstall_cmds | \
19350 old_postinstall_cmds | old_postuninstall_cmds | \
19351 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19352 # Double-quote double-evaled strings.
19353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19354 ;;
19355 *)
19356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19357 ;;
19358 esac
19359 done
19360
19361 case $lt_echo in
19362 *'\$0 --fallback-echo"')
19363 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19364 ;;
19365 esac
19366
19367cfgfile="$ofile"
19368
19369 cat <<__EOF__ >> "$cfgfile"
19370# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19371
19372# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19373
19374# Shell to use when invoking shell scripts.
19375SHELL=$lt_SHELL
19376
19377# Whether or not to build shared libraries.
19378build_libtool_libs=$enable_shared
19379
19380# Whether or not to build static libraries.
19381build_old_libs=$enable_static
19382
19383# Whether or not to add -lc for building shared libraries.
19384build_libtool_need_lc=$archive_cmds_need_lc_RC
19385
19386# Whether or not to disallow shared libs when runtime libs are static
19387allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19388
19389# Whether or not to optimize for fast installation.
19390fast_install=$enable_fast_install
19391
19392# The host system.
19393host_alias=$host_alias
19394host=$host
vlm55681242007-12-03 14:58:39 +000019395host_os=$host_os
19396
19397# The build system.
19398build_alias=$build_alias
19399build=$build
19400build_os=$build_os
vlm8f3eb992004-06-17 23:42:48 +000019401
19402# An echo program that does not interpret backslashes.
19403echo=$lt_echo
19404
19405# The archiver.
19406AR=$lt_AR
19407AR_FLAGS=$lt_AR_FLAGS
19408
19409# A C compiler.
19410LTCC=$lt_LTCC
19411
vlm55681242007-12-03 14:58:39 +000019412# LTCC compiler flags.
19413LTCFLAGS=$lt_LTCFLAGS
19414
vlm8f3eb992004-06-17 23:42:48 +000019415# A language-specific compiler.
19416CC=$lt_compiler_RC
19417
19418# Is the compiler the GNU C compiler?
19419with_gcc=$GCC_RC
19420
19421# An ERE matcher.
19422EGREP=$lt_EGREP
19423
19424# The linker used to build libraries.
19425LD=$lt_LD_RC
19426
19427# Whether we need hard or soft links.
19428LN_S=$lt_LN_S
19429
19430# A BSD-compatible nm program.
19431NM=$lt_NM
19432
19433# A symbol stripping program
19434STRIP=$lt_STRIP
19435
19436# Used to examine libraries when file_magic_cmd begins "file"
19437MAGIC_CMD=$MAGIC_CMD
19438
19439# Used on cygwin: DLL creation program.
19440DLLTOOL="$DLLTOOL"
19441
19442# Used on cygwin: object dumper.
19443OBJDUMP="$OBJDUMP"
19444
19445# Used on cygwin: assembler.
19446AS="$AS"
19447
19448# The name of the directory that contains temporary libtool files.
19449objdir=$objdir
19450
19451# How to create reloadable object files.
19452reload_flag=$lt_reload_flag
19453reload_cmds=$lt_reload_cmds
19454
19455# How to pass a linker flag through the compiler.
19456wl=$lt_lt_prog_compiler_wl_RC
19457
19458# Object file suffix (normally "o").
19459objext="$ac_objext"
19460
19461# Old archive suffix (normally "a").
19462libext="$libext"
19463
19464# Shared library suffix (normally ".so").
19465shrext_cmds='$shrext_cmds'
19466
19467# Executable file suffix (normally "").
19468exeext="$exeext"
19469
19470# Additional compiler flags for building library objects.
19471pic_flag=$lt_lt_prog_compiler_pic_RC
19472pic_mode=$pic_mode
19473
19474# What is the maximum length of a command?
19475max_cmd_len=$lt_cv_sys_max_cmd_len
19476
19477# Does compiler simultaneously support -c and -o options?
19478compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19479
vlm55681242007-12-03 14:58:39 +000019480# Must we lock files when doing compilation?
vlm8f3eb992004-06-17 23:42:48 +000019481need_locks=$lt_need_locks
19482
19483# Do we need the lib prefix for modules?
19484need_lib_prefix=$need_lib_prefix
19485
19486# Do we need a version for libraries?
19487need_version=$need_version
19488
19489# Whether dlopen is supported.
19490dlopen_support=$enable_dlopen
19491
19492# Whether dlopen of programs is supported.
19493dlopen_self=$enable_dlopen_self
19494
19495# Whether dlopen of statically linked programs is supported.
19496dlopen_self_static=$enable_dlopen_self_static
19497
19498# Compiler flag to prevent dynamic linking.
19499link_static_flag=$lt_lt_prog_compiler_static_RC
19500
19501# Compiler flag to turn off builtin functions.
19502no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19503
19504# Compiler flag to allow reflexive dlopens.
19505export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19506
19507# Compiler flag to generate shared objects directly from archives.
19508whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19509
19510# Compiler flag to generate thread-safe objects.
19511thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19512
19513# Library versioning type.
19514version_type=$version_type
19515
19516# Format of library name prefix.
19517libname_spec=$lt_libname_spec
19518
19519# List of archive names. First name is the real one, the rest are links.
19520# The last name is the one that the linker finds with -lNAME.
19521library_names_spec=$lt_library_names_spec
19522
19523# The coded name of the library, if different from the real name.
19524soname_spec=$lt_soname_spec
19525
19526# Commands used to build and install an old-style archive.
19527RANLIB=$lt_RANLIB
19528old_archive_cmds=$lt_old_archive_cmds_RC
19529old_postinstall_cmds=$lt_old_postinstall_cmds
19530old_postuninstall_cmds=$lt_old_postuninstall_cmds
19531
19532# Create an old-style archive from a shared archive.
19533old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19534
19535# Create a temporary old-style archive to link instead of a shared archive.
19536old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19537
19538# Commands used to build and install a shared archive.
19539archive_cmds=$lt_archive_cmds_RC
19540archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19541postinstall_cmds=$lt_postinstall_cmds
19542postuninstall_cmds=$lt_postuninstall_cmds
19543
19544# Commands used to build a loadable module (assumed same as above if empty)
19545module_cmds=$lt_module_cmds_RC
19546module_expsym_cmds=$lt_module_expsym_cmds_RC
19547
19548# Commands to strip libraries.
19549old_striplib=$lt_old_striplib
19550striplib=$lt_striplib
19551
19552# Dependencies to place before the objects being linked to create a
19553# shared library.
19554predep_objects=$lt_predep_objects_RC
19555
19556# Dependencies to place after the objects being linked to create a
19557# shared library.
19558postdep_objects=$lt_postdep_objects_RC
19559
19560# Dependencies to place before the objects being linked to create a
19561# shared library.
19562predeps=$lt_predeps_RC
19563
19564# Dependencies to place after the objects being linked to create a
19565# shared library.
19566postdeps=$lt_postdeps_RC
19567
19568# The library search path used internally by the compiler when linking
19569# a shared library.
19570compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19571
19572# Method to check whether dependent libraries are shared objects.
19573deplibs_check_method=$lt_deplibs_check_method
19574
19575# Command to use when deplibs_check_method == file_magic.
19576file_magic_cmd=$lt_file_magic_cmd
19577
19578# Flag that allows shared libraries with undefined symbols to be built.
19579allow_undefined_flag=$lt_allow_undefined_flag_RC
19580
19581# Flag that forces no undefined symbols.
19582no_undefined_flag=$lt_no_undefined_flag_RC
19583
19584# Commands used to finish a libtool library installation in a directory.
19585finish_cmds=$lt_finish_cmds
19586
19587# Same as above, but a single script fragment to be evaled but not shown.
19588finish_eval=$lt_finish_eval
19589
19590# Take the output of nm and produce a listing of raw symbols and C names.
19591global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19592
19593# Transform the output of nm in a proper C declaration
19594global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19595
19596# Transform the output of nm in a C name address pair
19597global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19598
19599# This is the shared library runtime path variable.
19600runpath_var=$runpath_var
19601
19602# This is the shared library path variable.
19603shlibpath_var=$shlibpath_var
19604
19605# Is shlibpath searched before the hard-coded library search path?
19606shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19607
19608# How to hardcode a shared library path into an executable.
19609hardcode_action=$hardcode_action_RC
19610
19611# Whether we should hardcode library paths into libraries.
19612hardcode_into_libs=$hardcode_into_libs
19613
19614# Flag to hardcode \$libdir into a binary during linking.
19615# This must work even if \$libdir does not exist.
19616hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19617
19618# If ld is used when linking, flag to hardcode \$libdir into
19619# a binary during linking. This must work even if \$libdir does
19620# not exist.
19621hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19622
19623# Whether we need a single -rpath flag with a separated argument.
19624hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19625
19626# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19627# resulting binary.
19628hardcode_direct=$hardcode_direct_RC
19629
19630# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19631# resulting binary.
19632hardcode_minus_L=$hardcode_minus_L_RC
19633
19634# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19635# the resulting binary.
19636hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19637
19638# Set to yes if building a shared library automatically hardcodes DIR into the library
19639# and all subsequent libraries and executables linked against it.
19640hardcode_automatic=$hardcode_automatic_RC
19641
19642# Variables whose values should be saved in libtool wrapper scripts and
19643# restored at relink time.
19644variables_saved_for_relink="$variables_saved_for_relink"
19645
19646# Whether libtool must link a program against all its dependency libraries.
19647link_all_deplibs=$link_all_deplibs_RC
19648
19649# Compile-time system search path for libraries
19650sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19651
19652# Run-time system search path for libraries
19653sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19654
19655# Fix the shell variable \$srcfile for the compiler.
19656fix_srcfile_path="$fix_srcfile_path_RC"
19657
19658# Set to yes if exported symbols are required.
19659always_export_symbols=$always_export_symbols_RC
19660
19661# The commands to list exported symbols.
19662export_symbols_cmds=$lt_export_symbols_cmds_RC
19663
19664# The commands to extract the exported symbol list from a shared archive.
19665extract_expsyms_cmds=$lt_extract_expsyms_cmds
19666
19667# Symbols that should not be listed in the preloaded symbols.
19668exclude_expsyms=$lt_exclude_expsyms_RC
19669
19670# Symbols that must always be exported.
19671include_expsyms=$lt_include_expsyms_RC
19672
19673# ### END LIBTOOL TAG CONFIG: $tagname
19674
19675__EOF__
19676
19677
19678else
19679 # If there is no Makefile yet, we rely on a make rule to execute
19680 # `config.status --recheck' to rerun these tests and create the
19681 # libtool script then.
19682 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19683 if test -f "$ltmain_in"; then
19684 test -f Makefile && make "$ltmain"
19685 fi
19686fi
19687
19688
19689ac_ext=c
19690ac_cpp='$CPP $CPPFLAGS'
19691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19693ac_compiler_gnu=$ac_cv_c_compiler_gnu
19694
19695CC="$lt_save_CC"
19696
19697 ;;
19698
19699 *)
19700 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19701echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19702 { (exit 1); exit 1; }; }
19703 ;;
19704 esac
19705
19706 # Append the new tag name to the list of available tags.
19707 if test -n "$tagname" ; then
19708 available_tags="$available_tags $tagname"
19709 fi
19710 fi
19711 done
19712 IFS="$lt_save_ifs"
19713
19714 # Now substitute the updated list of available tags.
19715 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19716 mv "${ofile}T" "$ofile"
19717 chmod +x "$ofile"
19718 else
19719 rm -f "${ofile}T"
19720 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19721echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19722 { (exit 1); exit 1; }; }
19723 fi
19724fi
19725
vlmfa67ddc2004-06-03 03:38:44 +000019726
19727
19728# This can be used to rebuild libtool when needed
vlm8f3eb992004-06-17 23:42:48 +000019729LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
vlmfa67ddc2004-06-03 03:38:44 +000019730
19731# Always use our own libtool.
19732LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19733
vlm8f3eb992004-06-17 23:42:48 +000019734# Prevent multiple expansion
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
vlmfa67ddc2004-06-03 03:38:44 +000019754
19755
vlm83b901d2007-08-27 23:57:45 +000019756# Check whether --enable-autoconf was given.
vlmfa67ddc2004-06-03 03:38:44 +000019757if test "${enable_autoconf+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +000019758 enableval=$enable_autoconf; enable_autoconf=$enableval
vlmfa67ddc2004-06-03 03:38:44 +000019759else
19760 enable_autoconf=yes
19761
vlm83b901d2007-08-27 23:57:45 +000019762fi
19763
vlmfa67ddc2004-06-03 03:38:44 +000019764# Extract the first word of "autoconf", so it can be a program name with args.
19765set dummy autoconf; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000019766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019768if test "${ac_cv_path_AUTOCONF+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770else
19771 case $AUTOCONF in
19772 [\\/]* | ?:[\\/]*)
19773 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
19774 ;;
19775 *)
19776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19777for as_dir in $PATH
19778do
19779 IFS=$as_save_IFS
19780 test -z "$as_dir" && as_dir=.
19781 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000019782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000019783 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
19784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19785 break 2
19786 fi
19787done
19788done
vlm83b901d2007-08-27 23:57:45 +000019789IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000019790
19791 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available"
19792 ;;
19793esac
19794fi
19795AUTOCONF=$ac_cv_path_AUTOCONF
vlmfa67ddc2004-06-03 03:38:44 +000019796if test -n "$AUTOCONF"; then
vlm83b901d2007-08-27 23:57:45 +000019797 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
19798echo "${ECHO_T}$AUTOCONF" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019799else
vlm83b901d2007-08-27 23:57:45 +000019800 { echo "$as_me:$LINENO: result: no" >&5
19801echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019802fi
19803
vlm83b901d2007-08-27 23:57:45 +000019804
vlmfa67ddc2004-06-03 03:38:44 +000019805# Extract the first word of "autoheader", so it can be a program name with args.
19806set dummy autoheader; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000019807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019809if test "${ac_cv_path_AUTOHEADER+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19811else
19812 case $AUTOHEADER in
19813 [\\/]* | ?:[\\/]*)
19814 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
19815 ;;
19816 *)
19817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19818for as_dir in $PATH
19819do
19820 IFS=$as_save_IFS
19821 test -z "$as_dir" && as_dir=.
19822 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000019823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000019824 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
19825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19826 break 2
19827 fi
19828done
19829done
vlm83b901d2007-08-27 23:57:45 +000019830IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000019831
19832 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available"
19833 ;;
19834esac
19835fi
19836AUTOHEADER=$ac_cv_path_AUTOHEADER
vlmfa67ddc2004-06-03 03:38:44 +000019837if test -n "$AUTOHEADER"; then
vlm83b901d2007-08-27 23:57:45 +000019838 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
19839echo "${ECHO_T}$AUTOHEADER" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019840else
vlm83b901d2007-08-27 23:57:45 +000019841 { echo "$as_me:$LINENO: result: no" >&5
19842echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019843fi
19844
vlm83b901d2007-08-27 23:57:45 +000019845
vlmfa67ddc2004-06-03 03:38:44 +000019846if test -z "$AUTOCONF"; then enable_autoconf=no ; fi
19847if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi
19848if test x$enable_autoconf = xyes; then
19849 CONFIGURE_DEPENDS="configure.in aclocal.m4"
19850fi
19851
19852
19853ac_ext=c
19854ac_cpp='$CPP $CPPFLAGS'
19855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19857ac_compiler_gnu=$ac_cv_c_compiler_gnu
19858if test -n "$ac_tool_prefix"; then
19859 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19860set dummy ${ac_tool_prefix}gcc; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000019861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019863if test "${ac_cv_prog_CC+set}" = set; then
19864 echo $ECHO_N "(cached) $ECHO_C" >&6
19865else
19866 if test -n "$CC"; then
19867 ac_cv_prog_CC="$CC" # Let the user override the test.
19868else
19869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19870for as_dir in $PATH
19871do
19872 IFS=$as_save_IFS
19873 test -z "$as_dir" && as_dir=.
19874 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000019875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000019876 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19878 break 2
19879 fi
19880done
19881done
vlm83b901d2007-08-27 23:57:45 +000019882IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000019883
19884fi
19885fi
19886CC=$ac_cv_prog_CC
19887if test -n "$CC"; then
vlm83b901d2007-08-27 23:57:45 +000019888 { echo "$as_me:$LINENO: result: $CC" >&5
19889echo "${ECHO_T}$CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019890else
vlm83b901d2007-08-27 23:57:45 +000019891 { echo "$as_me:$LINENO: result: no" >&5
19892echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019893fi
19894
vlm83b901d2007-08-27 23:57:45 +000019895
vlmfa67ddc2004-06-03 03:38:44 +000019896fi
19897if test -z "$ac_cv_prog_CC"; then
19898 ac_ct_CC=$CC
19899 # Extract the first word of "gcc", so it can be a program name with args.
19900set dummy gcc; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000019901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019903if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19904 echo $ECHO_N "(cached) $ECHO_C" >&6
19905else
19906 if test -n "$ac_ct_CC"; then
19907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19908else
19909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19910for as_dir in $PATH
19911do
19912 IFS=$as_save_IFS
19913 test -z "$as_dir" && as_dir=.
19914 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000019915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000019916 ac_cv_prog_ac_ct_CC="gcc"
19917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19918 break 2
19919 fi
19920done
19921done
vlm83b901d2007-08-27 23:57:45 +000019922IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000019923
19924fi
19925fi
19926ac_ct_CC=$ac_cv_prog_ac_ct_CC
19927if test -n "$ac_ct_CC"; then
vlm83b901d2007-08-27 23:57:45 +000019928 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19929echo "${ECHO_T}$ac_ct_CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019930else
vlm83b901d2007-08-27 23:57:45 +000019931 { echo "$as_me:$LINENO: result: no" >&5
19932echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019933fi
19934
vlm83b901d2007-08-27 23:57:45 +000019935 if test "x$ac_ct_CC" = x; then
19936 CC=""
19937 else
19938 case $cross_compiling:$ac_tool_warned in
19939yes:)
19940{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19941whose name does not start with the host triplet. If you think this
19942configuration is useful to you, please write to autoconf@gnu.org." >&5
19943echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19944whose name does not start with the host triplet. If you think this
19945configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19946ac_tool_warned=yes ;;
19947esac
19948 CC=$ac_ct_CC
19949 fi
vlmfa67ddc2004-06-03 03:38:44 +000019950else
19951 CC="$ac_cv_prog_CC"
19952fi
19953
19954if test -z "$CC"; then
vlm83b901d2007-08-27 23:57:45 +000019955 if test -n "$ac_tool_prefix"; then
19956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
vlmfa67ddc2004-06-03 03:38:44 +000019957set dummy ${ac_tool_prefix}cc; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000019958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019960if test "${ac_cv_prog_CC+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962else
19963 if test -n "$CC"; then
19964 ac_cv_prog_CC="$CC" # Let the user override the test.
19965else
19966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19967for as_dir in $PATH
19968do
19969 IFS=$as_save_IFS
19970 test -z "$as_dir" && as_dir=.
19971 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000019972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000019973 ac_cv_prog_CC="${ac_tool_prefix}cc"
19974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19975 break 2
19976 fi
19977done
19978done
vlm83b901d2007-08-27 23:57:45 +000019979IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000019980
19981fi
19982fi
19983CC=$ac_cv_prog_CC
19984if test -n "$CC"; then
vlm83b901d2007-08-27 23:57:45 +000019985 { echo "$as_me:$LINENO: result: $CC" >&5
19986echo "${ECHO_T}$CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019987else
vlm83b901d2007-08-27 23:57:45 +000019988 { echo "$as_me:$LINENO: result: no" >&5
19989echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000019990fi
19991
vlm83b901d2007-08-27 23:57:45 +000019992
vlmfa67ddc2004-06-03 03:38:44 +000019993 fi
vlmfa67ddc2004-06-03 03:38:44 +000019994fi
19995if test -z "$CC"; then
19996 # Extract the first word of "cc", so it can be a program name with args.
19997set dummy cc; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000019998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020000if test "${ac_cv_prog_CC+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20002else
20003 if test -n "$CC"; then
20004 ac_cv_prog_CC="$CC" # Let the user override the test.
20005else
20006 ac_prog_rejected=no
20007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20008for as_dir in $PATH
20009do
20010 IFS=$as_save_IFS
20011 test -z "$as_dir" && as_dir=.
20012 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000020013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000020014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20015 ac_prog_rejected=yes
20016 continue
20017 fi
20018 ac_cv_prog_CC="cc"
20019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20020 break 2
20021 fi
20022done
20023done
vlm83b901d2007-08-27 23:57:45 +000020024IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000020025
20026if test $ac_prog_rejected = yes; then
20027 # We found a bogon in the path, so make sure we never use it.
20028 set dummy $ac_cv_prog_CC
20029 shift
20030 if test $# != 0; then
20031 # We chose a different compiler from the bogus one.
20032 # However, it has the same basename, so the bogon will be chosen
20033 # first if we set CC to just the basename; use the full file name.
20034 shift
20035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20036 fi
20037fi
20038fi
20039fi
20040CC=$ac_cv_prog_CC
20041if test -n "$CC"; then
vlm83b901d2007-08-27 23:57:45 +000020042 { echo "$as_me:$LINENO: result: $CC" >&5
20043echo "${ECHO_T}$CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020044else
vlm83b901d2007-08-27 23:57:45 +000020045 { echo "$as_me:$LINENO: result: no" >&5
20046echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020047fi
20048
vlm83b901d2007-08-27 23:57:45 +000020049
vlmfa67ddc2004-06-03 03:38:44 +000020050fi
20051if test -z "$CC"; then
20052 if test -n "$ac_tool_prefix"; then
vlm83b901d2007-08-27 23:57:45 +000020053 for ac_prog in cl.exe
vlmfa67ddc2004-06-03 03:38:44 +000020054 do
20055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000020057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020059if test "${ac_cv_prog_CC+set}" = set; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20061else
20062 if test -n "$CC"; then
20063 ac_cv_prog_CC="$CC" # Let the user override the test.
20064else
20065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20066for as_dir in $PATH
20067do
20068 IFS=$as_save_IFS
20069 test -z "$as_dir" && as_dir=.
20070 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000020071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000020072 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20074 break 2
20075 fi
20076done
20077done
vlm83b901d2007-08-27 23:57:45 +000020078IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000020079
20080fi
20081fi
20082CC=$ac_cv_prog_CC
20083if test -n "$CC"; then
vlm83b901d2007-08-27 23:57:45 +000020084 { echo "$as_me:$LINENO: result: $CC" >&5
20085echo "${ECHO_T}$CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020086else
vlm83b901d2007-08-27 23:57:45 +000020087 { echo "$as_me:$LINENO: result: no" >&5
20088echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020089fi
20090
vlm83b901d2007-08-27 23:57:45 +000020091
vlmfa67ddc2004-06-03 03:38:44 +000020092 test -n "$CC" && break
20093 done
20094fi
20095if test -z "$CC"; then
20096 ac_ct_CC=$CC
vlm83b901d2007-08-27 23:57:45 +000020097 for ac_prog in cl.exe
vlmfa67ddc2004-06-03 03:38:44 +000020098do
20099 # Extract the first word of "$ac_prog", so it can be a program name with args.
20100set dummy $ac_prog; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000020101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020103if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20105else
20106 if test -n "$ac_ct_CC"; then
20107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20108else
20109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20110for as_dir in $PATH
20111do
20112 IFS=$as_save_IFS
20113 test -z "$as_dir" && as_dir=.
20114 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000020115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000020116 ac_cv_prog_ac_ct_CC="$ac_prog"
20117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20118 break 2
20119 fi
20120done
20121done
vlm83b901d2007-08-27 23:57:45 +000020122IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000020123
20124fi
20125fi
20126ac_ct_CC=$ac_cv_prog_ac_ct_CC
20127if test -n "$ac_ct_CC"; then
vlm83b901d2007-08-27 23:57:45 +000020128 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20129echo "${ECHO_T}$ac_ct_CC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020130else
vlm83b901d2007-08-27 23:57:45 +000020131 { echo "$as_me:$LINENO: result: no" >&5
20132echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020133fi
20134
vlm83b901d2007-08-27 23:57:45 +000020135
vlmfa67ddc2004-06-03 03:38:44 +000020136 test -n "$ac_ct_CC" && break
20137done
20138
vlm83b901d2007-08-27 23:57:45 +000020139 if test "x$ac_ct_CC" = x; then
20140 CC=""
20141 else
20142 case $cross_compiling:$ac_tool_warned in
20143yes:)
20144{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20145whose name does not start with the host triplet. If you think this
20146configuration is useful to you, please write to autoconf@gnu.org." >&5
20147echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20148whose name does not start with the host triplet. If you think this
20149configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20150ac_tool_warned=yes ;;
20151esac
20152 CC=$ac_ct_CC
20153 fi
vlmfa67ddc2004-06-03 03:38:44 +000020154fi
20155
20156fi
20157
20158
20159test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20160See \`config.log' for more details." >&5
20161echo "$as_me: error: no acceptable C compiler found in \$PATH
20162See \`config.log' for more details." >&2;}
20163 { (exit 1); exit 1; }; }
20164
20165# Provide some information about the compiler.
vlm83b901d2007-08-27 23:57:45 +000020166echo "$as_me:$LINENO: checking for C compiler version" >&5
vlmfa67ddc2004-06-03 03:38:44 +000020167ac_compiler=`set X $ac_compile; echo $2`
vlm83b901d2007-08-27 23:57:45 +000020168{ (ac_try="$ac_compiler --version >&5"
20169case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20172esac
20173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_compiler --version >&5") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000020175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }
vlm83b901d2007-08-27 23:57:45 +000020178{ (ac_try="$ac_compiler -v >&5"
20179case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20182esac
20183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_compiler -v >&5") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000020185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }
vlm83b901d2007-08-27 23:57:45 +000020188{ (ac_try="$ac_compiler -V >&5"
20189case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20192esac
20193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_compiler -V >&5") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000020195 ac_status=$?
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }
20198
vlm83b901d2007-08-27 23:57:45 +000020199{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20200echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020201if test "${ac_cv_c_compiler_gnu+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20203else
20204 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020205/* confdefs.h. */
20206_ACEOF
20207cat confdefs.h >>conftest.$ac_ext
20208cat >>conftest.$ac_ext <<_ACEOF
20209/* end confdefs.h. */
20210
20211int
20212main ()
20213{
20214#ifndef __GNUC__
20215 choke me
20216#endif
20217
20218 ;
20219 return 0;
20220}
20221_ACEOF
20222rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000020223if { (ac_try="$ac_compile"
20224case "(($ac_try" in
20225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226 *) ac_try_echo=$ac_try;;
20227esac
20228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020230 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000020231 grep -v '^ *+' conftest.er1 >conftest.err
20232 rm -f conftest.er1
20233 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000020234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000020236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20237 { (case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20240esac
20241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000020243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000020247 { (case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20250esac
20251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000020253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; }; then
20256 ac_compiler_gnu=yes
20257else
20258 echo "$as_me: failed program was:" >&5
20259sed 's/^/| /' conftest.$ac_ext >&5
20260
vlm83b901d2007-08-27 23:57:45 +000020261 ac_compiler_gnu=no
vlmfa67ddc2004-06-03 03:38:44 +000020262fi
vlm83b901d2007-08-27 23:57:45 +000020263
20264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000020265ac_cv_c_compiler_gnu=$ac_compiler_gnu
20266
20267fi
vlm83b901d2007-08-27 23:57:45 +000020268{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20269echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020270GCC=`test $ac_compiler_gnu = yes && echo yes`
20271ac_test_CFLAGS=${CFLAGS+set}
20272ac_save_CFLAGS=$CFLAGS
vlm83b901d2007-08-27 23:57:45 +000020273{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20274echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020275if test "${ac_cv_prog_cc_g+set}" = set; then
20276 echo $ECHO_N "(cached) $ECHO_C" >&6
20277else
vlm83b901d2007-08-27 23:57:45 +000020278 ac_save_c_werror_flag=$ac_c_werror_flag
20279 ac_c_werror_flag=yes
20280 ac_cv_prog_cc_g=no
20281 CFLAGS="-g"
20282 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020283/* confdefs.h. */
20284_ACEOF
20285cat confdefs.h >>conftest.$ac_ext
20286cat >>conftest.$ac_ext <<_ACEOF
20287/* end confdefs.h. */
20288
20289int
20290main ()
20291{
20292
20293 ;
20294 return 0;
20295}
20296_ACEOF
20297rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000020298if { (ac_try="$ac_compile"
20299case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20302esac
20303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020305 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000020306 grep -v '^ *+' conftest.er1 >conftest.err
20307 rm -f conftest.er1
20308 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000020309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000020311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20312 { (case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20315esac
20316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000020318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; } &&
20321 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000020322 { (case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20325esac
20326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000020328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; }; then
20331 ac_cv_prog_cc_g=yes
20332else
20333 echo "$as_me: failed program was:" >&5
20334sed 's/^/| /' conftest.$ac_ext >&5
20335
vlm83b901d2007-08-27 23:57:45 +000020336 CFLAGS=""
20337 cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h. */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h. */
20343
20344int
20345main ()
20346{
20347
20348 ;
20349 return 0;
20350}
20351_ACEOF
20352rm -f conftest.$ac_objext
20353if { (ac_try="$ac_compile"
20354case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357esac
20358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_compile") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20367 { (case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20370esac
20371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_try") 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest.$ac_objext'
20377 { (case "(($ac_try" in
20378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379 *) ac_try_echo=$ac_try;;
20380esac
20381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382 (eval "$ac_try") 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20386 :
20387else
20388 echo "$as_me: failed program was:" >&5
20389sed 's/^/| /' conftest.$ac_ext >&5
20390
20391 ac_c_werror_flag=$ac_save_c_werror_flag
20392 CFLAGS="-g"
20393 cat >conftest.$ac_ext <<_ACEOF
20394/* confdefs.h. */
20395_ACEOF
20396cat confdefs.h >>conftest.$ac_ext
20397cat >>conftest.$ac_ext <<_ACEOF
20398/* end confdefs.h. */
20399
20400int
20401main ()
20402{
20403
20404 ;
20405 return 0;
20406}
20407_ACEOF
20408rm -f conftest.$ac_objext
20409if { (ac_try="$ac_compile"
20410case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20413esac
20414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_compile") 2>conftest.er1
20416 ac_status=$?
20417 grep -v '^ *+' conftest.er1 >conftest.err
20418 rm -f conftest.er1
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } &&
20422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20423 { (case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20426esac
20427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_try") 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; } &&
20432 { ac_try='test -s conftest.$ac_objext'
20433 { (case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436esac
20437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_try") 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 ac_cv_prog_cc_g=yes
20443else
20444 echo "$as_me: failed program was:" >&5
20445sed 's/^/| /' conftest.$ac_ext >&5
20446
20447
vlmfa67ddc2004-06-03 03:38:44 +000020448fi
vlm83b901d2007-08-27 23:57:45 +000020449
20450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000020451fi
vlm83b901d2007-08-27 23:57:45 +000020452
20453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454fi
20455
20456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20457 ac_c_werror_flag=$ac_save_c_werror_flag
20458fi
20459{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20460echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020461if test "$ac_test_CFLAGS" = set; then
20462 CFLAGS=$ac_save_CFLAGS
20463elif test $ac_cv_prog_cc_g = yes; then
20464 if test "$GCC" = yes; then
20465 CFLAGS="-g -O2"
20466 else
20467 CFLAGS="-g"
20468 fi
20469else
20470 if test "$GCC" = yes; then
20471 CFLAGS="-O2"
20472 else
20473 CFLAGS=
20474 fi
20475fi
vlm83b901d2007-08-27 23:57:45 +000020476{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20477echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20478if test "${ac_cv_prog_cc_c89+set}" = set; then
vlmfa67ddc2004-06-03 03:38:44 +000020479 echo $ECHO_N "(cached) $ECHO_C" >&6
20480else
vlm83b901d2007-08-27 23:57:45 +000020481 ac_cv_prog_cc_c89=no
vlmfa67ddc2004-06-03 03:38:44 +000020482ac_save_CC=$CC
20483cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020484/* confdefs.h. */
20485_ACEOF
20486cat confdefs.h >>conftest.$ac_ext
20487cat >>conftest.$ac_ext <<_ACEOF
20488/* end confdefs.h. */
20489#include <stdarg.h>
20490#include <stdio.h>
20491#include <sys/types.h>
20492#include <sys/stat.h>
20493/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20494struct buf { int x; };
20495FILE * (*rcsopen) (struct buf *, struct stat *, int);
20496static char *e (p, i)
20497 char **p;
20498 int i;
20499{
20500 return p[i];
20501}
20502static char *f (char * (*g) (char **, int), char **p, ...)
20503{
20504 char *s;
20505 va_list v;
20506 va_start (v,p);
20507 s = g (p, va_arg (v,int));
20508 va_end (v);
20509 return s;
20510}
vlm8f3eb992004-06-17 23:42:48 +000020511
20512/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20513 function prototypes and stuff, but not '\xHH' hex character constants.
20514 These don't provoke an error unfortunately, instead are silently treated
vlm83b901d2007-08-27 23:57:45 +000020515 as 'x'. The following induces an error, until -std is added to get
vlm8f3eb992004-06-17 23:42:48 +000020516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20517 array size at least. It's necessary to write '\x00'==0 to get something
vlm83b901d2007-08-27 23:57:45 +000020518 that's true only with -std. */
vlm8f3eb992004-06-17 23:42:48 +000020519int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20520
vlm83b901d2007-08-27 23:57:45 +000020521/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20522 inside strings and character constants. */
20523#define FOO(x) 'x'
20524int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20525
vlmfa67ddc2004-06-03 03:38:44 +000020526int test (int i, double x);
20527struct s1 {int (*f) (int a);};
20528struct s2 {int (*f) (double a);};
20529int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20530int argc;
20531char **argv;
20532int
20533main ()
20534{
20535return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20536 ;
20537 return 0;
20538}
20539_ACEOF
vlm83b901d2007-08-27 23:57:45 +000020540for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
vlmfa67ddc2004-06-03 03:38:44 +000020542do
20543 CC="$ac_save_CC $ac_arg"
20544 rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000020545if { (ac_try="$ac_compile"
20546case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20549esac
20550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020552 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000020553 grep -v '^ *+' conftest.er1 >conftest.err
20554 rm -f conftest.er1
20555 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000020556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000020558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20559 { (case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562esac
20563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000020565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000020569 { (case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572esac
20573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000020575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; }; then
vlm83b901d2007-08-27 23:57:45 +000020578 ac_cv_prog_cc_c89=$ac_arg
vlmfa67ddc2004-06-03 03:38:44 +000020579else
20580 echo "$as_me: failed program was:" >&5
20581sed 's/^/| /' conftest.$ac_ext >&5
20582
vlm83b901d2007-08-27 23:57:45 +000020583
vlmfa67ddc2004-06-03 03:38:44 +000020584fi
vlm83b901d2007-08-27 23:57:45 +000020585
20586rm -f core conftest.err conftest.$ac_objext
20587 test "x$ac_cv_prog_cc_c89" != "xno" && break
vlmfa67ddc2004-06-03 03:38:44 +000020588done
vlm83b901d2007-08-27 23:57:45 +000020589rm -f conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000020590CC=$ac_save_CC
20591
20592fi
vlm83b901d2007-08-27 23:57:45 +000020593# AC_CACHE_VAL
20594case "x$ac_cv_prog_cc_c89" in
20595 x)
20596 { echo "$as_me:$LINENO: result: none needed" >&5
20597echo "${ECHO_T}none needed" >&6; } ;;
20598 xno)
20599 { echo "$as_me:$LINENO: result: unsupported" >&5
20600echo "${ECHO_T}unsupported" >&6; } ;;
vlmfa67ddc2004-06-03 03:38:44 +000020601 *)
vlm83b901d2007-08-27 23:57:45 +000020602 CC="$CC $ac_cv_prog_cc_c89"
20603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20604echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
vlmfa67ddc2004-06-03 03:38:44 +000020605esac
20606
vlmfa67ddc2004-06-03 03:38:44 +000020607
vlmfa67ddc2004-06-03 03:38:44 +000020608ac_ext=c
20609ac_cpp='$CPP $CPPFLAGS'
20610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612ac_compiler_gnu=$ac_cv_c_compiler_gnu
20613
20614depcc="$CC" am_compiler_list=
20615
vlm83b901d2007-08-27 23:57:45 +000020616{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20617echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020618if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20620else
20621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20622 # We make a subdir and do the tests there. Otherwise we can end up
20623 # making bogus files that we don't know about and never remove. For
20624 # instance it was reported that on HP-UX the gcc test will end up
20625 # making a dummy file named `D' -- because `-MD' means `put the output
20626 # in D'.
20627 mkdir conftest.dir
20628 # Copy depcomp to subdir because otherwise we won't find it if we're
20629 # using a relative directory.
20630 cp "$am_depcomp" conftest.dir
20631 cd conftest.dir
vlm8f3eb992004-06-17 23:42:48 +000020632 # We will build objects and dependencies in a subdirectory because
20633 # it helps to detect inapplicable dependency modes. For instance
20634 # both Tru64's cc and ICC support -MD to output dependencies as a
20635 # side effect of compilation, but ICC will put the dependencies in
20636 # the current directory while Tru64 will put them in the object
20637 # directory.
20638 mkdir sub
vlmfa67ddc2004-06-03 03:38:44 +000020639
20640 am_cv_CC_dependencies_compiler_type=none
20641 if test "$am_compiler_list" = ""; then
20642 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20643 fi
20644 for depmode in $am_compiler_list; do
vlm8f3eb992004-06-17 23:42:48 +000020645 # Setup a source with many dependencies, because some compilers
20646 # like to wrap large dependency lists on column 80 (with \), and
20647 # we should not choose a depcomp mode which is confused by this.
20648 #
vlmfa67ddc2004-06-03 03:38:44 +000020649 # We need to recreate these files for each test, as the compiler may
20650 # overwrite some of them when testing with obscure command lines.
20651 # This happens at least with the AIX C compiler.
vlm8f3eb992004-06-17 23:42:48 +000020652 : > sub/conftest.c
20653 for i in 1 2 3 4 5 6; do
20654 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20655 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20656 # Solaris 8's {/usr,}/bin/sh.
20657 touch sub/conftst$i.h
20658 done
20659 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
vlmfa67ddc2004-06-03 03:38:44 +000020660
20661 case $depmode in
20662 nosideeffect)
20663 # after this tag, mechanisms are not by side-effect, so they'll
20664 # only be used when explicitly requested
20665 if test "x$enable_dependency_tracking" = xyes; then
20666 continue
20667 else
20668 break
20669 fi
20670 ;;
20671 none) break ;;
20672 esac
20673 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20674 # mode. It turns out that the SunPro C++ compiler does not properly
20675 # handle `-M -o', and we need to detect this.
20676 if depmode=$depmode \
vlm8f3eb992004-06-17 23:42:48 +000020677 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20678 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20679 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20680 >/dev/null 2>conftest.err &&
20681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20682 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
vlmfa67ddc2004-06-03 03:38:44 +000020683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
vlm8f3eb992004-06-17 23:42:48 +000020684 # icc doesn't choke on unknown options, it will just issue warnings
20685 # or remarks (even with -Werror). So we grep stderr for any message
20686 # that says an option was ignored or not supported.
20687 # When given -MP, icc 7.0 and 7.1 complain thusly:
20688 # icc: Command line warning: ignoring option '-M'; no argument required
20689 # The diagnosis changed in icc 8.0:
20690 # icc: Command line remark: option '-MP' not supported
20691 if (grep 'ignoring option' conftest.err ||
20692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20693 am_cv_CC_dependencies_compiler_type=$depmode
20694 break
20695 fi
vlmfa67ddc2004-06-03 03:38:44 +000020696 fi
20697 done
20698
20699 cd ..
20700 rm -rf conftest.dir
20701else
20702 am_cv_CC_dependencies_compiler_type=none
20703fi
20704
20705fi
vlm83b901d2007-08-27 23:57:45 +000020706{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20707echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
vlm8f3eb992004-06-17 23:42:48 +000020708CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20709
20710
20711
20712if
20713 test "x$enable_dependency_tracking" != xno \
20714 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20715 am__fastdepCC_TRUE=
20716 am__fastdepCC_FALSE='#'
20717else
20718 am__fastdepCC_TRUE='#'
20719 am__fastdepCC_FALSE=
20720fi
vlmfa67ddc2004-06-03 03:38:44 +000020721
20722
20723ac_ext=c
20724ac_cpp='$CPP $CPPFLAGS'
20725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20727ac_compiler_gnu=$ac_cv_c_compiler_gnu
vlm83b901d2007-08-27 23:57:45 +000020728{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
20729echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020730# On Suns, sometimes $CPP names a directory.
20731if test -n "$CPP" && test -d "$CPP"; then
20732 CPP=
20733fi
20734if test -z "$CPP"; then
20735 if test "${ac_cv_prog_CPP+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20737else
20738 # Double quotes because CPP needs to be expanded
20739 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
20740 do
20741 ac_preproc_ok=false
20742for ac_c_preproc_warn_flag in '' yes
20743do
20744 # Use a header file that comes with gcc, so configuring glibc
20745 # with a fresh cross-compiler works.
20746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20747 # <limits.h> exists even on freestanding compilers.
20748 # On the NeXT, cc -E runs the code through the compiler's parser,
20749 # not just through cpp. "Syntax error" is here to catch this case.
20750 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020751/* confdefs.h. */
20752_ACEOF
20753cat confdefs.h >>conftest.$ac_ext
20754cat >>conftest.$ac_ext <<_ACEOF
20755/* end confdefs.h. */
20756#ifdef __STDC__
20757# include <limits.h>
20758#else
20759# include <assert.h>
20760#endif
vlm8f3eb992004-06-17 23:42:48 +000020761 Syntax error
vlmfa67ddc2004-06-03 03:38:44 +000020762_ACEOF
vlm83b901d2007-08-27 23:57:45 +000020763if { (ac_try="$ac_cpp conftest.$ac_ext"
20764case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20767esac
20768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020770 ac_status=$?
20771 grep -v '^ *+' conftest.er1 >conftest.err
20772 rm -f conftest.er1
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } >/dev/null; then
20776 if test -s conftest.err; then
20777 ac_cpp_err=$ac_c_preproc_warn_flag
vlm8f3eb992004-06-17 23:42:48 +000020778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
vlmfa67ddc2004-06-03 03:38:44 +000020779 else
20780 ac_cpp_err=
20781 fi
20782else
20783 ac_cpp_err=yes
20784fi
20785if test -z "$ac_cpp_err"; then
20786 :
20787else
20788 echo "$as_me: failed program was:" >&5
20789sed 's/^/| /' conftest.$ac_ext >&5
20790
20791 # Broken: fails on valid input.
20792continue
20793fi
vlm83b901d2007-08-27 23:57:45 +000020794
vlmfa67ddc2004-06-03 03:38:44 +000020795rm -f conftest.err conftest.$ac_ext
20796
vlm83b901d2007-08-27 23:57:45 +000020797 # OK, works on sane cases. Now check whether nonexistent headers
vlmfa67ddc2004-06-03 03:38:44 +000020798 # can be detected and how.
20799 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020800/* confdefs.h. */
20801_ACEOF
20802cat confdefs.h >>conftest.$ac_ext
20803cat >>conftest.$ac_ext <<_ACEOF
20804/* end confdefs.h. */
20805#include <ac_nonexistent.h>
20806_ACEOF
vlm83b901d2007-08-27 23:57:45 +000020807if { (ac_try="$ac_cpp conftest.$ac_ext"
20808case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20811esac
20812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020814 ac_status=$?
20815 grep -v '^ *+' conftest.er1 >conftest.err
20816 rm -f conftest.er1
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } >/dev/null; then
20820 if test -s conftest.err; then
20821 ac_cpp_err=$ac_c_preproc_warn_flag
vlm8f3eb992004-06-17 23:42:48 +000020822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
vlmfa67ddc2004-06-03 03:38:44 +000020823 else
20824 ac_cpp_err=
20825 fi
20826else
20827 ac_cpp_err=yes
20828fi
20829if test -z "$ac_cpp_err"; then
20830 # Broken: success on invalid input.
20831continue
20832else
20833 echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
20835
20836 # Passes both tests.
20837ac_preproc_ok=:
20838break
20839fi
vlm83b901d2007-08-27 23:57:45 +000020840
vlmfa67ddc2004-06-03 03:38:44 +000020841rm -f conftest.err conftest.$ac_ext
20842
20843done
20844# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20845rm -f conftest.err conftest.$ac_ext
20846if $ac_preproc_ok; then
20847 break
20848fi
20849
20850 done
20851 ac_cv_prog_CPP=$CPP
20852
20853fi
20854 CPP=$ac_cv_prog_CPP
20855else
20856 ac_cv_prog_CPP=$CPP
20857fi
vlm83b901d2007-08-27 23:57:45 +000020858{ echo "$as_me:$LINENO: result: $CPP" >&5
20859echo "${ECHO_T}$CPP" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020860ac_preproc_ok=false
20861for ac_c_preproc_warn_flag in '' yes
20862do
20863 # Use a header file that comes with gcc, so configuring glibc
20864 # with a fresh cross-compiler works.
20865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20866 # <limits.h> exists even on freestanding compilers.
20867 # On the NeXT, cc -E runs the code through the compiler's parser,
20868 # not just through cpp. "Syntax error" is here to catch this case.
20869 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020870/* confdefs.h. */
20871_ACEOF
20872cat confdefs.h >>conftest.$ac_ext
20873cat >>conftest.$ac_ext <<_ACEOF
20874/* end confdefs.h. */
20875#ifdef __STDC__
20876# include <limits.h>
20877#else
20878# include <assert.h>
20879#endif
vlm8f3eb992004-06-17 23:42:48 +000020880 Syntax error
vlmfa67ddc2004-06-03 03:38:44 +000020881_ACEOF
vlm83b901d2007-08-27 23:57:45 +000020882if { (ac_try="$ac_cpp conftest.$ac_ext"
20883case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20886esac
20887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020889 ac_status=$?
20890 grep -v '^ *+' conftest.er1 >conftest.err
20891 rm -f conftest.er1
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } >/dev/null; then
20895 if test -s conftest.err; then
20896 ac_cpp_err=$ac_c_preproc_warn_flag
vlm8f3eb992004-06-17 23:42:48 +000020897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
vlmfa67ddc2004-06-03 03:38:44 +000020898 else
20899 ac_cpp_err=
20900 fi
20901else
20902 ac_cpp_err=yes
20903fi
20904if test -z "$ac_cpp_err"; then
20905 :
20906else
20907 echo "$as_me: failed program was:" >&5
20908sed 's/^/| /' conftest.$ac_ext >&5
20909
20910 # Broken: fails on valid input.
20911continue
20912fi
vlm83b901d2007-08-27 23:57:45 +000020913
vlmfa67ddc2004-06-03 03:38:44 +000020914rm -f conftest.err conftest.$ac_ext
20915
vlm83b901d2007-08-27 23:57:45 +000020916 # OK, works on sane cases. Now check whether nonexistent headers
vlmfa67ddc2004-06-03 03:38:44 +000020917 # can be detected and how.
20918 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000020919/* confdefs.h. */
20920_ACEOF
20921cat confdefs.h >>conftest.$ac_ext
20922cat >>conftest.$ac_ext <<_ACEOF
20923/* end confdefs.h. */
20924#include <ac_nonexistent.h>
20925_ACEOF
vlm83b901d2007-08-27 23:57:45 +000020926if { (ac_try="$ac_cpp conftest.$ac_ext"
20927case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20930esac
20931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000020933 ac_status=$?
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } >/dev/null; then
20939 if test -s conftest.err; then
20940 ac_cpp_err=$ac_c_preproc_warn_flag
vlm8f3eb992004-06-17 23:42:48 +000020941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
vlmfa67ddc2004-06-03 03:38:44 +000020942 else
20943 ac_cpp_err=
20944 fi
20945else
20946 ac_cpp_err=yes
20947fi
20948if test -z "$ac_cpp_err"; then
20949 # Broken: success on invalid input.
20950continue
20951else
20952 echo "$as_me: failed program was:" >&5
20953sed 's/^/| /' conftest.$ac_ext >&5
20954
20955 # Passes both tests.
20956ac_preproc_ok=:
20957break
20958fi
vlm83b901d2007-08-27 23:57:45 +000020959
vlmfa67ddc2004-06-03 03:38:44 +000020960rm -f conftest.err conftest.$ac_ext
20961
20962done
20963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20964rm -f conftest.err conftest.$ac_ext
20965if $ac_preproc_ok; then
20966 :
20967else
20968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
20969See \`config.log' for more details." >&5
20970echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
20971See \`config.log' for more details." >&2;}
20972 { (exit 1); exit 1; }; }
20973fi
20974
20975ac_ext=c
20976ac_cpp='$CPP $CPPFLAGS'
20977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979ac_compiler_gnu=$ac_cv_c_compiler_gnu
20980
20981# Find a good install program. We prefer a C program (faster),
20982# so one script is as good as another. But avoid the broken or
20983# incompatible versions:
20984# SysV /etc/install, /usr/sbin/install
20985# SunOS /usr/etc/install
20986# IRIX /sbin/install
20987# AIX /bin/install
20988# AmigaOS /C/install, which installs bootblocks on floppy discs
20989# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20990# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20991# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
vlm8f3eb992004-06-17 23:42:48 +000020992# OS/2's system install, which has a completely different semantic
vlmfa67ddc2004-06-03 03:38:44 +000020993# ./install, which can be erroneously created by make from ./install.sh.
vlm83b901d2007-08-27 23:57:45 +000020994{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20995echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000020996if test -z "$INSTALL"; then
20997if test "${ac_cv_path_install+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
20999else
21000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21001for as_dir in $PATH
21002do
21003 IFS=$as_save_IFS
21004 test -z "$as_dir" && as_dir=.
21005 # Account for people who put trailing slashes in PATH elements.
21006case $as_dir/ in
21007 ./ | .// | /cC/* | \
21008 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
vlm8f3eb992004-06-17 23:42:48 +000021009 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
vlmfa67ddc2004-06-03 03:38:44 +000021010 /usr/ucb/* ) ;;
21011 *)
21012 # OSF1 and SCO ODT 3.0 have their own names for install.
21013 # Don't use installbsd from OSF since it installs stuff as root
21014 # by default.
21015 for ac_prog in ginstall scoinst install; do
21016 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000021017 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
vlm8f3eb992004-06-17 23:42:48 +000021018 if test $ac_prog = install &&
21019 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21020 # AIX install. It has an incompatible calling convention.
21021 :
21022 elif test $ac_prog = install &&
21023 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21024 # program-specific install script used by HP pwplus--don't use.
21025 :
21026 else
21027 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21028 break 3
21029 fi
21030 fi
vlmfa67ddc2004-06-03 03:38:44 +000021031 done
21032 done
21033 ;;
21034esac
21035done
vlm83b901d2007-08-27 23:57:45 +000021036IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000021037
21038
21039fi
21040 if test "${ac_cv_path_install+set}" = set; then
21041 INSTALL=$ac_cv_path_install
21042 else
vlm83b901d2007-08-27 23:57:45 +000021043 # As a last resort, use the slow shell script. Don't cache a
21044 # value for INSTALL within a source directory, because that will
vlmfa67ddc2004-06-03 03:38:44 +000021045 # break other packages using the cache if that directory is
vlm83b901d2007-08-27 23:57:45 +000021046 # removed, or if the value is a relative name.
vlmfa67ddc2004-06-03 03:38:44 +000021047 INSTALL=$ac_install_sh
21048 fi
21049fi
vlm83b901d2007-08-27 23:57:45 +000021050{ echo "$as_me:$LINENO: result: $INSTALL" >&5
21051echo "${ECHO_T}$INSTALL" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021052
21053# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
21054# It thinks the first close brace ends the variable substitution.
21055test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
21056
21057test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
21058
21059test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
21060
vlm83b901d2007-08-27 23:57:45 +000021061{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
21062echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021063LN_S=$as_ln_s
21064if test "$LN_S" = "ln -s"; then
vlm83b901d2007-08-27 23:57:45 +000021065 { echo "$as_me:$LINENO: result: yes" >&5
21066echo "${ECHO_T}yes" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021067else
vlm83b901d2007-08-27 23:57:45 +000021068 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
21069echo "${ECHO_T}no, using $LN_S" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021070fi
21071
vlm83b901d2007-08-27 23:57:45 +000021072{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
21073echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
21074set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
21075if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000021076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077else
21078 cat >conftest.make <<\_ACEOF
vlm83b901d2007-08-27 23:57:45 +000021079SHELL = /bin/sh
vlmfa67ddc2004-06-03 03:38:44 +000021080all:
vlm83b901d2007-08-27 23:57:45 +000021081 @echo '@@@%%%=$(MAKE)=@@@%%%'
vlmfa67ddc2004-06-03 03:38:44 +000021082_ACEOF
21083# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
vlm83b901d2007-08-27 23:57:45 +000021084case `${MAKE-make} -f conftest.make 2>/dev/null` in
21085 *@@@%%%=?*=@@@%%%*)
21086 eval ac_cv_prog_make_${ac_make}_set=yes;;
21087 *)
21088 eval ac_cv_prog_make_${ac_make}_set=no;;
21089esac
vlmfa67ddc2004-06-03 03:38:44 +000021090rm -f conftest.make
21091fi
vlm83b901d2007-08-27 23:57:45 +000021092if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
21093 { echo "$as_me:$LINENO: result: yes" >&5
21094echo "${ECHO_T}yes" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021095 SET_MAKE=
21096else
vlm83b901d2007-08-27 23:57:45 +000021097 { echo "$as_me:$LINENO: result: no" >&5
21098echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021099 SET_MAKE="MAKE=${MAKE-make}"
21100fi
21101
21102for ac_prog in 'bison -y' byacc
21103do
21104 # Extract the first word of "$ac_prog", so it can be a program name with args.
21105set dummy $ac_prog; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000021106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021108if test "${ac_cv_prog_YACC+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110else
21111 if test -n "$YACC"; then
21112 ac_cv_prog_YACC="$YACC" # Let the user override the test.
21113else
21114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21115for as_dir in $PATH
21116do
21117 IFS=$as_save_IFS
21118 test -z "$as_dir" && as_dir=.
21119 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000021120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000021121 ac_cv_prog_YACC="$ac_prog"
21122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21123 break 2
21124 fi
21125done
21126done
vlm83b901d2007-08-27 23:57:45 +000021127IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000021128
21129fi
21130fi
21131YACC=$ac_cv_prog_YACC
21132if test -n "$YACC"; then
vlm83b901d2007-08-27 23:57:45 +000021133 { echo "$as_me:$LINENO: result: $YACC" >&5
21134echo "${ECHO_T}$YACC" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021135else
vlm83b901d2007-08-27 23:57:45 +000021136 { echo "$as_me:$LINENO: result: no" >&5
21137echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021138fi
21139
vlm83b901d2007-08-27 23:57:45 +000021140
vlmfa67ddc2004-06-03 03:38:44 +000021141 test -n "$YACC" && break
21142done
21143test -n "$YACC" || YACC="yacc"
21144
vlmfa67ddc2004-06-03 03:38:44 +000021145for ac_prog in flex lex
21146do
21147 # Extract the first word of "$ac_prog", so it can be a program name with args.
21148set dummy $ac_prog; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000021149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021151if test "${ac_cv_prog_LEX+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21153else
21154 if test -n "$LEX"; then
21155 ac_cv_prog_LEX="$LEX" # Let the user override the test.
21156else
21157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21158for as_dir in $PATH
21159do
21160 IFS=$as_save_IFS
21161 test -z "$as_dir" && as_dir=.
21162 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000021163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000021164 ac_cv_prog_LEX="$ac_prog"
21165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21166 break 2
21167 fi
21168done
21169done
vlm83b901d2007-08-27 23:57:45 +000021170IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000021171
21172fi
21173fi
21174LEX=$ac_cv_prog_LEX
21175if test -n "$LEX"; then
vlm83b901d2007-08-27 23:57:45 +000021176 { echo "$as_me:$LINENO: result: $LEX" >&5
21177echo "${ECHO_T}$LEX" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021178else
vlm83b901d2007-08-27 23:57:45 +000021179 { echo "$as_me:$LINENO: result: no" >&5
21180echo "${ECHO_T}no" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021181fi
21182
vlm83b901d2007-08-27 23:57:45 +000021183
vlmfa67ddc2004-06-03 03:38:44 +000021184 test -n "$LEX" && break
21185done
21186test -n "$LEX" || LEX=":"
21187
21188if test -z "$LEXLIB"
21189then
vlm83b901d2007-08-27 23:57:45 +000021190 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
21191echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021192if test "${ac_cv_lib_fl_yywrap+set}" = set; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21194else
21195 ac_check_lib_save_LIBS=$LIBS
21196LIBS="-lfl $LIBS"
21197cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
21203
vlm83b901d2007-08-27 23:57:45 +000021204/* Override any GCC internal prototype to avoid an error.
21205 Use char because int might match the return type of a GCC
21206 builtin and then its argument prototype would still apply. */
vlmfa67ddc2004-06-03 03:38:44 +000021207#ifdef __cplusplus
21208extern "C"
21209#endif
vlmfa67ddc2004-06-03 03:38:44 +000021210char yywrap ();
21211int
21212main ()
21213{
vlm83b901d2007-08-27 23:57:45 +000021214return yywrap ();
vlmfa67ddc2004-06-03 03:38:44 +000021215 ;
21216 return 0;
21217}
21218_ACEOF
21219rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000021220if { (ac_try="$ac_link"
21221case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21224esac
21225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_link") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021227 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021228 grep -v '^ *+' conftest.er1 >conftest.err
21229 rm -f conftest.er1
21230 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000021233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21234 { (case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237esac
21238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000021240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000021244 { (case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21247esac
21248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000021250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
21253 ac_cv_lib_fl_yywrap=yes
21254else
21255 echo "$as_me: failed program was:" >&5
21256sed 's/^/| /' conftest.$ac_ext >&5
21257
vlm83b901d2007-08-27 23:57:45 +000021258 ac_cv_lib_fl_yywrap=no
vlmfa67ddc2004-06-03 03:38:44 +000021259fi
vlm83b901d2007-08-27 23:57:45 +000021260
21261rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000021262 conftest$ac_exeext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021263LIBS=$ac_check_lib_save_LIBS
21264fi
vlm83b901d2007-08-27 23:57:45 +000021265{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
21266echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021267if test $ac_cv_lib_fl_yywrap = yes; then
21268 LEXLIB="-lfl"
21269else
vlm83b901d2007-08-27 23:57:45 +000021270 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
21271echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021272if test "${ac_cv_lib_l_yywrap+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274else
21275 ac_check_lib_save_LIBS=$LIBS
21276LIBS="-ll $LIBS"
21277cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021278/* confdefs.h. */
21279_ACEOF
21280cat confdefs.h >>conftest.$ac_ext
21281cat >>conftest.$ac_ext <<_ACEOF
21282/* end confdefs.h. */
21283
vlm83b901d2007-08-27 23:57:45 +000021284/* Override any GCC internal prototype to avoid an error.
21285 Use char because int might match the return type of a GCC
21286 builtin and then its argument prototype would still apply. */
vlmfa67ddc2004-06-03 03:38:44 +000021287#ifdef __cplusplus
21288extern "C"
21289#endif
vlmfa67ddc2004-06-03 03:38:44 +000021290char yywrap ();
21291int
21292main ()
21293{
vlm83b901d2007-08-27 23:57:45 +000021294return yywrap ();
vlmfa67ddc2004-06-03 03:38:44 +000021295 ;
21296 return 0;
21297}
21298_ACEOF
21299rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000021300if { (ac_try="$ac_link"
21301case "(($ac_try" in
21302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303 *) ac_try_echo=$ac_try;;
21304esac
21305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306 (eval "$ac_link") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021307 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021308 grep -v '^ *+' conftest.er1 >conftest.err
21309 rm -f conftest.er1
21310 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000021313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21314 { (case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21317esac
21318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000021320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; } &&
21323 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000021324 { (case "(($ac_try" in
21325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326 *) ac_try_echo=$ac_try;;
21327esac
21328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000021330 ac_status=$?
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); }; }; then
21333 ac_cv_lib_l_yywrap=yes
21334else
21335 echo "$as_me: failed program was:" >&5
21336sed 's/^/| /' conftest.$ac_ext >&5
21337
vlm83b901d2007-08-27 23:57:45 +000021338 ac_cv_lib_l_yywrap=no
vlmfa67ddc2004-06-03 03:38:44 +000021339fi
vlm83b901d2007-08-27 23:57:45 +000021340
21341rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000021342 conftest$ac_exeext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021343LIBS=$ac_check_lib_save_LIBS
21344fi
vlm83b901d2007-08-27 23:57:45 +000021345{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
21346echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021347if test $ac_cv_lib_l_yywrap = yes; then
21348 LEXLIB="-ll"
21349fi
21350
21351fi
21352
21353fi
21354
21355if test "x$LEX" != "x:"; then
vlm83b901d2007-08-27 23:57:45 +000021356 { echo "$as_me:$LINENO: checking lex output file root" >&5
21357echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021358if test "${ac_cv_prog_lex_root+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360else
21361 # The minimal lex program is just a single line: %%. But some broken lexes
21362# (Solaris, I think it was) want two %% lines, so accommodate them.
21363cat >conftest.l <<_ACEOF
21364%%
21365%%
21366_ACEOF
vlm83b901d2007-08-27 23:57:45 +000021367{ (ac_try="$LEX conftest.l"
21368case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21371esac
21372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$LEX conftest.l") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000021374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }
21377if test -f lex.yy.c; then
21378 ac_cv_prog_lex_root=lex.yy
21379elif test -f lexyy.c; then
21380 ac_cv_prog_lex_root=lexyy
21381else
21382 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
21383echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
21384 { (exit 1); exit 1; }; }
21385fi
21386fi
vlm83b901d2007-08-27 23:57:45 +000021387{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
21388echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021389rm -f conftest.l
21390LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21391
vlm83b901d2007-08-27 23:57:45 +000021392{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
21393echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021394if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21396else
21397 # POSIX says lex can declare yytext either as a pointer or an array; the
21398# default is implementation-dependent. Figure out which it is, since
21399# not all implementations provide the %pointer and %array declarations.
21400ac_cv_prog_lex_yytext_pointer=no
21401echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
21402ac_save_LIBS=$LIBS
21403LIBS="$LIBS $LEXLIB"
21404cat >conftest.$ac_ext <<_ACEOF
21405`cat $LEX_OUTPUT_ROOT.c`
21406_ACEOF
21407rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000021408if { (ac_try="$ac_link"
21409case "(($ac_try" in
21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411 *) ac_try_echo=$ac_try;;
21412esac
21413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414 (eval "$ac_link") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021415 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000021421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21422 { (case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21425esac
21426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000021428 ac_status=$?
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; } &&
21431 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000021432 { (case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21435esac
21436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000021438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 ac_cv_prog_lex_yytext_pointer=yes
21442else
21443 echo "$as_me: failed program was:" >&5
21444sed 's/^/| /' conftest.$ac_ext >&5
21445
vlm83b901d2007-08-27 23:57:45 +000021446
vlmfa67ddc2004-06-03 03:38:44 +000021447fi
vlm83b901d2007-08-27 23:57:45 +000021448
21449rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000021450 conftest$ac_exeext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021451LIBS=$ac_save_LIBS
21452rm -f "${LEX_OUTPUT_ROOT}.c"
21453
21454fi
vlm83b901d2007-08-27 23:57:45 +000021455{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
21456echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021457if test $ac_cv_prog_lex_yytext_pointer = yes; then
21458
21459cat >>confdefs.h <<\_ACEOF
21460#define YYTEXT_POINTER 1
21461_ACEOF
21462
21463fi
21464
21465fi
vlm8f3eb992004-06-17 23:42:48 +000021466if test "$LEX" = :; then
21467 LEX=${am_missing_run}flex
21468fi
vlm77fff672005-03-30 05:14:26 +000021469# Extract the first word of "ar", so it can be a program name with args.
21470set dummy ar; ac_word=$2
vlm83b901d2007-08-27 23:57:45 +000021471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vlm77fff672005-03-30 05:14:26 +000021473if test "${ac_cv_path_AR+set}" = set; then
21474 echo $ECHO_N "(cached) $ECHO_C" >&6
21475else
21476 case $AR in
21477 [\\/]* | ?:[\\/]*)
21478 ac_cv_path_AR="$AR" # Let the user override the test with a path.
21479 ;;
21480 *)
21481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21482as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
21483for as_dir in $as_dummy
21484do
21485 IFS=$as_save_IFS
21486 test -z "$as_dir" && as_dir=.
21487 for ac_exec_ext in '' $ac_executable_extensions; do
vlm83b901d2007-08-27 23:57:45 +000021488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
vlm77fff672005-03-30 05:14:26 +000021489 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
21490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21491 break 2
21492 fi
21493done
21494done
vlm83b901d2007-08-27 23:57:45 +000021495IFS=$as_save_IFS
vlm77fff672005-03-30 05:14:26 +000021496
21497 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
21498 ;;
21499esac
21500fi
21501AR=$ac_cv_path_AR
vlm77fff672005-03-30 05:14:26 +000021502if test -n "$AR"; then
vlm83b901d2007-08-27 23:57:45 +000021503 { echo "$as_me:$LINENO: result: $AR" >&5
21504echo "${ECHO_T}$AR" >&6; }
vlm77fff672005-03-30 05:14:26 +000021505else
vlm83b901d2007-08-27 23:57:45 +000021506 { echo "$as_me:$LINENO: result: no" >&5
21507echo "${ECHO_T}no" >&6; }
vlm77fff672005-03-30 05:14:26 +000021508fi
vlmfa67ddc2004-06-03 03:38:44 +000021509
vlm83b901d2007-08-27 23:57:45 +000021510
vlmdda60c42004-08-23 10:41:38 +000021511case "$host_os" in
vlmef98a372006-03-18 06:39:49 +000021512cygwin)
vlm4888a862006-03-18 06:25:40 +000021513 case "$target" in
vlmdda60c42004-08-23 10:41:38 +000021514 *mingw*)
21515 CC="$CC -mno-cygwin"
21516 esac
21517 ;;
vlm4888a862006-03-18 06:25:40 +000021518esac
21519
vlm83b901d2007-08-27 23:57:45 +000021520# Check whether --enable-Werror was given.
vlmee2e9c52004-09-26 14:18:32 +000021521if test "${enable_Werror+set}" = set; then
vlm83b901d2007-08-27 23:57:45 +000021522 enableval=$enable_Werror; enable_werror=$enableval
vlmee2e9c52004-09-26 14:18:32 +000021523else
21524 enable_werror=no
vlm83b901d2007-08-27 23:57:45 +000021525fi
21526
vlmee2e9c52004-09-26 14:18:32 +000021527if test x$enable_werror = xyes; then
21528 ADD_CFLAGS="-Werror -W -Wpointer-arith"
21529fi
vlmfa67ddc2004-06-03 03:38:44 +000021530
21531
21532case "$GCC" in
21533 yes)
21534 CFLAGS="$CFLAGS -Wall"
21535 CFLAGS="$CFLAGS -Wshadow"
21536 CFLAGS="$CFLAGS -Wcast-qual"
21537 CFLAGS="$CFLAGS -Wcast-align"
vlm1ca8d232004-09-26 13:16:33 +000021538 CFLAGS="$CFLAGS -Wchar-subscripts"
vlmfa67ddc2004-06-03 03:38:44 +000021539 CFLAGS="$CFLAGS -Wmissing-prototypes"
21540 CFLAGS="$CFLAGS -Wmissing-declarations"
vlmfa67ddc2004-06-03 03:38:44 +000021541 ;;
21542esac
21543
21544
vlm83b901d2007-08-27 23:57:45 +000021545{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21546echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021547if test "${ac_cv_header_stdc+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549else
21550 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
21555/* end confdefs.h. */
21556#include <stdlib.h>
21557#include <stdarg.h>
21558#include <string.h>
21559#include <float.h>
21560
21561int
21562main ()
21563{
21564
21565 ;
21566 return 0;
21567}
21568_ACEOF
21569rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000021570if { (ac_try="$ac_compile"
21571case "(($ac_try" in
21572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573 *) ac_try_echo=$ac_try;;
21574esac
21575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021577 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021578 grep -v '^ *+' conftest.er1 >conftest.err
21579 rm -f conftest.er1
21580 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000021583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21584 { (case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587esac
21588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000021590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; } &&
21593 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000021594 { (case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21597esac
21598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000021600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603 ac_cv_header_stdc=yes
21604else
21605 echo "$as_me: failed program was:" >&5
21606sed 's/^/| /' conftest.$ac_ext >&5
21607
vlm83b901d2007-08-27 23:57:45 +000021608 ac_cv_header_stdc=no
vlmfa67ddc2004-06-03 03:38:44 +000021609fi
vlm83b901d2007-08-27 23:57:45 +000021610
21611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000021612
21613if test $ac_cv_header_stdc = yes; then
21614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21615 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021616/* confdefs.h. */
21617_ACEOF
21618cat confdefs.h >>conftest.$ac_ext
21619cat >>conftest.$ac_ext <<_ACEOF
21620/* end confdefs.h. */
21621#include <string.h>
21622
21623_ACEOF
21624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21625 $EGREP "memchr" >/dev/null 2>&1; then
21626 :
21627else
21628 ac_cv_header_stdc=no
21629fi
21630rm -f conftest*
21631
21632fi
21633
21634if test $ac_cv_header_stdc = yes; then
21635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21636 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021637/* confdefs.h. */
21638_ACEOF
21639cat confdefs.h >>conftest.$ac_ext
21640cat >>conftest.$ac_ext <<_ACEOF
21641/* end confdefs.h. */
21642#include <stdlib.h>
21643
21644_ACEOF
21645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21646 $EGREP "free" >/dev/null 2>&1; then
21647 :
21648else
21649 ac_cv_header_stdc=no
21650fi
21651rm -f conftest*
21652
21653fi
21654
21655if test $ac_cv_header_stdc = yes; then
21656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21657 if test "$cross_compiling" = yes; then
21658 :
21659else
21660 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021661/* confdefs.h. */
21662_ACEOF
21663cat confdefs.h >>conftest.$ac_ext
21664cat >>conftest.$ac_ext <<_ACEOF
21665/* end confdefs.h. */
21666#include <ctype.h>
vlm83b901d2007-08-27 23:57:45 +000021667#include <stdlib.h>
vlmfa67ddc2004-06-03 03:38:44 +000021668#if ((' ' & 0x0FF) == 0x020)
21669# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21670# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21671#else
21672# define ISLOWER(c) \
vlm8f3eb992004-06-17 23:42:48 +000021673 (('a' <= (c) && (c) <= 'i') \
21674 || ('j' <= (c) && (c) <= 'r') \
21675 || ('s' <= (c) && (c) <= 'z'))
vlmfa67ddc2004-06-03 03:38:44 +000021676# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21677#endif
21678
21679#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21680int
21681main ()
21682{
21683 int i;
21684 for (i = 0; i < 256; i++)
21685 if (XOR (islower (i), ISLOWER (i))
vlm8f3eb992004-06-17 23:42:48 +000021686 || toupper (i) != TOUPPER (i))
vlm83b901d2007-08-27 23:57:45 +000021687 return 2;
21688 return 0;
vlmfa67ddc2004-06-03 03:38:44 +000021689}
21690_ACEOF
21691rm -f conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000021692if { (ac_try="$ac_link"
21693case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21696esac
21697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_link") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000021699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000021702 { (case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21705esac
21706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000021708 ac_status=$?
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; }; then
21711 :
21712else
21713 echo "$as_me: program exited with status $ac_status" >&5
21714echo "$as_me: failed program was:" >&5
21715sed 's/^/| /' conftest.$ac_ext >&5
21716
21717( exit $ac_status )
21718ac_cv_header_stdc=no
21719fi
vlm83b901d2007-08-27 23:57:45 +000021720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21721fi
21722
21723
vlmfa67ddc2004-06-03 03:38:44 +000021724fi
21725fi
vlm83b901d2007-08-27 23:57:45 +000021726{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21727echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021728if test $ac_cv_header_stdc = yes; then
21729
21730cat >>confdefs.h <<\_ACEOF
21731#define STDC_HEADERS 1
21732_ACEOF
21733
21734fi
21735
vlmfa67ddc2004-06-03 03:38:44 +000021736
vlm1f1d8cb2004-08-13 16:58:19 +000021737for ac_header in sys/param.h
vlmfa67ddc2004-06-03 03:38:44 +000021738do
21739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
vlm83b901d2007-08-27 23:57:45 +000021740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000021744 echo $ECHO_N "(cached) $ECHO_C" >&6
21745fi
vlm83b901d2007-08-27 23:57:45 +000021746ac_res=`eval echo '${'$as_ac_Header'}'`
21747 { echo "$as_me:$LINENO: result: $ac_res" >&5
21748echo "${ECHO_T}$ac_res" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021749else
21750 # Is the header compilable?
vlm83b901d2007-08-27 23:57:45 +000021751{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021753cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021754/* confdefs.h. */
21755_ACEOF
21756cat confdefs.h >>conftest.$ac_ext
21757cat >>conftest.$ac_ext <<_ACEOF
21758/* end confdefs.h. */
21759$ac_includes_default
21760#include <$ac_header>
21761_ACEOF
21762rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000021763if { (ac_try="$ac_compile"
21764case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767esac
21768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021770 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000021776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21777 { (case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21780esac
21781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000021783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; } &&
21786 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000021787 { (case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21790esac
21791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000021793 ac_status=$?
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); }; }; then
21796 ac_header_compiler=yes
21797else
21798 echo "$as_me: failed program was:" >&5
21799sed 's/^/| /' conftest.$ac_ext >&5
21800
vlm83b901d2007-08-27 23:57:45 +000021801 ac_header_compiler=no
vlmfa67ddc2004-06-03 03:38:44 +000021802fi
vlm83b901d2007-08-27 23:57:45 +000021803
21804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21806echo "${ECHO_T}$ac_header_compiler" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021807
21808# Is the header present?
vlm83b901d2007-08-27 23:57:45 +000021809{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021811cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021812/* confdefs.h. */
21813_ACEOF
21814cat confdefs.h >>conftest.$ac_ext
21815cat >>conftest.$ac_ext <<_ACEOF
21816/* end confdefs.h. */
21817#include <$ac_header>
21818_ACEOF
vlm83b901d2007-08-27 23:57:45 +000021819if { (ac_try="$ac_cpp conftest.$ac_ext"
21820case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21823esac
21824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021826 ac_status=$?
21827 grep -v '^ *+' conftest.er1 >conftest.err
21828 rm -f conftest.er1
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } >/dev/null; then
21832 if test -s conftest.err; then
21833 ac_cpp_err=$ac_c_preproc_warn_flag
vlm8f3eb992004-06-17 23:42:48 +000021834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
vlmfa67ddc2004-06-03 03:38:44 +000021835 else
21836 ac_cpp_err=
21837 fi
21838else
21839 ac_cpp_err=yes
21840fi
21841if test -z "$ac_cpp_err"; then
21842 ac_header_preproc=yes
21843else
21844 echo "$as_me: failed program was:" >&5
21845sed 's/^/| /' conftest.$ac_ext >&5
21846
21847 ac_header_preproc=no
21848fi
vlm83b901d2007-08-27 23:57:45 +000021849
vlmfa67ddc2004-06-03 03:38:44 +000021850rm -f conftest.err conftest.$ac_ext
vlm83b901d2007-08-27 23:57:45 +000021851{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21852echo "${ECHO_T}$ac_header_preproc" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021853
21854# So? What about this header?
vlm8f3eb992004-06-17 23:42:48 +000021855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21856 yes:no: )
vlmfa67ddc2004-06-03 03:38:44 +000021857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
vlm8f3eb992004-06-17 23:42:48 +000021859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21861 ac_header_preproc=yes
vlmfa67ddc2004-06-03 03:38:44 +000021862 ;;
vlm8f3eb992004-06-17 23:42:48 +000021863 no:yes:* )
vlmfa67ddc2004-06-03 03:38:44 +000021864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
vlm8f3eb992004-06-17 23:42:48 +000021866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21871echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
vlmfa67ddc2004-06-03 03:38:44 +000021872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
vlm8f3eb992004-06-17 23:42:48 +000021874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
vlm83b901d2007-08-27 23:57:45 +000021876
vlmfa67ddc2004-06-03 03:38:44 +000021877 ;;
21878esac
vlm83b901d2007-08-27 23:57:45 +000021879{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000021882 echo $ECHO_N "(cached) $ECHO_C" >&6
21883else
vlm8f3eb992004-06-17 23:42:48 +000021884 eval "$as_ac_Header=\$ac_header_preproc"
vlmfa67ddc2004-06-03 03:38:44 +000021885fi
vlm83b901d2007-08-27 23:57:45 +000021886ac_res=`eval echo '${'$as_ac_Header'}'`
21887 { echo "$as_me:$LINENO: result: $ac_res" >&5
21888echo "${ECHO_T}$ac_res" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021889
21890fi
21891if test `eval echo '${'$as_ac_Header'}'` = yes; then
21892 cat >>confdefs.h <<_ACEOF
21893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21894_ACEOF
21895
21896fi
21897
21898done
21899
21900
vlm83b901d2007-08-27 23:57:45 +000021901{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21902echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000021903if test "${ac_cv_c_bigendian+set}" = set; then
21904 echo $ECHO_N "(cached) $ECHO_C" >&6
21905else
21906 # See if sys/param.h defines the BYTE_ORDER macro.
21907cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021908/* confdefs.h. */
21909_ACEOF
21910cat confdefs.h >>conftest.$ac_ext
21911cat >>conftest.$ac_ext <<_ACEOF
21912/* end confdefs.h. */
21913#include <sys/types.h>
21914#include <sys/param.h>
21915
21916int
21917main ()
21918{
21919#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21920 bogus endian macros
21921#endif
21922
21923 ;
21924 return 0;
21925}
21926_ACEOF
21927rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000021928if { (ac_try="$ac_compile"
21929case "(($ac_try" in
21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931 *) ac_try_echo=$ac_try;;
21932esac
21933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021935 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021936 grep -v '^ *+' conftest.er1 >conftest.err
21937 rm -f conftest.er1
21938 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000021941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21942 { (case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21945esac
21946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000021948 ac_status=$?
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; } &&
21951 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000021952 { (case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21955esac
21956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000021958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; }; then
21961 # It does; now see whether it defined to BIG_ENDIAN or not.
21962cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000021963/* confdefs.h. */
21964_ACEOF
21965cat confdefs.h >>conftest.$ac_ext
21966cat >>conftest.$ac_ext <<_ACEOF
21967/* end confdefs.h. */
21968#include <sys/types.h>
21969#include <sys/param.h>
21970
21971int
21972main ()
21973{
21974#if BYTE_ORDER != BIG_ENDIAN
21975 not big endian
21976#endif
21977
21978 ;
21979 return 0;
21980}
21981_ACEOF
21982rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000021983if { (ac_try="$ac_compile"
21984case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21987esac
21988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000021990 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000021991 grep -v '^ *+' conftest.er1 >conftest.err
21992 rm -f conftest.er1
21993 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000021994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000021996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21997 { (case "(($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_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000022003 ac_status=$?
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; } &&
22006 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000022007 { (case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22010esac
22011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000022013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 ac_cv_c_bigendian=yes
22017else
22018 echo "$as_me: failed program was:" >&5
22019sed 's/^/| /' conftest.$ac_ext >&5
22020
vlm83b901d2007-08-27 23:57:45 +000022021 ac_cv_c_bigendian=no
vlmfa67ddc2004-06-03 03:38:44 +000022022fi
vlm83b901d2007-08-27 23:57:45 +000022023
22024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000022025else
22026 echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
22028
vlm83b901d2007-08-27 23:57:45 +000022029 # It does not; compile a test program.
vlmfa67ddc2004-06-03 03:38:44 +000022030if test "$cross_compiling" = yes; then
22031 # try to guess the endianness by grepping values into an object file
22032 ac_cv_c_bigendian=unknown
22033 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000022034/* confdefs.h. */
22035_ACEOF
22036cat confdefs.h >>conftest.$ac_ext
22037cat >>conftest.$ac_ext <<_ACEOF
22038/* end confdefs.h. */
vlm83b901d2007-08-27 23:57:45 +000022039short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22040short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
vlmfa67ddc2004-06-03 03:38:44 +000022041void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
vlm83b901d2007-08-27 23:57:45 +000022042short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22043short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
vlmfa67ddc2004-06-03 03:38:44 +000022044void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22045int
22046main ()
22047{
22048 _ascii (); _ebcdic ();
22049 ;
22050 return 0;
22051}
22052_ACEOF
22053rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000022054if { (ac_try="$ac_compile"
22055case "(($ac_try" in
22056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057 *) ac_try_echo=$ac_try;;
22058esac
22059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000022061 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000022062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000022065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000022067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22068 { (case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22071esac
22072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000022074 ac_status=$?
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; } &&
22077 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000022078 { (case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22081esac
22082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000022084 ac_status=$?
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; }; then
22087 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22088 ac_cv_c_bigendian=yes
22089fi
22090if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22091 if test "$ac_cv_c_bigendian" = unknown; then
22092 ac_cv_c_bigendian=no
22093 else
22094 # finding both strings is unlikely to happen, but who knows?
22095 ac_cv_c_bigendian=unknown
22096 fi
22097fi
22098else
22099 echo "$as_me: failed program was:" >&5
22100sed 's/^/| /' conftest.$ac_ext >&5
22101
vlm83b901d2007-08-27 23:57:45 +000022102
vlmfa67ddc2004-06-03 03:38:44 +000022103fi
vlm83b901d2007-08-27 23:57:45 +000022104
22105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000022106else
22107 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000022108/* confdefs.h. */
22109_ACEOF
22110cat confdefs.h >>conftest.$ac_ext
22111cat >>conftest.$ac_ext <<_ACEOF
22112/* end confdefs.h. */
vlm83b901d2007-08-27 23:57:45 +000022113$ac_includes_default
vlmfa67ddc2004-06-03 03:38:44 +000022114int
22115main ()
22116{
vlm83b901d2007-08-27 23:57:45 +000022117
vlmfa67ddc2004-06-03 03:38:44 +000022118 /* Are we little or big endian? From Harbison&Steele. */
22119 union
22120 {
vlm83b901d2007-08-27 23:57:45 +000022121 long int l;
22122 char c[sizeof (long int)];
vlmfa67ddc2004-06-03 03:38:44 +000022123 } u;
22124 u.l = 1;
vlm83b901d2007-08-27 23:57:45 +000022125 return u.c[sizeof (long int) - 1] == 1;
22126
22127 ;
22128 return 0;
vlmfa67ddc2004-06-03 03:38:44 +000022129}
22130_ACEOF
22131rm -f conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000022132if { (ac_try="$ac_link"
22133case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136esac
22137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_link") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000022139 ac_status=$?
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000022142 { (case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22145esac
22146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000022148 ac_status=$?
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22151 ac_cv_c_bigendian=no
22152else
22153 echo "$as_me: program exited with status $ac_status" >&5
22154echo "$as_me: failed program was:" >&5
22155sed 's/^/| /' conftest.$ac_ext >&5
22156
22157( exit $ac_status )
22158ac_cv_c_bigendian=yes
22159fi
vlm83b901d2007-08-27 23:57:45 +000022160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000022161fi
vlm83b901d2007-08-27 23:57:45 +000022162
22163
vlmfa67ddc2004-06-03 03:38:44 +000022164fi
vlm83b901d2007-08-27 23:57:45 +000022165
22166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000022167fi
vlm83b901d2007-08-27 23:57:45 +000022168{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22169echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000022170case $ac_cv_c_bigendian in
22171 yes)
22172
22173cat >>confdefs.h <<\_ACEOF
22174#define WORDS_BIGENDIAN 1
22175_ACEOF
22176 ;;
22177 no)
22178 ;;
22179 *)
22180 { { echo "$as_me:$LINENO: error: unknown endianness
22181presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22182echo "$as_me: error: unknown endianness
22183presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22184 { (exit 1); exit 1; }; } ;;
22185esac
22186
vlm83b901d2007-08-27 23:57:45 +000022187{ echo "$as_me:$LINENO: checking for off_t" >&5
22188echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000022189if test "${ac_cv_type_off_t+set}" = set; then
22190 echo $ECHO_N "(cached) $ECHO_C" >&6
22191else
22192 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000022193/* confdefs.h. */
22194_ACEOF
22195cat confdefs.h >>conftest.$ac_ext
22196cat >>conftest.$ac_ext <<_ACEOF
22197/* end confdefs.h. */
22198$ac_includes_default
vlm83b901d2007-08-27 23:57:45 +000022199typedef off_t ac__type_new_;
vlmfa67ddc2004-06-03 03:38:44 +000022200int
22201main ()
22202{
vlm83b901d2007-08-27 23:57:45 +000022203if ((ac__type_new_ *) 0)
vlmfa67ddc2004-06-03 03:38:44 +000022204 return 0;
vlm83b901d2007-08-27 23:57:45 +000022205if (sizeof (ac__type_new_))
vlmfa67ddc2004-06-03 03:38:44 +000022206 return 0;
22207 ;
22208 return 0;
22209}
22210_ACEOF
22211rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000022212if { (ac_try="$ac_compile"
22213case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22216esac
22217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000022219 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000022220 grep -v '^ *+' conftest.er1 >conftest.err
22221 rm -f conftest.er1
22222 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000022223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000022225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22226 { (case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22229esac
22230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000022232 ac_status=$?
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; } &&
22235 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000022236 { (case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22239esac
22240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000022242 ac_status=$?
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); }; }; then
22245 ac_cv_type_off_t=yes
22246else
22247 echo "$as_me: failed program was:" >&5
22248sed 's/^/| /' conftest.$ac_ext >&5
22249
vlm83b901d2007-08-27 23:57:45 +000022250 ac_cv_type_off_t=no
vlmfa67ddc2004-06-03 03:38:44 +000022251fi
vlm83b901d2007-08-27 23:57:45 +000022252
22253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000022254fi
vlm83b901d2007-08-27 23:57:45 +000022255{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22256echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000022257if test $ac_cv_type_off_t = yes; then
22258 :
22259else
22260
22261cat >>confdefs.h <<_ACEOF
vlm83b901d2007-08-27 23:57:45 +000022262#define off_t long int
vlmfa67ddc2004-06-03 03:38:44 +000022263_ACEOF
22264
22265fi
22266
vlm83b901d2007-08-27 23:57:45 +000022267{ echo "$as_me:$LINENO: checking for size_t" >&5
22268echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000022269if test "${ac_cv_type_size_t+set}" = set; then
22270 echo $ECHO_N "(cached) $ECHO_C" >&6
22271else
22272 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000022273/* confdefs.h. */
22274_ACEOF
22275cat confdefs.h >>conftest.$ac_ext
22276cat >>conftest.$ac_ext <<_ACEOF
22277/* end confdefs.h. */
22278$ac_includes_default
vlm83b901d2007-08-27 23:57:45 +000022279typedef size_t ac__type_new_;
vlmfa67ddc2004-06-03 03:38:44 +000022280int
22281main ()
22282{
vlm83b901d2007-08-27 23:57:45 +000022283if ((ac__type_new_ *) 0)
vlmfa67ddc2004-06-03 03:38:44 +000022284 return 0;
vlm83b901d2007-08-27 23:57:45 +000022285if (sizeof (ac__type_new_))
vlmfa67ddc2004-06-03 03:38:44 +000022286 return 0;
22287 ;
22288 return 0;
22289}
22290_ACEOF
22291rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000022292if { (ac_try="$ac_compile"
22293case "(($ac_try" in
22294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295 *) ac_try_echo=$ac_try;;
22296esac
22297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22298 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000022299 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000022300 grep -v '^ *+' conftest.er1 >conftest.err
22301 rm -f conftest.er1
22302 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000022303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000022305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22306 { (case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22309esac
22310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000022312 ac_status=$?
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); }; } &&
22315 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000022316 { (case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22319esac
22320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000022322 ac_status=$?
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); }; }; then
22325 ac_cv_type_size_t=yes
22326else
22327 echo "$as_me: failed program was:" >&5
22328sed 's/^/| /' conftest.$ac_ext >&5
22329
vlm83b901d2007-08-27 23:57:45 +000022330 ac_cv_type_size_t=no
vlmfa67ddc2004-06-03 03:38:44 +000022331fi
vlm83b901d2007-08-27 23:57:45 +000022332
22333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000022334fi
vlm83b901d2007-08-27 23:57:45 +000022335{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22336echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000022337if test $ac_cv_type_size_t = yes; then
22338 :
22339else
22340
22341cat >>confdefs.h <<_ACEOF
vlm83b901d2007-08-27 23:57:45 +000022342#define size_t unsigned int
vlmfa67ddc2004-06-03 03:38:44 +000022343_ACEOF
22344
22345fi
22346
vlm83b901d2007-08-27 23:57:45 +000022347{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22348echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000022349if test "${ac_cv_struct_tm+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351else
22352 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000022353/* confdefs.h. */
22354_ACEOF
22355cat confdefs.h >>conftest.$ac_ext
22356cat >>conftest.$ac_ext <<_ACEOF
22357/* end confdefs.h. */
22358#include <sys/types.h>
22359#include <time.h>
22360
22361int
22362main ()
22363{
22364struct tm *tp; tp->tm_sec;
22365 ;
22366 return 0;
22367}
22368_ACEOF
22369rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000022370if { (ac_try="$ac_compile"
22371case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22374esac
22375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000022377 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000022378 grep -v '^ *+' conftest.er1 >conftest.err
22379 rm -f conftest.er1
22380 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000022381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000022383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22384 { (case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22387esac
22388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000022390 ac_status=$?
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; } &&
22393 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000022394 { (case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22397esac
22398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000022400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; }; then
22403 ac_cv_struct_tm=time.h
22404else
22405 echo "$as_me: failed program was:" >&5
22406sed 's/^/| /' conftest.$ac_ext >&5
22407
vlm83b901d2007-08-27 23:57:45 +000022408 ac_cv_struct_tm=sys/time.h
vlmfa67ddc2004-06-03 03:38:44 +000022409fi
vlm83b901d2007-08-27 23:57:45 +000022410
22411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000022412fi
vlm83b901d2007-08-27 23:57:45 +000022413{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22414echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000022415if test $ac_cv_struct_tm = sys/time.h; then
22416
22417cat >>confdefs.h <<\_ACEOF
22418#define TM_IN_SYS_TIME 1
22419_ACEOF
22420
22421fi
22422
vlm83b901d2007-08-27 23:57:45 +000022423{ echo "$as_me:$LINENO: checking for intmax_t" >&5
22424echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000022425if test "${ac_cv_type_intmax_t+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22427else
22428 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000022429/* confdefs.h. */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h. */
22434$ac_includes_default
vlm83b901d2007-08-27 23:57:45 +000022435typedef intmax_t ac__type_new_;
vlmfa67ddc2004-06-03 03:38:44 +000022436int
22437main ()
22438{
vlm83b901d2007-08-27 23:57:45 +000022439if ((ac__type_new_ *) 0)
vlmfa67ddc2004-06-03 03:38:44 +000022440 return 0;
vlm83b901d2007-08-27 23:57:45 +000022441if (sizeof (ac__type_new_))
vlmfa67ddc2004-06-03 03:38:44 +000022442 return 0;
22443 ;
22444 return 0;
22445}
22446_ACEOF
22447rm -f conftest.$ac_objext
vlm83b901d2007-08-27 23:57:45 +000022448if { (ac_try="$ac_compile"
22449case "(($ac_try" in
22450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451 *) ac_try_echo=$ac_try;;
22452esac
22453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22454 (eval "$ac_compile") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000022455 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000022456 grep -v '^ *+' conftest.er1 >conftest.err
22457 rm -f conftest.er1
22458 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000022459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000022461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22462 { (case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22465esac
22466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000022468 ac_status=$?
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; } &&
22471 { ac_try='test -s conftest.$ac_objext'
vlm83b901d2007-08-27 23:57:45 +000022472 { (case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22475esac
22476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000022478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; }; then
22481 ac_cv_type_intmax_t=yes
22482else
22483 echo "$as_me: failed program was:" >&5
22484sed 's/^/| /' conftest.$ac_ext >&5
22485
vlm83b901d2007-08-27 23:57:45 +000022486 ac_cv_type_intmax_t=no
vlmfa67ddc2004-06-03 03:38:44 +000022487fi
vlm83b901d2007-08-27 23:57:45 +000022488
22489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000022490fi
vlm83b901d2007-08-27 23:57:45 +000022491{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
22492echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000022493if test $ac_cv_type_intmax_t = yes; then
22494 :
22495else
22496
22497cat >>confdefs.h <<_ACEOF
22498#define intmax_t int64_t
22499_ACEOF
22500
22501fi
22502
22503
vlm4e928162007-12-04 00:27:38 +000022504{ echo "$as_me:$LINENO: checking for library containing getopt" >&5
22505echo $ECHO_N "checking for library containing getopt... $ECHO_C" >&6; }
22506if test "${ac_cv_search_getopt+set}" = set; then
22507 echo $ECHO_N "(cached) $ECHO_C" >&6
22508else
22509 ac_func_search_save_LIBS=$LIBS
22510cat >conftest.$ac_ext <<_ACEOF
22511/* confdefs.h. */
22512_ACEOF
22513cat confdefs.h >>conftest.$ac_ext
22514cat >>conftest.$ac_ext <<_ACEOF
22515/* end confdefs.h. */
22516
22517/* Override any GCC internal prototype to avoid an error.
22518 Use char because int might match the return type of a GCC
22519 builtin and then its argument prototype would still apply. */
22520#ifdef __cplusplus
22521extern "C"
22522#endif
22523char getopt ();
22524int
22525main ()
22526{
22527return getopt ();
22528 ;
22529 return 0;
22530}
22531_ACEOF
22532for ac_lib in '' iberty; do
22533 if test -z "$ac_lib"; then
22534 ac_res="none required"
22535 else
22536 ac_res=-l$ac_lib
22537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22538 fi
22539 rm -f conftest.$ac_objext conftest$ac_exeext
22540if { (ac_try="$ac_link"
22541case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22544esac
22545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_link") 2>conftest.er1
22547 ac_status=$?
22548 grep -v '^ *+' conftest.er1 >conftest.err
22549 rm -f conftest.er1
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } &&
22553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22554 { (case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22557esac
22558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_try") 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; } &&
22563 { ac_try='test -s conftest$ac_exeext'
22564 { (case "(($ac_try" in
22565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566 *) ac_try_echo=$ac_try;;
22567esac
22568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569 (eval "$ac_try") 2>&5
22570 ac_status=$?
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22573 ac_cv_search_getopt=$ac_res
22574else
22575 echo "$as_me: failed program was:" >&5
22576sed 's/^/| /' conftest.$ac_ext >&5
22577
22578
22579fi
22580
22581rm -f core conftest.err conftest.$ac_objext \
22582 conftest$ac_exeext
22583 if test "${ac_cv_search_getopt+set}" = set; then
22584 break
22585fi
22586done
22587if test "${ac_cv_search_getopt+set}" = set; then
22588 :
22589else
22590 ac_cv_search_getopt=no
22591fi
22592rm conftest.$ac_ext
22593LIBS=$ac_func_search_save_LIBS
22594fi
22595{ echo "$as_me:$LINENO: result: $ac_cv_search_getopt" >&5
22596echo "${ECHO_T}$ac_cv_search_getopt" >&6; }
22597ac_res=$ac_cv_search_getopt
22598if test "$ac_res" != no; then
22599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22600
22601fi
22602
22603
vlmfa67ddc2004-06-03 03:38:44 +000022604
22605
22606for ac_func in strtoimax strtoll
22607do
22608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
vlm83b901d2007-08-27 23:57:45 +000022609{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22611if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
vlmfa67ddc2004-06-03 03:38:44 +000022612 echo $ECHO_N "(cached) $ECHO_C" >&6
22613else
22614 cat >conftest.$ac_ext <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000022615/* confdefs.h. */
22616_ACEOF
22617cat confdefs.h >>conftest.$ac_ext
22618cat >>conftest.$ac_ext <<_ACEOF
22619/* end confdefs.h. */
vlm8f3eb992004-06-17 23:42:48 +000022620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22622#define $ac_func innocuous_$ac_func
22623
vlmfa67ddc2004-06-03 03:38:44 +000022624/* System header to define __stub macros and hopefully few prototypes,
22625 which can conflict with char $ac_func (); below.
22626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22627 <limits.h> exists even on freestanding compilers. */
vlm8f3eb992004-06-17 23:42:48 +000022628
vlmfa67ddc2004-06-03 03:38:44 +000022629#ifdef __STDC__
22630# include <limits.h>
22631#else
22632# include <assert.h>
22633#endif
vlm8f3eb992004-06-17 23:42:48 +000022634
22635#undef $ac_func
22636
vlm83b901d2007-08-27 23:57:45 +000022637/* Override any GCC internal prototype to avoid an error.
22638 Use char because int might match the return type of a GCC
22639 builtin and then its argument prototype would still apply. */
vlmfa67ddc2004-06-03 03:38:44 +000022640#ifdef __cplusplus
22641extern "C"
vlmfa67ddc2004-06-03 03:38:44 +000022642#endif
vlmfa67ddc2004-06-03 03:38:44 +000022643char $ac_func ();
22644/* The GNU C library defines this for functions which it implements
22645 to always fail with ENOSYS. Some functions are actually named
22646 something starting with __ and the normal name is an alias. */
vlm83b901d2007-08-27 23:57:45 +000022647#if defined __stub_$ac_func || defined __stub___$ac_func
vlmfa67ddc2004-06-03 03:38:44 +000022648choke me
vlmfa67ddc2004-06-03 03:38:44 +000022649#endif
22650
22651int
22652main ()
22653{
vlm83b901d2007-08-27 23:57:45 +000022654return $ac_func ();
vlmfa67ddc2004-06-03 03:38:44 +000022655 ;
22656 return 0;
22657}
22658_ACEOF
22659rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000022660if { (ac_try="$ac_link"
22661case "(($ac_try" in
22662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663 *) ac_try_echo=$ac_try;;
22664esac
22665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22666 (eval "$ac_link") 2>conftest.er1
vlmfa67ddc2004-06-03 03:38:44 +000022667 ac_status=$?
vlm8f3eb992004-06-17 23:42:48 +000022668 grep -v '^ *+' conftest.er1 >conftest.err
22669 rm -f conftest.er1
22670 cat conftest.err >&5
vlmfa67ddc2004-06-03 03:38:44 +000022671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000022673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22674 { (case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22677esac
22678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_try") 2>&5
vlm8f3eb992004-06-17 23:42:48 +000022680 ac_status=$?
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; } &&
22683 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000022684 { (case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22687esac
22688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_try") 2>&5
vlmfa67ddc2004-06-03 03:38:44 +000022690 ac_status=$?
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; }; then
22693 eval "$as_ac_var=yes"
22694else
22695 echo "$as_me: failed program was:" >&5
22696sed 's/^/| /' conftest.$ac_ext >&5
22697
vlm83b901d2007-08-27 23:57:45 +000022698 eval "$as_ac_var=no"
vlmfa67ddc2004-06-03 03:38:44 +000022699fi
vlm83b901d2007-08-27 23:57:45 +000022700
22701rm -f core conftest.err conftest.$ac_objext \
vlm8f3eb992004-06-17 23:42:48 +000022702 conftest$ac_exeext conftest.$ac_ext
vlmfa67ddc2004-06-03 03:38:44 +000022703fi
vlm83b901d2007-08-27 23:57:45 +000022704ac_res=`eval echo '${'$as_ac_var'}'`
22705 { echo "$as_me:$LINENO: result: $ac_res" >&5
22706echo "${ECHO_T}$ac_res" >&6; }
vlmfa67ddc2004-06-03 03:38:44 +000022707if test `eval echo '${'$as_ac_var'}'` = yes; then
22708 cat >>confdefs.h <<_ACEOF
22709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22710_ACEOF
22711
22712fi
22713done
22714
22715
vlmb1d783b2004-06-28 21:22:35 +000022716for ac_func in mergesort
22717do
22718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
vlm83b901d2007-08-27 23:57:45 +000022719{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22721if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
vlmb1d783b2004-06-28 21:22:35 +000022722 echo $ECHO_N "(cached) $ECHO_C" >&6
22723else
22724 cat >conftest.$ac_ext <<_ACEOF
22725/* confdefs.h. */
22726_ACEOF
22727cat confdefs.h >>conftest.$ac_ext
22728cat >>conftest.$ac_ext <<_ACEOF
22729/* end confdefs.h. */
22730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22732#define $ac_func innocuous_$ac_func
22733
22734/* System header to define __stub macros and hopefully few prototypes,
22735 which can conflict with char $ac_func (); below.
22736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22737 <limits.h> exists even on freestanding compilers. */
22738
22739#ifdef __STDC__
22740# include <limits.h>
22741#else
22742# include <assert.h>
22743#endif
22744
22745#undef $ac_func
22746
vlm83b901d2007-08-27 23:57:45 +000022747/* Override any GCC internal prototype to avoid an error.
22748 Use char because int might match the return type of a GCC
22749 builtin and then its argument prototype would still apply. */
vlmb1d783b2004-06-28 21:22:35 +000022750#ifdef __cplusplus
22751extern "C"
vlmb1d783b2004-06-28 21:22:35 +000022752#endif
vlmb1d783b2004-06-28 21:22:35 +000022753char $ac_func ();
22754/* The GNU C library defines this for functions which it implements
22755 to always fail with ENOSYS. Some functions are actually named
22756 something starting with __ and the normal name is an alias. */
vlm83b901d2007-08-27 23:57:45 +000022757#if defined __stub_$ac_func || defined __stub___$ac_func
vlmb1d783b2004-06-28 21:22:35 +000022758choke me
vlmb1d783b2004-06-28 21:22:35 +000022759#endif
22760
22761int
22762main ()
22763{
vlm83b901d2007-08-27 23:57:45 +000022764return $ac_func ();
vlmb1d783b2004-06-28 21:22:35 +000022765 ;
22766 return 0;
22767}
22768_ACEOF
22769rm -f conftest.$ac_objext conftest$ac_exeext
vlm83b901d2007-08-27 23:57:45 +000022770if { (ac_try="$ac_link"
22771case "(($ac_try" in
22772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773 *) ac_try_echo=$ac_try;;
22774esac
22775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776 (eval "$ac_link") 2>conftest.er1
vlmb1d783b2004-06-28 21:22:35 +000022777 ac_status=$?
22778 grep -v '^ *+' conftest.er1 >conftest.err
22779 rm -f conftest.er1
22780 cat conftest.err >&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } &&
vlm83b901d2007-08-27 23:57:45 +000022783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22784 { (case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22787esac
22788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_try") 2>&5
vlmb1d783b2004-06-28 21:22:35 +000022790 ac_status=$?
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; } &&
22793 { ac_try='test -s conftest$ac_exeext'
vlm83b901d2007-08-27 23:57:45 +000022794 { (case "(($ac_try" in
22795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796 *) ac_try_echo=$ac_try;;
22797esac
22798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799 (eval "$ac_try") 2>&5
vlmb1d783b2004-06-28 21:22:35 +000022800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; }; then
22803 eval "$as_ac_var=yes"
22804else
22805 echo "$as_me: failed program was:" >&5
22806sed 's/^/| /' conftest.$ac_ext >&5
22807
vlm83b901d2007-08-27 23:57:45 +000022808 eval "$as_ac_var=no"
vlmb1d783b2004-06-28 21:22:35 +000022809fi
vlm83b901d2007-08-27 23:57:45 +000022810
22811rm -f core conftest.err conftest.$ac_objext \
vlmb1d783b2004-06-28 21:22:35 +000022812 conftest$ac_exeext conftest.$ac_ext
22813fi
vlm83b901d2007-08-27 23:57:45 +000022814ac_res=`eval echo '${'$as_ac_var'}'`
22815 { echo "$as_me:$LINENO: result: $ac_res" >&5
22816echo "${ECHO_T}$ac_res" >&6; }
vlmb1d783b2004-06-28 21:22:35 +000022817if test `eval echo '${'$as_ac_var'}'` = yes; then
22818 cat >>confdefs.h <<_ACEOF
22819#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22820_ACEOF
22821
22822fi
22823done
22824
22825
vlm83b901d2007-08-27 23:57:45 +000022826for ac_func in mkstemps
22827do
22828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22833else
22834 cat >conftest.$ac_ext <<_ACEOF
22835/* confdefs.h. */
22836_ACEOF
22837cat confdefs.h >>conftest.$ac_ext
22838cat >>conftest.$ac_ext <<_ACEOF
22839/* end confdefs.h. */
22840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22842#define $ac_func innocuous_$ac_func
22843
22844/* System header to define __stub macros and hopefully few prototypes,
22845 which can conflict with char $ac_func (); below.
22846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22847 <limits.h> exists even on freestanding compilers. */
22848
22849#ifdef __STDC__
22850# include <limits.h>
22851#else
22852# include <assert.h>
22853#endif
22854
22855#undef $ac_func
22856
22857/* Override any GCC internal prototype to avoid an error.
22858 Use char because int might match the return type of a GCC
22859 builtin and then its argument prototype would still apply. */
22860#ifdef __cplusplus
22861extern "C"
22862#endif
22863char $ac_func ();
22864/* The GNU C library defines this for functions which it implements
22865 to always fail with ENOSYS. Some functions are actually named
22866 something starting with __ and the normal name is an alias. */
22867#if defined __stub_$ac_func || defined __stub___$ac_func
22868choke me
22869#endif
22870
22871int
22872main ()
22873{
22874return $ac_func ();
22875 ;
22876 return 0;
22877}
22878_ACEOF
22879rm -f conftest.$ac_objext conftest$ac_exeext
22880if { (ac_try="$ac_link"
22881case "(($ac_try" in
22882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22884esac
22885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886 (eval "$ac_link") 2>conftest.er1
22887 ac_status=$?
22888 grep -v '^ *+' conftest.er1 >conftest.err
22889 rm -f conftest.er1
22890 cat conftest.err >&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } &&
22893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22894 { (case "(($ac_try" in
22895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896 *) ac_try_echo=$ac_try;;
22897esac
22898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899 (eval "$ac_try") 2>&5
22900 ac_status=$?
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); }; } &&
22903 { ac_try='test -s conftest$ac_exeext'
22904 { (case "(($ac_try" in
22905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906 *) ac_try_echo=$ac_try;;
22907esac
22908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22909 (eval "$ac_try") 2>&5
22910 ac_status=$?
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; }; then
22913 eval "$as_ac_var=yes"
22914else
22915 echo "$as_me: failed program was:" >&5
22916sed 's/^/| /' conftest.$ac_ext >&5
22917
22918 eval "$as_ac_var=no"
22919fi
22920
22921rm -f core conftest.err conftest.$ac_objext \
22922 conftest$ac_exeext conftest.$ac_ext
22923fi
22924ac_res=`eval echo '${'$as_ac_var'}'`
22925 { echo "$as_me:$LINENO: result: $ac_res" >&5
22926echo "${ECHO_T}$ac_res" >&6; }
22927if test `eval echo '${'$as_ac_var'}'` = yes; then
22928 cat >>confdefs.h <<_ACEOF
22929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22930_ACEOF
22931
22932fi
22933done
vlmfa67ddc2004-06-03 03:38:44 +000022934
22935
vlm83b901d2007-08-27 23:57:45 +000022936ac_config_headers="$ac_config_headers config.h"
22937
22938
22939ac_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"
22940
vlmfa67ddc2004-06-03 03:38:44 +000022941cat >confcache <<\_ACEOF
22942# This file is a shell script that caches the results of configure
22943# tests run on this system so they can be shared between configure
22944# scripts and configure runs, see configure's option --config-cache.
22945# It is not useful on other systems. If it contains results you don't
22946# want to keep, you may remove or edit it.
22947#
22948# config.status only pays attention to the cache file if you give it
22949# the --recheck option to rerun configure.
22950#
22951# `ac_cv_env_foo' variables (set or unset) will be overridden when
22952# loading this file, other *unset* `ac_cv_foo' will be assigned the
22953# following values.
22954
22955_ACEOF
22956
22957# The following way of writing the cache mishandles newlines in values,
22958# but we know of no workaround that is simple, portable, and efficient.
vlm83b901d2007-08-27 23:57:45 +000022959# So, we kill variables containing newlines.
vlmfa67ddc2004-06-03 03:38:44 +000022960# Ultrix sh set writes to stderr and can't be redirected directly,
22961# and sets the high bit in the cache file unless we assign to the vars.
vlm83b901d2007-08-27 23:57:45 +000022962(
22963 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22964 eval ac_val=\$$ac_var
22965 case $ac_val in #(
22966 *${as_nl}*)
22967 case $ac_var in #(
22968 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22969echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22970 esac
22971 case $ac_var in #(
22972 _ | IFS | as_nl) ;; #(
22973 *) $as_unset $ac_var ;;
22974 esac ;;
22975 esac
22976 done
22977
vlmfa67ddc2004-06-03 03:38:44 +000022978 (set) 2>&1 |
vlm83b901d2007-08-27 23:57:45 +000022979 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22980 *${as_nl}ac_space=\ *)
vlmfa67ddc2004-06-03 03:38:44 +000022981 # `set' does not quote correctly, so add quotes (double-quote
22982 # substitution turns \\\\ into \\, and sed turns \\ into \).
22983 sed -n \
vlm8f3eb992004-06-17 23:42:48 +000022984 "s/'/'\\\\''/g;
22985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
vlm83b901d2007-08-27 23:57:45 +000022986 ;; #(
vlmfa67ddc2004-06-03 03:38:44 +000022987 *)
22988 # `set' quotes correctly as required by POSIX, so do not add quotes.
vlm83b901d2007-08-27 23:57:45 +000022989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
vlmfa67ddc2004-06-03 03:38:44 +000022990 ;;
vlm83b901d2007-08-27 23:57:45 +000022991 esac |
22992 sort
22993) |
vlmfa67ddc2004-06-03 03:38:44 +000022994 sed '
vlm83b901d2007-08-27 23:57:45 +000022995 /^ac_cv_env_/b end
vlmfa67ddc2004-06-03 03:38:44 +000022996 t clear
vlm83b901d2007-08-27 23:57:45 +000022997 :clear
vlmfa67ddc2004-06-03 03:38:44 +000022998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22999 t end
vlm83b901d2007-08-27 23:57:45 +000023000 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23001 :end' >>confcache
23002if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23003 if test -w "$cache_file"; then
23004 test "x$cache_file" != "x/dev/null" &&
23005 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23006echo "$as_me: updating cache $cache_file" >&6;}
vlmfa67ddc2004-06-03 03:38:44 +000023007 cat confcache >$cache_file
23008 else
vlm83b901d2007-08-27 23:57:45 +000023009 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23010echo "$as_me: not updating unwritable cache $cache_file" >&6;}
vlmfa67ddc2004-06-03 03:38:44 +000023011 fi
23012fi
23013rm -f confcache
23014
23015test "x$prefix" = xNONE && prefix=$ac_default_prefix
23016# Let make expand exec_prefix.
23017test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23018
vlmfa67ddc2004-06-03 03:38:44 +000023019DEFS=-DHAVE_CONFIG_H
23020
23021ac_libobjs=
23022ac_ltlibobjs=
23023for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23024 # 1. Remove the extension, and $U if already installed.
vlm83b901d2007-08-27 23:57:45 +000023025 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23026 ac_i=`echo "$ac_i" | sed "$ac_script"`
23027 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23028 # will be set to the directory where LIBOBJS objects are built.
23029 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23030 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
vlmfa67ddc2004-06-03 03:38:44 +000023031done
23032LIBOBJS=$ac_libobjs
23033
23034LTLIBOBJS=$ac_ltlibobjs
23035
23036
vlm8f3eb992004-06-17 23:42:48 +000023037if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23038 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23039Usually this means the macro was only invoked conditionally." >&5
23040echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23041Usually this means the macro was only invoked conditionally." >&2;}
23042 { (exit 1); exit 1; }; }
23043fi
23044if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23045 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23046Usually this means the macro was only invoked conditionally." >&5
23047echo "$as_me: error: conditional \"AMDEP\" was never defined.
23048Usually this means the macro was only invoked conditionally." >&2;}
23049 { (exit 1); exit 1; }; }
23050fi
23051if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23052 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23053Usually this means the macro was only invoked conditionally." >&5
23054echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23055Usually this means the macro was only invoked conditionally." >&2;}
23056 { (exit 1); exit 1; }; }
23057fi
23058if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23059 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23060Usually this means the macro was only invoked conditionally." >&5
23061echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23062Usually this means the macro was only invoked conditionally." >&2;}
23063 { (exit 1); exit 1; }; }
23064fi
23065if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23066 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23067Usually this means the macro was only invoked conditionally." >&5
23068echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23069Usually this means the macro was only invoked conditionally." >&2;}
23070 { (exit 1); exit 1; }; }
23071fi
vlmfa67ddc2004-06-03 03:38:44 +000023072
23073: ${CONFIG_STATUS=./config.status}
23074ac_clean_files_save=$ac_clean_files
23075ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23076{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23077echo "$as_me: creating $CONFIG_STATUS" >&6;}
23078cat >$CONFIG_STATUS <<_ACEOF
23079#! $SHELL
23080# Generated by $as_me.
23081# Run this file to recreate the current configuration.
23082# Compiler output produced by configure, useful for debugging
23083# configure, is in config.log if it exists.
23084
23085debug=false
23086ac_cs_recheck=false
23087ac_cs_silent=false
23088SHELL=\${CONFIG_SHELL-$SHELL}
23089_ACEOF
23090
23091cat >>$CONFIG_STATUS <<\_ACEOF
23092## --------------------- ##
23093## M4sh Initialization. ##
23094## --------------------- ##
23095
23096# Be Bourne compatible
23097if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23098 emulate sh
23099 NULLCMD=:
23100 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23101 # is contrary to our usage. Disable this feature.
23102 alias -g '${1+"$@"}'='"$@"'
vlm83b901d2007-08-27 23:57:45 +000023103 setopt NO_GLOB_SUBST
23104else
23105 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
vlmfa67ddc2004-06-03 03:38:44 +000023106fi
vlm83b901d2007-08-27 23:57:45 +000023107BIN_SH=xpg4; export BIN_SH # for Tru64
vlm8f3eb992004-06-17 23:42:48 +000023108DUALCASE=1; export DUALCASE # for MKS sh
vlmfa67ddc2004-06-03 03:38:44 +000023109
vlmfa67ddc2004-06-03 03:38:44 +000023110
vlm83b901d2007-08-27 23:57:45 +000023111# PATH needs CR
vlmfa67ddc2004-06-03 03:38:44 +000023112# Avoid depending upon Character Ranges.
23113as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23114as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23115as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23116as_cr_digits='0123456789'
23117as_cr_alnum=$as_cr_Letters$as_cr_digits
23118
23119# The user is always right.
23120if test "${PATH_SEPARATOR+set}" != set; then
23121 echo "#! /bin/sh" >conf$$.sh
23122 echo "exit 0" >>conf$$.sh
23123 chmod +x conf$$.sh
23124 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23125 PATH_SEPARATOR=';'
23126 else
23127 PATH_SEPARATOR=:
23128 fi
23129 rm -f conf$$.sh
23130fi
23131
vlm83b901d2007-08-27 23:57:45 +000023132# Support unset when possible.
23133if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23134 as_unset=unset
23135else
23136 as_unset=false
23137fi
vlmfa67ddc2004-06-03 03:38:44 +000023138
vlm83b901d2007-08-27 23:57:45 +000023139
23140# IFS
23141# We need space, tab and new line, in precisely that order. Quoting is
23142# there to prevent editors from complaining about space-tab.
23143# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23144# splitting by setting IFS to empty value.)
23145as_nl='
23146'
23147IFS=" "" $as_nl"
23148
23149# Find who we are. Look in the path if we contain no directory separator.
23150case $0 in
23151 *[\\/]* ) as_myself=$0 ;;
23152 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
vlmfa67ddc2004-06-03 03:38:44 +000023153for as_dir in $PATH
23154do
23155 IFS=$as_save_IFS
23156 test -z "$as_dir" && as_dir=.
23157 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23158done
vlm83b901d2007-08-27 23:57:45 +000023159IFS=$as_save_IFS
vlmfa67ddc2004-06-03 03:38:44 +000023160
vlm83b901d2007-08-27 23:57:45 +000023161 ;;
23162esac
23163# We did not find ourselves, most probably we were run as `sh COMMAND'
23164# in which case we are not to be found in the path.
23165if test "x$as_myself" = x; then
23166 as_myself=$0
23167fi
23168if test ! -f "$as_myself"; then
23169 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23170 { (exit 1); exit 1; }
23171fi
23172
23173# Work around bugs in pre-3.0 UWIN ksh.
23174for as_var in ENV MAIL MAILPATH
23175do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23176done
23177PS1='$ '
23178PS2='> '
23179PS4='+ '
23180
23181# NLS nuisances.
23182for as_var in \
23183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23185 LC_TELEPHONE LC_TIME
vlmfa67ddc2004-06-03 03:38:44 +000023186do
vlm83b901d2007-08-27 23:57:45 +000023187 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23188 eval $as_var=C; export $as_var
23189 else
23190 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23191 fi
23192done
23193
23194# Required to use basename.
23195if expr a : '\(a\)' >/dev/null 2>&1 &&
23196 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23197 as_expr=expr
23198else
23199 as_expr=false
23200fi
23201
23202if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23203 as_basename=basename
23204else
23205 as_basename=false
23206fi
23207
23208
23209# Name of the executable.
23210as_me=`$as_basename -- "$0" ||
23211$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23212 X"$0" : 'X\(//\)$' \| \
23213 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23214echo X/"$0" |
23215 sed '/^.*\/\([^/][^/]*\)\/*$/{
23216 s//\1/
23217 q
23218 }
23219 /^X\/\(\/\/\)$/{
23220 s//\1/
23221 q
23222 }
23223 /^X\/\(\/\).*/{
23224 s//\1/
23225 q
23226 }
23227 s/.*/./; q'`
23228
23229# CDPATH.
23230$as_unset CDPATH
23231
23232
23233
vlmfa67ddc2004-06-03 03:38:44 +000023234 as_lineno_1=$LINENO
23235 as_lineno_2=$LINENO
vlmfa67ddc2004-06-03 03:38:44 +000023236 test "x$as_lineno_1" != "x$as_lineno_2" &&
vlm83b901d2007-08-27 23:57:45 +000023237 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
vlmfa67ddc2004-06-03 03:38:44 +000023238
23239 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23240 # uniformly replaced by the line number. The first 'sed' inserts a
vlm83b901d2007-08-27 23:57:45 +000023241 # line-number line after each line using $LINENO; the second 'sed'
23242 # does the real work. The second script uses 'N' to pair each
23243 # line-number line with the line containing $LINENO, and appends
23244 # trailing '-' during substitution so that $LINENO is not a special
23245 # case at line end.
vlmfa67ddc2004-06-03 03:38:44 +000023246 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
vlm83b901d2007-08-27 23:57:45 +000023247 # scripts with optimization help from Paolo Bonzini. Blame Lee
23248 # E. McMahon (1931-1989) for sed's syntax. :-)
23249 sed -n '
23250 p
23251 /[$]LINENO/=
23252 ' <$as_myself |
vlmfa67ddc2004-06-03 03:38:44 +000023253 sed '
vlm83b901d2007-08-27 23:57:45 +000023254 s/[$]LINENO.*/&-/
23255 t lineno
23256 b
23257 :lineno
vlmfa67ddc2004-06-03 03:38:44 +000023258 N
vlm83b901d2007-08-27 23:57:45 +000023259 :loop
23260 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
vlmfa67ddc2004-06-03 03:38:44 +000023261 t loop
vlm83b901d2007-08-27 23:57:45 +000023262 s/-\n.*//
vlmfa67ddc2004-06-03 03:38:44 +000023263 ' >$as_me.lineno &&
vlm83b901d2007-08-27 23:57:45 +000023264 chmod +x "$as_me.lineno" ||
23265 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
vlmfa67ddc2004-06-03 03:38:44 +000023266 { (exit 1); exit 1; }; }
23267
23268 # Don't try to exec as it changes $[0], causing all sort of problems
23269 # (the dirname of $[0] is not the place where we might find the
vlm83b901d2007-08-27 23:57:45 +000023270 # original and so on. Autoconf is especially sensitive to this).
23271 . "./$as_me.lineno"
vlmfa67ddc2004-06-03 03:38:44 +000023272 # Exit status is that of the last command.
23273 exit
23274}
23275
23276
vlm83b901d2007-08-27 23:57:45 +000023277if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23278 as_dirname=dirname
23279else
23280 as_dirname=false
23281fi
23282
23283ECHO_C= ECHO_N= ECHO_T=
23284case `echo -n x` in
23285-n*)
23286 case `echo 'x\c'` in
23287 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23288 *) ECHO_C='\c';;
23289 esac;;
23290*)
23291 ECHO_N='-n';;
vlmfa67ddc2004-06-03 03:38:44 +000023292esac
23293
vlm83b901d2007-08-27 23:57:45 +000023294if expr a : '\(a\)' >/dev/null 2>&1 &&
23295 test "X`expr 00001 : '.*\(...\)'`" = X001; then
vlmfa67ddc2004-06-03 03:38:44 +000023296 as_expr=expr
23297else
23298 as_expr=false
23299fi
23300
23301rm -f conf$$ conf$$.exe conf$$.file
vlm83b901d2007-08-27 23:57:45 +000023302if test -d conf$$.dir; then
23303 rm -f conf$$.dir/conf$$.file
23304else
23305 rm -f conf$$.dir
23306 mkdir conf$$.dir
23307fi
vlmfa67ddc2004-06-03 03:38:44 +000023308echo >conf$$.file
23309if ln -s conf$$.file conf$$ 2>/dev/null; then
vlm83b901d2007-08-27 23:57:45 +000023310 as_ln_s='ln -s'
23311 # ... but there are two gotchas:
23312 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23313 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23314 # In both cases, we have to default to `cp -p'.
23315 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
vlmfa67ddc2004-06-03 03:38:44 +000023316 as_ln_s='cp -p'
vlmfa67ddc2004-06-03 03:38:44 +000023317elif ln conf$$.file conf$$ 2>/dev/null; then
23318 as_ln_s=ln
23319else
23320 as_ln_s='cp -p'
23321fi
vlm83b901d2007-08-27 23:57:45 +000023322rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23323rmdir conf$$.dir 2>/dev/null
vlmfa67ddc2004-06-03 03:38:44 +000023324
23325if mkdir -p . 2>/dev/null; then
23326 as_mkdir_p=:
23327else
vlm8f3eb992004-06-17 23:42:48 +000023328 test -d ./-p && rmdir ./-p
vlmfa67ddc2004-06-03 03:38:44 +000023329 as_mkdir_p=false
23330fi
23331
vlm83b901d2007-08-27 23:57:45 +000023332# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23333# systems may use methods other than mode bits to determine executability.
23334cat >conf$$.file <<_ASEOF
23335#! /bin/sh
23336exit 0
23337_ASEOF
23338chmod +x conf$$.file
23339if test -x conf$$.file >/dev/null 2>&1; then
23340 as_executable_p="test -x"
23341else
23342 as_executable_p=:
23343fi
23344rm -f conf$$.file
vlmfa67ddc2004-06-03 03:38:44 +000023345
23346# Sed expression to map a string onto a valid CPP name.
vlm8f3eb992004-06-17 23:42:48 +000023347as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
vlmfa67ddc2004-06-03 03:38:44 +000023348
23349# Sed expression to map a string onto a valid variable name.
vlm8f3eb992004-06-17 23:42:48 +000023350as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
vlmfa67ddc2004-06-03 03:38:44 +000023351
23352
vlmfa67ddc2004-06-03 03:38:44 +000023353exec 6>&1
23354
vlm83b901d2007-08-27 23:57:45 +000023355# Save the log message, to keep $[0] and so on meaningful, and to
vlmfa67ddc2004-06-03 03:38:44 +000023356# report actual input values of CONFIG_FILES etc. instead of their
vlm83b901d2007-08-27 23:57:45 +000023357# values after options handling.
23358ac_log="
vlmfa67ddc2004-06-03 03:38:44 +000023359This file was extended by $as_me, which was
vlm83b901d2007-08-27 23:57:45 +000023360generated by GNU Autoconf 2.60. Invocation command line was
vlmfa67ddc2004-06-03 03:38:44 +000023361
23362 CONFIG_FILES = $CONFIG_FILES
23363 CONFIG_HEADERS = $CONFIG_HEADERS
23364 CONFIG_LINKS = $CONFIG_LINKS
23365 CONFIG_COMMANDS = $CONFIG_COMMANDS
23366 $ $0 $@
23367
vlm83b901d2007-08-27 23:57:45 +000023368on `(hostname || uname -n) 2>/dev/null | sed 1q`
23369"
23370
vlmfa67ddc2004-06-03 03:38:44 +000023371_ACEOF
23372
vlm83b901d2007-08-27 23:57:45 +000023373cat >>$CONFIG_STATUS <<_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000023374# Files that config.status was made for.
vlm83b901d2007-08-27 23:57:45 +000023375config_files="$ac_config_files"
23376config_headers="$ac_config_headers"
23377config_commands="$ac_config_commands"
vlmfa67ddc2004-06-03 03:38:44 +000023378
vlm83b901d2007-08-27 23:57:45 +000023379_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000023380
23381cat >>$CONFIG_STATUS <<\_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000023382ac_cs_usage="\
23383\`$as_me' instantiates files from templates according to the
23384current configuration.
23385
23386Usage: $0 [OPTIONS] [FILE]...
23387
23388 -h, --help print this help, then exit
23389 -V, --version print version number, then exit
23390 -q, --quiet do not print progress messages
23391 -d, --debug don't remove temporary files
23392 --recheck update $as_me by reconfiguring in the same conditions
23393 --file=FILE[:TEMPLATE]
vlm8f3eb992004-06-17 23:42:48 +000023394 instantiate the configuration file FILE
vlmfa67ddc2004-06-03 03:38:44 +000023395 --header=FILE[:TEMPLATE]
vlm8f3eb992004-06-17 23:42:48 +000023396 instantiate the configuration header FILE
vlmfa67ddc2004-06-03 03:38:44 +000023397
23398Configuration files:
23399$config_files
23400
23401Configuration headers:
23402$config_headers
23403
23404Configuration commands:
23405$config_commands
23406
23407Report bugs to <bug-autoconf@gnu.org>."
vlmfa67ddc2004-06-03 03:38:44 +000023408
vlm83b901d2007-08-27 23:57:45 +000023409_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000023410cat >>$CONFIG_STATUS <<_ACEOF
23411ac_cs_version="\\
23412config.status
vlm83b901d2007-08-27 23:57:45 +000023413configured by $0, generated by GNU Autoconf 2.60,
23414 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
vlmfa67ddc2004-06-03 03:38:44 +000023415
vlm83b901d2007-08-27 23:57:45 +000023416Copyright (C) 2006 Free Software Foundation, Inc.
vlmfa67ddc2004-06-03 03:38:44 +000023417This config.status script is free software; the Free Software Foundation
23418gives unlimited permission to copy, distribute and modify it."
vlm83b901d2007-08-27 23:57:45 +000023419
23420ac_pwd='$ac_pwd'
23421srcdir='$srcdir'
23422INSTALL='$INSTALL'
vlmfa67ddc2004-06-03 03:38:44 +000023423_ACEOF
23424
23425cat >>$CONFIG_STATUS <<\_ACEOF
23426# If no file are specified by the user, then we need to provide default
23427# value. By we need to know if files were specified by the user.
23428ac_need_defaults=:
23429while test $# != 0
23430do
23431 case $1 in
23432 --*=*)
vlm83b901d2007-08-27 23:57:45 +000023433 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23434 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
vlmfa67ddc2004-06-03 03:38:44 +000023435 ac_shift=:
23436 ;;
vlm83b901d2007-08-27 23:57:45 +000023437 *)
vlmfa67ddc2004-06-03 03:38:44 +000023438 ac_option=$1
23439 ac_optarg=$2
23440 ac_shift=shift
23441 ;;
vlmfa67ddc2004-06-03 03:38:44 +000023442 esac
23443
23444 case $ac_option in
23445 # Handling of the options.
vlmfa67ddc2004-06-03 03:38:44 +000023446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23447 ac_cs_recheck=: ;;
vlm83b901d2007-08-27 23:57:45 +000023448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23449 echo "$ac_cs_version"; exit ;;
23450 --debug | --debu | --deb | --de | --d | -d )
vlmfa67ddc2004-06-03 03:38:44 +000023451 debug=: ;;
23452 --file | --fil | --fi | --f )
23453 $ac_shift
23454 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23455 ac_need_defaults=false;;
23456 --header | --heade | --head | --hea )
23457 $ac_shift
23458 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23459 ac_need_defaults=false;;
vlm83b901d2007-08-27 23:57:45 +000023460 --he | --h)
23461 # Conflict between --help and --header
23462 { echo "$as_me: error: ambiguous option: $1
23463Try \`$0 --help' for more information." >&2
23464 { (exit 1); exit 1; }; };;
23465 --help | --hel | -h )
23466 echo "$ac_cs_usage"; exit ;;
vlmfa67ddc2004-06-03 03:38:44 +000023467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23468 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23469 ac_cs_silent=: ;;
23470
23471 # This is an error.
vlm83b901d2007-08-27 23:57:45 +000023472 -*) { echo "$as_me: error: unrecognized option: $1
23473Try \`$0 --help' for more information." >&2
vlmfa67ddc2004-06-03 03:38:44 +000023474 { (exit 1); exit 1; }; } ;;
23475
vlm83b901d2007-08-27 23:57:45 +000023476 *) ac_config_targets="$ac_config_targets $1"
23477 ac_need_defaults=false ;;
vlmfa67ddc2004-06-03 03:38:44 +000023478
23479 esac
23480 shift
23481done
23482
23483ac_configure_extra_args=
23484
23485if $ac_cs_silent; then
23486 exec 6>/dev/null
23487 ac_configure_extra_args="$ac_configure_extra_args --silent"
23488fi
23489
23490_ACEOF
23491cat >>$CONFIG_STATUS <<_ACEOF
23492if \$ac_cs_recheck; then
vlm83b901d2007-08-27 23:57:45 +000023493 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23494 CONFIG_SHELL=$SHELL
23495 export CONFIG_SHELL
23496 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
vlmfa67ddc2004-06-03 03:38:44 +000023497fi
23498
23499_ACEOF
vlm83b901d2007-08-27 23:57:45 +000023500cat >>$CONFIG_STATUS <<\_ACEOF
23501exec 5>>config.log
23502{
23503 echo
23504 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23505## Running $as_me. ##
23506_ASBOX
23507 echo "$ac_log"
23508} >&5
vlmfa67ddc2004-06-03 03:38:44 +000023509
vlm83b901d2007-08-27 23:57:45 +000023510_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000023511cat >>$CONFIG_STATUS <<_ACEOF
23512#
vlm83b901d2007-08-27 23:57:45 +000023513# INIT-COMMANDS
vlmfa67ddc2004-06-03 03:38:44 +000023514#
vlm8f3eb992004-06-17 23:42:48 +000023515AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
vlmfa67ddc2004-06-03 03:38:44 +000023516
23517_ACEOF
23518
vlmfa67ddc2004-06-03 03:38:44 +000023519cat >>$CONFIG_STATUS <<\_ACEOF
vlm83b901d2007-08-27 23:57:45 +000023520
23521# Handling of arguments.
vlmfa67ddc2004-06-03 03:38:44 +000023522for ac_config_target in $ac_config_targets
23523do
vlm83b901d2007-08-27 23:57:45 +000023524 case $ac_config_target in
23525 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23526 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23527 "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;;
23528 "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
23529 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
23530 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
23531 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
23532 "asn1c/webcgi/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;;
23533 "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
23534 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
23535 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
23536 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23537 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23538 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
23539 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23540 "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
23541 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23542
vlmfa67ddc2004-06-03 03:38:44 +000023543 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23544echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23545 { (exit 1); exit 1; }; };;
23546 esac
23547done
23548
vlm83b901d2007-08-27 23:57:45 +000023549
vlmfa67ddc2004-06-03 03:38:44 +000023550# If the user did not use the arguments to specify the items to instantiate,
23551# then the envvar interface is used. Set only those that are not.
23552# We use the long form for the default assignment because of an extremely
23553# bizarre bug on SunOS 4.1.3.
23554if $ac_need_defaults; then
23555 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23556 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23557 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23558fi
23559
23560# Have a temporary directory for convenience. Make it in the build tree
vlm83b901d2007-08-27 23:57:45 +000023561# simply because there is no reason against having it here, and in addition,
vlmfa67ddc2004-06-03 03:38:44 +000023562# creating and moving files from /tmp can sometimes cause problems.
vlm83b901d2007-08-27 23:57:45 +000023563# Hook for its removal unless debugging.
23564# Note that there is a small window in which the directory will not be cleaned:
23565# after its creation but before its name has been assigned to `$tmp'.
vlmfa67ddc2004-06-03 03:38:44 +000023566$debug ||
23567{
vlm83b901d2007-08-27 23:57:45 +000023568 tmp=
23569 trap 'exit_status=$?
23570 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23571' 0
vlmfa67ddc2004-06-03 03:38:44 +000023572 trap '{ (exit 1); exit 1; }' 1 2 13 15
23573}
vlmfa67ddc2004-06-03 03:38:44 +000023574# Create a (secure) tmp directory for tmp files.
23575
23576{
vlm83b901d2007-08-27 23:57:45 +000023577 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
vlmfa67ddc2004-06-03 03:38:44 +000023578 test -n "$tmp" && test -d "$tmp"
23579} ||
23580{
vlm83b901d2007-08-27 23:57:45 +000023581 tmp=./conf$$-$RANDOM
23582 (umask 077 && mkdir "$tmp")
vlmfa67ddc2004-06-03 03:38:44 +000023583} ||
23584{
23585 echo "$me: cannot create a temporary directory in ." >&2
23586 { (exit 1); exit 1; }
23587}
23588
vlmfa67ddc2004-06-03 03:38:44 +000023589#
vlm83b901d2007-08-27 23:57:45 +000023590# Set up the sed scripts for CONFIG_FILES section.
vlmfa67ddc2004-06-03 03:38:44 +000023591#
23592
23593# No need to generate the scripts if there are no CONFIG_FILES.
23594# This happens for instance when ./config.status config.h
vlm83b901d2007-08-27 23:57:45 +000023595if test -n "$CONFIG_FILES"; then
vlmfa67ddc2004-06-03 03:38:44 +000023596
23597_ACEOF
23598
vlm83b901d2007-08-27 23:57:45 +000023599
23600
23601ac_delim='%!_!# '
23602for ac_last_try in false false false false false :; do
23603 cat >conf$$subs.sed <<_ACEOF
23604SHELL!$SHELL$ac_delim
23605PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23606PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23607PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23608PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23609PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23610PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23611exec_prefix!$exec_prefix$ac_delim
23612prefix!$prefix$ac_delim
23613program_transform_name!$program_transform_name$ac_delim
23614bindir!$bindir$ac_delim
23615sbindir!$sbindir$ac_delim
23616libexecdir!$libexecdir$ac_delim
23617datarootdir!$datarootdir$ac_delim
23618datadir!$datadir$ac_delim
23619sysconfdir!$sysconfdir$ac_delim
23620sharedstatedir!$sharedstatedir$ac_delim
23621localstatedir!$localstatedir$ac_delim
23622includedir!$includedir$ac_delim
23623oldincludedir!$oldincludedir$ac_delim
23624docdir!$docdir$ac_delim
23625infodir!$infodir$ac_delim
23626htmldir!$htmldir$ac_delim
23627dvidir!$dvidir$ac_delim
23628pdfdir!$pdfdir$ac_delim
23629psdir!$psdir$ac_delim
23630libdir!$libdir$ac_delim
23631localedir!$localedir$ac_delim
23632mandir!$mandir$ac_delim
23633DEFS!$DEFS$ac_delim
23634ECHO_C!$ECHO_C$ac_delim
23635ECHO_N!$ECHO_N$ac_delim
23636ECHO_T!$ECHO_T$ac_delim
23637LIBS!$LIBS$ac_delim
23638build_alias!$build_alias$ac_delim
23639host_alias!$host_alias$ac_delim
23640target_alias!$target_alias$ac_delim
23641build!$build$ac_delim
23642build_cpu!$build_cpu$ac_delim
23643build_vendor!$build_vendor$ac_delim
23644build_os!$build_os$ac_delim
23645host!$host$ac_delim
23646host_cpu!$host_cpu$ac_delim
23647host_vendor!$host_vendor$ac_delim
23648host_os!$host_os$ac_delim
23649target!$target$ac_delim
23650target_cpu!$target_cpu$ac_delim
23651target_vendor!$target_vendor$ac_delim
23652target_os!$target_os$ac_delim
23653INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23654INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23655INSTALL_DATA!$INSTALL_DATA$ac_delim
23656CYGPATH_W!$CYGPATH_W$ac_delim
23657PACKAGE!$PACKAGE$ac_delim
23658VERSION!$VERSION$ac_delim
23659ACLOCAL!$ACLOCAL$ac_delim
23660AUTOCONF!$AUTOCONF$ac_delim
23661AUTOMAKE!$AUTOMAKE$ac_delim
23662AUTOHEADER!$AUTOHEADER$ac_delim
23663MAKEINFO!$MAKEINFO$ac_delim
23664install_sh!$install_sh$ac_delim
23665STRIP!$STRIP$ac_delim
23666INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23667mkdir_p!$mkdir_p$ac_delim
23668AWK!$AWK$ac_delim
23669SET_MAKE!$SET_MAKE$ac_delim
23670am__leading_dot!$am__leading_dot$ac_delim
23671AMTAR!$AMTAR$ac_delim
23672am__tar!$am__tar$ac_delim
23673am__untar!$am__untar$ac_delim
23674MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23675MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23676MAINT!$MAINT$ac_delim
23677CC!$CC$ac_delim
23678CFLAGS!$CFLAGS$ac_delim
23679LDFLAGS!$LDFLAGS$ac_delim
23680CPPFLAGS!$CPPFLAGS$ac_delim
23681ac_ct_CC!$ac_ct_CC$ac_delim
23682EXEEXT!$EXEEXT$ac_delim
23683OBJEXT!$OBJEXT$ac_delim
23684DEPDIR!$DEPDIR$ac_delim
23685am__include!$am__include$ac_delim
23686am__quote!$am__quote$ac_delim
23687AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23688AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23689AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23690CCDEPMODE!$CCDEPMODE$ac_delim
23691am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23692am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23693GREP!$GREP$ac_delim
23694EGREP!$EGREP$ac_delim
23695LN_S!$LN_S$ac_delim
23696ECHO!$ECHO$ac_delim
23697AR!$AR$ac_delim
23698RANLIB!$RANLIB$ac_delim
23699CPP!$CPP$ac_delim
23700CXX!$CXX$ac_delim
23701_ACEOF
23702
23703 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23704 break
23705 elif $ac_last_try; then
23706 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23707echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23708 { (exit 1); exit 1; }; }
23709 else
23710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
vlmfa67ddc2004-06-03 03:38:44 +000023711 fi
vlm83b901d2007-08-27 23:57:45 +000023712done
23713
23714ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23715if test -n "$ac_eof"; then
23716 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23717 ac_eof=`expr $ac_eof + 1`
23718fi
23719
23720cat >>$CONFIG_STATUS <<_ACEOF
23721cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23722/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23723_ACEOF
23724sed '
23725s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23726s/^/s,@/; s/!/@,|#_!!_#|/
23727:n
23728t n
23729s/'"$ac_delim"'$/,g/; t
23730s/$/\\/; p
23731N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23732' >>$CONFIG_STATUS <conf$$subs.sed
23733rm -f conf$$subs.sed
23734cat >>$CONFIG_STATUS <<_ACEOF
23735CEOF$ac_eof
23736_ACEOF
23737
23738
23739ac_delim='%!_!# '
23740for ac_last_try in false false false false false :; do
23741 cat >conf$$subs.sed <<_ACEOF
23742CXXFLAGS!$CXXFLAGS$ac_delim
23743ac_ct_CXX!$ac_ct_CXX$ac_delim
23744CXXDEPMODE!$CXXDEPMODE$ac_delim
23745am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23746am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23747CXXCPP!$CXXCPP$ac_delim
23748F77!$F77$ac_delim
23749FFLAGS!$FFLAGS$ac_delim
23750ac_ct_F77!$ac_ct_F77$ac_delim
23751LIBTOOL!$LIBTOOL$ac_delim
23752CONFIGURE_DEPENDS!$CONFIGURE_DEPENDS$ac_delim
23753YACC!$YACC$ac_delim
23754YFLAGS!$YFLAGS$ac_delim
23755LEX!$LEX$ac_delim
23756LEXLIB!$LEXLIB$ac_delim
23757LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
23758ADD_CFLAGS!$ADD_CFLAGS$ac_delim
23759LIBOBJS!$LIBOBJS$ac_delim
23760LTLIBOBJS!$LTLIBOBJS$ac_delim
23761_ACEOF
23762
23763 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
23764 break
23765 elif $ac_last_try; then
23766 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23767echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23768 { (exit 1); exit 1; }; }
23769 else
23770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23771 fi
23772done
23773
23774ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23775if test -n "$ac_eof"; then
23776 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23777 ac_eof=`expr $ac_eof + 1`
23778fi
23779
23780cat >>$CONFIG_STATUS <<_ACEOF
23781cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23782/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23783_ACEOF
23784sed '
23785s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23786s/^/s,@/; s/!/@,|#_!!_#|/
23787:n
23788t n
23789s/'"$ac_delim"'$/,g/; t
23790s/$/\\/; p
23791N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23792' >>$CONFIG_STATUS <conf$$subs.sed
23793rm -f conf$$subs.sed
23794cat >>$CONFIG_STATUS <<_ACEOF
23795:end
23796s/|#_!!_#|//g
23797CEOF$ac_eof
23798_ACEOF
23799
23800
23801# VPATH may cause trouble with some makes, so we remove $(srcdir),
23802# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23803# trailing colons and then remove the whole line if VPATH becomes empty
23804# (actually we leave an empty line to preserve line numbers).
23805if test "x$srcdir" = x.; then
23806 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23807s/:*\$(srcdir):*/:/
23808s/:*\${srcdir}:*/:/
23809s/:*@srcdir@:*/:/
23810s/^\([^=]*=[ ]*\):*/\1/
23811s/:*$//
23812s/^[^=]*=[ ]*$//
23813}'
23814fi
23815
23816cat >>$CONFIG_STATUS <<\_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000023817fi # test -n "$CONFIG_FILES"
23818
vlm83b901d2007-08-27 23:57:45 +000023819
23820for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23821do
23822 case $ac_tag in
23823 :[FHLC]) ac_mode=$ac_tag; continue;;
23824 esac
23825 case $ac_mode$ac_tag in
23826 :[FHL]*:*);;
23827 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23828echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23829 { (exit 1); exit 1; }; };;
23830 :[FH]-) ac_tag=-:-;;
23831 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23832 esac
23833 ac_save_IFS=$IFS
23834 IFS=:
23835 set x $ac_tag
23836 IFS=$ac_save_IFS
23837 shift
23838 ac_file=$1
23839 shift
23840
23841 case $ac_mode in
23842 :L) ac_source=$1;;
23843 :[FH])
23844 ac_file_inputs=
23845 for ac_f
23846 do
23847 case $ac_f in
23848 -) ac_f="$tmp/stdin";;
23849 *) # Look for the file first in the build tree, then in the source tree
23850 # (if the path is not absolute). The absolute path cannot be DOS-style,
23851 # because $ac_f cannot contain `:'.
23852 test -f "$ac_f" ||
23853 case $ac_f in
23854 [\\/$]*) false;;
23855 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23856 esac ||
23857 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23858echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23859 { (exit 1); exit 1; }; };;
23860 esac
23861 ac_file_inputs="$ac_file_inputs $ac_f"
23862 done
23863
23864 # Let's still pretend it is `configure' which instantiates (i.e., don't
23865 # use $as_me), people would be surprised to read:
23866 # /* config.h. Generated by config.status. */
23867 configure_input="Generated from "`IFS=:
23868 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23869 if test x"$ac_file" != x-; then
23870 configure_input="$ac_file. $configure_input"
23871 { echo "$as_me:$LINENO: creating $ac_file" >&5
23872echo "$as_me: creating $ac_file" >&6;}
23873 fi
23874
23875 case $ac_tag in
23876 *:-:* | *:-) cat >"$tmp/stdin";;
23877 esac
23878 ;;
vlmfa67ddc2004-06-03 03:38:44 +000023879 esac
23880
vlm83b901d2007-08-27 23:57:45 +000023881 ac_dir=`$as_dirname -- "$ac_file" ||
vlmfa67ddc2004-06-03 03:38:44 +000023882$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
vlm8f3eb992004-06-17 23:42:48 +000023883 X"$ac_file" : 'X\(//\)[^/]' \| \
23884 X"$ac_file" : 'X\(//\)$' \| \
vlm83b901d2007-08-27 23:57:45 +000023885 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
vlmfa67ddc2004-06-03 03:38:44 +000023886echo X"$ac_file" |
vlm83b901d2007-08-27 23:57:45 +000023887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23888 s//\1/
23889 q
23890 }
23891 /^X\(\/\/\)[^/].*/{
23892 s//\1/
23893 q
23894 }
23895 /^X\(\/\/\)$/{
23896 s//\1/
23897 q
23898 }
23899 /^X\(\/\).*/{
23900 s//\1/
23901 q
23902 }
23903 s/.*/./; q'`
23904 { as_dir="$ac_dir"
23905 case $as_dir in #(
23906 -*) as_dir=./$as_dir;;
23907 esac
23908 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
vlmfa67ddc2004-06-03 03:38:44 +000023909 as_dirs=
vlm83b901d2007-08-27 23:57:45 +000023910 while :; do
23911 case $as_dir in #(
23912 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23913 *) as_qdir=$as_dir;;
23914 esac
23915 as_dirs="'$as_qdir' $as_dirs"
23916 as_dir=`$as_dirname -- "$as_dir" ||
vlmfa67ddc2004-06-03 03:38:44 +000023917$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
vlm8f3eb992004-06-17 23:42:48 +000023918 X"$as_dir" : 'X\(//\)[^/]' \| \
23919 X"$as_dir" : 'X\(//\)$' \| \
vlm83b901d2007-08-27 23:57:45 +000023920 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
vlmfa67ddc2004-06-03 03:38:44 +000023921echo X"$as_dir" |
vlm83b901d2007-08-27 23:57:45 +000023922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23923 s//\1/
23924 q
23925 }
23926 /^X\(\/\/\)[^/].*/{
23927 s//\1/
23928 q
23929 }
23930 /^X\(\/\/\)$/{
23931 s//\1/
23932 q
23933 }
23934 /^X\(\/\).*/{
23935 s//\1/
23936 q
23937 }
23938 s/.*/./; q'`
23939 test -d "$as_dir" && break
vlmfa67ddc2004-06-03 03:38:44 +000023940 done
vlm83b901d2007-08-27 23:57:45 +000023941 test -z "$as_dirs" || eval "mkdir $as_dirs"
23942 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23943echo "$as_me: error: cannot create directory $as_dir" >&2;}
vlmfa67ddc2004-06-03 03:38:44 +000023944 { (exit 1); exit 1; }; }; }
vlmfa67ddc2004-06-03 03:38:44 +000023945 ac_builddir=.
23946
vlm83b901d2007-08-27 23:57:45 +000023947case "$ac_dir" in
23948.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23949*)
vlmfa67ddc2004-06-03 03:38:44 +000023950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
vlm83b901d2007-08-27 23:57:45 +000023951 # A ".." for each directory in $ac_dir_suffix.
23952 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23953 case $ac_top_builddir_sub in
23954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23956 esac ;;
23957esac
23958ac_abs_top_builddir=$ac_pwd
23959ac_abs_builddir=$ac_pwd$ac_dir_suffix
23960# for backward compatibility:
23961ac_top_builddir=$ac_top_build_prefix
vlmfa67ddc2004-06-03 03:38:44 +000023962
23963case $srcdir in
vlm83b901d2007-08-27 23:57:45 +000023964 .) # We are building in place.
vlmfa67ddc2004-06-03 03:38:44 +000023965 ac_srcdir=.
vlm83b901d2007-08-27 23:57:45 +000023966 ac_top_srcdir=$ac_top_builddir_sub
23967 ac_abs_top_srcdir=$ac_pwd ;;
23968 [\\/]* | ?:[\\/]* ) # Absolute name.
vlmfa67ddc2004-06-03 03:38:44 +000023969 ac_srcdir=$srcdir$ac_dir_suffix;
vlm83b901d2007-08-27 23:57:45 +000023970 ac_top_srcdir=$srcdir
23971 ac_abs_top_srcdir=$srcdir ;;
23972 *) # Relative name.
23973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23974 ac_top_srcdir=$ac_top_build_prefix$srcdir
23975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
vlmfa67ddc2004-06-03 03:38:44 +000023976esac
vlm83b901d2007-08-27 23:57:45 +000023977ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
vlm8f3eb992004-06-17 23:42:48 +000023978
vlmfa67ddc2004-06-03 03:38:44 +000023979
vlm83b901d2007-08-27 23:57:45 +000023980 case $ac_mode in
23981 :F)
23982 #
23983 # CONFIG_FILE
23984 #
vlmfa67ddc2004-06-03 03:38:44 +000023985
23986 case $INSTALL in
23987 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
vlm83b901d2007-08-27 23:57:45 +000023988 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
vlmfa67ddc2004-06-03 03:38:44 +000023989 esac
vlmfa67ddc2004-06-03 03:38:44 +000023990_ACEOF
vlm83b901d2007-08-27 23:57:45 +000023991
23992cat >>$CONFIG_STATUS <<\_ACEOF
23993# If the template does not know about datarootdir, expand it.
23994# FIXME: This hack should be removed a few years after 2.60.
23995ac_datarootdir_hack=; ac_datarootdir_seen=
23996
23997case `sed -n '/datarootdir/ {
23998 p
23999 q
24000}
24001/@datadir@/p
24002/@docdir@/p
24003/@infodir@/p
24004/@localedir@/p
24005/@mandir@/p
24006' $ac_file_inputs` in
24007*datarootdir*) ac_datarootdir_seen=yes;;
24008*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24009 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24010echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24011_ACEOF
24012cat >>$CONFIG_STATUS <<_ACEOF
24013 ac_datarootdir_hack='
24014 s&@datadir@&$datadir&g
24015 s&@docdir@&$docdir&g
24016 s&@infodir@&$infodir&g
24017 s&@localedir@&$localedir&g
24018 s&@mandir@&$mandir&g
24019 s&\\\${datarootdir}&$datarootdir&g' ;;
24020esac
24021_ACEOF
24022
24023# Neutralize VPATH when `$srcdir' = `.'.
24024# Shell code in configure.ac might set extrasub.
24025# FIXME: do we really want to maintain this feature?
vlmfa67ddc2004-06-03 03:38:44 +000024026cat >>$CONFIG_STATUS <<_ACEOF
24027 sed "$ac_vpsub
24028$extrasub
24029_ACEOF
24030cat >>$CONFIG_STATUS <<\_ACEOF
24031:t
24032/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
vlm83b901d2007-08-27 23:57:45 +000024033s&@configure_input@&$configure_input&;t t
24034s&@top_builddir@&$ac_top_builddir_sub&;t t
24035s&@srcdir@&$ac_srcdir&;t t
24036s&@abs_srcdir@&$ac_abs_srcdir&;t t
24037s&@top_srcdir@&$ac_top_srcdir&;t t
24038s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24039s&@builddir@&$ac_builddir&;t t
24040s&@abs_builddir@&$ac_abs_builddir&;t t
24041s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24042s&@INSTALL@&$ac_INSTALL&;t t
24043$ac_datarootdir_hack
24044" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
vlmfa67ddc2004-06-03 03:38:44 +000024045
vlm83b901d2007-08-27 23:57:45 +000024046test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24047 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24049 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24050which seems to be undefined. Please make sure it is defined." >&5
24051echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24052which seems to be undefined. Please make sure it is defined." >&2;}
vlmfa67ddc2004-06-03 03:38:44 +000024053
vlm83b901d2007-08-27 23:57:45 +000024054 rm -f "$tmp/stdin"
vlmfa67ddc2004-06-03 03:38:44 +000024055 case $ac_file in
vlm83b901d2007-08-27 23:57:45 +000024056 -) cat "$tmp/out"; rm -f "$tmp/out";;
24057 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
vlmfa67ddc2004-06-03 03:38:44 +000024058 esac
vlm83b901d2007-08-27 23:57:45 +000024059 ;;
24060 :H)
24061 #
24062 # CONFIG_HEADER
24063 #
vlmfa67ddc2004-06-03 03:38:44 +000024064_ACEOF
24065
vlm83b901d2007-08-27 23:57:45 +000024066# Transform confdefs.h into a sed script `conftest.defines', that
24067# substitutes the proper values into config.h.in to produce config.h.
24068rm -f conftest.defines conftest.tail
24069# First, append a space to every undef/define line, to ease matching.
24070echo 's/$/ /' >conftest.defines
24071# Then, protect against being on the right side of a sed subst, or in
24072# an unquoted here document, in config.status. If some macros were
24073# called several times there might be several #defines for the same
24074# symbol, which is useless. But do not sort them, since the last
24075# AC_DEFINE must be honored.
24076ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24077# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24078# NAME is the cpp macro being defined, VALUE is the value it is being given.
24079# PARAMS is the parameter list in the macro definition--in most cases, it's
24080# just an empty string.
24081ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24082ac_dB='\\)[ (].*,\\1define\\2'
24083ac_dC=' '
24084ac_dD=' ,'
vlmfa67ddc2004-06-03 03:38:44 +000024085
vlm83b901d2007-08-27 23:57:45 +000024086uniq confdefs.h |
24087 sed -n '
24088 t rset
24089 :rset
24090 s/^[ ]*#[ ]*define[ ][ ]*//
24091 t ok
24092 d
24093 :ok
24094 s/[\\&,]/\\&/g
24095 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24096 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24097 ' >>conftest.defines
24098
24099# Remove the space that was appended to ease matching.
24100# Then replace #undef with comments. This is necessary, for
vlmfa67ddc2004-06-03 03:38:44 +000024101# example, in the case of _POSIX_SOURCE, which is predefined and required
24102# on some systems where configure will not decide to define it.
vlm83b901d2007-08-27 23:57:45 +000024103# (The regexp can be short, since the line contains either #define or #undef.)
24104echo 's/ $//
24105s,^[ #]*u.*,/* & */,' >>conftest.defines
vlmfa67ddc2004-06-03 03:38:44 +000024106
vlm83b901d2007-08-27 23:57:45 +000024107# Break up conftest.defines:
24108ac_max_sed_lines=50
24109
24110# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24111# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24112# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24113# et cetera.
24114ac_in='$ac_file_inputs'
24115ac_out='"$tmp/out1"'
24116ac_nxt='"$tmp/out2"'
24117
24118while :
vlmfa67ddc2004-06-03 03:38:44 +000024119do
vlm83b901d2007-08-27 23:57:45 +000024120 # Write a here document:
24121 cat >>$CONFIG_STATUS <<_ACEOF
24122 # First, check the format of the line:
24123 cat >"\$tmp/defines.sed" <<\\CEOF
24124/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24125/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24126b
24127:def
24128_ACEOF
24129 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
vlmfa67ddc2004-06-03 03:38:44 +000024130 echo 'CEOF
vlm83b901d2007-08-27 23:57:45 +000024131 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24132 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24133 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24134 grep . conftest.tail >/dev/null || break
vlmfa67ddc2004-06-03 03:38:44 +000024135 rm -f conftest.defines
24136 mv conftest.tail conftest.defines
24137done
vlm83b901d2007-08-27 23:57:45 +000024138rm -f conftest.defines conftest.tail
vlmfa67ddc2004-06-03 03:38:44 +000024139
vlm83b901d2007-08-27 23:57:45 +000024140echo "ac_result=$ac_in" >>$CONFIG_STATUS
vlmfa67ddc2004-06-03 03:38:44 +000024141cat >>$CONFIG_STATUS <<\_ACEOF
vlmfa67ddc2004-06-03 03:38:44 +000024142 if test x"$ac_file" != x-; then
vlm83b901d2007-08-27 23:57:45 +000024143 echo "/* $configure_input */" >"$tmp/config.h"
24144 cat "$ac_result" >>"$tmp/config.h"
24145 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
vlmfa67ddc2004-06-03 03:38:44 +000024146 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24147echo "$as_me: $ac_file is unchanged" >&6;}
24148 else
vlmfa67ddc2004-06-03 03:38:44 +000024149 rm -f $ac_file
vlm83b901d2007-08-27 23:57:45 +000024150 mv "$tmp/config.h" $ac_file
vlmfa67ddc2004-06-03 03:38:44 +000024151 fi
24152 else
vlm83b901d2007-08-27 23:57:45 +000024153 echo "/* $configure_input */"
24154 cat "$ac_result"
vlmfa67ddc2004-06-03 03:38:44 +000024155 fi
vlm83b901d2007-08-27 23:57:45 +000024156 rm -f "$tmp/out12"
vlm8f3eb992004-06-17 23:42:48 +000024157# Compute $ac_file's index in $config_headers.
24158_am_stamp_count=1
24159for _am_header in $config_headers :; do
24160 case $_am_header in
24161 $ac_file | $ac_file:* )
24162 break ;;
24163 * )
24164 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
vlmfa67ddc2004-06-03 03:38:44 +000024165 esac
24166done
vlm83b901d2007-08-27 23:57:45 +000024167echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
vlm8f3eb992004-06-17 23:42:48 +000024168$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24169 X$ac_file : 'X\(//\)[^/]' \| \
24170 X$ac_file : 'X\(//\)$' \| \
vlm83b901d2007-08-27 23:57:45 +000024171 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
vlm8f3eb992004-06-17 23:42:48 +000024172echo X$ac_file |
vlm83b901d2007-08-27 23:57:45 +000024173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24174 s//\1/
24175 q
24176 }
24177 /^X\(\/\/\)[^/].*/{
24178 s//\1/
24179 q
24180 }
24181 /^X\(\/\/\)$/{
24182 s//\1/
24183 q
24184 }
24185 /^X\(\/\).*/{
24186 s//\1/
24187 q
24188 }
24189 s/.*/./; q'`/stamp-h$_am_stamp_count
24190 ;;
vlmfa67ddc2004-06-03 03:38:44 +000024191
vlm83b901d2007-08-27 23:57:45 +000024192 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24193echo "$as_me: executing $ac_file commands" >&6;}
24194 ;;
24195 esac
vlmfa67ddc2004-06-03 03:38:44 +000024196
24197
vlm83b901d2007-08-27 23:57:45 +000024198 case $ac_file$ac_mode in
24199 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
vlm8f3eb992004-06-17 23:42:48 +000024200 # Strip MF so we end up with the name of the file.
24201 mf=`echo "$mf" | sed -e 's/:.*$//'`
24202 # Check whether this is an Automake generated Makefile or not.
24203 # We used to match only the files named `Makefile.in', but
24204 # some people rename them; so instead we look at the file content.
24205 # Grep'ing the first line is not enough: some people post-process
24206 # each Makefile.in and add a new line on top of each file to say so.
24207 # So let's grep whole file.
24208 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
vlm83b901d2007-08-27 23:57:45 +000024209 dirpart=`$as_dirname -- "$mf" ||
vlm8f3eb992004-06-17 23:42:48 +000024210$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24211 X"$mf" : 'X\(//\)[^/]' \| \
24212 X"$mf" : 'X\(//\)$' \| \
vlm83b901d2007-08-27 23:57:45 +000024213 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
vlm8f3eb992004-06-17 23:42:48 +000024214echo X"$mf" |
vlm83b901d2007-08-27 23:57:45 +000024215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24216 s//\1/
24217 q
24218 }
24219 /^X\(\/\/\)[^/].*/{
24220 s//\1/
24221 q
24222 }
24223 /^X\(\/\/\)$/{
24224 s//\1/
24225 q
24226 }
24227 /^X\(\/\).*/{
24228 s//\1/
24229 q
24230 }
24231 s/.*/./; q'`
vlm8f3eb992004-06-17 23:42:48 +000024232 else
24233 continue
24234 fi
vlm1fcf7592006-08-18 02:27:55 +000024235 # Extract the definition of DEPDIR, am__include, and am__quote
24236 # from the Makefile without running `make'.
vlm8f3eb992004-06-17 23:42:48 +000024237 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
vlmfa67ddc2004-06-03 03:38:44 +000024238 test -z "$DEPDIR" && continue
vlm1fcf7592006-08-18 02:27:55 +000024239 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24240 test -z "am__include" && continue
24241 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
vlmfa67ddc2004-06-03 03:38:44 +000024242 # When using ansi2knr, U may be empty or an underscore; expand it
vlm8f3eb992004-06-17 23:42:48 +000024243 U=`sed -n 's/^U = //p' < "$mf"`
vlm1fcf7592006-08-18 02:27:55 +000024244 # Find all dependency output files, they are included files with
24245 # $(DEPDIR) in their names. We invoke sed twice because it is the
24246 # simplest approach to changing $(DEPDIR) to its actual value in the
24247 # expansion.
24248 for file in `sed -n "
24249 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
vlmfa67ddc2004-06-03 03:38:44 +000024250 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24251 # Make sure the directory exists.
24252 test -f "$dirpart/$file" && continue
vlm83b901d2007-08-27 23:57:45 +000024253 fdir=`$as_dirname -- "$file" ||
vlm8f3eb992004-06-17 23:42:48 +000024254$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24255 X"$file" : 'X\(//\)[^/]' \| \
24256 X"$file" : 'X\(//\)$' \| \
vlm83b901d2007-08-27 23:57:45 +000024257 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
vlm8f3eb992004-06-17 23:42:48 +000024258echo X"$file" |
vlm83b901d2007-08-27 23:57:45 +000024259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24260 s//\1/
24261 q
24262 }
24263 /^X\(\/\/\)[^/].*/{
24264 s//\1/
24265 q
24266 }
24267 /^X\(\/\/\)$/{
24268 s//\1/
24269 q
24270 }
24271 /^X\(\/\).*/{
24272 s//\1/
24273 q
24274 }
24275 s/.*/./; q'`
24276 { as_dir=$dirpart/$fdir
24277 case $as_dir in #(
24278 -*) as_dir=./$as_dir;;
24279 esac
24280 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
vlm8f3eb992004-06-17 23:42:48 +000024281 as_dirs=
vlm83b901d2007-08-27 23:57:45 +000024282 while :; do
24283 case $as_dir in #(
24284 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24285 *) as_qdir=$as_dir;;
24286 esac
24287 as_dirs="'$as_qdir' $as_dirs"
24288 as_dir=`$as_dirname -- "$as_dir" ||
vlm8f3eb992004-06-17 23:42:48 +000024289$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24290 X"$as_dir" : 'X\(//\)[^/]' \| \
24291 X"$as_dir" : 'X\(//\)$' \| \
vlm83b901d2007-08-27 23:57:45 +000024292 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
vlm8f3eb992004-06-17 23:42:48 +000024293echo X"$as_dir" |
vlm83b901d2007-08-27 23:57:45 +000024294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24295 s//\1/
24296 q
24297 }
24298 /^X\(\/\/\)[^/].*/{
24299 s//\1/
24300 q
24301 }
24302 /^X\(\/\/\)$/{
24303 s//\1/
24304 q
24305 }
24306 /^X\(\/\).*/{
24307 s//\1/
24308 q
24309 }
24310 s/.*/./; q'`
24311 test -d "$as_dir" && break
vlm8f3eb992004-06-17 23:42:48 +000024312 done
vlm83b901d2007-08-27 23:57:45 +000024313 test -z "$as_dirs" || eval "mkdir $as_dirs"
24314 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24315echo "$as_me: error: cannot create directory $as_dir" >&2;}
vlm8f3eb992004-06-17 23:42:48 +000024316 { (exit 1); exit 1; }; }; }
vlmfa67ddc2004-06-03 03:38:44 +000024317 # echo "creating $dirpart/$file"
24318 echo '# dummy' > "$dirpart/$file"
24319 done
24320done
24321 ;;
vlmfa67ddc2004-06-03 03:38:44 +000024322
vlm83b901d2007-08-27 23:57:45 +000024323 esac
24324done # for ac_tag
24325
vlmfa67ddc2004-06-03 03:38:44 +000024326
24327{ (exit 0); exit 0; }
24328_ACEOF
24329chmod +x $CONFIG_STATUS
24330ac_clean_files=$ac_clean_files_save
24331
24332
24333# configure is writing to config.log, and then calls config.status.
24334# config.status does its own redirection, appending to config.log.
24335# Unfortunately, on DOS this fails, as config.log is still kept open
24336# by configure, so config.status won't be able to write to it; its
24337# output is simply discarded. So we exec the FD to /dev/null,
24338# effectively closing config.log, so it can be properly (re)opened and
24339# appended to by config.status. When coming back to configure, we
24340# need to make the FD available again.
24341if test "$no_create" != yes; then
24342 ac_cs_success=:
24343 ac_config_status_args=
24344 test "$silent" = yes &&
24345 ac_config_status_args="$ac_config_status_args --quiet"
24346 exec 5>/dev/null
24347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24348 exec 5>>config.log
24349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24350 # would make configure fail if this is the last instruction.
24351 $ac_cs_success || { (exit 1); exit 1; }
24352fi
24353
24354