blob: c25a3f44bee2daeebdd68d2e25de8df892e354cc [file] [log] [blame]
drh75897232000-05-29 14:26:00 +00001#! /bin/sh
drh75897232000-05-29 14:26:00 +00002# Guess values for system-dependent variables and create Makefiles.
mlcreechb87057f2008-03-06 07:19:20 +00003# Generated by GNU Autoconf 2.61 for sqlite 3.5.6.
drh75897232000-05-29 14:26:00 +00004#
mlcreech94984912008-03-04 19:03:08 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
mlcreech94984912008-03-04 19:03:08 +000013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
mlcreech94984912008-03-04 19:03:08 +000021 setopt NO_GLOB_SUBST
drh613a0fe2007-11-23 17:31:17 +000022else
mlcreech94984912008-03-04 19:03:08 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
a.rottmann84e63352003-03-24 09:42:16 +000027fi
28
29
a.rottmann84e63352003-03-24 09:42:16 +000030
31
mlcreech94984912008-03-04 19:03:08 +000032# PATH needs CR
a.rottmann84e63352003-03-24 09:42:16 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
mlcreech94984912008-03-04 19:03:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
a.rottmann84e63352003-03-24 09:42:16 +000059
mlcreech94984912008-03-04 19:03:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann84e63352003-03-24 09:42:16 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
mlcreech94984912008-03-04 19:03:08 +000080IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000081
mlcreech94984912008-03-04 19:03:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
a.rottmann84e63352003-03-24 09:42:16 +0000112 fi
mlcreech94984912008-03-04 19:03:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
a.rottmann84e63352003-03-24 09:42:16 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
mlcreech94984912008-03-04 19:03:08 +0000226 case $as_dir in
a.rottmann84e63352003-03-24 09:42:16 +0000227 /*)
mlcreech94984912008-03-04 19:03:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
drh613a0fe2007-11-23 17:31:17 +0000328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
drh613a0fe2007-11-23 17:31:17 +0000330 test "x$as_lineno_1" != "x$as_lineno_2" &&
mlcreech94984912008-03-04 19:03:08 +0000331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +0000427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
mlcreech94984912008-03-04 19:03:08 +0000430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +0000435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mlcreech94984912008-03-04 19:03:08 +0000436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000442 sed '
mlcreech94984912008-03-04 19:03:08 +0000443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000447 N
mlcreech94984912008-03-04 19:03:08 +0000448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000450 t loop
mlcreech94984912008-03-04 19:03:08 +0000451 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000452 ' >$as_me.lineno &&
mlcreech94984912008-03-04 19:03:08 +0000453 chmod +x "$as_me.lineno" ||
a.rottmann84e63352003-03-24 09:42:16 +0000454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
mlcreech94984912008-03-04 19:03:08 +0000459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000461 # Exit status is that of the last command.
462 exit
463}
464
465
mlcreech94984912008-03-04 19:03:08 +0000466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
a.rottmann84e63352003-03-24 09:42:16 +0000481esac
482
mlcreech94984912008-03-04 19:03:08 +0000483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a.rottmann84e63352003-03-24 09:42:16 +0000485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
mlcreech94984912008-03-04 19:03:08 +0000491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
a.rottmann84e63352003-03-24 09:42:16 +0000497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
mlcreech94984912008-03-04 19:03:08 +0000499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
a.rottmann84e63352003-03-24 09:42:16 +0000505 as_ln_s='cp -p'
a.rottmann84e63352003-03-24 09:42:16 +0000506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
mlcreech94984912008-03-04 19:03:08 +0000511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
a.rottmann964dbb12004-02-26 19:47:42 +0000517 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000518 as_mkdir_p=false
519fi
520
mlcreech94984912008-03-04 19:03:08 +0000521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +0000543
544# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000546
547# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000549
550
drh75897232000-05-29 14:26:00 +0000551
a.rottmann84e63352003-03-24 09:42:16 +0000552
drh71eb93e2001-09-28 01:34:43 +0000553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
a.rottmann9bc8b932004-02-29 15:18:31 +0000570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
drh71eb93e2001-09-28 01:34:43 +0000571 # Yippee, $echo works!
572 :
573else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000582$*
drh71eb93e2001-09-28 01:34:43 +0000583EOF
584 exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
vapier7f19c022007-02-17 14:46:31 +0000596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
drh71eb93e2001-09-28 01:34:43 +0000598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
a.rottmann9bc8b932004-02-29 15:18:31 +0000616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +0000617 for dir in $PATH /usr/ucb; do
a.rottmann9bc8b932004-02-29 15:18:31 +0000618 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000627 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
drh71eb93e2001-09-28 01:34:43 +0000699
drh71eb93e2001-09-28 01:34:43 +0000700
a.rottmann9bc8b932004-02-29 15:18:31 +0000701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
mlcreech94984912008-03-04 19:03:08 +0000706exec 7<&0 </dev/null 6>&1
707
drh71eb93e2001-09-28 01:34:43 +0000708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
drh71eb93e2001-09-28 01:34:43 +0000713#
714# Initializations.
715#
drh75897232000-05-29 14:26:00 +0000716ac_default_prefix=/usr/local
mlcreech94984912008-03-04 19:03:08 +0000717ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000718ac_config_libobj_dir=.
mlcreech94984912008-03-04 19:03:08 +0000719LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000720cross_compiling=no
721subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000722MFLAGS=
723MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000724SHELL=${CONFIG_SHELL-/bin/sh}
725
a.rottmann84e63352003-03-24 09:42:16 +0000726# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
729PACKAGE_VERSION='3.5.6'
730PACKAGE_STRING='sqlite 3.5.6'
731PACKAGE_BUGREPORT=''
a.rottmann84e63352003-03-24 09:42:16 +0000732
a.rottmann84e63352003-03-24 09:42:16 +0000733# Factoring default headers for most tests.
734ac_includes_default="\
735#include <stdio.h>
mlcreech94984912008-03-04 19:03:08 +0000736#ifdef HAVE_SYS_TYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000737# include <sys/types.h>
738#endif
mlcreech94984912008-03-04 19:03:08 +0000739#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000740# include <sys/stat.h>
741#endif
mlcreech94984912008-03-04 19:03:08 +0000742#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000743# include <stdlib.h>
744# include <stddef.h>
745#else
mlcreech94984912008-03-04 19:03:08 +0000746# ifdef HAVE_STDLIB_H
a.rottmann84e63352003-03-24 09:42:16 +0000747# include <stdlib.h>
748# endif
749#endif
mlcreech94984912008-03-04 19:03:08 +0000750#ifdef HAVE_STRING_H
751# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000752# include <memory.h>
753# endif
754# include <string.h>
755#endif
mlcreech94984912008-03-04 19:03:08 +0000756#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000757# include <strings.h>
758#endif
mlcreech94984912008-03-04 19:03:08 +0000759#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000760# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000761#endif
mlcreech94984912008-03-04 19:03:08 +0000762#ifdef HAVE_STDINT_H
763# include <stdint.h>
764#endif
765#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000766# include <unistd.h>
767#endif"
768
mlcreech94984912008-03-04 19:03:08 +0000769ac_subst_vars='SHELL
770PATH_SEPARATOR
771PACKAGE_NAME
772PACKAGE_TARNAME
773PACKAGE_VERSION
774PACKAGE_STRING
775PACKAGE_BUGREPORT
776exec_prefix
777prefix
778program_transform_name
779bindir
780sbindir
781libexecdir
782datarootdir
783datadir
784sysconfdir
785sharedstatedir
786localstatedir
787includedir
788oldincludedir
789docdir
790infodir
791htmldir
792dvidir
793pdfdir
794psdir
795libdir
796localedir
797mandir
798DEFS
799ECHO_C
800ECHO_N
801ECHO_T
802LIBS
803build_alias
804host_alias
805target_alias
806build
807build_cpu
808build_vendor
809build_os
810host
811host_cpu
812host_vendor
813host_os
814CC
815CFLAGS
816LDFLAGS
817CPPFLAGS
818ac_ct_CC
819EXEEXT
820OBJEXT
821GREP
822EGREP
823LN_S
824ECHO
825AR
826RANLIB
827STRIP
828CPP
829CXX
830CXXFLAGS
831ac_ct_CXX
832CXXCPP
833F77
834FFLAGS
835ac_ct_F77
836LIBTOOL
837INSTALL_PROGRAM
838INSTALL_SCRIPT
839INSTALL_DATA
840AWK
841program_prefix
842VERSION
843RELEASE
844VERSION_NUMBER
845BUILD_CC
846BUILD_CFLAGS
847SQLITE_THREADSAFE
848TARGET_THREAD_LIB
849XTHREADCONNECT
850THREADSOVERRIDELOCKS
851ALLOWRELEASE
852TEMP_STORE
853BUILD_EXEEXT
854OS_UNIX
855OS_WIN
856OS_OS2
857TARGET_EXEEXT
858TCL_VERSION
859TCL_BIN_DIR
860TCL_SRC_DIR
861TCL_LIBS
862TCL_INCLUDE_SPEC
863TCL_LIB_FILE
864TCL_LIB_FLAG
865TCL_LIB_SPEC
866TCL_STUB_LIB_FILE
867TCL_STUB_LIB_FLAG
868TCL_STUB_LIB_SPEC
869HAVE_TCL
870TARGET_READLINE_LIBS
871TARGET_READLINE_INC
872TARGET_HAVE_READLINE
873TARGET_DEBUG
874USE_AMALGAMATION
mlcreecha4edab02008-03-06 04:14:17 +0000875LOADEXTENSION_FLAGS
mlcreech94984912008-03-04 19:03:08 +0000876LIBOBJS
877LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000878ac_subst_files=''
mlcreech94984912008-03-04 19:03:08 +0000879 ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
885LIBS
886CPPFLAGS
887CPP
888CXX
889CXXFLAGS
890CCC
891CXXCPP
892F77
893FFLAGS'
894
drh75897232000-05-29 14:26:00 +0000895
896# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000897ac_init_help=
898ac_init_version=false
drh75897232000-05-29 14:26:00 +0000899# The variables have the same names as the options, with
900# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000901cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000902exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000903no_create=
drh75897232000-05-29 14:26:00 +0000904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
drh75897232000-05-29 14:26:00 +0000912verbose=
913x_includes=NONE
914x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
mlcreech94984912008-03-04 19:03:08 +0000921# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
mlcreech94984912008-03-04 19:03:08 +0000925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000930includedir='${prefix}/include'
931oldincludedir='/usr/include'
mlcreechb87057f2008-03-06 07:19:20 +0000932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
mlcreech94984912008-03-04 19:03:08 +0000933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000941
drh75897232000-05-29 14:26:00 +0000942ac_prev=
mlcreech94984912008-03-04 19:03:08 +0000943ac_dashdash=
drh75897232000-05-29 14:26:00 +0000944for ac_option
945do
drh75897232000-05-29 14:26:00 +0000946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
mlcreech94984912008-03-04 19:03:08 +0000948 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000949 ac_prev=
950 continue
951 fi
952
mlcreech94984912008-03-04 19:03:08 +0000953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
drh75897232000-05-29 14:26:00 +0000957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
mlcreech94984912008-03-04 19:03:08 +0000960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000967 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000968
969 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000970 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000972 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000983
mlcreech94984912008-03-04 19:03:08 +0000984 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +0000985 ac_prev=datadir ;;
mlcreech94984912008-03-04 19:03:08 +0000986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +0000987 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000988
mlcreech94984912008-03-04 19:03:08 +0000989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
drh75897232000-05-29 14:26:00 +0000996 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000998 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +0000999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001014
1015 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +00001016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001017 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +00001018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001031 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
drh71eb93e2001-09-28 01:34:43 +00001037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001043
1044 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001045 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001046 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001047 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001048
mlcreech94984912008-03-04 19:03:08 +00001049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
drh75897232000-05-29 14:26:00 +00001055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001060 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001065 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001070 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001077 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001078
mlcreech94984912008-03-04 19:03:08 +00001079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
drh75897232000-05-29 14:26:00 +00001084 -localstatedir | --localstatedir | --localstatedi | --localstated \
mlcreech94984912008-03-04 19:03:08 +00001085 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mlcreech94984912008-03-04 19:03:08 +00001088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001089 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001094 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001101 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001115 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001120 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001127 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001134 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001151 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001152
mlcreech94984912008-03-04 19:03:08 +00001153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
drh75897232000-05-29 14:26:00 +00001163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001171 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001182 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001187 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001192 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001199 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001202 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001204 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
drh71eb93e2001-09-28 01:34:43 +00001209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001211
1212 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +00001213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001214 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +00001215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001220
1221 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +00001222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001223 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +00001224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
drh75897232000-05-29 14:26:00 +00001229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001239 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001246 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001247
drh71eb93e2001-09-28 01:34:43 +00001248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001251 ;;
1252
drh71eb93e2001-09-28 01:34:43 +00001253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001259 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001260 export $ac_envvar ;;
1261
drh75897232000-05-29 14:26:00 +00001262 *)
drh71eb93e2001-09-28 01:34:43 +00001263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001268 ;;
1269
1270 esac
1271done
1272
1273if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001277fi
1278
mlcreech94984912008-03-04 19:03:08 +00001279# Be sure to have absolute directory names.
1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
drh75897232000-05-29 14:26:00 +00001284do
mlcreech94984912008-03-04 19:03:08 +00001285 eval ac_val=\$$ac_var
drh71eb93e2001-09-28 01:34:43 +00001286 case $ac_val in
mlcreech94984912008-03-04 19:03:08 +00001287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
drh75897232000-05-29 14:26:00 +00001289 esac
mlcreech94984912008-03-04 19:03:08 +00001290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001292done
drh75897232000-05-29 14:26:00 +00001293
drh71eb93e2001-09-28 01:34:43 +00001294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001296# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001297build=$build_alias
1298host=$host_alias
1299target=$target_alias
drh75897232000-05-29 14:26:00 +00001300
a.rottmann84e63352003-03-24 09:42:16 +00001301# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001316
a.rottmann84e63352003-03-24 09:42:16 +00001317
mlcreech94984912008-03-04 19:03:08 +00001318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
drh75897232000-05-29 14:26:00 +00001328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
mlcreech94984912008-03-04 19:03:08 +00001331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
a.rottmann84e63352003-03-24 09:42:16 +00001333$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +00001334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +00001336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +00001337echo X"$0" |
mlcreech94984912008-03-04 19:03:08 +00001338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001355 srcdir=$ac_confdir
mlcreech94984912008-03-04 19:03:08 +00001356 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
mlcreech94984912008-03-04 19:03:08 +00001362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +00001365 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +00001366fi
mlcreech94984912008-03-04 19:03:08 +00001367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
drh613a0fe2007-11-23 17:31:17 +00001370 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
drh75897232000-05-29 14:26:00 +00001388
drh71eb93e2001-09-28 01:34:43 +00001389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001395 cat <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +00001396\`configure' configures sqlite 3.5.6 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
drh71eb93e2001-09-28 01:34:43 +00001416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
a.rottmann964dbb12004-02-26 19:47:42 +00001418 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a.rottmann964dbb12004-02-26 19:47:42 +00001420 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
drh71eb93e2001-09-28 01:34:43 +00001433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
mlcreech94984912008-03-04 19:03:08 +00001439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
mlcreechb87057f2008-03-06 07:19:20 +00001444 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
mlcreech94984912008-03-04 19:03:08 +00001445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001449_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001450
a.rottmann84e63352003-03-24 09:42:16 +00001451 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001452
1453System types:
1454 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001457fi
1458
1459if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of sqlite 3.5.6:";;
1462 esac
a.rottmann84e63352003-03-24 09:42:16 +00001463 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001464
1465Optional Features:
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mlcreech94984912008-03-04 19:03:08 +00001468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001472 --disable-libtool-lock avoid locking (might break parallel builds)
drh94e4f822006-02-15 02:00:25 +00001473 --enable-threadsafe Support threadsafe operation
1474 --enable-cross-thread-connections
1475 Allow connection sharing across threads
1476 --enable-threads-override-locks
1477 Threads can override each others locks
1478 --enable-releasemode Support libtool link to release mode
1479 --enable-tempstore Use an in-ram database for temporary tables
1480 (never,no,yes,always)
1481 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001482 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001483 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001484 --disable-amalgamation Disable the amalgamation and instead build all files
1485 separately (currently needed to build the test
1486 fixture)
mlcreecha4edab02008-03-06 04:14:17 +00001487 --enable-load-extension Enable loading of external extensions
drh71eb93e2001-09-28 01:34:43 +00001488
1489Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1494 both]
mlcreech94984912008-03-04 19:03:08 +00001495 --with-tags[=TAGS] include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001496 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001497 --with-tcl=DIR directory containing tcl configuration
1498 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001499 --with-readline-lib specify readline library
1500 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001501
1502Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
mlcreech94984912008-03-04 19:03:08 +00001507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001510 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CXXCPP C++ preprocessor
1514 F77 Fortran 77 compiler command
1515 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001516
1517Use these variables to override the choices made by `configure' or to help
1518it to find libraries and programs with nonstandard names/locations.
1519
a.rottmann84e63352003-03-24 09:42:16 +00001520_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001521ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001522fi
1523
1524if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mlcreech94984912008-03-04 19:03:08 +00001527 test -d "$ac_dir" || continue
a.rottmann84e63352003-03-24 09:42:16 +00001528 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001529
mlcreech94984912008-03-04 19:03:08 +00001530case "$ac_dir" in
1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532*)
a.rottmann84e63352003-03-24 09:42:16 +00001533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mlcreech94984912008-03-04 19:03:08 +00001534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540esac
1541ac_abs_top_builddir=$ac_pwd
1542ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543# for backward compatibility:
1544ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001545
a.rottmann84e63352003-03-24 09:42:16 +00001546case $srcdir in
mlcreech94984912008-03-04 19:03:08 +00001547 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001548 ac_srcdir=.
mlcreech94984912008-03-04 19:03:08 +00001549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +00001552 ac_srcdir=$srcdir$ac_dir_suffix;
mlcreech94984912008-03-04 19:03:08 +00001553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +00001559esac
mlcreech94984912008-03-04 19:03:08 +00001560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +00001561
mlcreech94984912008-03-04 19:03:08 +00001562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
drh71eb93e2001-09-28 01:34:43 +00001570 else
a.rottmann84e63352003-03-24 09:42:16 +00001571 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mlcreech94984912008-03-04 19:03:08 +00001572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001574 done
1575fi
1576
mlcreech94984912008-03-04 19:03:08 +00001577test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001578if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001579 cat <<\_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +00001580sqlite configure 3.5.6
mlcreech94984912008-03-04 19:03:08 +00001581generated by GNU Autoconf 2.61
drh71eb93e2001-09-28 01:34:43 +00001582
mlcreech94984912008-03-04 19:03:08 +00001583Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15842002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001585This configure script is free software; the Free Software Foundation
1586gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001587_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001588 exit
drh71eb93e2001-09-28 01:34:43 +00001589fi
mlcreech94984912008-03-04 19:03:08 +00001590cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001591This file contains any messages produced by compilers while
1592running configure, to aid debugging if configure makes a mistake.
1593
mlcreechb87057f2008-03-06 07:19:20 +00001594It was created by sqlite $as_me 3.5.6, which was
mlcreech94984912008-03-04 19:03:08 +00001595generated by GNU Autoconf 2.61. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001596
1597 $ $0 $@
1598
a.rottmann84e63352003-03-24 09:42:16 +00001599_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001600exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001601{
1602cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001603## --------- ##
1604## Platform. ##
1605## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001606
1607hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612
1613/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1615
1616/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1617/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1618/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mlcreech94984912008-03-04 19:03:08 +00001619/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001620/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1621/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1622/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1623
drh71eb93e2001-09-28 01:34:43 +00001624_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001625
1626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627for as_dir in $PATH
1628do
1629 IFS=$as_save_IFS
1630 test -z "$as_dir" && as_dir=.
1631 echo "PATH: $as_dir"
1632done
mlcreech94984912008-03-04 19:03:08 +00001633IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001634
drh71eb93e2001-09-28 01:34:43 +00001635} >&5
1636
a.rottmann84e63352003-03-24 09:42:16 +00001637cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001638
a.rottmann84e63352003-03-24 09:42:16 +00001639
1640## ----------- ##
1641## Core tests. ##
1642## ----------- ##
1643
1644_ACEOF
1645
drh71eb93e2001-09-28 01:34:43 +00001646
1647# Keep a trace of the command line.
1648# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001649# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001650# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001651# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001652ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001653ac_configure_args0=
1654ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001655ac_must_keep_next=false
1656for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001657do
a.rottmann84e63352003-03-24 09:42:16 +00001658 for ac_arg
1659 do
1660 case $ac_arg in
1661 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663 | -silent | --silent | --silen | --sile | --sil)
1664 continue ;;
mlcreech94984912008-03-04 19:03:08 +00001665 *\'*)
a.rottmann84e63352003-03-24 09:42:16 +00001666 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667 esac
1668 case $ac_pass in
1669 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670 2)
1671 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001673 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001674 else
a.rottmann964dbb12004-02-26 19:47:42 +00001675 case $ac_arg in
1676 *=* | --config-cache | -C | -disable-* | --disable-* \
1677 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679 | -with-* | --with-* | -without-* | --without-* | --x)
1680 case "$ac_configure_args0 " in
1681 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682 esac
1683 ;;
1684 -* ) ac_must_keep_next=true ;;
1685 esac
a.rottmann84e63352003-03-24 09:42:16 +00001686 fi
mlcreech94984912008-03-04 19:03:08 +00001687 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001688 ;;
1689 esac
1690 done
drh71eb93e2001-09-28 01:34:43 +00001691done
a.rottmann84e63352003-03-24 09:42:16 +00001692$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001694
1695# When interrupted or exit'd, cleanup temporary files, and complete
1696# config.log. We remove comments because anyway the quotes in there
1697# would cause problems or look ugly.
mlcreech94984912008-03-04 19:03:08 +00001698# WARNING: Use '\'' to represent an apostrophe within the trap.
1699# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001700trap 'exit_status=$?
1701 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001702 {
1703 echo
1704
1705 cat <<\_ASBOX
1706## ---------------- ##
1707## Cache variables. ##
1708## ---------------- ##
1709_ASBOX
1710 echo
1711 # The following way of writing the cache mishandles newlines in values,
mlcreech94984912008-03-04 19:03:08 +00001712(
1713 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714 eval ac_val=\$$ac_var
1715 case $ac_val in #(
1716 *${as_nl}*)
1717 case $ac_var in #(
1718 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720 esac
1721 case $ac_var in #(
1722 _ | IFS | as_nl) ;; #(
1723 *) $as_unset $ac_var ;;
1724 esac ;;
1725 esac
1726 done
drh71eb93e2001-09-28 01:34:43 +00001727 (set) 2>&1 |
mlcreech94984912008-03-04 19:03:08 +00001728 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001730 sed -n \
mlcreech94984912008-03-04 19:03:08 +00001731 "s/'\''/'\''\\\\'\'''\''/g;
1732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733 ;; #(
drh613a0fe2007-11-23 17:31:17 +00001734 *)
mlcreech94984912008-03-04 19:03:08 +00001735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh613a0fe2007-11-23 17:31:17 +00001736 ;;
mlcreech94984912008-03-04 19:03:08 +00001737 esac |
1738 sort
1739)
a.rottmann84e63352003-03-24 09:42:16 +00001740 echo
1741
1742 cat <<\_ASBOX
1743## ----------------- ##
1744## Output variables. ##
1745## ----------------- ##
1746_ASBOX
1747 echo
1748 for ac_var in $ac_subst_vars
1749 do
mlcreech94984912008-03-04 19:03:08 +00001750 eval ac_val=\$$ac_var
1751 case $ac_val in
1752 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753 esac
1754 echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001755 done | sort
1756 echo
1757
1758 if test -n "$ac_subst_files"; then
1759 cat <<\_ASBOX
mlcreech94984912008-03-04 19:03:08 +00001760## ------------------- ##
1761## File substitutions. ##
1762## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001763_ASBOX
1764 echo
1765 for ac_var in $ac_subst_files
1766 do
mlcreech94984912008-03-04 19:03:08 +00001767 eval ac_val=\$$ac_var
1768 case $ac_val in
1769 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770 esac
1771 echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001772 done | sort
1773 echo
1774 fi
1775
1776 if test -s confdefs.h; then
1777 cat <<\_ASBOX
1778## ----------- ##
1779## confdefs.h. ##
1780## ----------- ##
1781_ASBOX
1782 echo
mlcreech94984912008-03-04 19:03:08 +00001783 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001784 echo
1785 fi
1786 test "$ac_signal" != 0 &&
1787 echo "$as_me: caught signal $ac_signal"
1788 echo "$as_me: exit $exit_status"
1789 } >&5
mlcreech94984912008-03-04 19:03:08 +00001790 rm -f core *.core core.conftest.* &&
1791 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001792 exit $exit_status
mlcreech94984912008-03-04 19:03:08 +00001793' 0
drh71eb93e2001-09-28 01:34:43 +00001794for ac_signal in 1 2 13 15; do
1795 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796done
1797ac_signal=0
1798
1799# confdefs.h avoids OS command line length limits that DEFS can exceed.
mlcreech94984912008-03-04 19:03:08 +00001800rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001801
a.rottmann84e63352003-03-24 09:42:16 +00001802# Predefined preprocessor variables.
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_NAME "$PACKAGE_NAME"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_VERSION "$PACKAGE_VERSION"
1816_ACEOF
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define PACKAGE_STRING "$PACKAGE_STRING"
1821_ACEOF
1822
1823
1824cat >>confdefs.h <<_ACEOF
1825#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826_ACEOF
1827
1828
drh71eb93e2001-09-28 01:34:43 +00001829# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001830# Prefer explicitly selected file to automatically selected ones.
mlcreech94984912008-03-04 19:03:08 +00001831if test -n "$CONFIG_SITE"; then
1832 set x "$CONFIG_SITE"
1833elif test "x$prefix" != xNONE; then
1834 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835else
1836 set x "$ac_default_prefix/share/config.site" \
1837 "$ac_default_prefix/etc/config.site"
drh75897232000-05-29 14:26:00 +00001838fi
mlcreech94984912008-03-04 19:03:08 +00001839shift
1840for ac_site_file
1841do
drh75897232000-05-29 14:26:00 +00001842 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001843 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001844echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001845 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001846 . "$ac_site_file"
1847 fi
1848done
1849
1850if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001851 # Some versions of bash will fail to source /dev/null (special
1852 # files actually), so we avoid doing that.
1853 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001854 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001855echo "$as_me: loading cache $cache_file" >&6;}
1856 case $cache_file in
mlcreech94984912008-03-04 19:03:08 +00001857 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001859 esac
1860 fi
drh75897232000-05-29 14:26:00 +00001861else
a.rottmann84e63352003-03-24 09:42:16 +00001862 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001863echo "$as_me: creating cache $cache_file" >&6;}
1864 >$cache_file
1865fi
1866
1867# Check that the precious variables saved in the cache have kept the same
1868# value.
1869ac_cache_corrupted=false
mlcreech94984912008-03-04 19:03:08 +00001870for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001871 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872 eval ac_new_set=\$ac_env_${ac_var}_set
mlcreech94984912008-03-04 19:03:08 +00001873 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001875 case $ac_old_set,$ac_new_set in
1876 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001877 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001878echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1880 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001881 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001882echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883 ac_cache_corrupted=: ;;
1884 ,);;
1885 *)
1886 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001887 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001888echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001889 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001890echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001891 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001892echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001893 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001894 fi;;
1895 esac
a.rottmann84e63352003-03-24 09:42:16 +00001896 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001897 if test "$ac_new_set" = set; then
1898 case $ac_new_val in
mlcreech94984912008-03-04 19:03:08 +00001899 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001900 *) ac_arg=$ac_var=$ac_new_val ;;
1901 esac
1902 case " $ac_configure_args " in
1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001905 esac
1906 fi
1907done
1908if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001909 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001910echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001911 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001912echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001914fi
1915
mlcreech94984912008-03-04 19:03:08 +00001916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
mlcreechb87057f2008-03-06 07:19:20 +00001932
1933
1934
1935
1936
1937
1938
1939
drh75897232000-05-29 14:26:00 +00001940ac_ext=c
drh75897232000-05-29 14:26:00 +00001941ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001945
a.rottmann84e63352003-03-24 09:42:16 +00001946
1947
drh75897232000-05-29 14:26:00 +00001948# The following RCS revision string applies to configure.in
mlcreechb87057f2008-03-06 07:19:20 +00001949# $Revision: 1.48 $
drh75897232000-05-29 14:26:00 +00001950
1951#########
drh71eb93e2001-09-28 01:34:43 +00001952# Programs needed
drh75897232000-05-29 14:26:00 +00001953#
mlcreech94984912008-03-04 19:03:08 +00001954# Check whether --enable-shared was given.
drh71eb93e2001-09-28 01:34:43 +00001955if test "${enable_shared+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00001956 enableval=$enable_shared; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001957 case $enableval in
1958 yes) enable_shared=yes ;;
1959 no) enable_shared=no ;;
1960 *)
1961 enable_shared=no
1962 # Look at the argument we got. We use all the common list separators.
1963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1964 for pkg in $enableval; do
1965 IFS="$lt_save_ifs"
1966 if test "X$pkg" = "X$p"; then
1967 enable_shared=yes
1968 fi
1969 done
1970 IFS="$lt_save_ifs"
1971 ;;
1972 esac
drh71eb93e2001-09-28 01:34:43 +00001973else
1974 enable_shared=yes
mlcreech94984912008-03-04 19:03:08 +00001975fi
a.rottmann9bc8b932004-02-29 15:18:31 +00001976
mlcreech94984912008-03-04 19:03:08 +00001977
1978# Check whether --enable-static was given.
drh71eb93e2001-09-28 01:34:43 +00001979if test "${enable_static+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00001980 enableval=$enable_static; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001981 case $enableval in
1982 yes) enable_static=yes ;;
1983 no) enable_static=no ;;
1984 *)
1985 enable_static=no
1986 # Look at the argument we got. We use all the common list separators.
1987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1988 for pkg in $enableval; do
1989 IFS="$lt_save_ifs"
1990 if test "X$pkg" = "X$p"; then
1991 enable_static=yes
1992 fi
1993 done
1994 IFS="$lt_save_ifs"
1995 ;;
1996 esac
drh71eb93e2001-09-28 01:34:43 +00001997else
1998 enable_static=yes
mlcreech94984912008-03-04 19:03:08 +00001999fi
a.rottmann9bc8b932004-02-29 15:18:31 +00002000
mlcreech94984912008-03-04 19:03:08 +00002001
2002# Check whether --enable-fast-install was given.
drh71eb93e2001-09-28 01:34:43 +00002003if test "${enable_fast_install+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00002004 enableval=$enable_fast_install; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00002005 case $enableval in
2006 yes) enable_fast_install=yes ;;
2007 no) enable_fast_install=no ;;
2008 *)
2009 enable_fast_install=no
2010 # Look at the argument we got. We use all the common list separators.
2011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2012 for pkg in $enableval; do
2013 IFS="$lt_save_ifs"
2014 if test "X$pkg" = "X$p"; then
2015 enable_fast_install=yes
2016 fi
2017 done
2018 IFS="$lt_save_ifs"
2019 ;;
2020 esac
drh71eb93e2001-09-28 01:34:43 +00002021else
2022 enable_fast_install=yes
mlcreech94984912008-03-04 19:03:08 +00002023fi
2024
a.rottmann9bc8b932004-02-29 15:18:31 +00002025
drh71eb93e2001-09-28 01:34:43 +00002026ac_aux_dir=
mlcreech94984912008-03-04 19:03:08 +00002027for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2028 if test -f "$ac_dir/install-sh"; then
drh71eb93e2001-09-28 01:34:43 +00002029 ac_aux_dir=$ac_dir
2030 ac_install_sh="$ac_aux_dir/install-sh -c"
2031 break
mlcreech94984912008-03-04 19:03:08 +00002032 elif test -f "$ac_dir/install.sh"; then
drh71eb93e2001-09-28 01:34:43 +00002033 ac_aux_dir=$ac_dir
2034 ac_install_sh="$ac_aux_dir/install.sh -c"
2035 break
mlcreech94984912008-03-04 19:03:08 +00002036 elif test -f "$ac_dir/shtool"; then
drh71eb93e2001-09-28 01:34:43 +00002037 ac_aux_dir=$ac_dir
2038 ac_install_sh="$ac_aux_dir/shtool install -c"
2039 break
2040 fi
2041done
2042if test -z "$ac_aux_dir"; then
mlcreech94984912008-03-04 19:03:08 +00002043 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2044echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002045 { (exit 1); exit 1; }; }
2046fi
mlcreech94984912008-03-04 19:03:08 +00002047
2048# These three variables are undocumented and unsupported,
2049# and are intended to be withdrawn in a future Autoconf release.
2050# They can cause serious problems if a builder's source tree is in a directory
2051# whose full name contains unusual characters.
2052ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2053ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2054ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2055
drh71eb93e2001-09-28 01:34:43 +00002056
2057# Make sure we can run config.sub.
mlcreech94984912008-03-04 19:03:08 +00002058$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2059 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2060echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002061 { (exit 1); exit 1; }; }
2062
mlcreech94984912008-03-04 19:03:08 +00002063{ echo "$as_me:$LINENO: checking build system type" >&5
2064echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002065if test "${ac_cv_build+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
mlcreech94984912008-03-04 19:03:08 +00002068 ac_build_alias=$build_alias
2069test "x$ac_build_alias" = x &&
2070 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2071test "x$ac_build_alias" = x &&
a.rottmann84e63352003-03-24 09:42:16 +00002072 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00002073echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2074 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00002075ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2076 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2077echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002078 { (exit 1); exit 1; }; }
2079
2080fi
mlcreech94984912008-03-04 19:03:08 +00002081{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2082echo "${ECHO_T}$ac_cv_build" >&6; }
2083case $ac_cv_build in
2084*-*-*) ;;
2085*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2086echo "$as_me: error: invalid value of canonical build" >&2;}
2087 { (exit 1); exit 1; }; };;
2088esac
drh71eb93e2001-09-28 01:34:43 +00002089build=$ac_cv_build
mlcreech94984912008-03-04 19:03:08 +00002090ac_save_IFS=$IFS; IFS='-'
2091set x $ac_cv_build
2092shift
2093build_cpu=$1
2094build_vendor=$2
2095shift; shift
2096# Remember, the first character of IFS is used to create $*,
2097# except with old shells:
2098build_os=$*
2099IFS=$ac_save_IFS
2100case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002101
a.rottmann84e63352003-03-24 09:42:16 +00002102
mlcreech94984912008-03-04 19:03:08 +00002103{ echo "$as_me:$LINENO: checking host system type" >&5
2104echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002105if test "${ac_cv_host+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
mlcreech94984912008-03-04 19:03:08 +00002108 if test "x$host_alias" = x; then
2109 ac_cv_host=$ac_cv_build
2110else
2111 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2112 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2113echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002114 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00002115fi
drh71eb93e2001-09-28 01:34:43 +00002116
2117fi
mlcreech94984912008-03-04 19:03:08 +00002118{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2119echo "${ECHO_T}$ac_cv_host" >&6; }
2120case $ac_cv_host in
2121*-*-*) ;;
2122*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2123echo "$as_me: error: invalid value of canonical host" >&2;}
2124 { (exit 1); exit 1; }; };;
2125esac
drh71eb93e2001-09-28 01:34:43 +00002126host=$ac_cv_host
mlcreech94984912008-03-04 19:03:08 +00002127ac_save_IFS=$IFS; IFS='-'
2128set x $ac_cv_host
2129shift
2130host_cpu=$1
2131host_vendor=$2
2132shift; shift
2133# Remember, the first character of IFS is used to create $*,
2134# except with old shells:
2135host_os=$*
2136IFS=$ac_save_IFS
2137case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002138
a.rottmann84e63352003-03-24 09:42:16 +00002139
drh71eb93e2001-09-28 01:34:43 +00002140ac_ext=c
2141ac_cpp='$CPP $CPPFLAGS'
2142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147set dummy ${ac_tool_prefix}gcc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002150if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155else
a.rottmann84e63352003-03-24 09:42:16 +00002156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157for as_dir in $PATH
2158do
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2166 fi
2167done
drh71eb93e2001-09-28 01:34:43 +00002168done
mlcreech94984912008-03-04 19:03:08 +00002169IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002170
2171fi
2172fi
2173CC=$ac_cv_prog_CC
2174if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002175 { echo "$as_me:$LINENO: result: $CC" >&5
2176echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002177else
mlcreech94984912008-03-04 19:03:08 +00002178 { echo "$as_me:$LINENO: result: no" >&5
2179echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002180fi
2181
mlcreech94984912008-03-04 19:03:08 +00002182
drh71eb93e2001-09-28 01:34:43 +00002183fi
2184if test -z "$ac_cv_prog_CC"; then
2185 ac_ct_CC=$CC
2186 # Extract the first word of "gcc", so it can be a program name with args.
2187set dummy gcc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002190if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195else
a.rottmann84e63352003-03-24 09:42:16 +00002196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197for as_dir in $PATH
2198do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002203 ac_cv_prog_ac_ct_CC="gcc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2206 fi
2207done
drh71eb93e2001-09-28 01:34:43 +00002208done
mlcreech94984912008-03-04 19:03:08 +00002209IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002210
2211fi
2212fi
2213ac_ct_CC=$ac_cv_prog_ac_ct_CC
2214if test -n "$ac_ct_CC"; then
mlcreech94984912008-03-04 19:03:08 +00002215 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2216echo "${ECHO_T}$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002217else
mlcreech94984912008-03-04 19:03:08 +00002218 { echo "$as_me:$LINENO: result: no" >&5
2219echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002220fi
2221
mlcreech94984912008-03-04 19:03:08 +00002222 if test "x$ac_ct_CC" = x; then
2223 CC=""
2224 else
2225 case $cross_compiling:$ac_tool_warned in
2226yes:)
2227{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2228whose name does not start with the host triplet. If you think this
2229configuration is useful to you, please write to autoconf@gnu.org." >&5
2230echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2231whose name does not start with the host triplet. If you think this
2232configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2233ac_tool_warned=yes ;;
2234esac
2235 CC=$ac_ct_CC
2236 fi
drh71eb93e2001-09-28 01:34:43 +00002237else
2238 CC="$ac_cv_prog_CC"
2239fi
2240
2241if test -z "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002244set dummy ${ac_tool_prefix}cc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002247if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249else
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2252else
a.rottmann84e63352003-03-24 09:42:16 +00002253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254for as_dir in $PATH
2255do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002260 ac_cv_prog_CC="${ac_tool_prefix}cc"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2263 fi
2264done
drh71eb93e2001-09-28 01:34:43 +00002265done
mlcreech94984912008-03-04 19:03:08 +00002266IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002267
2268fi
2269fi
2270CC=$ac_cv_prog_CC
2271if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002272 { echo "$as_me:$LINENO: result: $CC" >&5
2273echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002274else
mlcreech94984912008-03-04 19:03:08 +00002275 { echo "$as_me:$LINENO: result: no" >&5
2276echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002277fi
2278
mlcreech94984912008-03-04 19:03:08 +00002279
a.rottmann84e63352003-03-24 09:42:16 +00002280 fi
drh71eb93e2001-09-28 01:34:43 +00002281fi
2282if test -z "$CC"; then
2283 # Extract the first word of "cc", so it can be a program name with args.
2284set dummy cc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002287if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292else
2293 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2302 ac_prog_rejected=yes
2303 continue
2304 fi
2305 ac_cv_prog_CC="cc"
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2308 fi
2309done
drh71eb93e2001-09-28 01:34:43 +00002310done
mlcreech94984912008-03-04 19:03:08 +00002311IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002312
2313if test $ac_prog_rejected = yes; then
2314 # We found a bogon in the path, so make sure we never use it.
2315 set dummy $ac_cv_prog_CC
2316 shift
2317 if test $# != 0; then
2318 # We chose a different compiler from the bogus one.
2319 # However, it has the same basename, so the bogon will be chosen
2320 # first if we set CC to just the basename; use the full file name.
2321 shift
a.rottmann84e63352003-03-24 09:42:16 +00002322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002323 fi
2324fi
2325fi
2326fi
2327CC=$ac_cv_prog_CC
2328if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002329 { echo "$as_me:$LINENO: result: $CC" >&5
2330echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002331else
mlcreech94984912008-03-04 19:03:08 +00002332 { echo "$as_me:$LINENO: result: no" >&5
2333echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002334fi
2335
mlcreech94984912008-03-04 19:03:08 +00002336
drh71eb93e2001-09-28 01:34:43 +00002337fi
2338if test -z "$CC"; then
2339 if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00002340 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002341 do
2342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002346if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348else
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2351else
a.rottmann84e63352003-03-24 09:42:16 +00002352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2362 fi
2363done
drh71eb93e2001-09-28 01:34:43 +00002364done
mlcreech94984912008-03-04 19:03:08 +00002365IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002366
2367fi
2368fi
2369CC=$ac_cv_prog_CC
2370if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002371 { echo "$as_me:$LINENO: result: $CC" >&5
2372echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002373else
mlcreech94984912008-03-04 19:03:08 +00002374 { echo "$as_me:$LINENO: result: no" >&5
2375echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002376fi
2377
mlcreech94984912008-03-04 19:03:08 +00002378
drh71eb93e2001-09-28 01:34:43 +00002379 test -n "$CC" && break
2380 done
2381fi
2382if test -z "$CC"; then
2383 ac_ct_CC=$CC
mlcreech94984912008-03-04 19:03:08 +00002384 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002385do
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002388{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002390if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393 if test -n "$ac_ct_CC"; then
2394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2395else
a.rottmann84e63352003-03-24 09:42:16 +00002396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002403 ac_cv_prog_ac_ct_CC="$ac_prog"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 break 2
2406 fi
2407done
drh71eb93e2001-09-28 01:34:43 +00002408done
mlcreech94984912008-03-04 19:03:08 +00002409IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002410
2411fi
2412fi
2413ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414if test -n "$ac_ct_CC"; then
mlcreech94984912008-03-04 19:03:08 +00002415 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416echo "${ECHO_T}$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002417else
mlcreech94984912008-03-04 19:03:08 +00002418 { echo "$as_me:$LINENO: result: no" >&5
2419echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002420fi
2421
mlcreech94984912008-03-04 19:03:08 +00002422
drh71eb93e2001-09-28 01:34:43 +00002423 test -n "$ac_ct_CC" && break
2424done
2425
mlcreech94984912008-03-04 19:03:08 +00002426 if test "x$ac_ct_CC" = x; then
2427 CC=""
2428 else
2429 case $cross_compiling:$ac_tool_warned in
2430yes:)
2431{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432whose name does not start with the host triplet. If you think this
2433configuration is useful to you, please write to autoconf@gnu.org." >&5
2434echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435whose name does not start with the host triplet. If you think this
2436configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2437ac_tool_warned=yes ;;
2438esac
2439 CC=$ac_ct_CC
2440 fi
drh71eb93e2001-09-28 01:34:43 +00002441fi
2442
2443fi
2444
a.rottmann84e63352003-03-24 09:42:16 +00002445
2446test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2447See \`config.log' for more details." >&5
2448echo "$as_me: error: no acceptable C compiler found in \$PATH
2449See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002450 { (exit 1); exit 1; }; }
2451
2452# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00002453echo "$as_me:$LINENO: checking for C compiler version" >&5
drh71eb93e2001-09-28 01:34:43 +00002454ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00002455{ (ac_try="$ac_compiler --version >&5"
2456case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002462 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002464 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00002465{ (ac_try="$ac_compiler -v >&5"
2466case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
2470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_compiler -v >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002472 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002474 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00002475{ (ac_try="$ac_compiler -V >&5"
2476case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_compiler -V >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002482 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002484 (exit $ac_status); }
2485
2486cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002487/* confdefs.h. */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
2491/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002492
2493int
2494main ()
2495{
2496
2497 ;
2498 return 0;
2499}
2500_ACEOF
2501ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002502ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002503# Try to create an executable without -o first, disregard a.out.
2504# It will help us diagnose broken compilers, and finding out an intuition
2505# of exeext.
mlcreech94984912008-03-04 19:03:08 +00002506{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2507echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002508ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mlcreech94984912008-03-04 19:03:08 +00002509#
2510# List of possible output files, starting from the most likely.
2511# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2512# only as a last resort. b.out is created by i960 compilers.
2513ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2514#
2515# The IRIX 6 linker writes into existing files which may not be
2516# executable, retaining their permissions. Remove them first so a
2517# subsequent execution test works.
2518ac_rmfiles=
2519for ac_file in $ac_files
2520do
2521 case $ac_file in
2522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2523 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2524 esac
2525done
2526rm -f $ac_rmfiles
2527
2528if { (ac_try="$ac_link_default"
2529case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532esac
2533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_link_default") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002535 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002537 (exit $ac_status); }; then
mlcreech94984912008-03-04 19:03:08 +00002538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2539# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2540# in a Makefile. We should not override ac_cv_exeext if it was cached,
2541# so that the user can short-circuit this test for compilers unknown to
2542# Autoconf.
2543for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002544do
2545 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002546 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002548 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002549 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002550 # We found the default executable, but exeext='' is most
2551 # certainly right.
2552 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002553 *.* )
mlcreech94984912008-03-04 19:03:08 +00002554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2555 then :; else
2556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2557 fi
2558 # We set ac_cv_exeext here because the later test for it is not
2559 # safe: cross compilers may not add the suffix if given an `-o'
2560 # argument, so we may need to know it at that point already.
2561 # Even if this section looks crufty: it has the advantage of
2562 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002563 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002564 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002565 break;;
drh71eb93e2001-09-28 01:34:43 +00002566 esac
2567done
mlcreech94984912008-03-04 19:03:08 +00002568test "$ac_cv_exeext" = no && ac_cv_exeext=
2569
drh71eb93e2001-09-28 01:34:43 +00002570else
mlcreech94984912008-03-04 19:03:08 +00002571 ac_file=''
2572fi
2573
2574{ echo "$as_me:$LINENO: result: $ac_file" >&5
2575echo "${ECHO_T}$ac_file" >&6; }
2576if test -z "$ac_file"; then
drh71eb93e2001-09-28 01:34:43 +00002577 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002578sed 's/^/| /' conftest.$ac_ext >&5
2579
2580{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2581See \`config.log' for more details." >&5
2582echo "$as_me: error: C compiler cannot create executables
2583See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002584 { (exit 77); exit 77; }; }
2585fi
2586
2587ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002588
mlcreech94984912008-03-04 19:03:08 +00002589# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002590# the compiler is broken, or we cross compile.
mlcreech94984912008-03-04 19:03:08 +00002591{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2592echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002593# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2594# If not cross compiling, check that we can run a simple program.
2595if test "$cross_compiling" != yes; then
2596 if { ac_try='./$ac_file'
mlcreech94984912008-03-04 19:03:08 +00002597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600esac
2601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002603 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002605 (exit $ac_status); }; }; then
2606 cross_compiling=no
2607 else
2608 if test "$cross_compiling" = maybe; then
2609 cross_compiling=yes
2610 else
a.rottmann84e63352003-03-24 09:42:16 +00002611 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2612If you meant to cross compile, use \`--host'.
2613See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002614echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002615If you meant to cross compile, use \`--host'.
2616See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002617 { (exit 1); exit 1; }; }
2618 fi
2619 fi
2620fi
mlcreech94984912008-03-04 19:03:08 +00002621{ echo "$as_me:$LINENO: result: yes" >&5
2622echo "${ECHO_T}yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002623
a.rottmann84e63352003-03-24 09:42:16 +00002624rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002625ac_clean_files=$ac_clean_files_save
mlcreech94984912008-03-04 19:03:08 +00002626# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002627# the compiler is broken, or we cross compile.
mlcreech94984912008-03-04 19:03:08 +00002628{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2629echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2630{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2631echo "${ECHO_T}$cross_compiling" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002632
mlcreech94984912008-03-04 19:03:08 +00002633{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2634echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2635if { (ac_try="$ac_link"
2636case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2639esac
2640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002642 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002644 (exit $ac_status); }; then
2645 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2646# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2647# work properly (i.e., refer to `conftest.exe'), while it won't with
2648# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002649for ac_file in conftest.exe conftest conftest.*; do
2650 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002651 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002653 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002654 break;;
drh71eb93e2001-09-28 01:34:43 +00002655 * ) break;;
2656 esac
2657done
2658else
a.rottmann84e63352003-03-24 09:42:16 +00002659 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2660See \`config.log' for more details." >&5
2661echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2662See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002663 { (exit 1); exit 1; }; }
2664fi
2665
2666rm -f conftest$ac_cv_exeext
mlcreech94984912008-03-04 19:03:08 +00002667{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2668echo "${ECHO_T}$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002669
2670rm -f conftest.$ac_ext
2671EXEEXT=$ac_cv_exeext
2672ac_exeext=$EXEEXT
mlcreech94984912008-03-04 19:03:08 +00002673{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2674echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002675if test "${ac_cv_objext+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else
2678 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002679/* confdefs.h. */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>conftest.$ac_ext <<_ACEOF
2683/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002684
2685int
2686main ()
2687{
2688
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693rm -f conftest.o conftest.obj
mlcreech94984912008-03-04 19:03:08 +00002694if { (ac_try="$ac_compile"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002701 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002703 (exit $ac_status); }; then
mlcreech94984912008-03-04 19:03:08 +00002704 for ac_file in conftest.o conftest.obj conftest.*; do
2705 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002706 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
drh71eb93e2001-09-28 01:34:43 +00002708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2709 break;;
2710 esac
2711done
2712else
2713 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2717See \`config.log' for more details." >&5
2718echo "$as_me: error: cannot compute suffix of object files: cannot compile
2719See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002720 { (exit 1); exit 1; }; }
2721fi
2722
2723rm -f conftest.$ac_cv_objext conftest.$ac_ext
2724fi
mlcreech94984912008-03-04 19:03:08 +00002725{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2726echo "${ECHO_T}$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002727OBJEXT=$ac_cv_objext
2728ac_objext=$OBJEXT
mlcreech94984912008-03-04 19:03:08 +00002729{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2730echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002731if test "${ac_cv_c_compiler_gnu+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002735/* confdefs.h. */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002740
2741int
2742main ()
2743{
2744#ifndef __GNUC__
2745 choke me
2746#endif
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002753if { (ac_try="$ac_compile"
2754case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002760 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002765 (exit $ac_status); } && {
2766 test -z "$ac_c_werror_flag" ||
2767 test ! -s conftest.err
2768 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002769 ac_compiler_gnu=yes
2770else
2771 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002772sed 's/^/| /' conftest.$ac_ext >&5
2773
mlcreech94984912008-03-04 19:03:08 +00002774 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002775fi
mlcreech94984912008-03-04 19:03:08 +00002776
2777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002778ac_cv_c_compiler_gnu=$ac_compiler_gnu
2779
2780fi
mlcreech94984912008-03-04 19:03:08 +00002781{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2782echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002783GCC=`test $ac_compiler_gnu = yes && echo yes`
2784ac_test_CFLAGS=${CFLAGS+set}
2785ac_save_CFLAGS=$CFLAGS
mlcreech94984912008-03-04 19:03:08 +00002786{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2787echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002788if test "${ac_cv_prog_cc_g+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2790else
mlcreech94984912008-03-04 19:03:08 +00002791 ac_save_c_werror_flag=$ac_c_werror_flag
2792 ac_c_werror_flag=yes
2793 ac_cv_prog_cc_g=no
2794 CFLAGS="-g"
2795 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002796/* confdefs.h. */
2797_ACEOF
2798cat confdefs.h >>conftest.$ac_ext
2799cat >>conftest.$ac_ext <<_ACEOF
2800/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002801
2802int
2803main ()
2804{
2805
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002811if { (ac_try="$ac_compile"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002818 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002823 (exit $ac_status); } && {
2824 test -z "$ac_c_werror_flag" ||
2825 test ! -s conftest.err
2826 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002827 ac_cv_prog_cc_g=yes
2828else
2829 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002830sed 's/^/| /' conftest.$ac_ext >&5
2831
mlcreech94984912008-03-04 19:03:08 +00002832 CFLAGS=""
2833 cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839
2840int
2841main ()
2842{
2843
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848rm -f conftest.$ac_objext
2849if { (ac_try="$ac_compile"
2850case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853esac
2854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compile") 2>conftest.er1
2856 ac_status=$?
2857 grep -v '^ *+' conftest.er1 >conftest.err
2858 rm -f conftest.er1
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest.$ac_objext; then
2865 :
2866else
2867 echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 ac_c_werror_flag=$ac_save_c_werror_flag
2871 CFLAGS="-g"
2872 cat >conftest.$ac_ext <<_ACEOF
2873/* confdefs.h. */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h. */
2878
2879int
2880main ()
2881{
2882
2883 ;
2884 return 0;
2885}
2886_ACEOF
2887rm -f conftest.$ac_objext
2888if { (ac_try="$ac_compile"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compile") 2>conftest.er1
2895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
2904 ac_cv_prog_cc_g=yes
2905else
2906 echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909
drh71eb93e2001-09-28 01:34:43 +00002910fi
mlcreech94984912008-03-04 19:03:08 +00002911
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002913fi
mlcreech94984912008-03-04 19:03:08 +00002914
2915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916fi
2917
2918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919 ac_c_werror_flag=$ac_save_c_werror_flag
2920fi
2921{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2922echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002923if test "$ac_test_CFLAGS" = set; then
2924 CFLAGS=$ac_save_CFLAGS
2925elif test $ac_cv_prog_cc_g = yes; then
2926 if test "$GCC" = yes; then
2927 CFLAGS="-g -O2"
2928 else
2929 CFLAGS="-g"
2930 fi
2931else
2932 if test "$GCC" = yes; then
2933 CFLAGS="-O2"
2934 else
2935 CFLAGS=
2936 fi
2937fi
mlcreech94984912008-03-04 19:03:08 +00002938{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2939echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2940if test "${ac_cv_prog_cc_c89+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00002941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942else
mlcreech94984912008-03-04 19:03:08 +00002943 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00002944ac_save_CC=$CC
2945cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002946/* confdefs.h. */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h. */
2951#include <stdarg.h>
2952#include <stdio.h>
2953#include <sys/types.h>
2954#include <sys/stat.h>
2955/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2956struct buf { int x; };
2957FILE * (*rcsopen) (struct buf *, struct stat *, int);
2958static char *e (p, i)
2959 char **p;
2960 int i;
2961{
2962 return p[i];
2963}
2964static char *f (char * (*g) (char **, int), char **p, ...)
2965{
2966 char *s;
2967 va_list v;
2968 va_start (v,p);
2969 s = g (p, va_arg (v,int));
2970 va_end (v);
2971 return s;
2972}
a.rottmann964dbb12004-02-26 19:47:42 +00002973
2974/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2975 function prototypes and stuff, but not '\xHH' hex character constants.
2976 These don't provoke an error unfortunately, instead are silently treated
mlcreech94984912008-03-04 19:03:08 +00002977 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00002978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2979 array size at least. It's necessary to write '\x00'==0 to get something
mlcreech94984912008-03-04 19:03:08 +00002980 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00002981int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2982
mlcreech94984912008-03-04 19:03:08 +00002983/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2984 inside strings and character constants. */
2985#define FOO(x) 'x'
2986int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2987
a.rottmann84e63352003-03-24 09:42:16 +00002988int test (int i, double x);
2989struct s1 {int (*f) (int a);};
2990struct s2 {int (*f) (double a);};
2991int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2992int argc;
2993char **argv;
2994int
2995main ()
2996{
2997return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2998 ;
2999 return 0;
3000}
3001_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003002for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003004do
3005 CC="$ac_save_CC $ac_arg"
3006 rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00003007if { (ac_try="$ac_compile"
3008case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003014 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.$ac_objext; then
3023 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003024else
3025 echo "$as_me: failed program was:" >&5
3026sed 's/^/| /' conftest.$ac_ext >&5
3027
mlcreech94984912008-03-04 19:03:08 +00003028
a.rottmann84e63352003-03-24 09:42:16 +00003029fi
mlcreech94984912008-03-04 19:03:08 +00003030
3031rm -f core conftest.err conftest.$ac_objext
3032 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003033done
mlcreech94984912008-03-04 19:03:08 +00003034rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003035CC=$ac_save_CC
3036
3037fi
mlcreech94984912008-03-04 19:03:08 +00003038# AC_CACHE_VAL
3039case "x$ac_cv_prog_cc_c89" in
3040 x)
3041 { echo "$as_me:$LINENO: result: none needed" >&5
3042echo "${ECHO_T}none needed" >&6; } ;;
3043 xno)
3044 { echo "$as_me:$LINENO: result: unsupported" >&5
3045echo "${ECHO_T}unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003046 *)
mlcreech94984912008-03-04 19:03:08 +00003047 CC="$CC $ac_cv_prog_cc_c89"
3048 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3049echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003050esac
3051
a.rottmann84e63352003-03-24 09:42:16 +00003052
drh71eb93e2001-09-28 01:34:43 +00003053ac_ext=c
3054ac_cpp='$CPP $CPPFLAGS'
3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058
mlcreech94984912008-03-04 19:03:08 +00003059{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3060echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003061if test "${lt_cv_path_SED+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 # Loop through the user's path and test for sed and gsed.
3065# Then use that list of sed's as ones to test for truncation.
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for lt_ac_prog in sed gsed; do
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3074 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3075 fi
3076 done
3077 done
3078done
3079lt_ac_max=0
3080lt_ac_count=0
3081# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3082# along with /bin/sed that truncates output.
3083for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
vapier7f19c022007-02-17 14:46:31 +00003084 test ! -f $lt_ac_sed && continue
a.rottmann9bc8b932004-02-29 15:18:31 +00003085 cat /dev/null > conftest.in
3086 lt_ac_count=0
3087 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3088 # Check for GNU sed and select it if it is found.
3089 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3090 lt_cv_path_SED=$lt_ac_sed
3091 break
3092 fi
3093 while true; do
3094 cat conftest.in conftest.in >conftest.tmp
3095 mv conftest.tmp conftest.in
3096 cp conftest.in conftest.nl
3097 echo >>conftest.nl
3098 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3099 cmp -s conftest.out conftest.nl || break
3100 # 10000 chars as input seems more than enough
3101 test $lt_ac_count -gt 10 && break
3102 lt_ac_count=`expr $lt_ac_count + 1`
3103 if test $lt_ac_count -gt $lt_ac_max; then
3104 lt_ac_max=$lt_ac_count
3105 lt_cv_path_SED=$lt_ac_sed
3106 fi
3107 done
3108done
a.rottmann9bc8b932004-02-29 15:18:31 +00003109
a.rottmann84e63352003-03-24 09:42:16 +00003110fi
3111
vapier7f19c022007-02-17 14:46:31 +00003112SED=$lt_cv_path_SED
mlcreech94984912008-03-04 19:03:08 +00003113{ echo "$as_me:$LINENO: result: $SED" >&5
3114echo "${ECHO_T}$SED" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003115
mlcreech94984912008-03-04 19:03:08 +00003116{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3117echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3118if test "${ac_cv_path_GREP+set}" = set; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
mlcreech94984912008-03-04 19:03:08 +00003121 # Extract the first word of "grep ggrep" to use in msg output
3122if test -z "$GREP"; then
3123set dummy grep ggrep; ac_prog_name=$2
3124if test "${ac_cv_path_GREP+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126else
3127 ac_path_GREP_found=false
3128# Loop through the user's path and test for each of PROGNAME-LIST
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3131do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_prog in grep ggrep; do
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3137 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3138 # Check for GNU ac_path_GREP and select it if it is found.
3139 # Check for GNU $ac_path_GREP
3140case `"$ac_path_GREP" --version 2>&1` in
3141*GNU*)
3142 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3143*)
3144 ac_count=0
3145 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3146 while :
3147 do
3148 cat "conftest.in" "conftest.in" >"conftest.tmp"
3149 mv "conftest.tmp" "conftest.in"
3150 cp "conftest.in" "conftest.nl"
3151 echo 'GREP' >> "conftest.nl"
3152 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3154 ac_count=`expr $ac_count + 1`
3155 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3156 # Best one so far, save it but keep looking for a better one
3157 ac_cv_path_GREP="$ac_path_GREP"
3158 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003159 fi
mlcreech94984912008-03-04 19:03:08 +00003160 # 10*(2^10) chars as input seems more than enough
3161 test $ac_count -gt 10 && break
3162 done
3163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3164esac
3165
3166
3167 $ac_path_GREP_found && break 3
3168 done
3169done
3170
3171done
3172IFS=$as_save_IFS
3173
3174
a.rottmann9bc8b932004-02-29 15:18:31 +00003175fi
mlcreech94984912008-03-04 19:03:08 +00003176
3177GREP="$ac_cv_path_GREP"
3178if test -z "$GREP"; then
3179 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3180echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3181 { (exit 1); exit 1; }; }
3182fi
3183
3184else
3185 ac_cv_path_GREP=$GREP
3186fi
3187
3188
3189fi
3190{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3191echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3192 GREP="$ac_cv_path_GREP"
3193
3194
3195{ echo "$as_me:$LINENO: checking for egrep" >&5
3196echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3197if test "${ac_cv_path_EGREP+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
3200 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3201 then ac_cv_path_EGREP="$GREP -E"
3202 else
3203 # Extract the first word of "egrep" to use in msg output
3204if test -z "$EGREP"; then
3205set dummy egrep; ac_prog_name=$2
3206if test "${ac_cv_path_EGREP+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209 ac_path_EGREP_found=false
3210# Loop through the user's path and test for each of PROGNAME-LIST
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3213do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_prog in egrep; do
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3219 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3220 # Check for GNU ac_path_EGREP and select it if it is found.
3221 # Check for GNU $ac_path_EGREP
3222case `"$ac_path_EGREP" --version 2>&1` in
3223*GNU*)
3224 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3225*)
3226 ac_count=0
3227 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3228 while :
3229 do
3230 cat "conftest.in" "conftest.in" >"conftest.tmp"
3231 mv "conftest.tmp" "conftest.in"
3232 cp "conftest.in" "conftest.nl"
3233 echo 'EGREP' >> "conftest.nl"
3234 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3236 ac_count=`expr $ac_count + 1`
3237 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3238 # Best one so far, save it but keep looking for a better one
3239 ac_cv_path_EGREP="$ac_path_EGREP"
3240 ac_path_EGREP_max=$ac_count
3241 fi
3242 # 10*(2^10) chars as input seems more than enough
3243 test $ac_count -gt 10 && break
3244 done
3245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3246esac
3247
3248
3249 $ac_path_EGREP_found && break 3
3250 done
3251done
3252
3253done
3254IFS=$as_save_IFS
3255
3256
3257fi
3258
3259EGREP="$ac_cv_path_EGREP"
3260if test -z "$EGREP"; then
3261 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3263 { (exit 1); exit 1; }; }
3264fi
3265
3266else
3267 ac_cv_path_EGREP=$EGREP
3268fi
3269
3270
3271 fi
3272fi
3273{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3274echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3275 EGREP="$ac_cv_path_EGREP"
a.rottmann9bc8b932004-02-29 15:18:31 +00003276
3277
a.rottmann84e63352003-03-24 09:42:16 +00003278
mlcreech94984912008-03-04 19:03:08 +00003279# Check whether --with-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00003280if test "${with_gnu_ld+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00003281 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003282else
3283 with_gnu_ld=no
mlcreech94984912008-03-04 19:03:08 +00003284fi
3285
drh71eb93e2001-09-28 01:34:43 +00003286ac_prog=ld
3287if test "$GCC" = yes; then
3288 # Check if gcc -print-prog-name=ld gives a path.
mlcreech94984912008-03-04 19:03:08 +00003289 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3290echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003291 case $host in
3292 *-*-mingw*)
3293 # gcc leaves a trailing carriage return which upsets mingw
3294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3295 *)
3296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3297 esac
3298 case $ac_prog in
3299 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003300 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003301 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003302 # Canonicalize the pathname of ld
3303 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00003304 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003305 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003306 done
3307 test -z "$LD" && LD="$ac_prog"
3308 ;;
3309 "")
3310 # If it fails, then pretend we aren't using GCC.
3311 ac_prog=ld
3312 ;;
3313 *)
3314 # If it is relative, then search for the first ld in PATH.
3315 with_gnu_ld=unknown
3316 ;;
3317 esac
3318elif test "$with_gnu_ld" = yes; then
mlcreech94984912008-03-04 19:03:08 +00003319 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3320echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003321else
mlcreech94984912008-03-04 19:03:08 +00003322 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3323echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003324fi
3325if test "${lt_cv_path_LD+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327else
3328 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003330 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003331 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003332 test -z "$ac_dir" && ac_dir=.
3333 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3334 lt_cv_path_LD="$ac_dir/$ac_prog"
3335 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003336 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003337 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003338 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3339 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003340 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003341 ;;
3342 *)
drh71eb93e2001-09-28 01:34:43 +00003343 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003344 ;;
3345 esac
drh71eb93e2001-09-28 01:34:43 +00003346 fi
3347 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003348 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003349else
3350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3351fi
3352fi
3353
3354LD="$lt_cv_path_LD"
3355if test -n "$LD"; then
mlcreech94984912008-03-04 19:03:08 +00003356 { echo "$as_me:$LINENO: result: $LD" >&5
3357echo "${ECHO_T}$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003358else
mlcreech94984912008-03-04 19:03:08 +00003359 { echo "$as_me:$LINENO: result: no" >&5
3360echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003361fi
a.rottmann84e63352003-03-24 09:42:16 +00003362test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00003363echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3364 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00003365{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3366echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003367if test "${lt_cv_prog_gnu_ld+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
vapier7f19c022007-02-17 14:46:31 +00003370 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003371case `$LD -v 2>&1 </dev/null` in
3372*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003373 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003374 ;;
3375*)
drh71eb93e2001-09-28 01:34:43 +00003376 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003377 ;;
3378esac
drh71eb93e2001-09-28 01:34:43 +00003379fi
mlcreech94984912008-03-04 19:03:08 +00003380{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3381echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003382with_gnu_ld=$lt_cv_prog_gnu_ld
3383
a.rottmann84e63352003-03-24 09:42:16 +00003384
mlcreech94984912008-03-04 19:03:08 +00003385{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3386echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003387if test "${lt_cv_ld_reload_flag+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
3390 lt_cv_ld_reload_flag='-r'
3391fi
mlcreech94984912008-03-04 19:03:08 +00003392{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3393echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003394reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00003395case $reload_flag in
3396"" | " "*) ;;
3397*) reload_flag=" $reload_flag" ;;
3398esac
3399reload_cmds='$LD$reload_flag -o $output$reload_objs'
vapier7f19c022007-02-17 14:46:31 +00003400case $host_os in
3401 darwin*)
3402 if test "$GCC" = yes; then
3403 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3404 else
3405 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3406 fi
3407 ;;
3408esac
drh71eb93e2001-09-28 01:34:43 +00003409
mlcreech94984912008-03-04 19:03:08 +00003410{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3411echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003412if test "${lt_cv_path_NM+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 if test -n "$NM"; then
3416 # Let the user override the test.
3417 lt_cv_path_NM="$NM"
3418else
vapier7f19c022007-02-17 14:46:31 +00003419 lt_nm_to_check="${ac_tool_prefix}nm"
3420 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3421 lt_nm_to_check="$lt_nm_to_check nm"
3422 fi
3423 for lt_tmp_nm in $lt_nm_to_check; do
3424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3425 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3426 IFS="$lt_save_ifs"
3427 test -z "$ac_dir" && ac_dir=.
3428 tmp_nm="$ac_dir/$lt_tmp_nm"
3429 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3430 # Check to see if the nm accepts a BSD-compat flag.
3431 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3432 # nm: unknown option "B" ignored
3433 # Tru64's nm complains that /dev/null is an invalid object file
3434 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3435 */dev/null* | *'Invalid file or object type'*)
3436 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003437 break
3438 ;;
3439 *)
vapier7f19c022007-02-17 14:46:31 +00003440 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3441 */dev/null*)
3442 lt_cv_path_NM="$tmp_nm -p"
3443 break
3444 ;;
3445 *)
3446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3447 continue # so that we can try to find one that supports BSD flags
3448 ;;
3449 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003450 ;;
3451 esac
vapier7f19c022007-02-17 14:46:31 +00003452 fi
3453 done
3454 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003455 done
drh71eb93e2001-09-28 01:34:43 +00003456 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3457fi
3458fi
mlcreech94984912008-03-04 19:03:08 +00003459{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3460echo "${ECHO_T}$lt_cv_path_NM" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00003461NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00003462
mlcreech94984912008-03-04 19:03:08 +00003463{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3464echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003465LN_S=$as_ln_s
3466if test "$LN_S" = "ln -s"; then
mlcreech94984912008-03-04 19:03:08 +00003467 { echo "$as_me:$LINENO: result: yes" >&5
3468echo "${ECHO_T}yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003469else
mlcreech94984912008-03-04 19:03:08 +00003470 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3471echo "${ECHO_T}no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003472fi
3473
mlcreech94984912008-03-04 19:03:08 +00003474{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3475echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003476if test "${lt_cv_deplibs_check_method+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479 lt_cv_file_magic_cmd='$MAGIC_CMD'
3480lt_cv_file_magic_test_file=
3481lt_cv_deplibs_check_method='unknown'
3482# Need to set the preceding variable on all platforms that support
3483# interlibrary dependencies.
3484# 'none' -- dependencies not supported.
3485# `unknown' -- same as none, but documents that we really don't know.
3486# 'pass_all' -- all dependencies passed with no checks.
3487# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00003488# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00003489# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00003490# If you have `file' or equivalent on your system and you're not sure
3491# whether `pass_all' will *always* work, you probably want this one.
3492
3493case $host_os in
3494aix4* | aix5*)
3495 lt_cv_deplibs_check_method=pass_all
3496 ;;
3497
3498beos*)
3499 lt_cv_deplibs_check_method=pass_all
3500 ;;
3501
vapier7f19c022007-02-17 14:46:31 +00003502bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00003503 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3504 lt_cv_file_magic_cmd='/usr/bin/file -L'
3505 lt_cv_file_magic_test_file=/shlib/libc.so
3506 ;;
3507
a.rottmann9bc8b932004-02-29 15:18:31 +00003508cygwin*)
vapier7f19c022007-02-17 14:46:31 +00003509 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00003510 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00003511 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00003512 ;;
3513
3514mingw* | pw32*)
3515 # Base MSYS/MinGW do not provide the 'file' command needed by
vapier7f19c022007-02-17 14:46:31 +00003516 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00003517 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3518 lt_cv_file_magic_cmd='$OBJDUMP -f'
3519 ;;
3520
3521darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003522 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003523 ;;
3524
vapier7f19c022007-02-17 14:46:31 +00003525freebsd* | kfreebsd*-gnu | dragonfly*)
drh71eb93e2001-09-28 01:34:43 +00003526 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3527 case $host_cpu in
3528 i*86 )
3529 # Not sure whether the presence of OpenBSD here was a mistake.
3530 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00003531 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
drh71eb93e2001-09-28 01:34:43 +00003532 lt_cv_file_magic_cmd=/usr/bin/file
3533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3534 ;;
3535 esac
3536 else
3537 lt_cv_deplibs_check_method=pass_all
3538 fi
3539 ;;
3540
3541gnu*)
3542 lt_cv_deplibs_check_method=pass_all
3543 ;;
3544
a.rottmann9bc8b932004-02-29 15:18:31 +00003545hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00003546 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00003547 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00003548 ia64*)
3549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3550 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3551 ;;
3552 hppa*64*)
3553 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]'
3554 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3555 ;;
3556 *)
3557 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3558 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3559 ;;
3560 esac
drh71eb93e2001-09-28 01:34:43 +00003561 ;;
3562
vapier7f19c022007-02-17 14:46:31 +00003563interix3*)
3564 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3566 ;;
3567
a.rottmann84e63352003-03-24 09:42:16 +00003568irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003569 case $LD in
3570 *-32|*"-32 ") libmagic=32-bit;;
3571 *-n32|*"-n32 ") libmagic=N32;;
3572 *-64|*"-64 ") libmagic=64-bit;;
3573 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00003574 esac
drh71eb93e2001-09-28 01:34:43 +00003575 lt_cv_deplibs_check_method=pass_all
3576 ;;
3577
3578# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00003579linux*)
3580 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003581 ;;
3582
vapier7f19c022007-02-17 14:46:31 +00003583netbsd*)
drh71eb93e2001-09-28 01:34:43 +00003584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003586 else
a.rottmann9bc8b932004-02-29 15:18:31 +00003587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003588 fi
3589 ;;
3590
3591newos6*)
3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3593 lt_cv_file_magic_cmd=/usr/bin/file
3594 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3595 ;;
3596
a.rottmann9bc8b932004-02-29 15:18:31 +00003597nto-qnx*)
3598 lt_cv_deplibs_check_method=unknown
3599 ;;
3600
a.rottmann84e63352003-03-24 09:42:16 +00003601openbsd*)
a.rottmann84e63352003-03-24 09:42:16 +00003602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00003603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003604 else
vapier7f19c022007-02-17 14:46:31 +00003605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003606 fi
drh71eb93e2001-09-28 01:34:43 +00003607 ;;
3608
3609osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00003610 lt_cv_deplibs_check_method=pass_all
3611 ;;
3612
drh71eb93e2001-09-28 01:34:43 +00003613solaris*)
3614 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00003615 ;;
3616
vapier7f19c022007-02-17 14:46:31 +00003617sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00003618 case $host_vendor in
3619 motorola)
3620 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]'
3621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3622 ;;
3623 ncr)
3624 lt_cv_deplibs_check_method=pass_all
3625 ;;
3626 sequent)
3627 lt_cv_file_magic_cmd='/bin/file'
3628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3629 ;;
3630 sni)
3631 lt_cv_file_magic_cmd='/bin/file'
3632 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3633 lt_cv_file_magic_test_file=/lib/libc.so
3634 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003635 siemens)
3636 lt_cv_deplibs_check_method=pass_all
3637 ;;
vapier7f19c022007-02-17 14:46:31 +00003638 pc)
3639 lt_cv_deplibs_check_method=pass_all
3640 ;;
drh71eb93e2001-09-28 01:34:43 +00003641 esac
3642 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003643
vapier7f19c022007-02-17 14:46:31 +00003644sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003645 lt_cv_deplibs_check_method=pass_all
3646 ;;
drh71eb93e2001-09-28 01:34:43 +00003647esac
3648
3649fi
mlcreech94984912008-03-04 19:03:08 +00003650{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3651echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003652file_magic_cmd=$lt_cv_file_magic_cmd
3653deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003654test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003655
drh71eb93e2001-09-28 01:34:43 +00003656
drh71eb93e2001-09-28 01:34:43 +00003657
drh71eb93e2001-09-28 01:34:43 +00003658
a.rottmann9bc8b932004-02-29 15:18:31 +00003659# If no C compiler was specified, use CC.
3660LTCC=${LTCC-"$CC"}
3661
vapier7f19c022007-02-17 14:46:31 +00003662# If no C compiler flags were specified, use CFLAGS.
3663LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3664
a.rottmann9bc8b932004-02-29 15:18:31 +00003665# Allow CC to be a program name with arguments.
3666compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003667
drh71eb93e2001-09-28 01:34:43 +00003668
mlcreech94984912008-03-04 19:03:08 +00003669# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00003670if test "${enable_libtool_lock+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00003671 enableval=$enable_libtool_lock;
3672fi
drh71eb93e2001-09-28 01:34:43 +00003673
a.rottmann9bc8b932004-02-29 15:18:31 +00003674test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003675
a.rottmann9bc8b932004-02-29 15:18:31 +00003676# Some flags need to be propagated to the compiler or linker for good
3677# libtool support.
3678case $host in
3679ia64-*-hpux*)
3680 # Find out which ABI we are using.
3681 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003683 (eval $ac_compile) 2>&5
3684 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003686 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003687 case `/usr/bin/file conftest.$ac_objext` in
3688 *ELF-32*)
3689 HPUX_IA64_MODE="32"
3690 ;;
3691 *ELF-64*)
3692 HPUX_IA64_MODE="64"
3693 ;;
3694 esac
3695 fi
3696 rm -rf conftest*
3697 ;;
3698*-*-irix6*)
3699 # Find out which ABI we are using.
mlcreechb87057f2008-03-06 07:19:20 +00003700 echo '#line 3700 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003703 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003705 (exit $ac_status); }; then
3706 if test "$lt_cv_prog_gnu_ld" = yes; then
3707 case `/usr/bin/file conftest.$ac_objext` in
3708 *32-bit*)
3709 LD="${LD-ld} -melf32bsmip"
3710 ;;
3711 *N32*)
3712 LD="${LD-ld} -melf32bmipn32"
3713 ;;
3714 *64-bit*)
3715 LD="${LD-ld} -melf64bmip"
3716 ;;
3717 esac
3718 else
3719 case `/usr/bin/file conftest.$ac_objext` in
3720 *32-bit*)
3721 LD="${LD-ld} -32"
3722 ;;
3723 *N32*)
3724 LD="${LD-ld} -n32"
3725 ;;
3726 *64-bit*)
3727 LD="${LD-ld} -64"
3728 ;;
3729 esac
3730 fi
3731 fi
3732 rm -rf conftest*
3733 ;;
drh71eb93e2001-09-28 01:34:43 +00003734
a.rottmann9bc8b932004-02-29 15:18:31 +00003735x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3736 # Find out which ABI we are using.
3737 echo 'int i;' > conftest.$ac_ext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00003743 case `/usr/bin/file conftest.o` in
a.rottmann9bc8b932004-02-29 15:18:31 +00003744 *32-bit*)
3745 case $host in
3746 x86_64-*linux*)
3747 LD="${LD-ld} -m elf_i386"
3748 ;;
3749 ppc64-*linux*|powerpc64-*linux*)
3750 LD="${LD-ld} -m elf32ppclinux"
3751 ;;
3752 s390x-*linux*)
3753 LD="${LD-ld} -m elf_s390"
3754 ;;
3755 sparc64-*linux*)
3756 LD="${LD-ld} -m elf32_sparc"
3757 ;;
3758 esac
3759 ;;
3760 *64-bit*)
3761 case $host in
3762 x86_64-*linux*)
3763 LD="${LD-ld} -m elf_x86_64"
3764 ;;
3765 ppc*-*linux*|powerpc*-*linux*)
3766 LD="${LD-ld} -m elf64ppc"
3767 ;;
3768 s390*-*linux*)
3769 LD="${LD-ld} -m elf64_s390"
3770 ;;
3771 sparc*-*linux*)
3772 LD="${LD-ld} -m elf64_sparc"
3773 ;;
3774 esac
3775 ;;
3776 esac
3777 fi
3778 rm -rf conftest*
3779 ;;
drh71eb93e2001-09-28 01:34:43 +00003780
a.rottmann9bc8b932004-02-29 15:18:31 +00003781*-*-sco3.2v5*)
3782 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3783 SAVE_CFLAGS="$CFLAGS"
3784 CFLAGS="$CFLAGS -belf"
mlcreech94984912008-03-04 19:03:08 +00003785 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3786echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003787if test "${lt_cv_cc_needs_belf+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789else
3790 ac_ext=c
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003795
a.rottmann9bc8b932004-02-29 15:18:31 +00003796 cat >conftest.$ac_ext <<_ACEOF
3797/* confdefs.h. */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003802
a.rottmann9bc8b932004-02-29 15:18:31 +00003803int
3804main ()
drh71eb93e2001-09-28 01:34:43 +00003805{
drh71eb93e2001-09-28 01:34:43 +00003806
a.rottmann9bc8b932004-02-29 15:18:31 +00003807 ;
3808 return 0;
drh71eb93e2001-09-28 01:34:43 +00003809}
a.rottmann9bc8b932004-02-29 15:18:31 +00003810_ACEOF
3811rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00003812if { (ac_try="$ac_link"
3813case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816esac
3817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00003819 ac_status=$?
3820 grep -v '^ *+' conftest.er1 >conftest.err
3821 rm -f conftest.er1
3822 cat conftest.err >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003824 (exit $ac_status); } && {
3825 test -z "$ac_c_werror_flag" ||
3826 test ! -s conftest.err
3827 } && test -s conftest$ac_exeext &&
3828 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003829 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003830else
a.rottmann9bc8b932004-02-29 15:18:31 +00003831 echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
mlcreech94984912008-03-04 19:03:08 +00003834 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003835fi
mlcreech94984912008-03-04 19:03:08 +00003836
3837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00003838 conftest$ac_exeext conftest.$ac_ext
3839 ac_ext=c
3840ac_cpp='$CPP $CPPFLAGS'
3841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844
drh71eb93e2001-09-28 01:34:43 +00003845fi
mlcreech94984912008-03-04 19:03:08 +00003846{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3847echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003848 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3849 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3850 CFLAGS="$SAVE_CFLAGS"
3851 fi
3852 ;;
vapier7f19c022007-02-17 14:46:31 +00003853sparc*-*solaris*)
3854 # Find out which ABI we are using.
3855 echo 'int i;' > conftest.$ac_ext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; then
3861 case `/usr/bin/file conftest.o` in
3862 *64-bit*)
3863 case $lt_cv_prog_gnu_ld in
3864 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3865 *) LD="${LD-ld} -64" ;;
3866 esac
3867 ;;
3868 esac
3869 fi
3870 rm -rf conftest*
3871 ;;
3872
a.rottmann9bc8b932004-02-29 15:18:31 +00003873
3874esac
3875
3876need_locks="$enable_libtool_lock"
3877
drh71eb93e2001-09-28 01:34:43 +00003878
a.rottmann84e63352003-03-24 09:42:16 +00003879ac_ext=c
3880ac_cpp='$CPP $CPPFLAGS'
3881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883ac_compiler_gnu=$ac_cv_c_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00003884{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3885echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00003886# On Suns, sometimes $CPP names a directory.
3887if test -n "$CPP" && test -d "$CPP"; then
3888 CPP=
3889fi
3890if test -z "$CPP"; then
3891 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
a.rottmann84e63352003-03-24 09:42:16 +00003894 # Double quotes because CPP needs to be expanded
3895 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3896 do
3897 ac_preproc_ok=false
3898for ac_c_preproc_warn_flag in '' yes
3899do
3900 # Use a header file that comes with gcc, so configuring glibc
3901 # with a fresh cross-compiler works.
3902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903 # <limits.h> exists even on freestanding compilers.
3904 # On the NeXT, cc -E runs the code through the compiler's parser,
3905 # not just through cpp. "Syntax error" is here to catch this case.
3906 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003907/* confdefs.h. */
3908_ACEOF
3909cat confdefs.h >>conftest.$ac_ext
3910cat >>conftest.$ac_ext <<_ACEOF
3911/* end confdefs.h. */
3912#ifdef __STDC__
3913# include <limits.h>
3914#else
3915# include <assert.h>
3916#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003917 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003918_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003919if { (ac_try="$ac_cpp conftest.$ac_ext"
3920case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923esac
3924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003931 (exit $ac_status); } >/dev/null && {
3932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3934 }; then
a.rottmann84e63352003-03-24 09:42:16 +00003935 :
3936else
3937 echo "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
3940 # Broken: fails on valid input.
3941continue
3942fi
mlcreech94984912008-03-04 19:03:08 +00003943
a.rottmann84e63352003-03-24 09:42:16 +00003944rm -f conftest.err conftest.$ac_ext
3945
mlcreech94984912008-03-04 19:03:08 +00003946 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00003947 # can be detected and how.
3948 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003949/* confdefs.h. */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h. */
3954#include <ac_nonexistent.h>
3955_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003956if { (ac_try="$ac_cpp conftest.$ac_ext"
3957case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003968 (exit $ac_status); } >/dev/null && {
3969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3970 test ! -s conftest.err
3971 }; then
a.rottmann84e63352003-03-24 09:42:16 +00003972 # Broken: success on invalid input.
3973continue
3974else
3975 echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 # Passes both tests.
3979ac_preproc_ok=:
3980break
3981fi
mlcreech94984912008-03-04 19:03:08 +00003982
a.rottmann84e63352003-03-24 09:42:16 +00003983rm -f conftest.err conftest.$ac_ext
3984
3985done
3986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3987rm -f conftest.err conftest.$ac_ext
3988if $ac_preproc_ok; then
3989 break
3990fi
3991
3992 done
3993 ac_cv_prog_CPP=$CPP
3994
3995fi
3996 CPP=$ac_cv_prog_CPP
3997else
3998 ac_cv_prog_CPP=$CPP
3999fi
mlcreech94984912008-03-04 19:03:08 +00004000{ echo "$as_me:$LINENO: result: $CPP" >&5
4001echo "${ECHO_T}$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004002ac_preproc_ok=false
4003for ac_c_preproc_warn_flag in '' yes
4004do
4005 # Use a header file that comes with gcc, so configuring glibc
4006 # with a fresh cross-compiler works.
4007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4008 # <limits.h> exists even on freestanding compilers.
4009 # On the NeXT, cc -E runs the code through the compiler's parser,
4010 # not just through cpp. "Syntax error" is here to catch this case.
4011 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004012/* confdefs.h. */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h. */
4017#ifdef __STDC__
4018# include <limits.h>
4019#else
4020# include <assert.h>
4021#endif
a.rottmann964dbb12004-02-26 19:47:42 +00004022 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00004023_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004024if { (ac_try="$ac_cpp conftest.$ac_ext"
4025case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028esac
4029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004036 (exit $ac_status); } >/dev/null && {
4037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4038 test ! -s conftest.err
4039 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004040 :
4041else
4042 echo "$as_me: failed program was:" >&5
4043sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 # Broken: fails on valid input.
4046continue
4047fi
mlcreech94984912008-03-04 19:03:08 +00004048
a.rottmann84e63352003-03-24 09:42:16 +00004049rm -f conftest.err conftest.$ac_ext
4050
mlcreech94984912008-03-04 19:03:08 +00004051 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00004052 # can be detected and how.
4053 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004054/* confdefs.h. */
4055_ACEOF
4056cat confdefs.h >>conftest.$ac_ext
4057cat >>conftest.$ac_ext <<_ACEOF
4058/* end confdefs.h. */
4059#include <ac_nonexistent.h>
4060_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004061if { (ac_try="$ac_cpp conftest.$ac_ext"
4062case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004073 (exit $ac_status); } >/dev/null && {
4074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4075 test ! -s conftest.err
4076 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004077 # Broken: success on invalid input.
4078continue
4079else
4080 echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 # Passes both tests.
4084ac_preproc_ok=:
4085break
4086fi
mlcreech94984912008-03-04 19:03:08 +00004087
a.rottmann84e63352003-03-24 09:42:16 +00004088rm -f conftest.err conftest.$ac_ext
4089
4090done
4091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092rm -f conftest.err conftest.$ac_ext
4093if $ac_preproc_ok; then
4094 :
4095else
4096 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4097See \`config.log' for more details." >&5
4098echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4099See \`config.log' for more details." >&2;}
4100 { (exit 1); exit 1; }; }
4101fi
4102
4103ac_ext=c
4104ac_cpp='$CPP $CPPFLAGS'
4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109
mlcreech94984912008-03-04 19:03:08 +00004110{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004112if test "${ac_cv_header_stdc+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004116/* confdefs.h. */
4117_ACEOF
4118cat confdefs.h >>conftest.$ac_ext
4119cat >>conftest.$ac_ext <<_ACEOF
4120/* end confdefs.h. */
4121#include <stdlib.h>
4122#include <stdarg.h>
4123#include <string.h>
4124#include <float.h>
4125
4126int
4127main ()
4128{
4129
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004135if { (ac_try="$ac_compile"
4136case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004142 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004151 ac_cv_header_stdc=yes
4152else
4153 echo "$as_me: failed program was:" >&5
4154sed 's/^/| /' conftest.$ac_ext >&5
4155
mlcreech94984912008-03-04 19:03:08 +00004156 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00004157fi
mlcreech94984912008-03-04 19:03:08 +00004158
4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004160
4161if test $ac_cv_header_stdc = yes; then
4162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4163 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h. */
4169#include <string.h>
4170
4171_ACEOF
4172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173 $EGREP "memchr" >/dev/null 2>&1; then
4174 :
4175else
4176 ac_cv_header_stdc=no
4177fi
4178rm -f conftest*
4179
4180fi
4181
4182if test $ac_cv_header_stdc = yes; then
4183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4184 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h. */
4190#include <stdlib.h>
4191
4192_ACEOF
4193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194 $EGREP "free" >/dev/null 2>&1; then
4195 :
4196else
4197 ac_cv_header_stdc=no
4198fi
4199rm -f conftest*
4200
4201fi
4202
4203if test $ac_cv_header_stdc = yes; then
4204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4205 if test "$cross_compiling" = yes; then
4206 :
4207else
4208 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
4214#include <ctype.h>
mlcreech94984912008-03-04 19:03:08 +00004215#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00004216#if ((' ' & 0x0FF) == 0x020)
4217# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4218# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4219#else
4220# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00004221 (('a' <= (c) && (c) <= 'i') \
4222 || ('j' <= (c) && (c) <= 'r') \
4223 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00004224# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4225#endif
4226
4227#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4228int
4229main ()
4230{
4231 int i;
4232 for (i = 0; i < 256; i++)
4233 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00004234 || toupper (i) != TOUPPER (i))
mlcreech94984912008-03-04 19:03:08 +00004235 return 2;
4236 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00004237}
4238_ACEOF
4239rm -f conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00004240if { (ac_try="$ac_link"
4241case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_link") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00004247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mlcreech94984912008-03-04 19:03:08 +00004250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_try") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00004256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 :
4260else
4261 echo "$as_me: program exited with status $ac_status" >&5
4262echo "$as_me: failed program was:" >&5
4263sed 's/^/| /' conftest.$ac_ext >&5
4264
4265( exit $ac_status )
4266ac_cv_header_stdc=no
4267fi
mlcreech94984912008-03-04 19:03:08 +00004268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4269fi
4270
4271
a.rottmann84e63352003-03-24 09:42:16 +00004272fi
4273fi
mlcreech94984912008-03-04 19:03:08 +00004274{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4275echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004276if test $ac_cv_header_stdc = yes; then
4277
4278cat >>confdefs.h <<\_ACEOF
4279#define STDC_HEADERS 1
4280_ACEOF
4281
4282fi
4283
4284# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00004295 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00004296do
4297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +00004298{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00004301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004304/* confdefs.h. */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h. */
4309$ac_includes_default
4310
4311#include <$ac_header>
4312_ACEOF
4313rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004314if { (ac_try="$ac_compile"
4315case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004321 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004322 grep -v '^ *+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004326 (exit $ac_status); } && {
4327 test -z "$ac_c_werror_flag" ||
4328 test ! -s conftest.err
4329 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004330 eval "$as_ac_Header=yes"
4331else
4332 echo "$as_me: failed program was:" >&5
4333sed 's/^/| /' conftest.$ac_ext >&5
4334
mlcreech94984912008-03-04 19:03:08 +00004335 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00004336fi
mlcreech94984912008-03-04 19:03:08 +00004337
4338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004339fi
mlcreech94984912008-03-04 19:03:08 +00004340ac_res=`eval echo '${'$as_ac_Header'}'`
4341 { echo "$as_me:$LINENO: result: $ac_res" >&5
4342echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004343if test `eval echo '${'$as_ac_Header'}'` = yes; then
4344 cat >>confdefs.h <<_ACEOF
4345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4346_ACEOF
4347
4348fi
4349
4350done
4351
4352
4353
4354for ac_header in dlfcn.h
4355do
4356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +00004357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00004361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362fi
mlcreech94984912008-03-04 19:03:08 +00004363ac_res=`eval echo '${'$as_ac_Header'}'`
4364 { echo "$as_me:$LINENO: result: $ac_res" >&5
4365echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004366else
4367 # Is the header compilable?
mlcreech94984912008-03-04 19:03:08 +00004368{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004370cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004371/* confdefs.h. */
4372_ACEOF
4373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
4375/* end confdefs.h. */
4376$ac_includes_default
4377#include <$ac_header>
4378_ACEOF
4379rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004380if { (ac_try="$ac_compile"
4381case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384esac
4385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004387 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004388 grep -v '^ *+' conftest.er1 >conftest.err
4389 rm -f conftest.er1
4390 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004392 (exit $ac_status); } && {
4393 test -z "$ac_c_werror_flag" ||
4394 test ! -s conftest.err
4395 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004396 ac_header_compiler=yes
4397else
4398 echo "$as_me: failed program was:" >&5
4399sed 's/^/| /' conftest.$ac_ext >&5
4400
mlcreech94984912008-03-04 19:03:08 +00004401 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +00004402fi
mlcreech94984912008-03-04 19:03:08 +00004403
4404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4406echo "${ECHO_T}$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004407
4408# Is the header present?
mlcreech94984912008-03-04 19:03:08 +00004409{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004411cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004412/* confdefs.h. */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h. */
4417#include <$ac_header>
4418_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004419if { (ac_try="$ac_cpp conftest.$ac_ext"
4420case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
4424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004426 ac_status=$?
4427 grep -v '^ *+' conftest.er1 >conftest.err
4428 rm -f conftest.er1
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004431 (exit $ac_status); } >/dev/null && {
4432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004435 ac_header_preproc=yes
4436else
4437 echo "$as_me: failed program was:" >&5
4438sed 's/^/| /' conftest.$ac_ext >&5
4439
4440 ac_header_preproc=no
4441fi
mlcreech94984912008-03-04 19:03:08 +00004442
a.rottmann84e63352003-03-24 09:42:16 +00004443rm -f conftest.err conftest.$ac_ext
mlcreech94984912008-03-04 19:03:08 +00004444{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4445echo "${ECHO_T}$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004446
4447# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00004448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4449 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00004450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4454 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00004455 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00004456 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00004457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00004465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mlcreech94984912008-03-04 19:03:08 +00004469
a.rottmann84e63352003-03-24 09:42:16 +00004470 ;;
drh71eb93e2001-09-28 01:34:43 +00004471esac
mlcreech94984912008-03-04 19:03:08 +00004472{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
drh71eb93e2001-09-28 01:34:43 +00004475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
a.rottmann964dbb12004-02-26 19:47:42 +00004477 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00004478fi
mlcreech94984912008-03-04 19:03:08 +00004479ac_res=`eval echo '${'$as_ac_Header'}'`
4480 { echo "$as_me:$LINENO: result: $ac_res" >&5
4481echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004482
4483fi
4484if test `eval echo '${'$as_ac_Header'}'` = yes; then
4485 cat >>confdefs.h <<_ACEOF
4486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487_ACEOF
4488
4489fi
4490
drh71eb93e2001-09-28 01:34:43 +00004491done
4492
mlcreech94984912008-03-04 19:03:08 +00004493ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004494ac_cpp='$CXXCPP $CPPFLAGS'
4495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00004498if test -z "$CXX"; then
4499 if test -n "$CCC"; then
4500 CXX=$CCC
4501 else
4502 if test -n "$ac_tool_prefix"; then
4503 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a.rottmann9bc8b932004-02-29 15:18:31 +00004504 do
4505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4506set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00004507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004509if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
a.rottmann9bc8b932004-02-29 15:18:31 +00004512 if test -n "$CXX"; then
4513 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4514else
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00004521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004522 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526done
4527done
mlcreech94984912008-03-04 19:03:08 +00004528IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00004529
drh71eb93e2001-09-28 01:34:43 +00004530fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004531fi
4532CXX=$ac_cv_prog_CXX
4533if test -n "$CXX"; then
mlcreech94984912008-03-04 19:03:08 +00004534 { echo "$as_me:$LINENO: result: $CXX" >&5
4535echo "${ECHO_T}$CXX" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004536else
mlcreech94984912008-03-04 19:03:08 +00004537 { echo "$as_me:$LINENO: result: no" >&5
4538echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004539fi
4540
mlcreech94984912008-03-04 19:03:08 +00004541
a.rottmann9bc8b932004-02-29 15:18:31 +00004542 test -n "$CXX" && break
4543 done
4544fi
4545if test -z "$CXX"; then
4546 ac_ct_CXX=$CXX
mlcreech94984912008-03-04 19:03:08 +00004547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a.rottmann9bc8b932004-02-29 15:18:31 +00004548do
4549 # Extract the first word of "$ac_prog", so it can be a program name with args.
4550set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00004551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004553if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555else
a.rottmann9bc8b932004-02-29 15:18:31 +00004556 if test -n "$ac_ct_CXX"; then
4557 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4558else
4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00004565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004566 ac_cv_prog_ac_ct_CXX="$ac_prog"
4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4569 fi
4570done
4571done
mlcreech94984912008-03-04 19:03:08 +00004572IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00004573
drh71eb93e2001-09-28 01:34:43 +00004574fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004575fi
4576ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4577if test -n "$ac_ct_CXX"; then
mlcreech94984912008-03-04 19:03:08 +00004578 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4579echo "${ECHO_T}$ac_ct_CXX" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004580else
mlcreech94984912008-03-04 19:03:08 +00004581 { echo "$as_me:$LINENO: result: no" >&5
4582echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004583fi
4584
mlcreech94984912008-03-04 19:03:08 +00004585
a.rottmann9bc8b932004-02-29 15:18:31 +00004586 test -n "$ac_ct_CXX" && break
4587done
a.rottmann9bc8b932004-02-29 15:18:31 +00004588
mlcreech94984912008-03-04 19:03:08 +00004589 if test "x$ac_ct_CXX" = x; then
4590 CXX="g++"
4591 else
4592 case $cross_compiling:$ac_tool_warned in
4593yes:)
4594{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4595whose name does not start with the host triplet. If you think this
4596configuration is useful to you, please write to autoconf@gnu.org." >&5
4597echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4598whose name does not start with the host triplet. If you think this
4599configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4600ac_tool_warned=yes ;;
4601esac
4602 CXX=$ac_ct_CXX
4603 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004604fi
4605
mlcreech94984912008-03-04 19:03:08 +00004606 fi
4607fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004608# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00004609echo "$as_me:$LINENO: checking for C++ compiler version" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004610ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00004611{ (ac_try="$ac_compiler --version >&5"
4612case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615esac
4616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_compiler --version >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00004621{ (ac_try="$ac_compiler -v >&5"
4622case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4625esac
4626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_compiler -v >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00004631{ (ac_try="$ac_compiler -V >&5"
4632case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635esac
4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_compiler -V >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }
4641
mlcreech94984912008-03-04 19:03:08 +00004642{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4643echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004644if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646else
4647 cat >conftest.$ac_ext <<_ACEOF
4648/* confdefs.h. */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h. */
4653
4654int
4655main ()
4656{
4657#ifndef __GNUC__
4658 choke me
4659#endif
4660
4661 ;
4662 return 0;
4663}
4664_ACEOF
4665rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004666if { (ac_try="$ac_compile"
4667case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670esac
4671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004678 (exit $ac_status); } && {
4679 test -z "$ac_cxx_werror_flag" ||
4680 test ! -s conftest.err
4681 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004682 ac_compiler_gnu=yes
4683else
4684 echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
mlcreech94984912008-03-04 19:03:08 +00004687 ac_compiler_gnu=no
a.rottmann9bc8b932004-02-29 15:18:31 +00004688fi
mlcreech94984912008-03-04 19:03:08 +00004689
4690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004691ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4692
4693fi
mlcreech94984912008-03-04 19:03:08 +00004694{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4695echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004696GXX=`test $ac_compiler_gnu = yes && echo yes`
4697ac_test_CXXFLAGS=${CXXFLAGS+set}
4698ac_save_CXXFLAGS=$CXXFLAGS
mlcreech94984912008-03-04 19:03:08 +00004699{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4700echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004701if test "${ac_cv_prog_cxx_g+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
mlcreech94984912008-03-04 19:03:08 +00004704 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4705 ac_cxx_werror_flag=yes
4706 ac_cv_prog_cxx_g=no
4707 CXXFLAGS="-g"
4708 cat >conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00004709/* confdefs.h. */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h. */
4714
4715int
4716main ()
4717{
4718
4719 ;
4720 return 0;
4721}
4722_ACEOF
4723rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004724if { (ac_try="$ac_compile"
4725case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728esac
4729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004736 (exit $ac_status); } && {
4737 test -z "$ac_cxx_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004740 ac_cv_prog_cxx_g=yes
4741else
4742 echo "$as_me: failed program was:" >&5
4743sed 's/^/| /' conftest.$ac_ext >&5
4744
mlcreech94984912008-03-04 19:03:08 +00004745 CXXFLAGS=""
4746 cat >conftest.$ac_ext <<_ACEOF
4747/* confdefs.h. */
4748_ACEOF
4749cat confdefs.h >>conftest.$ac_ext
4750cat >>conftest.$ac_ext <<_ACEOF
4751/* end confdefs.h. */
4752
4753int
4754main ()
4755{
4756
4757 ;
4758 return 0;
4759}
4760_ACEOF
4761rm -f conftest.$ac_objext
4762if { (ac_try="$ac_compile"
4763case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766esac
4767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_compile") 2>conftest.er1
4769 ac_status=$?
4770 grep -v '^ *+' conftest.er1 >conftest.err
4771 rm -f conftest.er1
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } && {
4775 test -z "$ac_cxx_werror_flag" ||
4776 test ! -s conftest.err
4777 } && test -s conftest.$ac_objext; then
4778 :
4779else
4780 echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4784 CXXFLAGS="-g"
4785 cat >conftest.$ac_ext <<_ACEOF
4786/* confdefs.h. */
4787_ACEOF
4788cat confdefs.h >>conftest.$ac_ext
4789cat >>conftest.$ac_ext <<_ACEOF
4790/* end confdefs.h. */
4791
4792int
4793main ()
4794{
4795
4796 ;
4797 return 0;
4798}
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (ac_try="$ac_compile"
4802case "(($ac_try" in
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4805esac
4806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4807 (eval "$ac_compile") 2>conftest.er1
4808 ac_status=$?
4809 grep -v '^ *+' conftest.er1 >conftest.err
4810 rm -f conftest.er1
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } && {
4814 test -z "$ac_cxx_werror_flag" ||
4815 test ! -s conftest.err
4816 } && test -s conftest.$ac_objext; then
4817 ac_cv_prog_cxx_g=yes
4818else
4819 echo "$as_me: failed program was:" >&5
4820sed 's/^/| /' conftest.$ac_ext >&5
4821
4822
a.rottmann9bc8b932004-02-29 15:18:31 +00004823fi
mlcreech94984912008-03-04 19:03:08 +00004824
4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004826fi
mlcreech94984912008-03-04 19:03:08 +00004827
4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829fi
4830
4831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4833fi
4834{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4835echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004836if test "$ac_test_CXXFLAGS" = set; then
4837 CXXFLAGS=$ac_save_CXXFLAGS
4838elif test $ac_cv_prog_cxx_g = yes; then
4839 if test "$GXX" = yes; then
4840 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004841 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004842 CXXFLAGS="-g"
4843 fi
4844else
4845 if test "$GXX" = yes; then
4846 CXXFLAGS="-O2"
4847 else
4848 CXXFLAGS=
4849 fi
4850fi
mlcreech94984912008-03-04 19:03:08 +00004851ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004852ac_cpp='$CXXCPP $CPPFLAGS'
4853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4856
vapier7f19c022007-02-17 14:46:31 +00004857
4858
4859if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4860 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4861 (test "X$CXX" != "Xg++"))) ; then
mlcreech94984912008-03-04 19:03:08 +00004862 ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004863ac_cpp='$CXXCPP $CPPFLAGS'
4864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00004867{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4868echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004869if test -z "$CXXCPP"; then
4870 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872else
4873 # Double quotes because CXXCPP needs to be expanded
4874 for CXXCPP in "$CXX -E" "/lib/cpp"
4875 do
4876 ac_preproc_ok=false
4877for ac_cxx_preproc_warn_flag in '' yes
4878do
4879 # Use a header file that comes with gcc, so configuring glibc
4880 # with a fresh cross-compiler works.
4881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4882 # <limits.h> exists even on freestanding compilers.
4883 # On the NeXT, cc -E runs the code through the compiler's parser,
4884 # not just through cpp. "Syntax error" is here to catch this case.
4885 cat >conftest.$ac_ext <<_ACEOF
4886/* confdefs.h. */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h. */
4891#ifdef __STDC__
4892# include <limits.h>
4893#else
4894# include <assert.h>
4895#endif
4896 Syntax error
4897_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004898if { (ac_try="$ac_cpp conftest.$ac_ext"
4899case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902esac
4903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004910 (exit $ac_status); } >/dev/null && {
4911 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4912 test ! -s conftest.err
4913 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004914 :
4915else
4916 echo "$as_me: failed program was:" >&5
4917sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 # Broken: fails on valid input.
4920continue
4921fi
mlcreech94984912008-03-04 19:03:08 +00004922
a.rottmann9bc8b932004-02-29 15:18:31 +00004923rm -f conftest.err conftest.$ac_ext
4924
mlcreech94984912008-03-04 19:03:08 +00004925 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann9bc8b932004-02-29 15:18:31 +00004926 # can be detected and how.
4927 cat >conftest.$ac_ext <<_ACEOF
4928/* confdefs.h. */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h. */
4933#include <ac_nonexistent.h>
4934_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004935if { (ac_try="$ac_cpp conftest.$ac_ext"
4936case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939esac
4940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004947 (exit $ac_status); } >/dev/null && {
4948 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4949 test ! -s conftest.err
4950 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004951 # Broken: success on invalid input.
4952continue
4953else
4954 echo "$as_me: failed program was:" >&5
4955sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 # Passes both tests.
4958ac_preproc_ok=:
4959break
4960fi
mlcreech94984912008-03-04 19:03:08 +00004961
a.rottmann9bc8b932004-02-29 15:18:31 +00004962rm -f conftest.err conftest.$ac_ext
4963
4964done
4965# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966rm -f conftest.err conftest.$ac_ext
4967if $ac_preproc_ok; then
4968 break
4969fi
4970
4971 done
4972 ac_cv_prog_CXXCPP=$CXXCPP
4973
4974fi
4975 CXXCPP=$ac_cv_prog_CXXCPP
4976else
4977 ac_cv_prog_CXXCPP=$CXXCPP
4978fi
mlcreech94984912008-03-04 19:03:08 +00004979{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4980echo "${ECHO_T}$CXXCPP" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004981ac_preproc_ok=false
4982for ac_cxx_preproc_warn_flag in '' yes
4983do
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h. */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h. */
4996#ifdef __STDC__
4997# include <limits.h>
4998#else
4999# include <assert.h>
5000#endif
5001 Syntax error
5002_ACEOF
mlcreech94984912008-03-04 19:03:08 +00005003if { (ac_try="$ac_cpp conftest.$ac_ext"
5004case "(($ac_try" in
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5007esac
5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005015 (exit $ac_status); } >/dev/null && {
5016 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5017 test ! -s conftest.err
5018 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005019 :
5020else
5021 echo "$as_me: failed program was:" >&5
5022sed 's/^/| /' conftest.$ac_ext >&5
5023
5024 # Broken: fails on valid input.
5025continue
5026fi
mlcreech94984912008-03-04 19:03:08 +00005027
a.rottmann9bc8b932004-02-29 15:18:31 +00005028rm -f conftest.err conftest.$ac_ext
5029
mlcreech94984912008-03-04 19:03:08 +00005030 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann9bc8b932004-02-29 15:18:31 +00005031 # can be detected and how.
5032 cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h. */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h. */
5038#include <ac_nonexistent.h>
5039_ACEOF
mlcreech94984912008-03-04 19:03:08 +00005040if { (ac_try="$ac_cpp conftest.$ac_ext"
5041case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005052 (exit $ac_status); } >/dev/null && {
5053 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5054 test ! -s conftest.err
5055 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005056 # Broken: success on invalid input.
5057continue
5058else
5059 echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
5062 # Passes both tests.
5063ac_preproc_ok=:
5064break
5065fi
mlcreech94984912008-03-04 19:03:08 +00005066
a.rottmann9bc8b932004-02-29 15:18:31 +00005067rm -f conftest.err conftest.$ac_ext
5068
5069done
5070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071rm -f conftest.err conftest.$ac_ext
5072if $ac_preproc_ok; then
5073 :
5074else
5075 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5076See \`config.log' for more details." >&5
5077echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5078See \`config.log' for more details." >&2;}
5079 { (exit 1); exit 1; }; }
5080fi
5081
mlcreech94984912008-03-04 19:03:08 +00005082ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00005083ac_cpp='$CXXCPP $CPPFLAGS'
5084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5087
vapier7f19c022007-02-17 14:46:31 +00005088fi
5089
a.rottmann9bc8b932004-02-29 15:18:31 +00005090
5091ac_ext=f
5092ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5093ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5095if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00005096 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
a.rottmann9bc8b932004-02-29 15:18:31 +00005097 do
5098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5099set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005102if test "${ac_cv_prog_F77+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105 if test -n "$F77"; then
5106 ac_cv_prog_F77="$F77" # Let the user override the test.
5107else
5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005115 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119done
5120done
mlcreech94984912008-03-04 19:03:08 +00005121IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005122
5123fi
5124fi
5125F77=$ac_cv_prog_F77
5126if test -n "$F77"; then
mlcreech94984912008-03-04 19:03:08 +00005127 { echo "$as_me:$LINENO: result: $F77" >&5
5128echo "${ECHO_T}$F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005129else
mlcreech94984912008-03-04 19:03:08 +00005130 { echo "$as_me:$LINENO: result: no" >&5
5131echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005132fi
5133
mlcreech94984912008-03-04 19:03:08 +00005134
a.rottmann9bc8b932004-02-29 15:18:31 +00005135 test -n "$F77" && break
5136 done
5137fi
5138if test -z "$F77"; then
5139 ac_ct_F77=$F77
mlcreech94984912008-03-04 19:03:08 +00005140 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
a.rottmann9bc8b932004-02-29 15:18:31 +00005141do
5142 # Extract the first word of "$ac_prog", so it can be a program name with args.
5143set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005146if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149 if test -n "$ac_ct_F77"; then
5150 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5151else
5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH
5154do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005159 ac_cv_prog_ac_ct_F77="$ac_prog"
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163done
5164done
mlcreech94984912008-03-04 19:03:08 +00005165IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005166
5167fi
5168fi
5169ac_ct_F77=$ac_cv_prog_ac_ct_F77
5170if test -n "$ac_ct_F77"; then
mlcreech94984912008-03-04 19:03:08 +00005171 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5172echo "${ECHO_T}$ac_ct_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005173else
mlcreech94984912008-03-04 19:03:08 +00005174 { echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005176fi
5177
mlcreech94984912008-03-04 19:03:08 +00005178
a.rottmann9bc8b932004-02-29 15:18:31 +00005179 test -n "$ac_ct_F77" && break
5180done
5181
mlcreech94984912008-03-04 19:03:08 +00005182 if test "x$ac_ct_F77" = x; then
5183 F77=""
5184 else
5185 case $cross_compiling:$ac_tool_warned in
5186yes:)
5187{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5188whose name does not start with the host triplet. If you think this
5189configuration is useful to you, please write to autoconf@gnu.org." >&5
5190echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5191whose name does not start with the host triplet. If you think this
5192configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5193ac_tool_warned=yes ;;
5194esac
5195 F77=$ac_ct_F77
5196 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005197fi
5198
5199
5200# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00005201echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005202ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00005203{ (ac_try="$ac_compiler --version >&5"
5204case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207esac
5208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_compiler --version >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00005213{ (ac_try="$ac_compiler -v >&5"
5214case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217esac
5218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_compiler -v >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00005223{ (ac_try="$ac_compiler -V >&5"
5224case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227esac
5228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_compiler -V >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }
5233rm -f a.out
5234
5235# If we don't use `.F' as extension, the preprocessor is not run on the
5236# input file. (Note that this only needs to work for GNU compilers.)
5237ac_save_ext=$ac_ext
5238ac_ext=F
mlcreech94984912008-03-04 19:03:08 +00005239{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5240echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005241if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244 cat >conftest.$ac_ext <<_ACEOF
5245 program main
5246#ifndef __GNUC__
5247 choke me
5248#endif
5249
5250 end
5251_ACEOF
5252rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00005253if { (ac_try="$ac_compile"
5254case "(($ac_try" in
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5257esac
5258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005265 (exit $ac_status); } && {
5266 test -z "$ac_f77_werror_flag" ||
5267 test ! -s conftest.err
5268 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005269 ac_compiler_gnu=yes
5270else
5271 echo "$as_me: failed program was:" >&5
5272sed 's/^/| /' conftest.$ac_ext >&5
5273
mlcreech94984912008-03-04 19:03:08 +00005274 ac_compiler_gnu=no
a.rottmann9bc8b932004-02-29 15:18:31 +00005275fi
mlcreech94984912008-03-04 19:03:08 +00005276
5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005278ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5279
5280fi
mlcreech94984912008-03-04 19:03:08 +00005281{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5282echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005283ac_ext=$ac_save_ext
5284ac_test_FFLAGS=${FFLAGS+set}
5285ac_save_FFLAGS=$FFLAGS
5286FFLAGS=
mlcreech94984912008-03-04 19:03:08 +00005287{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5288echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005289if test "${ac_cv_prog_f77_g+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292 FFLAGS=-g
5293cat >conftest.$ac_ext <<_ACEOF
5294 program main
5295
5296 end
5297_ACEOF
5298rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00005299if { (ac_try="$ac_compile"
5300case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005311 (exit $ac_status); } && {
5312 test -z "$ac_f77_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005315 ac_cv_prog_f77_g=yes
5316else
5317 echo "$as_me: failed program was:" >&5
5318sed 's/^/| /' conftest.$ac_ext >&5
5319
mlcreech94984912008-03-04 19:03:08 +00005320 ac_cv_prog_f77_g=no
a.rottmann9bc8b932004-02-29 15:18:31 +00005321fi
mlcreech94984912008-03-04 19:03:08 +00005322
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005324
5325fi
mlcreech94984912008-03-04 19:03:08 +00005326{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5327echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005328if test "$ac_test_FFLAGS" = set; then
5329 FFLAGS=$ac_save_FFLAGS
5330elif test $ac_cv_prog_f77_g = yes; then
5331 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5332 FFLAGS="-g -O2"
5333 else
5334 FFLAGS="-g"
5335 fi
5336else
5337 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5338 FFLAGS="-O2"
5339 else
5340 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00005341 fi
5342fi
5343
a.rottmann9bc8b932004-02-29 15:18:31 +00005344G77=`test $ac_compiler_gnu = yes && echo yes`
5345ac_ext=c
5346ac_cpp='$CPP $CPPFLAGS'
5347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350
5351
5352
5353# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5354
5355# find the maximum length of command line arguments
mlcreech94984912008-03-04 19:03:08 +00005356{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5357echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005358if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361 i=0
vapier7f19c022007-02-17 14:46:31 +00005362 teststring="ABCD"
a.rottmann9bc8b932004-02-29 15:18:31 +00005363
5364 case $build_os in
5365 msdosdjgpp*)
5366 # On DJGPP, this test can blow up pretty badly due to problems in libc
5367 # (any single argument exceeding 2000 bytes causes a buffer overrun
5368 # during glob expansion). Even if it were fixed, the result of this
5369 # check would be larger than it should be.
5370 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5371 ;;
5372
5373 gnu*)
5374 # Under GNU Hurd, this test is not required because there is
5375 # no limit to the length of command line arguments.
5376 # Libtool will interpret -1 as no limit whatsoever
5377 lt_cv_sys_max_cmd_len=-1;
5378 ;;
5379
5380 cygwin* | mingw*)
5381 # On Win9x/ME, this test blows up -- it succeeds, but takes
5382 # about 5 minutes as the teststring grows exponentially.
5383 # Worse, since 9x/ME are not pre-emptively multitasking,
5384 # you end up with a "frozen" computer, even though with patience
5385 # the test eventually succeeds (with a max line length of 256k).
5386 # Instead, let's just punt: use the minimum linelength reported by
5387 # all of the supported platforms: 8192 (on NT/2K/XP).
5388 lt_cv_sys_max_cmd_len=8192;
5389 ;;
5390
5391 amigaos*)
5392 # On AmigaOS with pdksh, this test takes hours, literally.
5393 # So we just punt and use a minimum line length of 8192.
5394 lt_cv_sys_max_cmd_len=8192;
5395 ;;
5396
vapier7f19c022007-02-17 14:46:31 +00005397 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5398 # This has been around since 386BSD, at least. Likely further.
5399 if test -x /sbin/sysctl; then
5400 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5401 elif test -x /usr/sbin/sysctl; then
5402 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5403 else
5404 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5405 fi
5406 # And add a safety zone
5407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5409 ;;
5410
5411 interix*)
5412 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5413 lt_cv_sys_max_cmd_len=196608
5414 ;;
5415
5416 osf*)
5417 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5418 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5419 # nice to cause kernel panics so lets avoid the loop below.
5420 # First set a reasonable default.
5421 lt_cv_sys_max_cmd_len=16384
5422 #
5423 if test -x /sbin/sysconfig; then
5424 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5425 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5426 esac
5427 fi
5428 ;;
5429 sco3.2v5*)
5430 lt_cv_sys_max_cmd_len=102400
5431 ;;
5432 sysv5* | sco5v6* | sysv4.2uw2*)
5433 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5434 if test -n "$kargmax"; then
5435 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5436 else
5437 lt_cv_sys_max_cmd_len=32768
5438 fi
5439 ;;
5440 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005441 # If test is not a shell built-in, we'll probably end up computing a
5442 # maximum length that is only half of the actual maximum length, but
5443 # we can't tell.
vapier7f19c022007-02-17 14:46:31 +00005444 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5445 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5446 = "XX$teststring") >/dev/null 2>&1 &&
5447 new_result=`expr "X$teststring" : ".*" 2>&1` &&
a.rottmann9bc8b932004-02-29 15:18:31 +00005448 lt_cv_sys_max_cmd_len=$new_result &&
5449 test $i != 17 # 1/2 MB should be enough
5450 do
5451 i=`expr $i + 1`
vapier7f19c022007-02-17 14:46:31 +00005452 teststring=$teststring$teststring
a.rottmann9bc8b932004-02-29 15:18:31 +00005453 done
vapier7f19c022007-02-17 14:46:31 +00005454 teststring=
a.rottmann9bc8b932004-02-29 15:18:31 +00005455 # Add a significant safety factor because C++ compilers can tack on massive
5456 # amounts of additional arguments before passing them to the linker.
5457 # It appears as though 1/2 is a usable value.
5458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5459 ;;
5460 esac
5461
5462fi
5463
5464if test -n $lt_cv_sys_max_cmd_len ; then
mlcreech94984912008-03-04 19:03:08 +00005465 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5466echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005467else
mlcreech94984912008-03-04 19:03:08 +00005468 { echo "$as_me:$LINENO: result: none" >&5
5469echo "${ECHO_T}none" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005470fi
5471
5472
5473
5474
5475# Check for command to grab the raw symbol name followed by C symbol from nm.
mlcreech94984912008-03-04 19:03:08 +00005476{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5477echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005478if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481
5482# These are sane defaults that work on at least a few old systems.
5483# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5484
5485# Character class describing NM global symbol codes.
5486symcode='[BCDEGRST]'
5487
5488# Regexp to match symbols that can be accessed directly from C.
5489sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5490
a.rottmann9bc8b932004-02-29 15:18:31 +00005491# Transform an extracted symbol line into a proper C declaration
5492lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5493
5494# Transform an extracted symbol line into symbol name and symbol address
5495lt_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'"
5496
5497# Define system-specific variables.
5498case $host_os in
5499aix*)
5500 symcode='[BCDT]'
5501 ;;
5502cygwin* | mingw* | pw32*)
5503 symcode='[ABCDGISTW]'
5504 ;;
5505hpux*) # Its linker distinguishes data from code symbols
5506 if test "$host_cpu" = ia64; then
5507 symcode='[ABCDEGRST]'
5508 fi
5509 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5510 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'"
5511 ;;
vapier7f19c022007-02-17 14:46:31 +00005512linux*)
5513 if test "$host_cpu" = ia64; then
5514 symcode='[ABCDGIRSTW]'
5515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5516 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'"
5517 fi
5518 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005519irix* | nonstopux*)
5520 symcode='[BCDEGRST]'
5521 ;;
5522osf*)
5523 symcode='[BCDEGQRST]'
5524 ;;
vapier7f19c022007-02-17 14:46:31 +00005525solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005526 symcode='[BDRT]'
5527 ;;
vapier7f19c022007-02-17 14:46:31 +00005528sco3.2v5*)
5529 symcode='[DT]'
5530 ;;
5531sysv4.2uw2*)
5532 symcode='[DT]'
5533 ;;
5534sysv5* | sco5v6* | unixware* | OpenUNIX*)
5535 symcode='[ABDT]'
5536 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005537sysv4)
5538 symcode='[DFNSTU]'
5539 ;;
5540esac
5541
5542# Handle CRLF in mingw tool chain
5543opt_cr=
5544case $build_os in
5545mingw*)
5546 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5547 ;;
5548esac
5549
5550# If we're using GNU nm, then use its standard symbol codes.
5551case `$NM -V 2>&1` in
5552*GNU* | *'with BFD'*)
5553 symcode='[ABCDGIRSTW]' ;;
5554esac
5555
5556# Try without a prefix undercore, then with it.
5557for ac_symprfx in "" "_"; do
5558
vapier7f19c022007-02-17 14:46:31 +00005559 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5560 symxfrm="\\1 $ac_symprfx\\2 \\2"
5561
a.rottmann9bc8b932004-02-29 15:18:31 +00005562 # Write the raw and C identifiers.
vapier7f19c022007-02-17 14:46:31 +00005563 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
a.rottmann9bc8b932004-02-29 15:18:31 +00005564
5565 # Check to see that the pipe works correctly.
5566 pipe_works=no
5567
5568 rm -f conftest*
5569 cat > conftest.$ac_ext <<EOF
5570#ifdef __cplusplus
5571extern "C" {
5572#endif
5573char nm_test_var;
5574void nm_test_func(){}
5575#ifdef __cplusplus
5576}
5577#endif
5578int main(){nm_test_var='a';nm_test_func();return(0);}
5579EOF
5580
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; then
5586 # Now try to grab the symbols.
5587 nlist=conftest.nm
5588 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5589 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && test -s "$nlist"; then
5593 # Try sorting and uniquifying the output.
5594 if sort "$nlist" | uniq > "$nlist"T; then
5595 mv -f "$nlist"T "$nlist"
5596 else
5597 rm -f "$nlist"T
5598 fi
5599
5600 # Make sure that we snagged all the symbols we need.
5601 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5602 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5603 cat <<EOF > conftest.$ac_ext
5604#ifdef __cplusplus
5605extern "C" {
5606#endif
5607
5608EOF
5609 # Now generate the symbol file.
5610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5611
5612 cat <<EOF >> conftest.$ac_ext
5613#if defined (__STDC__) && __STDC__
5614# define lt_ptr_t void *
5615#else
5616# define lt_ptr_t char *
5617# define const
5618#endif
5619
5620/* The mapping between symbol names and symbols. */
5621const struct {
5622 const char *name;
5623 lt_ptr_t address;
5624}
5625lt_preloaded_symbols[] =
5626{
5627EOF
5628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5629 cat <<\EOF >> conftest.$ac_ext
5630 {0, (lt_ptr_t) 0}
5631};
5632
5633#ifdef __cplusplus
5634}
5635#endif
5636EOF
5637 # Now try linking the two files.
5638 mv conftest.$ac_objext conftstm.$ac_objext
5639 lt_save_LIBS="$LIBS"
5640 lt_save_CFLAGS="$CFLAGS"
5641 LIBS="conftstm.$ac_objext"
5642 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5648 pipe_works=yes
5649 fi
5650 LIBS="$lt_save_LIBS"
5651 CFLAGS="$lt_save_CFLAGS"
5652 else
5653 echo "cannot find nm_test_func in $nlist" >&5
5654 fi
5655 else
5656 echo "cannot find nm_test_var in $nlist" >&5
5657 fi
5658 else
5659 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5660 fi
5661 else
5662 echo "$progname: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5664 fi
5665 rm -f conftest* conftst*
5666
5667 # Do not use the global_symbol_pipe unless it works.
5668 if test "$pipe_works" = yes; then
5669 break
5670 else
5671 lt_cv_sys_global_symbol_pipe=
5672 fi
5673done
5674
5675fi
5676
5677if test -z "$lt_cv_sys_global_symbol_pipe"; then
5678 lt_cv_sys_global_symbol_to_cdecl=
5679fi
5680if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
mlcreech94984912008-03-04 19:03:08 +00005681 { echo "$as_me:$LINENO: result: failed" >&5
5682echo "${ECHO_T}failed" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005683else
mlcreech94984912008-03-04 19:03:08 +00005684 { echo "$as_me:$LINENO: result: ok" >&5
5685echo "${ECHO_T}ok" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005686fi
5687
mlcreech94984912008-03-04 19:03:08 +00005688{ echo "$as_me:$LINENO: checking for objdir" >&5
5689echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005690if test "${lt_cv_objdir+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692else
5693 rm -f .libs 2>/dev/null
5694mkdir .libs 2>/dev/null
5695if test -d .libs; then
5696 lt_cv_objdir=.libs
5697else
5698 # MS-DOS does not allow filenames that begin with a dot.
5699 lt_cv_objdir=_libs
5700fi
5701rmdir .libs 2>/dev/null
5702fi
mlcreech94984912008-03-04 19:03:08 +00005703{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5704echo "${ECHO_T}$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005705objdir=$lt_cv_objdir
5706
5707
5708
5709
5710
5711case $host_os in
5712aix3*)
5713 # AIX sometimes has problems with the GCC collect2 program. For some
5714 # reason, if we set the COLLECT_NAMES environment variable, the problems
5715 # vanish in a puff of smoke.
5716 if test "X${COLLECT_NAMES+set}" != Xset; then
5717 COLLECT_NAMES=
5718 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00005719 fi
5720 ;;
5721esac
5722
a.rottmann9bc8b932004-02-29 15:18:31 +00005723# Sed substitution that helps us do robust quoting. It backslashifies
5724# metacharacters that are still active within double-quoted strings.
vapier7f19c022007-02-17 14:46:31 +00005725Xsed='sed -e 1s/^X//'
a.rottmann9bc8b932004-02-29 15:18:31 +00005726sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5727
5728# Same as above, but do not quote variable references.
5729double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5730
5731# Sed substitution to delay expansion of an escaped shell variable in a
5732# double_quote_subst'ed string.
5733delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5734
5735# Sed substitution to avoid accidental globbing in evaled expressions
5736no_glob_subst='s/\*/\\\*/g'
5737
5738# Constants:
5739rm="rm -f"
5740
5741# Global variables:
5742default_ofile=libtool
5743can_build_shared=yes
5744
vapier7f19c022007-02-17 14:46:31 +00005745# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00005746# which needs '.lib').
5747libext=a
5748ltmain="$ac_aux_dir/ltmain.sh"
5749ofile="$default_ofile"
5750with_gnu_ld="$lt_cv_prog_gnu_ld"
5751
5752if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5754set dummy ${ac_tool_prefix}ar; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005757if test "${ac_cv_prog_AR+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760 if test -n "$AR"; then
5761 ac_cv_prog_AR="$AR" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005770 ac_cv_prog_AR="${ac_tool_prefix}ar"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774done
5775done
mlcreech94984912008-03-04 19:03:08 +00005776IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005777
5778fi
5779fi
5780AR=$ac_cv_prog_AR
5781if test -n "$AR"; then
mlcreech94984912008-03-04 19:03:08 +00005782 { echo "$as_me:$LINENO: result: $AR" >&5
5783echo "${ECHO_T}$AR" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005784else
mlcreech94984912008-03-04 19:03:08 +00005785 { echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005787fi
5788
mlcreech94984912008-03-04 19:03:08 +00005789
a.rottmann9bc8b932004-02-29 15:18:31 +00005790fi
5791if test -z "$ac_cv_prog_AR"; then
5792 ac_ct_AR=$AR
5793 # Extract the first word of "ar", so it can be a program name with args.
5794set dummy ar; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005797if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800 if test -n "$ac_ct_AR"; then
5801 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005810 ac_cv_prog_ac_ct_AR="ar"
5811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814done
5815done
mlcreech94984912008-03-04 19:03:08 +00005816IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005817
a.rottmann9bc8b932004-02-29 15:18:31 +00005818fi
5819fi
5820ac_ct_AR=$ac_cv_prog_ac_ct_AR
5821if test -n "$ac_ct_AR"; then
mlcreech94984912008-03-04 19:03:08 +00005822 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5823echo "${ECHO_T}$ac_ct_AR" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005824else
mlcreech94984912008-03-04 19:03:08 +00005825 { echo "$as_me:$LINENO: result: no" >&5
5826echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005827fi
5828
mlcreech94984912008-03-04 19:03:08 +00005829 if test "x$ac_ct_AR" = x; then
5830 AR="false"
5831 else
5832 case $cross_compiling:$ac_tool_warned in
5833yes:)
5834{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5835whose name does not start with the host triplet. If you think this
5836configuration is useful to you, please write to autoconf@gnu.org." >&5
5837echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5838whose name does not start with the host triplet. If you think this
5839configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5840ac_tool_warned=yes ;;
5841esac
5842 AR=$ac_ct_AR
5843 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005844else
5845 AR="$ac_cv_prog_AR"
5846fi
5847
a.rottmann84e63352003-03-24 09:42:16 +00005848if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5850set dummy ${ac_tool_prefix}ranlib; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005853if test "${ac_cv_prog_RANLIB+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855else
5856 if test -n "$RANLIB"; then
5857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870done
5871done
mlcreech94984912008-03-04 19:03:08 +00005872IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005873
5874fi
5875fi
5876RANLIB=$ac_cv_prog_RANLIB
5877if test -n "$RANLIB"; then
mlcreech94984912008-03-04 19:03:08 +00005878 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5879echo "${ECHO_T}$RANLIB" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005880else
mlcreech94984912008-03-04 19:03:08 +00005881 { echo "$as_me:$LINENO: result: no" >&5
5882echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005883fi
5884
mlcreech94984912008-03-04 19:03:08 +00005885
a.rottmann84e63352003-03-24 09:42:16 +00005886fi
5887if test -z "$ac_cv_prog_RANLIB"; then
5888 ac_ct_RANLIB=$RANLIB
5889 # Extract the first word of "ranlib", so it can be a program name with args.
5890set dummy ranlib; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005893if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5895else
5896 if test -n "$ac_ct_RANLIB"; then
5897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5898else
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005906 ac_cv_prog_ac_ct_RANLIB="ranlib"
5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910done
5911done
mlcreech94984912008-03-04 19:03:08 +00005912IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005913
a.rottmann84e63352003-03-24 09:42:16 +00005914fi
5915fi
5916ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5917if test -n "$ac_ct_RANLIB"; then
mlcreech94984912008-03-04 19:03:08 +00005918 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5919echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005920else
mlcreech94984912008-03-04 19:03:08 +00005921 { echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005923fi
5924
mlcreech94984912008-03-04 19:03:08 +00005925 if test "x$ac_ct_RANLIB" = x; then
5926 RANLIB=":"
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929yes:)
5930{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5931whose name does not start with the host triplet. If you think this
5932configuration is useful to you, please write to autoconf@gnu.org." >&5
5933echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5934whose name does not start with the host triplet. If you think this
5935configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5936ac_tool_warned=yes ;;
5937esac
5938 RANLIB=$ac_ct_RANLIB
5939 fi
a.rottmann84e63352003-03-24 09:42:16 +00005940else
5941 RANLIB="$ac_cv_prog_RANLIB"
5942fi
5943
5944if test -n "$ac_tool_prefix"; then
5945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5946set dummy ${ac_tool_prefix}strip; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005949if test "${ac_cv_prog_STRIP+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952 if test -n "$STRIP"; then
5953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005962 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966done
5967done
mlcreech94984912008-03-04 19:03:08 +00005968IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005969
5970fi
5971fi
5972STRIP=$ac_cv_prog_STRIP
5973if test -n "$STRIP"; then
mlcreech94984912008-03-04 19:03:08 +00005974 { echo "$as_me:$LINENO: result: $STRIP" >&5
5975echo "${ECHO_T}$STRIP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005976else
mlcreech94984912008-03-04 19:03:08 +00005977 { echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005979fi
5980
mlcreech94984912008-03-04 19:03:08 +00005981
a.rottmann84e63352003-03-24 09:42:16 +00005982fi
5983if test -z "$ac_cv_prog_STRIP"; then
5984 ac_ct_STRIP=$STRIP
5985 # Extract the first word of "strip", so it can be a program name with args.
5986set dummy strip; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005989if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991else
5992 if test -n "$ac_ct_STRIP"; then
5993 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00006001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006002 ac_cv_prog_ac_ct_STRIP="strip"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006done
6007done
mlcreech94984912008-03-04 19:03:08 +00006008IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00006009
a.rottmann84e63352003-03-24 09:42:16 +00006010fi
6011fi
6012ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6013if test -n "$ac_ct_STRIP"; then
mlcreech94984912008-03-04 19:03:08 +00006014 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6015echo "${ECHO_T}$ac_ct_STRIP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006016else
mlcreech94984912008-03-04 19:03:08 +00006017 { echo "$as_me:$LINENO: result: no" >&5
6018echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006019fi
6020
mlcreech94984912008-03-04 19:03:08 +00006021 if test "x$ac_ct_STRIP" = x; then
6022 STRIP=":"
6023 else
6024 case $cross_compiling:$ac_tool_warned in
6025yes:)
6026{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6027whose name does not start with the host triplet. If you think this
6028configuration is useful to you, please write to autoconf@gnu.org." >&5
6029echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6030whose name does not start with the host triplet. If you think this
6031configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6032ac_tool_warned=yes ;;
6033esac
6034 STRIP=$ac_ct_STRIP
6035 fi
a.rottmann84e63352003-03-24 09:42:16 +00006036else
6037 STRIP="$ac_cv_prog_STRIP"
6038fi
6039
6040
a.rottmann84e63352003-03-24 09:42:16 +00006041old_CC="$CC"
6042old_CFLAGS="$CFLAGS"
6043
6044# Set sane defaults for various variables
6045test -z "$AR" && AR=ar
6046test -z "$AR_FLAGS" && AR_FLAGS=cru
6047test -z "$AS" && AS=as
6048test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006049test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006050test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006051test -z "$DLLTOOL" && DLLTOOL=dlltool
6052test -z "$LD" && LD=ld
6053test -z "$LN_S" && LN_S="ln -s"
6054test -z "$MAGIC_CMD" && MAGIC_CMD=file
6055test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00006056test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00006057test -z "$OBJDUMP" && OBJDUMP=objdump
6058test -z "$RANLIB" && RANLIB=:
6059test -z "$STRIP" && STRIP=:
6060test -z "$ac_objext" && ac_objext=o
6061
a.rottmann84e63352003-03-24 09:42:16 +00006062# Determine commands to create old-style static archives.
6063old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6064old_postinstall_cmds='chmod 644 $oldlib'
6065old_postuninstall_cmds=
6066
6067if test -n "$RANLIB"; then
6068 case $host_os in
6069 openbsd*)
vapier7f19c022007-02-17 14:46:31 +00006070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
a.rottmann84e63352003-03-24 09:42:16 +00006071 ;;
6072 *)
vapier7f19c022007-02-17 14:46:31 +00006073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
a.rottmann84e63352003-03-24 09:42:16 +00006074 ;;
6075 esac
6076 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6077fi
6078
vapier7f19c022007-02-17 14:46:31 +00006079for cc_temp in $compiler""; do
6080 case $cc_temp in
6081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6083 \-*) ;;
6084 *) break;;
6085 esac
6086done
6087cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6088
6089
a.rottmann9bc8b932004-02-29 15:18:31 +00006090# Only perform the check for file, if the check method requires it
6091case $deplibs_check_method in
6092file_magic*)
6093 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
mlcreech94984912008-03-04 19:03:08 +00006094 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6095echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006096if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00006098else
a.rottmann9bc8b932004-02-29 15:18:31 +00006099 case $MAGIC_CMD in
6100[\\/*] | ?:[\\/]*)
6101 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6102 ;;
6103*)
6104 lt_save_MAGIC_CMD="$MAGIC_CMD"
6105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6106 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6107 for ac_dir in $ac_dummy; do
6108 IFS="$lt_save_ifs"
6109 test -z "$ac_dir" && ac_dir=.
6110 if test -f $ac_dir/${ac_tool_prefix}file; then
6111 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6112 if test -n "$file_magic_test_file"; then
6113 case $deplibs_check_method in
6114 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006115 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6117 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6118 $EGREP "$file_magic_regex" > /dev/null; then
6119 :
6120 else
6121 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006122
a.rottmann9bc8b932004-02-29 15:18:31 +00006123*** Warning: the command libtool uses to detect shared libraries,
6124*** $file_magic_cmd, produces output that libtool cannot recognize.
6125*** The result is that libtool may fail to recognize shared libraries
6126*** as such. This will affect the creation of libtool libraries that
6127*** depend on shared libraries, but programs linked with such libtool
6128*** libraries will work regardless of this problem. Nevertheless, you
6129*** may want to report the problem to your system manager and/or to
6130*** bug-libtool@gnu.org
6131
6132EOF
6133 fi ;;
6134 esac
6135 fi
6136 break
6137 fi
6138 done
6139 IFS="$lt_save_ifs"
6140 MAGIC_CMD="$lt_save_MAGIC_CMD"
6141 ;;
6142esac
6143fi
6144
6145MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6146if test -n "$MAGIC_CMD"; then
mlcreech94984912008-03-04 19:03:08 +00006147 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6148echo "${ECHO_T}$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006149else
mlcreech94984912008-03-04 19:03:08 +00006150 { echo "$as_me:$LINENO: result: no" >&5
6151echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006152fi
6153
6154if test -z "$lt_cv_path_MAGIC_CMD"; then
6155 if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00006156 { echo "$as_me:$LINENO: checking for file" >&5
6157echo $ECHO_N "checking for file... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006158if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161 case $MAGIC_CMD in
6162[\\/*] | ?:[\\/]*)
6163 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6164 ;;
6165*)
6166 lt_save_MAGIC_CMD="$MAGIC_CMD"
6167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6168 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6169 for ac_dir in $ac_dummy; do
6170 IFS="$lt_save_ifs"
6171 test -z "$ac_dir" && ac_dir=.
6172 if test -f $ac_dir/file; then
6173 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6174 if test -n "$file_magic_test_file"; then
6175 case $deplibs_check_method in
6176 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006177 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6180 $EGREP "$file_magic_regex" > /dev/null; then
6181 :
6182 else
6183 cat <<EOF 1>&2
6184
6185*** Warning: the command libtool uses to detect shared libraries,
6186*** $file_magic_cmd, produces output that libtool cannot recognize.
6187*** The result is that libtool may fail to recognize shared libraries
6188*** as such. This will affect the creation of libtool libraries that
6189*** depend on shared libraries, but programs linked with such libtool
6190*** libraries will work regardless of this problem. Nevertheless, you
6191*** may want to report the problem to your system manager and/or to
6192*** bug-libtool@gnu.org
6193
6194EOF
6195 fi ;;
6196 esac
6197 fi
6198 break
6199 fi
6200 done
6201 IFS="$lt_save_ifs"
6202 MAGIC_CMD="$lt_save_MAGIC_CMD"
6203 ;;
6204esac
6205fi
6206
6207MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6208if test -n "$MAGIC_CMD"; then
mlcreech94984912008-03-04 19:03:08 +00006209 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6210echo "${ECHO_T}$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006211else
mlcreech94984912008-03-04 19:03:08 +00006212 { echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006214fi
6215
6216 else
6217 MAGIC_CMD=:
6218 fi
6219fi
6220
6221 fi
6222 ;;
6223esac
6224
6225enable_dlopen=no
6226enable_win32_dll=no
6227
mlcreech94984912008-03-04 19:03:08 +00006228# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00006229if test "${enable_libtool_lock+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00006230 enableval=$enable_libtool_lock;
6231fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006232
a.rottmann9bc8b932004-02-29 15:18:31 +00006233test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00006234
6235
mlcreech94984912008-03-04 19:03:08 +00006236# Check whether --with-pic was given.
drh71eb93e2001-09-28 01:34:43 +00006237if test "${with_pic+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00006238 withval=$with_pic; pic_mode="$withval"
drh71eb93e2001-09-28 01:34:43 +00006239else
6240 pic_mode=default
mlcreech94984912008-03-04 19:03:08 +00006241fi
6242
drh71eb93e2001-09-28 01:34:43 +00006243test -z "$pic_mode" && pic_mode=default
6244
vapier7f19c022007-02-17 14:46:31 +00006245# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6246#
6247# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6248# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6249# calls AC_LIBTOOL_CONFIG and creates libtool.
6250#
mlcreech94984912008-03-04 19:03:08 +00006251{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6252echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006253if test "x$ltmain" = "x" ; then
mlcreech94984912008-03-04 19:03:08 +00006254 { echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006256 { { echo "$as_me:$LINENO: error:
6257
6258*** [Gentoo] sanity check failed! ***
6259*** \$ltmain is not defined, please check the patch for consistency! ***
6260" >&5
6261echo "$as_me: error:
6262
6263*** [Gentoo] sanity check failed! ***
6264*** \$ltmain is not defined, please check the patch for consistency! ***
6265" >&2;}
6266 { (exit 1); exit 1; }; }
6267fi
6268gentoo_lt_version="1.5.22"
6269gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6270if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
mlcreech94984912008-03-04 19:03:08 +00006271 { echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006273 { { echo "$as_me:$LINENO: error:
6274
6275*** [Gentoo] sanity check failed! ***
6276*** libtool.m4 and ltmain.sh have a version mismatch! ***
6277*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6278
6279Please run:
6280
6281 libtoolize --copy --force
6282
6283if appropriate, please contact the maintainer of this
6284package (or your distribution) for help.
6285" >&5
6286echo "$as_me: error:
6287
6288*** [Gentoo] sanity check failed! ***
6289*** libtool.m4 and ltmain.sh have a version mismatch! ***
6290*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6291
6292Please run:
6293
6294 libtoolize --copy --force
6295
6296if appropriate, please contact the maintainer of this
6297package (or your distribution) for help.
6298" >&2;}
6299 { (exit 1); exit 1; }; }
6300else
mlcreech94984912008-03-04 19:03:08 +00006301 { echo "$as_me:$LINENO: result: yes" >&5
6302echo "${ECHO_T}yes" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006303fi
6304
6305
a.rottmann9bc8b932004-02-29 15:18:31 +00006306# Use C for the default configuration in the libtool script
6307tagname=
6308lt_save_CC="$CC"
6309ac_ext=c
6310ac_cpp='$CPP $CPPFLAGS'
6311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314
6315
6316# Source file extension for C test sources.
6317ac_ext=c
6318
6319# Object file extension for compiled C test sources.
6320objext=o
6321objext=$objext
6322
6323# Code to be used in simple compile tests
6324lt_simple_compile_test_code="int some_variable = 0;\n"
6325
6326# Code to be used in simple link tests
6327lt_simple_link_test_code='int main(){return(0);}\n'
6328
6329
6330# If no C compiler was specified, use CC.
6331LTCC=${LTCC-"$CC"}
6332
vapier7f19c022007-02-17 14:46:31 +00006333# If no C compiler flags were specified, use CFLAGS.
6334LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6335
a.rottmann9bc8b932004-02-29 15:18:31 +00006336# Allow CC to be a program name with arguments.
6337compiler=$CC
6338
6339
vapier7f19c022007-02-17 14:46:31 +00006340# save warnings/boilerplate of simple test code
6341ac_outfile=conftest.$ac_objext
6342printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6343eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6344_lt_compiler_boilerplate=`cat conftest.err`
6345$rm conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006346
vapier7f19c022007-02-17 14:46:31 +00006347ac_outfile=conftest.$ac_objext
6348printf "$lt_simple_link_test_code" >conftest.$ac_ext
6349eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6350_lt_linker_boilerplate=`cat conftest.err`
6351$rm conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006352
6353
6354
6355lt_prog_compiler_no_builtin_flag=
6356
6357if test "$GCC" = yes; then
6358 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6359
6360
mlcreech94984912008-03-04 19:03:08 +00006361{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6362echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006363if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365else
6366 lt_cv_prog_compiler_rtti_exceptions=no
6367 ac_outfile=conftest.$ac_objext
6368 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6369 lt_compiler_flag="-fno-rtti -fno-exceptions"
6370 # Insert the option either (1) after the last *FLAGS variable, or
6371 # (2) before a word containing "conftest.", or (3) at the end.
6372 # Note that $ac_compile itself does not contain backslashes and begins
6373 # with a dollar sign (not a hyphen), so the echo should work correctly.
6374 # The option is referenced via a variable to avoid confusing sed.
6375 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6378 -e 's:$: $lt_compiler_flag:'`
mlcreechb87057f2008-03-06 07:19:20 +00006379 (eval echo "\"\$as_me:6379: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006380 (eval "$lt_compile" 2>conftest.err)
6381 ac_status=$?
6382 cat conftest.err >&5
mlcreechb87057f2008-03-06 07:19:20 +00006383 echo "$as_me:6383: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006384 if (exit $ac_status) && test -s "$ac_outfile"; then
6385 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006386 # So say no if there are warnings other than the usual output.
6387 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006390 lt_cv_prog_compiler_rtti_exceptions=yes
6391 fi
6392 fi
6393 $rm conftest*
6394
6395fi
mlcreech94984912008-03-04 19:03:08 +00006396{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6397echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006398
6399if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6400 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6401else
6402 :
6403fi
6404
6405fi
6406
6407lt_prog_compiler_wl=
6408lt_prog_compiler_pic=
6409lt_prog_compiler_static=
6410
mlcreech94984912008-03-04 19:03:08 +00006411{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6412echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006413
drh71eb93e2001-09-28 01:34:43 +00006414 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006415 lt_prog_compiler_wl='-Wl,'
6416 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006417
6418 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006419 aix*)
6420 # All AIX code is PIC.
6421 if test "$host_cpu" = ia64; then
6422 # AIX 5 now supports IA64 processor
6423 lt_prog_compiler_static='-Bstatic'
6424 fi
drh71eb93e2001-09-28 01:34:43 +00006425 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006426
drh71eb93e2001-09-28 01:34:43 +00006427 amigaos*)
6428 # FIXME: we need at least 68020 code to build shared libraries, but
6429 # adding the `-m68020' flag to GCC prevents building anything better,
6430 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00006431 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00006432 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006433
6434 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006435 # PIC is the default for these OSes.
6436 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006437
6438 mingw* | pw32* | os2*)
6439 # This hack is so that the source file can tell whether it is being
6440 # built for inclusion in a dll (and should export symbols for example).
6441 lt_prog_compiler_pic='-DDLL_EXPORT'
6442 ;;
6443
drh71eb93e2001-09-28 01:34:43 +00006444 darwin* | rhapsody*)
6445 # PIC is the default on this platform
6446 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006447 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006448 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006449
vapier7f19c022007-02-17 14:46:31 +00006450 interix3*)
6451 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6452 # Instead, we relocate shared libraries at runtime.
6453 ;;
6454
a.rottmann9bc8b932004-02-29 15:18:31 +00006455 msdosdjgpp*)
6456 # Just because we use GCC doesn't mean we suddenly get shared libraries
6457 # on systems that don't support them.
6458 lt_prog_compiler_can_build_shared=no
6459 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00006460 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006461
drh71eb93e2001-09-28 01:34:43 +00006462 sysv4*MP*)
6463 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006464 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00006465 fi
6466 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006467
6468 hpux*)
6469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6470 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006471 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006472 hppa*64*|ia64*)
6473 # +Z the default
6474 ;;
6475 *)
6476 lt_prog_compiler_pic='-fPIC'
6477 ;;
6478 esac
6479 ;;
6480
drh71eb93e2001-09-28 01:34:43 +00006481 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006482 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006483 ;;
6484 esac
6485 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006486 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006487 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006488 aix*)
6489 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006490 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006491 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006492 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006493 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006494 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006495 fi
6496 ;;
vapier7f19c022007-02-17 14:46:31 +00006497 darwin*)
6498 # PIC is the default on this platform
6499 # Common symbols not allowed in MH_DYLIB files
6500 case $cc_basename in
6501 xlc*)
6502 lt_prog_compiler_pic='-qnocommon'
6503 lt_prog_compiler_wl='-Wl,'
6504 ;;
6505 esac
6506 ;;
drh71eb93e2001-09-28 01:34:43 +00006507
a.rottmann9bc8b932004-02-29 15:18:31 +00006508 mingw* | pw32* | os2*)
6509 # This hack is so that the source file can tell whether it is being
6510 # built for inclusion in a dll (and should export symbols for example).
6511 lt_prog_compiler_pic='-DDLL_EXPORT'
6512 ;;
6513
a.rottmann84e63352003-03-24 09:42:16 +00006514 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006515 lt_prog_compiler_wl='-Wl,'
6516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6517 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006518 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006519 hppa*64*|ia64*)
6520 # +Z the default
6521 ;;
6522 *)
6523 lt_prog_compiler_pic='+Z'
6524 ;;
6525 esac
6526 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6527 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006528 ;;
6529
6530 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006531 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006532 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006533 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006534 ;;
6535
6536 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00006537 lt_prog_compiler_pic='-KPIC'
6538 lt_prog_compiler_static='-Bstatic'
6539 ;;
6540
6541 linux*)
vapier7f19c022007-02-17 14:46:31 +00006542 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +00006543 icc* | ecc*)
6544 lt_prog_compiler_wl='-Wl,'
6545 lt_prog_compiler_pic='-KPIC'
6546 lt_prog_compiler_static='-static'
6547 ;;
vapier7f19c022007-02-17 14:46:31 +00006548 pgcc* | pgf77* | pgf90* | pgf95*)
6549 # Portland Group compilers (*not* the Pentium gcc compiler,
6550 # which looks to be a dead project)
6551 lt_prog_compiler_wl='-Wl,'
6552 lt_prog_compiler_pic='-fpic'
6553 lt_prog_compiler_static='-Bstatic'
6554 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006555 ccc*)
6556 lt_prog_compiler_wl='-Wl,'
6557 # All Alpha code is PIC.
6558 lt_prog_compiler_static='-non_shared'
6559 ;;
6560 esac
drh71eb93e2001-09-28 01:34:43 +00006561 ;;
6562
6563 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006564 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006565 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006566 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006567 ;;
6568
drh71eb93e2001-09-28 01:34:43 +00006569 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006570 lt_prog_compiler_pic='-KPIC'
6571 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006572 case $cc_basename in
6573 f77* | f90* | f95*)
6574 lt_prog_compiler_wl='-Qoption ld ';;
6575 *)
6576 lt_prog_compiler_wl='-Wl,';;
6577 esac
drh71eb93e2001-09-28 01:34:43 +00006578 ;;
6579
6580 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006581 lt_prog_compiler_wl='-Qoption ld '
6582 lt_prog_compiler_pic='-PIC'
6583 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006584 ;;
6585
vapier7f19c022007-02-17 14:46:31 +00006586 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006587 lt_prog_compiler_wl='-Wl,'
6588 lt_prog_compiler_pic='-KPIC'
6589 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006590 ;;
6591
6592 sysv4*MP*)
6593 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006594 lt_prog_compiler_pic='-Kconform_pic'
6595 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006596 fi
6597 ;;
6598
vapier7f19c022007-02-17 14:46:31 +00006599 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6600 lt_prog_compiler_wl='-Wl,'
6601 lt_prog_compiler_pic='-KPIC'
6602 lt_prog_compiler_static='-Bstatic'
6603 ;;
6604
6605 unicos*)
6606 lt_prog_compiler_wl='-Wl,'
6607 lt_prog_compiler_can_build_shared=no
6608 ;;
6609
a.rottmann9bc8b932004-02-29 15:18:31 +00006610 uts4*)
6611 lt_prog_compiler_pic='-pic'
6612 lt_prog_compiler_static='-Bstatic'
6613 ;;
6614
drh71eb93e2001-09-28 01:34:43 +00006615 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006616 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006617 ;;
6618 esac
6619 fi
6620
mlcreech94984912008-03-04 19:03:08 +00006621{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6622echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006623
a.rottmann9bc8b932004-02-29 15:18:31 +00006624#
6625# Check to make sure the PIC flag actually works.
6626#
6627if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00006628
mlcreech94984912008-03-04 19:03:08 +00006629{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6630echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006631if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00006632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
a.rottmann9bc8b932004-02-29 15:18:31 +00006634 lt_prog_compiler_pic_works=no
6635 ac_outfile=conftest.$ac_objext
6636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6637 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6638 # Insert the option either (1) after the last *FLAGS variable, or
6639 # (2) before a word containing "conftest.", or (3) at the end.
6640 # Note that $ac_compile itself does not contain backslashes and begins
6641 # with a dollar sign (not a hyphen), so the echo should work correctly.
6642 # The option is referenced via a variable to avoid confusing sed.
6643 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6646 -e 's:$: $lt_compiler_flag:'`
mlcreechb87057f2008-03-06 07:19:20 +00006647 (eval echo "\"\$as_me:6647: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006648 (eval "$lt_compile" 2>conftest.err)
6649 ac_status=$?
6650 cat conftest.err >&5
mlcreechb87057f2008-03-06 07:19:20 +00006651 echo "$as_me:6651: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006652 if (exit $ac_status) && test -s "$ac_outfile"; then
6653 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006654 # So say no if there are warnings other than the usual output.
6655 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006658 lt_prog_compiler_pic_works=yes
6659 fi
6660 fi
6661 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00006662
a.rottmann9bc8b932004-02-29 15:18:31 +00006663fi
mlcreech94984912008-03-04 19:03:08 +00006664{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6665echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006666
a.rottmann9bc8b932004-02-29 15:18:31 +00006667if test x"$lt_prog_compiler_pic_works" = xyes; then
6668 case $lt_prog_compiler_pic in
6669 "" | " "*) ;;
6670 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6671 esac
drh71eb93e2001-09-28 01:34:43 +00006672else
a.rottmann9bc8b932004-02-29 15:18:31 +00006673 lt_prog_compiler_pic=
6674 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00006675fi
6676
a.rottmann84e63352003-03-24 09:42:16 +00006677fi
vapier7f19c022007-02-17 14:46:31 +00006678case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006679 # For platforms which do not support PIC, -DPIC is meaningless:
6680 *djgpp*)
6681 lt_prog_compiler_pic=
6682 ;;
6683 *)
6684 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6685 ;;
6686esac
a.rottmann84e63352003-03-24 09:42:16 +00006687
vapier7f19c022007-02-17 14:46:31 +00006688#
6689# Check to make sure the static flag actually works.
6690#
6691wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
mlcreech94984912008-03-04 19:03:08 +00006692{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6693echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006694if test "${lt_prog_compiler_static_works+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697 lt_prog_compiler_static_works=no
6698 save_LDFLAGS="$LDFLAGS"
6699 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6700 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6702 # The linker can only warn and ignore the option if not recognized
6703 # So say no if there are warnings
6704 if test -s conftest.err; then
6705 # Append any errors to the config.log.
6706 cat conftest.err 1>&5
6707 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6709 if diff conftest.exp conftest.er2 >/dev/null; then
6710 lt_prog_compiler_static_works=yes
6711 fi
6712 else
6713 lt_prog_compiler_static_works=yes
6714 fi
6715 fi
6716 $rm conftest*
6717 LDFLAGS="$save_LDFLAGS"
6718
6719fi
mlcreech94984912008-03-04 19:03:08 +00006720{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6721echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006722
6723if test x"$lt_prog_compiler_static_works" = xyes; then
6724 :
6725else
6726 lt_prog_compiler_static=
6727fi
6728
6729
mlcreech94984912008-03-04 19:03:08 +00006730{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6731echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006732if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00006733 echo $ECHO_N "(cached) $ECHO_C" >&6
6734else
a.rottmann9bc8b932004-02-29 15:18:31 +00006735 lt_cv_prog_compiler_c_o=no
6736 $rm -r conftest 2>/dev/null
6737 mkdir conftest
6738 cd conftest
6739 mkdir out
6740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006741
a.rottmann9bc8b932004-02-29 15:18:31 +00006742 lt_compiler_flag="-o out/conftest2.$ac_objext"
6743 # Insert the option either (1) after the last *FLAGS variable, or
6744 # (2) before a word containing "conftest.", or (3) at the end.
6745 # Note that $ac_compile itself does not contain backslashes and begins
6746 # with a dollar sign (not a hyphen), so the echo should work correctly.
6747 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6750 -e 's:$: $lt_compiler_flag:'`
mlcreechb87057f2008-03-06 07:19:20 +00006751 (eval echo "\"\$as_me:6751: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006752 (eval "$lt_compile" 2>out/conftest.err)
6753 ac_status=$?
6754 cat out/conftest.err >&5
mlcreechb87057f2008-03-06 07:19:20 +00006755 echo "$as_me:6755: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6757 then
6758 # The compiler can only warn and ignore the option if not recognized
6759 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +00006760 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6761 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6762 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006763 lt_cv_prog_compiler_c_o=yes
6764 fi
6765 fi
vapier7f19c022007-02-17 14:46:31 +00006766 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006767 $rm conftest*
6768 # SGI C++ compiler will create directory out/ii_files/ for
6769 # template instantiation
6770 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6771 $rm out/* && rmdir out
6772 cd ..
6773 rmdir conftest
6774 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00006775
6776fi
mlcreech94984912008-03-04 19:03:08 +00006777{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6778echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006779
a.rottmann84e63352003-03-24 09:42:16 +00006780
drh71eb93e2001-09-28 01:34:43 +00006781hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00006782if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00006783 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +00006784 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6785echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006786 hard_links=yes
6787 $rm conftest*
6788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6789 touch conftest.a
6790 ln conftest.a conftest.b 2>&5 || hard_links=no
6791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +00006792 { echo "$as_me:$LINENO: result: $hard_links" >&5
6793echo "${ECHO_T}$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006794 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00006795 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00006796echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6797 need_locks=warn
6798 fi
6799else
6800 need_locks=no
6801fi
6802
mlcreech94984912008-03-04 19:03:08 +00006803{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6804echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006805
6806 runpath_var=
6807 allow_undefined_flag=
6808 enable_shared_with_static_runtimes=no
6809 archive_cmds=
6810 archive_expsym_cmds=
6811 old_archive_From_new_cmds=
6812 old_archive_from_expsyms_cmds=
6813 export_dynamic_flag_spec=
6814 whole_archive_flag_spec=
6815 thread_safe_flag_spec=
6816 hardcode_libdir_flag_spec=
6817 hardcode_libdir_flag_spec_ld=
6818 hardcode_libdir_separator=
6819 hardcode_direct=no
6820 hardcode_minus_L=no
6821 hardcode_shlibpath_var=unsupported
6822 link_all_deplibs=unknown
6823 hardcode_automatic=no
6824 module_cmds=
6825 module_expsym_cmds=
6826 always_export_symbols=no
6827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6828 # include_expsyms should be a list of space-separated symbols to be *always*
6829 # included in the symbol list
6830 include_expsyms=
6831 # exclude_expsyms can be an extended regexp of symbols to exclude
6832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6834 # as well as any symbol that contains `d'.
6835 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6837 # platforms (ab)use it in PIC code, but their linkers get confused if
6838 # the symbol is explicitly referenced. Since portable code cannot
6839 # rely on this symbol name, it's probably fine to never include it in
6840 # preloaded symbol tables.
6841 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +00006842 # Just being paranoid about ensuring that cc_basename is set.
6843 for cc_temp in $compiler""; do
6844 case $cc_temp in
6845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6847 \-*) ;;
6848 *) break;;
6849 esac
6850done
6851cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006852
6853 case $host_os in
6854 cygwin* | mingw* | pw32*)
6855 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6856 # When not using gcc, we currently assume that we are using
6857 # Microsoft Visual C++.
6858 if test "$GCC" != yes; then
6859 with_gnu_ld=no
6860 fi
6861 ;;
vapier7f19c022007-02-17 14:46:31 +00006862 interix*)
6863 # we just hope/assume this is gcc and not c89 (= MSVC++)
6864 with_gnu_ld=yes
6865 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006866 openbsd*)
6867 with_gnu_ld=no
6868 ;;
6869 esac
6870
6871 ld_shlibs=yes
6872 if test "$with_gnu_ld" = yes; then
6873 # If archive_cmds runs LD, not CC, wlarc should be empty
6874 wlarc='${wl}'
6875
vapier7f19c022007-02-17 14:46:31 +00006876 # Set some defaults for GNU ld with shared library support. These
6877 # are reset later if shared libraries are not supported. Putting them
6878 # here allows them to be overridden if necessary.
6879 runpath_var=LD_RUN_PATH
6880 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6881 export_dynamic_flag_spec='${wl}--export-dynamic'
6882 # ancient GNU ld didn't support --whole-archive et. al.
6883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6884 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6885 else
6886 whole_archive_flag_spec=
6887 fi
6888 supports_anon_versioning=no
6889 case `$LD -v 2>/dev/null` in
6890 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6891 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6892 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6893 *\ 2.11.*) ;; # other 2.11 versions
6894 *) supports_anon_versioning=yes ;;
6895 esac
6896
a.rottmann9bc8b932004-02-29 15:18:31 +00006897 # See if GNU ld supports shared libraries.
6898 case $host_os in
6899 aix3* | aix4* | aix5*)
6900 # On AIX/PPC, the GNU linker is very broken
6901 if test "$host_cpu" != ia64; then
6902 ld_shlibs=no
6903 cat <<EOF 1>&2
6904
6905*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6906*** to be unable to reliably create shared libraries on AIX.
6907*** Therefore, libtool is disabling shared libraries support. If you
6908*** really care for shared libraries, you may want to modify your PATH
6909*** so that a non-GNU linker is found, and then restart.
6910
6911EOF
6912 fi
6913 ;;
6914
6915 amigaos*)
6916 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)'
6917 hardcode_libdir_flag_spec='-L$libdir'
6918 hardcode_minus_L=yes
6919
6920 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6921 # that the semantics of dynamic libraries on AmigaOS, at least up
6922 # to version 4, is to share data among multiple programs linked
6923 # with the same dynamic library. Since this doesn't match the
6924 # behavior of shared libraries on other platforms, we can't use
6925 # them.
6926 ld_shlibs=no
6927 ;;
6928
6929 beos*)
6930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6931 allow_undefined_flag=unsupported
6932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6933 # support --undefined. This deserves some investigation. FIXME
6934 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6935 else
6936 ld_shlibs=no
6937 fi
6938 ;;
6939
6940 cygwin* | mingw* | pw32*)
6941 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6942 # as there is no search path for DLLs.
6943 hardcode_libdir_flag_spec='-L$libdir'
6944 allow_undefined_flag=unsupported
6945 always_export_symbols=no
6946 enable_shared_with_static_runtimes=yes
vapier7f19c022007-02-17 14:46:31 +00006947 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00006948
6949 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00006950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00006951 # If the export-symbols file already is a .def file (1st line
6952 # is EXPORTS), use it as is; otherwise, prepend...
6953 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6954 cp $export_symbols $output_objdir/$soname.def;
6955 else
6956 echo EXPORTS > $output_objdir/$soname.def;
6957 cat $export_symbols >> $output_objdir/$soname.def;
6958 fi~
vapier7f19c022007-02-17 14:46:31 +00006959 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00006960 else
6961 ld_shlibs=no
6962 fi
6963 ;;
6964
vapier7f19c022007-02-17 14:46:31 +00006965 interix3*)
6966 hardcode_direct=no
6967 hardcode_shlibpath_var=no
6968 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6969 export_dynamic_flag_spec='${wl}-E'
6970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6971 # Instead, shared libraries are loaded at an image base (0x10000000 by
6972 # default) and relocated if they conflict, which is a slow very memory
6973 # consuming and fragmenting process. To avoid this, we pick a random,
6974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6975 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6976 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6977 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'
6978 ;;
6979
6980 linux*)
6981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6982 tmp_addflag=
6983 case $cc_basename,$host_cpu in
6984 pgcc*) # Portland Group C compiler
6985 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'
6986 tmp_addflag=' $pic_flag'
6987 ;;
6988 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6989 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'
6990 tmp_addflag=' $pic_flag -Mnomain' ;;
6991 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6992 tmp_addflag=' -i_dynamic' ;;
6993 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6994 tmp_addflag=' -i_dynamic -nofor_main' ;;
6995 ifc* | ifort*) # Intel Fortran compiler
6996 tmp_addflag=' -nofor_main' ;;
6997 esac
6998 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6999
7000 if test $supports_anon_versioning = yes; then
7001 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7003 $echo "local: *; };" >> $output_objdir/$libname.ver~
7004 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7005 fi
7006 else
7007 ld_shlibs=no
7008 fi
7009 ;;
7010
7011 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7013 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7014 wlarc=
7015 else
7016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7018 fi
7019 ;;
7020
vapier7f19c022007-02-17 14:46:31 +00007021 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007022 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7023 ld_shlibs=no
7024 cat <<EOF 1>&2
7025
7026*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7027*** create shared libraries on Solaris systems. Therefore, libtool
7028*** is disabling shared libraries support. We urge you to upgrade GNU
7029*** binutils to release 2.9.1 or newer. Another option is to modify
7030*** your PATH or compiler configuration so that the native linker is
7031*** used, and then restart.
7032
7033EOF
7034 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7037 else
7038 ld_shlibs=no
7039 fi
7040 ;;
7041
vapier7f19c022007-02-17 14:46:31 +00007042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7043 case `$LD -v 2>&1` in
7044 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7045 ld_shlibs=no
7046 cat <<_LT_EOF 1>&2
7047
7048*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7049*** reliably create shared libraries on SCO systems. Therefore, libtool
7050*** is disabling shared libraries support. We urge you to upgrade GNU
7051*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7052*** your PATH or compiler configuration so that the native linker is
7053*** used, and then restart.
7054
7055_LT_EOF
7056 ;;
7057 *)
7058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7059 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7061 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7062 else
7063 ld_shlibs=no
7064 fi
7065 ;;
7066 esac
7067 ;;
7068
a.rottmann9bc8b932004-02-29 15:18:31 +00007069 sunos4*)
7070 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7071 wlarc=
7072 hardcode_direct=yes
7073 hardcode_shlibpath_var=no
7074 ;;
7075
a.rottmann9bc8b932004-02-29 15:18:31 +00007076 *)
7077 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7080 else
7081 ld_shlibs=no
7082 fi
7083 ;;
7084 esac
7085
vapier7f19c022007-02-17 14:46:31 +00007086 if test "$ld_shlibs" = no; then
7087 runpath_var=
7088 hardcode_libdir_flag_spec=
7089 export_dynamic_flag_spec=
7090 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007091 fi
7092 else
7093 # PORTME fill in a description of your system's linker (not GNU ld)
7094 case $host_os in
7095 aix3*)
7096 allow_undefined_flag=unsupported
7097 always_export_symbols=yes
7098 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'
7099 # Note: this linker hardcodes the directories in LIBPATH if there
7100 # are no directories specified by -L.
7101 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007102 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007103 # Neither direct hardcoding nor static linking is supported with a
7104 # broken collect2.
7105 hardcode_direct=unsupported
7106 fi
7107 ;;
7108
7109 aix4* | aix5*)
7110 if test "$host_cpu" = ia64; then
7111 # On IA64, the linker does run time linking by default, so we don't
7112 # have to do anything special.
7113 aix_use_runtimelinking=no
7114 exp_sym_flag='-Bexport'
7115 no_entry_flag=""
7116 else
7117 # If we're using GNU nm, then we don't want the "-C" option.
7118 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7119 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7120 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'
7121 else
7122 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'
7123 fi
7124 aix_use_runtimelinking=no
7125
7126 # Test if we are trying to use run time linking or normal
7127 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7128 # need to do runtime linking.
7129 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7130 for ld_flag in $LDFLAGS; do
7131 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7132 aix_use_runtimelinking=yes
7133 break
7134 fi
7135 done
vapier7f19c022007-02-17 14:46:31 +00007136 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007137 esac
7138
7139 exp_sym_flag='-bexport'
7140 no_entry_flag='-bnoentry'
7141 fi
7142
7143 # When large executables or shared objects are built, AIX ld can
7144 # have problems creating the table of contents. If linking a library
7145 # or program results in "error TOC overflow" add -mminimal-toc to
7146 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7147 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7148
7149 archive_cmds=''
7150 hardcode_direct=yes
7151 hardcode_libdir_separator=':'
7152 link_all_deplibs=yes
7153
7154 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007155 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007156 # We only want to do this on AIX 4.2 and lower, the check
7157 # below for broken collect2 doesn't work under 4.3+
7158 collect2name=`${CC} -print-prog-name=collect2`
7159 if test -f "$collect2name" && \
7160 strings "$collect2name" | grep resolve_lib_name >/dev/null
7161 then
7162 # We have reworked collect2
7163 hardcode_direct=yes
7164 else
7165 # We have old collect2
7166 hardcode_direct=unsupported
7167 # It fails to find uninstalled libraries when the uninstalled
7168 # path is not listed in the libpath. Setting hardcode_minus_L
7169 # to unsupported forces relinking
7170 hardcode_minus_L=yes
7171 hardcode_libdir_flag_spec='-L$libdir'
7172 hardcode_libdir_separator=
7173 fi
vapier7f19c022007-02-17 14:46:31 +00007174 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007175 esac
7176 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007177 if test "$aix_use_runtimelinking" = yes; then
7178 shared_flag="$shared_flag "'${wl}-G'
7179 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007180 else
7181 # not using gcc
7182 if test "$host_cpu" = ia64; then
7183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7184 # chokes on -Wl,-G. The following line is correct:
7185 shared_flag='-G'
7186 else
vapier7f19c022007-02-17 14:46:31 +00007187 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007188 shared_flag='${wl}-G'
7189 else
7190 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007191 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007192 fi
7193 fi
7194
7195 # It seems that -bexpall does not export symbols beginning with
7196 # underscore (_), so it is better to generate a list of symbols to export.
7197 always_export_symbols=yes
7198 if test "$aix_use_runtimelinking" = yes; then
7199 # Warning - without using the other runtime loading flags (-brtl),
7200 # -berok will link without error, but may produce a broken library.
7201 allow_undefined_flag='-berok'
7202 # Determine the default libpath from the value encoded in an empty executable.
7203 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007204/* confdefs.h. */
7205_ACEOF
7206cat confdefs.h >>conftest.$ac_ext
7207cat >>conftest.$ac_ext <<_ACEOF
7208/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007209
a.rottmann84e63352003-03-24 09:42:16 +00007210int
7211main ()
7212{
a.rottmann9bc8b932004-02-29 15:18:31 +00007213
a.rottmann84e63352003-03-24 09:42:16 +00007214 ;
7215 return 0;
7216}
7217_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007218rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00007219if { (ac_try="$ac_link"
7220case "(($ac_try" in
7221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222 *) ac_try_echo=$ac_try;;
7223esac
7224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007226 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00007231 (exit $ac_status); } && {
7232 test -z "$ac_c_werror_flag" ||
7233 test ! -s conftest.err
7234 } && test -s conftest$ac_exeext &&
7235 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00007236
a.rottmann9bc8b932004-02-29 15:18:31 +00007237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7238}'`
7239# Check for a 64-bit object if we didn't find anything.
7240if 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; }
7241}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00007242else
7243 echo "$as_me: failed program was:" >&5
7244sed 's/^/| /' conftest.$ac_ext >&5
7245
mlcreech94984912008-03-04 19:03:08 +00007246
a.rottmann84e63352003-03-24 09:42:16 +00007247fi
mlcreech94984912008-03-04 19:03:08 +00007248
7249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007250 conftest$ac_exeext conftest.$ac_ext
7251if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007252
a.rottmann9bc8b932004-02-29 15:18:31 +00007253 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +00007254 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"
a.rottmann9bc8b932004-02-29 15:18:31 +00007255 else
7256 if test "$host_cpu" = ia64; then
7257 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7258 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007259 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"
a.rottmann9bc8b932004-02-29 15:18:31 +00007260 else
7261 # Determine the default libpath from the value encoded in an empty executable.
7262 cat >conftest.$ac_ext <<_ACEOF
7263/* confdefs.h. */
7264_ACEOF
7265cat confdefs.h >>conftest.$ac_ext
7266cat >>conftest.$ac_ext <<_ACEOF
7267/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007268
a.rottmann9bc8b932004-02-29 15:18:31 +00007269int
7270main ()
7271{
a.rottmann84e63352003-03-24 09:42:16 +00007272
a.rottmann9bc8b932004-02-29 15:18:31 +00007273 ;
7274 return 0;
7275}
7276_ACEOF
7277rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00007278if { (ac_try="$ac_link"
7279case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282esac
7283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00007290 (exit $ac_status); } && {
7291 test -z "$ac_c_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest$ac_exeext &&
7294 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00007295
a.rottmann9bc8b932004-02-29 15:18:31 +00007296aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7297}'`
7298# Check for a 64-bit object if we didn't find anything.
7299if 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; }
7300}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00007301else
a.rottmann9bc8b932004-02-29 15:18:31 +00007302 echo "$as_me: failed program was:" >&5
7303sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00007304
mlcreech94984912008-03-04 19:03:08 +00007305
a.rottmann9bc8b932004-02-29 15:18:31 +00007306fi
mlcreech94984912008-03-04 19:03:08 +00007307
7308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007309 conftest$ac_exeext conftest.$ac_ext
7310if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007311
a.rottmann9bc8b932004-02-29 15:18:31 +00007312 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7313 # Warning - without using the other run time loading flags,
7314 # -berok will link without error, but may produce a broken library.
7315 no_undefined_flag=' ${wl}-bernotok'
7316 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007317 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007318 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007319 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007320 # This is similar to how AIX traditionally builds its shared libraries.
7321 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'
a.rottmann84e63352003-03-24 09:42:16 +00007322 fi
7323 fi
a.rottmann84e63352003-03-24 09:42:16 +00007324 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007325
7326 amigaos*)
7327 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)'
7328 hardcode_libdir_flag_spec='-L$libdir'
7329 hardcode_minus_L=yes
7330 # see comment about different semantics on the GNU ld section
7331 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00007332 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007333
vapier7f19c022007-02-17 14:46:31 +00007334 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007335 export_dynamic_flag_spec=-rdynamic
7336 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007337
a.rottmann9bc8b932004-02-29 15:18:31 +00007338 cygwin* | mingw* | pw32*)
7339 # When not using gcc, we currently assume that we are using
7340 # Microsoft Visual C++.
7341 # hardcode_libdir_flag_spec is actually meaningless, as there is
7342 # no search path for DLLs.
7343 hardcode_libdir_flag_spec=' '
7344 allow_undefined_flag=unsupported
7345 # Tell ltmain to make .lib files, not .a files.
7346 libext=lib
7347 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007348 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007349 # FIXME: Setting linknames here is a bad hack.
7350 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7351 # The linker will automatically build a .lib file if we build a DLL.
7352 old_archive_From_new_cmds='true'
7353 # FIXME: Should let the user specify the lib program.
7354 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7355 fix_srcfile_path='`cygpath -w "$srcfile"`'
7356 enable_shared_with_static_runtimes=yes
7357 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007358
a.rottmann9bc8b932004-02-29 15:18:31 +00007359 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +00007360 case $host_os in
7361 rhapsody* | darwin1.[012])
7362 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7363 ;;
7364 *) # Darwin 1.3 on
7365 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7366 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7367 else
7368 case ${MACOSX_DEPLOYMENT_TARGET} in
7369 10.[012])
7370 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7371 ;;
7372 10.*)
7373 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7374 ;;
7375 esac
7376 fi
7377 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007378 esac
vapier7f19c022007-02-17 14:46:31 +00007379 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007380 hardcode_direct=no
7381 hardcode_automatic=yes
7382 hardcode_shlibpath_var=unsupported
vapier7f19c022007-02-17 14:46:31 +00007383 whole_archive_flag_spec=''
a.rottmann9bc8b932004-02-29 15:18:31 +00007384 link_all_deplibs=yes
vapier7f19c022007-02-17 14:46:31 +00007385 if test "$GCC" = yes ; then
7386 output_verbose_link_cmd='echo'
7387 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7388 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7389 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7390 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}'
7391 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}'
a.rottmann84e63352003-03-24 09:42:16 +00007392 else
vapier7f19c022007-02-17 14:46:31 +00007393 case $cc_basename in
7394 xlc*)
7395 output_verbose_link_cmd='echo'
7396 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7397 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7398 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7399 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}'
7400 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}'
7401 ;;
7402 *)
7403 ld_shlibs=no
7404 ;;
7405 esac
a.rottmann84e63352003-03-24 09:42:16 +00007406 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007407 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007408
a.rottmann9bc8b932004-02-29 15:18:31 +00007409 dgux*)
7410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411 hardcode_libdir_flag_spec='-L$libdir'
7412 hardcode_shlibpath_var=no
7413 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007414
a.rottmann9bc8b932004-02-29 15:18:31 +00007415 freebsd1*)
7416 ld_shlibs=no
7417 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007418
a.rottmann9bc8b932004-02-29 15:18:31 +00007419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7420 # support. Future versions do this automatically, but an explicit c++rt0.o
7421 # does not break anything, and helps significantly (at the cost of a little
7422 # extra space).
7423 freebsd2.2*)
7424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7425 hardcode_libdir_flag_spec='-R$libdir'
7426 hardcode_direct=yes
7427 hardcode_shlibpath_var=no
7428 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007429
a.rottmann9bc8b932004-02-29 15:18:31 +00007430 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7431 freebsd2*)
7432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7433 hardcode_direct=yes
7434 hardcode_minus_L=yes
7435 hardcode_shlibpath_var=no
7436 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007437
a.rottmann9bc8b932004-02-29 15:18:31 +00007438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +00007439 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007440 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7441 hardcode_libdir_flag_spec='-R$libdir'
7442 hardcode_direct=yes
7443 hardcode_shlibpath_var=no
7444 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007445
a.rottmann9bc8b932004-02-29 15:18:31 +00007446 hpux9*)
7447 if test "$GCC" = yes; then
7448 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'
7449 else
7450 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'
7451 fi
7452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7453 hardcode_libdir_separator=:
7454 hardcode_direct=yes
7455
7456 # hardcode_minus_L: Not really in the search PATH,
7457 # but as the default location of the library.
7458 hardcode_minus_L=yes
7459 export_dynamic_flag_spec='${wl}-E'
7460 ;;
7461
vapier7f19c022007-02-17 14:46:31 +00007462 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007463 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007464 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7465 else
7466 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7467 fi
7468 if test "$with_gnu_ld" = no; then
7469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7470 hardcode_libdir_separator=:
7471
7472 hardcode_direct=yes
7473 export_dynamic_flag_spec='${wl}-E'
7474
7475 # hardcode_minus_L: Not really in the search PATH,
7476 # but as the default location of the library.
7477 hardcode_minus_L=yes
7478 fi
7479 ;;
7480
7481 hpux11*)
7482 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7483 case $host_cpu in
7484 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007485 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7486 ;;
vapier7f19c022007-02-17 14:46:31 +00007487 ia64*)
7488 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7489 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007490 *)
7491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7492 ;;
7493 esac
7494 else
vapier7f19c022007-02-17 14:46:31 +00007495 case $host_cpu in
7496 hppa*64*)
7497 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7498 ;;
7499 ia64*)
7500 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007501 ;;
7502 *)
vapier7f19c022007-02-17 14:46:31 +00007503 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007504 ;;
7505 esac
7506 fi
7507 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7509 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007510
vapier7f19c022007-02-17 14:46:31 +00007511 case $host_cpu in
7512 hppa*64*|ia64*)
7513 hardcode_libdir_flag_spec_ld='+b $libdir'
7514 hardcode_direct=no
7515 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007516 ;;
7517 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007518 hardcode_direct=yes
7519 export_dynamic_flag_spec='${wl}-E'
7520
7521 # hardcode_minus_L: Not really in the search PATH,
7522 # but as the default location of the library.
7523 hardcode_minus_L=yes
7524 ;;
7525 esac
7526 fi
7527 ;;
7528
7529 irix5* | irix6* | nonstopux*)
7530 if test "$GCC" = yes; then
7531 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'
7532 else
7533 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'
7534 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7535 fi
7536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7537 hardcode_libdir_separator=:
7538 link_all_deplibs=yes
7539 ;;
7540
vapier7f19c022007-02-17 14:46:31 +00007541 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7544 else
7545 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7546 fi
7547 hardcode_libdir_flag_spec='-R$libdir'
7548 hardcode_direct=yes
7549 hardcode_shlibpath_var=no
7550 ;;
7551
7552 newsos6)
7553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7554 hardcode_direct=yes
7555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7556 hardcode_libdir_separator=:
7557 hardcode_shlibpath_var=no
7558 ;;
7559
7560 openbsd*)
7561 hardcode_direct=yes
7562 hardcode_shlibpath_var=no
7563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007565 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00007566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7567 export_dynamic_flag_spec='${wl}-E'
7568 else
7569 case $host_os in
7570 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7572 hardcode_libdir_flag_spec='-R$libdir'
7573 ;;
7574 *)
7575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7577 ;;
7578 esac
7579 fi
7580 ;;
7581
7582 os2*)
7583 hardcode_libdir_flag_spec='-L$libdir'
7584 hardcode_minus_L=yes
7585 allow_undefined_flag=unsupported
7586 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'
7587 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7588 ;;
7589
7590 osf3*)
7591 if test "$GCC" = yes; then
7592 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7593 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'
7594 else
7595 allow_undefined_flag=' -expect_unresolved \*'
7596 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'
7597 fi
7598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7599 hardcode_libdir_separator=:
7600 ;;
7601
7602 osf4* | osf5*) # as osf3* with the addition of -msym flag
7603 if test "$GCC" = yes; then
7604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7605 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'
7606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7607 else
7608 allow_undefined_flag=' -expect_unresolved \*'
7609 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'
7610 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +00007611 $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'
a.rottmann9bc8b932004-02-29 15:18:31 +00007612
7613 # Both c and cxx compiler support -rpath directly
7614 hardcode_libdir_flag_spec='-rpath $libdir'
7615 fi
7616 hardcode_libdir_separator=:
7617 ;;
7618
a.rottmann9bc8b932004-02-29 15:18:31 +00007619 solaris*)
7620 no_undefined_flag=' -z text'
7621 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007622 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +00007623 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7624 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7625 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7626 else
vapier7f19c022007-02-17 14:46:31 +00007627 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +00007628 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7629 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7630 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7631 fi
7632 hardcode_libdir_flag_spec='-R$libdir'
7633 hardcode_shlibpath_var=no
7634 case $host_os in
7635 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00007636 *)
7637 # The compiler driver will combine linker options so we
7638 # cannot just pass the convience library names through
7639 # without $wl, iff we do not link with $LD.
7640 # Luckily, gcc supports the same syntax we need for Sun Studio.
7641 # Supported since Solaris 2.6 (maybe 2.5.1?)
7642 case $wlarc in
7643 '')
7644 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7645 *)
7646 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' ;;
7647 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007648 esac
7649 link_all_deplibs=yes
7650 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007651
a.rottmann9bc8b932004-02-29 15:18:31 +00007652 sunos4*)
7653 if test "x$host_vendor" = xsequent; then
7654 # Use $CC to link under sequent, because it throws in some extra .o
7655 # files that make .init and .fini sections work.
7656 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7657 else
7658 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7659 fi
7660 hardcode_libdir_flag_spec='-L$libdir'
7661 hardcode_direct=yes
7662 hardcode_minus_L=yes
7663 hardcode_shlibpath_var=no
7664 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007665
a.rottmann9bc8b932004-02-29 15:18:31 +00007666 sysv4)
7667 case $host_vendor in
7668 sni)
7669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7670 hardcode_direct=yes # is this really true???
7671 ;;
7672 siemens)
7673 ## LD is ld it makes a PLAMLIB
7674 ## CC just makes a GrossModule.
7675 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7676 reload_cmds='$CC -r -o $output$reload_objs'
7677 hardcode_direct=no
7678 ;;
7679 motorola)
7680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7682 ;;
7683 esac
7684 runpath_var='LD_RUN_PATH'
7685 hardcode_shlibpath_var=no
7686 ;;
7687
7688 sysv4.3*)
7689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7690 hardcode_shlibpath_var=no
7691 export_dynamic_flag_spec='-Bexport'
7692 ;;
7693
7694 sysv4*MP*)
7695 if test -d /usr/nec; then
7696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7697 hardcode_shlibpath_var=no
7698 runpath_var=LD_RUN_PATH
7699 hardcode_runpath_var=yes
7700 ld_shlibs=yes
7701 fi
7702 ;;
7703
vapier7f19c022007-02-17 14:46:31 +00007704 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7705 no_undefined_flag='${wl}-z,text'
7706 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007707 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007708 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00007709
a.rottmann9bc8b932004-02-29 15:18:31 +00007710 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007711 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007713 else
vapier7f19c022007-02-17 14:46:31 +00007714 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007716 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007717 ;;
7718
vapier7f19c022007-02-17 14:46:31 +00007719 sysv5* | sco3.2v5* | sco5v6*)
7720 # Note: We can NOT use -z defs as we might desire, because we do not
7721 # link with -lc, and that would cause any symbols used from libc to
7722 # always be unresolved, which means just about no library would
7723 # ever link correctly. If we're not using GNU ld we use -z text
7724 # though, which does catch some bad symbols but isn't as heavy-handed
7725 # as -z defs.
7726 no_undefined_flag='${wl}-z,text'
7727 allow_undefined_flag='${wl}-z,nodefs'
7728 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007729 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007730 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7731 hardcode_libdir_separator=':'
7732 link_all_deplibs=yes
7733 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00007734 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00007735
7736 if test "$GCC" = yes; then
7737 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7738 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7739 else
7740 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7741 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7742 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007743 ;;
7744
7745 uts4*)
7746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7747 hardcode_libdir_flag_spec='-L$libdir'
7748 hardcode_shlibpath_var=no
7749 ;;
7750
7751 *)
7752 ld_shlibs=no
7753 ;;
7754 esac
7755 fi
7756
mlcreech94984912008-03-04 19:03:08 +00007757{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7758echo "${ECHO_T}$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00007759test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007760
a.rottmann9bc8b932004-02-29 15:18:31 +00007761#
7762# Do we need to explicitly link libc?
7763#
7764case "x$archive_cmds_need_lc" in
7765x|xyes)
7766 # Assume -lc should be added
7767 archive_cmds_need_lc=yes
7768
7769 if test "$enable_shared" = yes && test "$GCC" = yes; then
7770 case $archive_cmds in
7771 *'~'*)
7772 # FIXME: we may have to deal with multi-command sequences.
7773 ;;
7774 '$CC '*)
7775 # Test whether the compiler implicitly links with -lc since on some
7776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7777 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +00007778 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7779echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007780 $rm conftest*
7781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7782
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784 (eval $ac_compile) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } 2>conftest.err; then
7788 soname=conftest
7789 lib=conftest
7790 libobjs=conftest.$ac_objext
7791 deplibs=
7792 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00007793 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00007794 compiler_flags=-v
7795 linker_flags=-v
7796 verstring=
7797 output_objdir=.
7798 libname=conftest
7799 lt_save_allow_undefined_flag=$allow_undefined_flag
7800 allow_undefined_flag=
7801 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7802 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }
7806 then
7807 archive_cmds_need_lc=no
7808 else
7809 archive_cmds_need_lc=yes
7810 fi
7811 allow_undefined_flag=$lt_save_allow_undefined_flag
7812 else
7813 cat conftest.err 1>&5
7814 fi
7815 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +00007816 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7817echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007818 ;;
7819 esac
drh71eb93e2001-09-28 01:34:43 +00007820 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007821 ;;
7822esac
drh71eb93e2001-09-28 01:34:43 +00007823
mlcreech94984912008-03-04 19:03:08 +00007824{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7825echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007826library_names_spec=
7827libname_spec='lib$name'
7828soname_spec=
vapier7f19c022007-02-17 14:46:31 +00007829shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00007830postinstall_cmds=
7831postuninstall_cmds=
7832finish_cmds=
7833finish_eval=
7834shlibpath_var=
7835shlibpath_overrides_runpath=unknown
7836version_type=none
7837dynamic_linker="$host_os ld.so"
7838sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007839if test "$GCC" = yes; then
7840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7841 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7842 # if the path contains ";" then we assume it to be the separator
7843 # otherwise default to the standard path separator (i.e. ":") - it is
7844 # assumed that no part of a normal pathname contains ";" but that should
7845 # okay in the real world where ";" in dirpaths is itself problematic.
7846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7847 else
7848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7849 fi
7850else
7851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7852fi
7853need_lib_prefix=unknown
7854hardcode_into_libs=no
7855
7856# when you set need_version to no, make sure it does not cause -set_version
7857# flags to be left without arguments
7858need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00007859
7860case $host_os in
7861aix3*)
7862 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007864 shlibpath_var=LIBPATH
7865
a.rottmann9bc8b932004-02-29 15:18:31 +00007866 # AIX 3 has no versioning support, so we append a major version to the name.
7867 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007868 ;;
7869
7870aix4* | aix5*)
7871 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00007872 need_lib_prefix=no
7873 need_version=no
7874 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007875 if test "$host_cpu" = ia64; then
7876 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00007877 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007878 shlibpath_var=LD_LIBRARY_PATH
7879 else
7880 # With GCC up to 2.95.x, collect2 would create an import file
7881 # for dependence libraries. The import file would start with
7882 # the line `#! .'. This would cause the generated library to
7883 # depend on `.', always an invalid library. This was fixed in
7884 # development snapshots of GCC prior to 3.0.
7885 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007886 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7888 echo ' yes '
7889 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7890 :
7891 else
7892 can_build_shared=no
7893 fi
7894 ;;
drh71eb93e2001-09-28 01:34:43 +00007895 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007896 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7897 # soname into executable. Probably we can add versioning support to
7898 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00007899 if test "$aix_use_runtimelinking" = yes; then
7900 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7901 # instead of lib<name>.a to let people know that these are not
7902 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00007903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007904 else
7905 # We preserve .a as extension for shared libraries through AIX4.2
7906 # and later when we are not doing run time linking.
7907 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007908 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007909 fi
7910 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00007911 fi
7912 ;;
7913
7914amigaos*)
7915 library_names_spec='$libname.ixlibrary $libname.a'
7916 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00007917 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'
drh71eb93e2001-09-28 01:34:43 +00007918 ;;
7919
7920beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007921 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007922 dynamic_linker="$host_os ld.so"
7923 shlibpath_var=LIBRARY_PATH
7924 ;;
7925
vapier7f19c022007-02-17 14:46:31 +00007926bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00007927 version_type=linux
7928 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7932 shlibpath_var=LD_LIBRARY_PATH
7933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7935 # the default ld.so.conf also contains /usr/contrib/lib and
7936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7937 # libtool to hard-code these into programs
7938 ;;
7939
7940cygwin* | mingw* | pw32*)
7941 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00007942 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00007943 need_version=no
7944 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007945
drh71eb93e2001-09-28 01:34:43 +00007946 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00007947 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00007948 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7950 postinstall_cmds='base_file=`basename \${file}`~
7951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007952 dldir=$destdir/`dirname \$dlpath`~
7953 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00007954 $install_prog $dir/$dlname \$dldir/$dlname~
7955 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +00007956 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007957 dlpath=$dir/\$dldll~
7958 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00007959 shlibpath_overrides_runpath=yes
7960
7961 case $host_os in
7962 cygwin*)
7963 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7964 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7965 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7966 ;;
7967 mingw*)
7968 # MinGW DLLs use traditional 'lib' prefix
7969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7970 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7971 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7972 # It is most probably a Windows format PATH printed by
7973 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7974 # path with ; separators, and with drive letters. We can handle the
7975 # drive letters (cygwin fileutils understands them), so leave them,
7976 # especially as we might pass files found there to a mingw objdump,
7977 # which wouldn't understand a cygwinified path. Ahh.
7978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7979 else
7980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7981 fi
7982 ;;
7983 pw32*)
7984 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00007985 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +00007986 ;;
7987 esac
drh71eb93e2001-09-28 01:34:43 +00007988 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007989
vapier7f19c022007-02-17 14:46:31 +00007990 linux*)
7991 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7993 supports_anon_versioning=no
7994 case `$LD -v 2>/dev/null` in
7995 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7996 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7997 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7998 *\ 2.11.*) ;; # other 2.11 versions
7999 *) supports_anon_versioning=yes ;;
8000 esac
8001 if test $supports_anon_versioning = yes; then
8002 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8003cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8004$echo "local: *; };" >> $output_objdir/$libname.ver~
8005 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8006 else
8007 $archive_expsym_cmds="$archive_cmds"
8008 fi
8009 else
8010 ld_shlibs=no
8011 fi
8012 ;;
8013
drh71eb93e2001-09-28 01:34:43 +00008014 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008015 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008016 ;;
8017 esac
8018 dynamic_linker='Win32 ld.exe'
8019 # FIXME: first we should search . and the directory the executable is in
8020 shlibpath_var=PATH
8021 ;;
8022
8023darwin* | rhapsody*)
8024 dynamic_linker="$host_os dyld"
8025 version_type=darwin
8026 need_lib_prefix=no
8027 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008028 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8029 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008030 shlibpath_overrides_runpath=yes
8031 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +00008033 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8034 if test "$GCC" = yes; then
8035 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"`
8036 else
8037 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8038 fi
8039 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8040 ;;
8041
8042dgux*)
8043 version_type=linux
8044 need_lib_prefix=no
8045 need_version=no
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8047 soname_spec='${libname}${release}${shared_ext}$major'
8048 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008049 ;;
8050
a.rottmann84e63352003-03-24 09:42:16 +00008051freebsd1*)
8052 dynamic_linker=no
8053 ;;
8054
a.rottmann9bc8b932004-02-29 15:18:31 +00008055kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008056 version_type=linux
8057 need_lib_prefix=no
8058 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8060 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008061 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00008062 shlibpath_overrides_runpath=no
8063 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008064 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00008065 ;;
8066
vapier7f19c022007-02-17 14:46:31 +00008067freebsd* | dragonfly*)
8068 # DragonFly does not have aout. When/if they implement a new
8069 # versioning mechanism, adjust this.
8070 if test -x /usr/bin/objformat; then
8071 objformat=`/usr/bin/objformat`
8072 else
8073 case $host_os in
8074 freebsd[123]*) objformat=aout ;;
8075 *) objformat=elf ;;
8076 esac
8077 fi
8078 # Handle Gentoo/FreeBSD as it was Linux
8079 case $host_vendor in
8080 gentoo)
8081 version_type=linux ;;
8082 *)
8083 version_type=freebsd-$objformat ;;
8084 esac
8085
drh71eb93e2001-09-28 01:34:43 +00008086 case $version_type in
8087 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008089 need_version=no
8090 need_lib_prefix=no
8091 ;;
8092 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008093 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008094 need_version=yes
8095 ;;
vapier7f19c022007-02-17 14:46:31 +00008096 linux)
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8098 soname_spec='${libname}${release}${shared_ext}$major'
8099 need_lib_prefix=no
8100 need_version=no
8101 ;;
drh71eb93e2001-09-28 01:34:43 +00008102 esac
8103 shlibpath_var=LD_LIBRARY_PATH
8104 case $host_os in
8105 freebsd2*)
8106 shlibpath_overrides_runpath=yes
8107 ;;
vapier7f19c022007-02-17 14:46:31 +00008108 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008109 shlibpath_overrides_runpath=yes
8110 hardcode_into_libs=yes
8111 ;;
vapier7f19c022007-02-17 14:46:31 +00008112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008114 shlibpath_overrides_runpath=no
8115 hardcode_into_libs=yes
8116 ;;
vapier7f19c022007-02-17 14:46:31 +00008117 freebsd*) # from 4.6 on
8118 shlibpath_overrides_runpath=yes
8119 hardcode_into_libs=yes
8120 ;;
drh71eb93e2001-09-28 01:34:43 +00008121 esac
8122 ;;
8123
8124gnu*)
8125 version_type=linux
8126 need_lib_prefix=no
8127 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8129 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008130 shlibpath_var=LD_LIBRARY_PATH
8131 hardcode_into_libs=yes
8132 ;;
8133
8134hpux9* | hpux10* | hpux11*)
8135 # Give a soname corresponding to the major version so that dld.sl refuses to
8136 # link against other versions.
8137 version_type=sunos
8138 need_lib_prefix=no
8139 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008140 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008141 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008142 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008143 hardcode_into_libs=yes
8144 dynamic_linker="$host_os dld.so"
8145 shlibpath_var=LD_LIBRARY_PATH
8146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8148 soname_spec='${libname}${release}${shared_ext}$major'
8149 if test "X$HPUX_IA64_MODE" = X32; then
8150 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8151 else
8152 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8153 fi
8154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8155 ;;
8156 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +00008157 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008158 hardcode_into_libs=yes
8159 dynamic_linker="$host_os dld.sl"
8160 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8163 soname_spec='${libname}${release}${shared_ext}$major'
8164 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8166 ;;
8167 *)
vapier7f19c022007-02-17 14:46:31 +00008168 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008169 dynamic_linker="$host_os dld.sl"
8170 shlibpath_var=SHLIB_PATH
8171 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8173 soname_spec='${libname}${release}${shared_ext}$major'
8174 ;;
8175 esac
drh71eb93e2001-09-28 01:34:43 +00008176 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8177 postinstall_cmds='chmod 555 $lib'
8178 ;;
8179
vapier7f19c022007-02-17 14:46:31 +00008180interix3*)
8181 version_type=linux
8182 need_lib_prefix=no
8183 need_version=no
8184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8185 soname_spec='${libname}${release}${shared_ext}$major'
8186 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8187 shlibpath_var=LD_LIBRARY_PATH
8188 shlibpath_overrides_runpath=no
8189 hardcode_into_libs=yes
8190 ;;
8191
a.rottmann84e63352003-03-24 09:42:16 +00008192irix5* | irix6* | nonstopux*)
8193 case $host_os in
8194 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008195 *)
8196 if test "$lt_cv_prog_gnu_ld" = yes; then
8197 version_type=linux
8198 else
8199 version_type=irix
8200 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008201 esac
drh71eb93e2001-09-28 01:34:43 +00008202 need_lib_prefix=no
8203 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008204 soname_spec='${libname}${release}${shared_ext}$major'
8205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008206 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008207 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008208 libsuff= shlibsuff=
8209 ;;
8210 *)
8211 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008212 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8213 libsuff= shlibsuff= libmagic=32-bit;;
8214 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8215 libsuff=32 shlibsuff=N32 libmagic=N32;;
8216 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8217 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008218 *) libsuff= shlibsuff= libmagic=never-match;;
8219 esac
8220 ;;
8221 esac
8222 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8223 shlibpath_overrides_runpath=no
8224 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8225 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008226 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008227 ;;
8228
8229# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008230linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008231 dynamic_linker=no
8232 ;;
8233
8234# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00008235linux*)
drh71eb93e2001-09-28 01:34:43 +00008236 version_type=linux
8237 need_lib_prefix=no
8238 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8242 shlibpath_var=LD_LIBRARY_PATH
8243 shlibpath_overrides_runpath=no
8244 # This implies no fast_install, which is unacceptable.
8245 # Some rework will be needed to allow for fast_install
8246 # before this can be enabled.
8247 hardcode_into_libs=yes
8248
a.rottmann9bc8b932004-02-29 15:18:31 +00008249 # Append ld.so.conf contents to the search path
8250 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +00008251 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' ' '`
8252 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008253 fi
8254
drh71eb93e2001-09-28 01:34:43 +00008255 # We used to test for /lib/ld.so.1 and disable shared libraries on
8256 # powerpc, because MkLinux only supported shared libraries with the
8257 # GNU dynamic linker. Since this was broken with cross compilers,
8258 # most powerpc-linux boxes support dynamic linking these days and
8259 # people can always --disable-shared, the test was removed, and we
8260 # assume the GNU/Linux dynamic linker is in use.
8261 dynamic_linker='GNU/Linux ld.so'
8262 ;;
8263
a.rottmann9bc8b932004-02-29 15:18:31 +00008264knetbsd*-gnu)
8265 version_type=linux
8266 need_lib_prefix=no
8267 need_version=no
8268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8269 soname_spec='${libname}${release}${shared_ext}$major'
8270 shlibpath_var=LD_LIBRARY_PATH
8271 shlibpath_overrides_runpath=no
8272 hardcode_into_libs=yes
8273 dynamic_linker='GNU ld.so'
8274 ;;
8275
drh71eb93e2001-09-28 01:34:43 +00008276netbsd*)
8277 version_type=sunos
8278 need_lib_prefix=no
8279 need_version=no
8280 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8283 dynamic_linker='NetBSD (a.out) ld.so'
8284 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8286 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008287 dynamic_linker='NetBSD ld.elf_so'
8288 fi
8289 shlibpath_var=LD_LIBRARY_PATH
8290 shlibpath_overrides_runpath=yes
8291 hardcode_into_libs=yes
8292 ;;
8293
8294newsos6)
8295 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8297 shlibpath_var=LD_LIBRARY_PATH
8298 shlibpath_overrides_runpath=yes
8299 ;;
8300
8301nto-qnx*)
8302 version_type=linux
8303 need_lib_prefix=no
8304 need_version=no
8305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8306 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008307 shlibpath_var=LD_LIBRARY_PATH
8308 shlibpath_overrides_runpath=yes
8309 ;;
8310
drh71eb93e2001-09-28 01:34:43 +00008311openbsd*)
8312 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008313 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008314 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008315 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8316 case $host_os in
8317 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8318 *) need_version=no ;;
8319 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8322 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00008323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008324 case $host_os in
8325 openbsd2.[89] | openbsd2.[89].*)
8326 shlibpath_overrides_runpath=no
8327 ;;
8328 *)
8329 shlibpath_overrides_runpath=yes
8330 ;;
8331 esac
a.rottmann84e63352003-03-24 09:42:16 +00008332 else
8333 shlibpath_overrides_runpath=yes
8334 fi
drh71eb93e2001-09-28 01:34:43 +00008335 ;;
8336
8337os2*)
8338 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008339 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008340 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008341 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008342 dynamic_linker='OS/2 ld.exe'
8343 shlibpath_var=LIBPATH
8344 ;;
8345
8346osf3* | osf4* | osf5*)
8347 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008348 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008349 need_version=no
8350 soname_spec='${libname}${release}${shared_ext}$major'
8351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008352 shlibpath_var=LD_LIBRARY_PATH
8353 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8354 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8355 ;;
8356
drh71eb93e2001-09-28 01:34:43 +00008357solaris*)
8358 version_type=linux
8359 need_lib_prefix=no
8360 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008363 shlibpath_var=LD_LIBRARY_PATH
8364 shlibpath_overrides_runpath=yes
8365 hardcode_into_libs=yes
8366 # ldd complains unless libraries are executable
8367 postinstall_cmds='chmod +x $lib'
8368 ;;
8369
8370sunos4*)
8371 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00008372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008373 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8374 shlibpath_var=LD_LIBRARY_PATH
8375 shlibpath_overrides_runpath=yes
8376 if test "$with_gnu_ld" = yes; then
8377 need_lib_prefix=no
8378 fi
8379 need_version=yes
8380 ;;
8381
vapier7f19c022007-02-17 14:46:31 +00008382sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00008383 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8385 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008386 shlibpath_var=LD_LIBRARY_PATH
8387 case $host_vendor in
8388 sni)
8389 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00008390 need_lib_prefix=no
8391 export_dynamic_flag_spec='${wl}-Blargedynsym'
8392 runpath_var=LD_RUN_PATH
8393 ;;
8394 siemens)
8395 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00008396 ;;
8397 motorola)
8398 need_lib_prefix=no
8399 need_version=no
8400 shlibpath_overrides_runpath=no
8401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8402 ;;
8403 esac
8404 ;;
8405
8406sysv4*MP*)
8407 if test -d /usr/nec ;then
8408 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8410 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00008411 shlibpath_var=LD_LIBRARY_PATH
8412 fi
8413 ;;
8414
vapier7f19c022007-02-17 14:46:31 +00008415sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8416 version_type=freebsd-elf
8417 need_lib_prefix=no
8418 need_version=no
8419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8420 soname_spec='${libname}${release}${shared_ext}$major'
8421 shlibpath_var=LD_LIBRARY_PATH
8422 hardcode_into_libs=yes
8423 if test "$with_gnu_ld" = yes; then
8424 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8425 shlibpath_overrides_runpath=no
8426 else
8427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8428 shlibpath_overrides_runpath=yes
8429 case $host_os in
8430 sco3.2v5*)
8431 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8432 ;;
8433 esac
8434 fi
8435 sys_lib_dlsearch_path_spec='/usr/lib'
8436 ;;
8437
a.rottmann9bc8b932004-02-29 15:18:31 +00008438uts4*)
8439 version_type=linux
8440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8441 soname_spec='${libname}${release}${shared_ext}$major'
8442 shlibpath_var=LD_LIBRARY_PATH
8443 ;;
8444
drh71eb93e2001-09-28 01:34:43 +00008445*)
8446 dynamic_linker=no
8447 ;;
8448esac
mlcreech94984912008-03-04 19:03:08 +00008449{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8450echo "${ECHO_T}$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008451test "$dynamic_linker" = no && can_build_shared=no
8452
vapier7f19c022007-02-17 14:46:31 +00008453variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8454if test "$GCC" = yes; then
8455 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8456fi
8457
mlcreech94984912008-03-04 19:03:08 +00008458{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8459echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008460hardcode_action=
8461if test -n "$hardcode_libdir_flag_spec" || \
vapier7f19c022007-02-17 14:46:31 +00008462 test -n "$runpath_var" || \
8463 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00008464
a.rottmann9bc8b932004-02-29 15:18:31 +00008465 # We can hardcode non-existant directories.
8466 if test "$hardcode_direct" != no &&
8467 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8468 # have to relink, otherwise we might link with an installed library
8469 # when we should be linking with a yet-to-be-installed one
8470 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8471 test "$hardcode_minus_L" != no; then
8472 # Linking always hardcodes the temporary library directory.
8473 hardcode_action=relink
8474 else
8475 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8476 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00008477 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008478else
8479 # We cannot hardcode anything, or else we can only hardcode existing
8480 # directories.
8481 hardcode_action=unsupported
8482fi
mlcreech94984912008-03-04 19:03:08 +00008483{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8484echo "${ECHO_T}$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008485
8486if test "$hardcode_action" = relink; then
8487 # Fast installation is not supported
8488 enable_fast_install=no
8489elif test "$shlibpath_overrides_runpath" = yes ||
8490 test "$enable_shared" = no; then
8491 # Fast installation is not necessary
8492 enable_fast_install=needless
8493fi
8494
a.rottmann9bc8b932004-02-29 15:18:31 +00008495striplib=
8496old_striplib=
mlcreech94984912008-03-04 19:03:08 +00008497{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8498echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008499if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8500 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8501 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
mlcreech94984912008-03-04 19:03:08 +00008502 { echo "$as_me:$LINENO: result: yes" >&5
8503echo "${ECHO_T}yes" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008504else
8505# FIXME - insert some real tests, host_os isn't really good enough
8506 case $host_os in
8507 darwin*)
8508 if test -n "$STRIP" ; then
8509 striplib="$STRIP -x"
mlcreech94984912008-03-04 19:03:08 +00008510 { echo "$as_me:$LINENO: result: yes" >&5
8511echo "${ECHO_T}yes" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008512 else
mlcreech94984912008-03-04 19:03:08 +00008513 { echo "$as_me:$LINENO: result: no" >&5
8514echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008515fi
8516 ;;
8517 *)
mlcreech94984912008-03-04 19:03:08 +00008518 { echo "$as_me:$LINENO: result: no" >&5
8519echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008520 ;;
8521 esac
a.rottmann84e63352003-03-24 09:42:16 +00008522fi
8523
drh71eb93e2001-09-28 01:34:43 +00008524if test "x$enable_dlopen" != xyes; then
8525 enable_dlopen=unknown
8526 enable_dlopen_self=unknown
8527 enable_dlopen_self_static=unknown
8528else
8529 lt_cv_dlopen=no
8530 lt_cv_dlopen_libs=
8531
8532 case $host_os in
8533 beos*)
8534 lt_cv_dlopen="load_add_on"
8535 lt_cv_dlopen_libs=
8536 lt_cv_dlopen_self=yes
8537 ;;
8538
a.rottmann9bc8b932004-02-29 15:18:31 +00008539 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00008540 lt_cv_dlopen="LoadLibrary"
8541 lt_cv_dlopen_libs=
8542 ;;
8543
a.rottmann9bc8b932004-02-29 15:18:31 +00008544 cygwin*)
8545 lt_cv_dlopen="dlopen"
8546 lt_cv_dlopen_libs=
8547 ;;
8548
8549 darwin*)
8550 # if libdl is installed we need to link against it
mlcreech94984912008-03-04 19:03:08 +00008551 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8552echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008553if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555else
8556 ac_check_lib_save_LIBS=$LIBS
8557LIBS="-ldl $LIBS"
8558cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h. */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h. */
8564
mlcreech94984912008-03-04 19:03:08 +00008565/* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00008568#ifdef __cplusplus
8569extern "C"
8570#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00008571char dlopen ();
8572int
8573main ()
8574{
mlcreech94984912008-03-04 19:03:08 +00008575return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00008576 ;
8577 return 0;
8578}
8579_ACEOF
8580rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008581if { (ac_try="$ac_link"
8582case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00008588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest$ac_exeext &&
8597 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008598 ac_cv_lib_dl_dlopen=yes
8599else
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
mlcreech94984912008-03-04 19:03:08 +00008603 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008604fi
mlcreech94984912008-03-04 19:03:08 +00008605
8606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00008607 conftest$ac_exeext conftest.$ac_ext
8608LIBS=$ac_check_lib_save_LIBS
8609fi
mlcreech94984912008-03-04 19:03:08 +00008610{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8611echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008612if test $ac_cv_lib_dl_dlopen = yes; then
8613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8614else
8615
8616 lt_cv_dlopen="dyld"
8617 lt_cv_dlopen_libs=
8618 lt_cv_dlopen_self=yes
8619
8620fi
8621
8622 ;;
8623
drh71eb93e2001-09-28 01:34:43 +00008624 *)
mlcreech94984912008-03-04 19:03:08 +00008625 { echo "$as_me:$LINENO: checking for shl_load" >&5
8626echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008627if test "${ac_cv_func_shl_load+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629else
8630 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008631/* confdefs.h. */
8632_ACEOF
8633cat confdefs.h >>conftest.$ac_ext
8634cat >>conftest.$ac_ext <<_ACEOF
8635/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008636/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8638#define shl_load innocuous_shl_load
8639
drh71eb93e2001-09-28 01:34:43 +00008640/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008641 which can conflict with char shl_load (); below.
8642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8643 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008644
a.rottmann84e63352003-03-24 09:42:16 +00008645#ifdef __STDC__
8646# include <limits.h>
8647#else
8648# include <assert.h>
8649#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008650
8651#undef shl_load
8652
mlcreech94984912008-03-04 19:03:08 +00008653/* Override any GCC internal prototype to avoid an error.
8654 Use char because int might match the return type of a GCC
8655 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008656#ifdef __cplusplus
8657extern "C"
8658#endif
drh71eb93e2001-09-28 01:34:43 +00008659char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008660/* The GNU C library defines this for functions which it implements
8661 to always fail with ENOSYS. Some functions are actually named
8662 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +00008663#if defined __stub_shl_load || defined __stub___shl_load
drh71eb93e2001-09-28 01:34:43 +00008664choke me
drh71eb93e2001-09-28 01:34:43 +00008665#endif
8666
a.rottmann84e63352003-03-24 09:42:16 +00008667int
8668main ()
8669{
mlcreech94984912008-03-04 19:03:08 +00008670return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008671 ;
8672 return 0;
8673}
8674_ACEOF
8675rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008676if { (ac_try="$ac_link"
8677case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680esac
8681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008683 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest$ac_exeext &&
8692 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008693 ac_cv_func_shl_load=yes
8694else
8695 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008696sed 's/^/| /' conftest.$ac_ext >&5
8697
mlcreech94984912008-03-04 19:03:08 +00008698 ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008699fi
mlcreech94984912008-03-04 19:03:08 +00008700
8701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008702 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008703fi
mlcreech94984912008-03-04 19:03:08 +00008704{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8705echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008706if test $ac_cv_func_shl_load = yes; then
8707 lt_cv_dlopen="shl_load"
8708else
mlcreech94984912008-03-04 19:03:08 +00008709 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8710echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008711if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714 ac_check_lib_save_LIBS=$LIBS
8715LIBS="-ldld $LIBS"
8716cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008717/* confdefs.h. */
8718_ACEOF
8719cat confdefs.h >>conftest.$ac_ext
8720cat >>conftest.$ac_ext <<_ACEOF
8721/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008722
mlcreech94984912008-03-04 19:03:08 +00008723/* Override any GCC internal prototype to avoid an error.
8724 Use char because int might match the return type of a GCC
8725 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008726#ifdef __cplusplus
8727extern "C"
8728#endif
drh71eb93e2001-09-28 01:34:43 +00008729char shl_load ();
8730int
8731main ()
8732{
mlcreech94984912008-03-04 19:03:08 +00008733return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008734 ;
8735 return 0;
8736}
8737_ACEOF
8738rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008739if { (ac_try="$ac_link"
8740case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743esac
8744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008746 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008751 (exit $ac_status); } && {
8752 test -z "$ac_c_werror_flag" ||
8753 test ! -s conftest.err
8754 } && test -s conftest$ac_exeext &&
8755 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008756 ac_cv_lib_dld_shl_load=yes
8757else
8758 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008759sed 's/^/| /' conftest.$ac_ext >&5
8760
mlcreech94984912008-03-04 19:03:08 +00008761 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008762fi
mlcreech94984912008-03-04 19:03:08 +00008763
8764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008765 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008766LIBS=$ac_check_lib_save_LIBS
8767fi
mlcreech94984912008-03-04 19:03:08 +00008768{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8769echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008770if test $ac_cv_lib_dld_shl_load = yes; then
8771 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8772else
mlcreech94984912008-03-04 19:03:08 +00008773 { echo "$as_me:$LINENO: checking for dlopen" >&5
8774echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008775if test "${ac_cv_func_dlopen+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8777else
8778 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008779/* confdefs.h. */
8780_ACEOF
8781cat confdefs.h >>conftest.$ac_ext
8782cat >>conftest.$ac_ext <<_ACEOF
8783/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008784/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8786#define dlopen innocuous_dlopen
8787
a.rottmann84e63352003-03-24 09:42:16 +00008788/* System header to define __stub macros and hopefully few prototypes,
8789 which can conflict with char dlopen (); below.
8790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008792
a.rottmann84e63352003-03-24 09:42:16 +00008793#ifdef __STDC__
8794# include <limits.h>
8795#else
8796# include <assert.h>
8797#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008798
8799#undef dlopen
8800
mlcreech94984912008-03-04 19:03:08 +00008801/* Override any GCC internal prototype to avoid an error.
8802 Use char because int might match the return type of a GCC
8803 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008804#ifdef __cplusplus
8805extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00008806#endif
a.rottmann84e63352003-03-24 09:42:16 +00008807char dlopen ();
8808/* The GNU C library defines this for functions which it implements
8809 to always fail with ENOSYS. Some functions are actually named
8810 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +00008811#if defined __stub_dlopen || defined __stub___dlopen
a.rottmann84e63352003-03-24 09:42:16 +00008812choke me
a.rottmann84e63352003-03-24 09:42:16 +00008813#endif
8814
8815int
8816main ()
8817{
mlcreech94984912008-03-04 19:03:08 +00008818return dlopen ();
a.rottmann84e63352003-03-24 09:42:16 +00008819 ;
8820 return 0;
8821}
8822_ACEOF
8823rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008824if { (ac_try="$ac_link"
8825case "(($ac_try" in
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8828esac
8829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008831 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008836 (exit $ac_status); } && {
8837 test -z "$ac_c_werror_flag" ||
8838 test ! -s conftest.err
8839 } && test -s conftest$ac_exeext &&
8840 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00008841 ac_cv_func_dlopen=yes
8842else
8843 echo "$as_me: failed program was:" >&5
8844sed 's/^/| /' conftest.$ac_ext >&5
8845
mlcreech94984912008-03-04 19:03:08 +00008846 ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00008847fi
mlcreech94984912008-03-04 19:03:08 +00008848
8849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008850 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008851fi
mlcreech94984912008-03-04 19:03:08 +00008852{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8853echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008854if test $ac_cv_func_dlopen = yes; then
8855 lt_cv_dlopen="dlopen"
8856else
mlcreech94984912008-03-04 19:03:08 +00008857 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8858echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008859if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861else
8862 ac_check_lib_save_LIBS=$LIBS
8863LIBS="-ldl $LIBS"
8864cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008865/* confdefs.h. */
8866_ACEOF
8867cat confdefs.h >>conftest.$ac_ext
8868cat >>conftest.$ac_ext <<_ACEOF
8869/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008870
mlcreech94984912008-03-04 19:03:08 +00008871/* Override any GCC internal prototype to avoid an error.
8872 Use char because int might match the return type of a GCC
8873 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008874#ifdef __cplusplus
8875extern "C"
8876#endif
drh71eb93e2001-09-28 01:34:43 +00008877char dlopen ();
8878int
8879main ()
8880{
mlcreech94984912008-03-04 19:03:08 +00008881return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008882 ;
8883 return 0;
8884}
8885_ACEOF
8886rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008887if { (ac_try="$ac_link"
8888case "(($ac_try" in
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8891esac
8892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008894 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008899 (exit $ac_status); } && {
8900 test -z "$ac_c_werror_flag" ||
8901 test ! -s conftest.err
8902 } && test -s conftest$ac_exeext &&
8903 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008904 ac_cv_lib_dl_dlopen=yes
8905else
8906 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008907sed 's/^/| /' conftest.$ac_ext >&5
8908
mlcreech94984912008-03-04 19:03:08 +00008909 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008910fi
mlcreech94984912008-03-04 19:03:08 +00008911
8912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008913 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008914LIBS=$ac_check_lib_save_LIBS
8915fi
mlcreech94984912008-03-04 19:03:08 +00008916{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8917echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008918if test $ac_cv_lib_dl_dlopen = yes; then
8919 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8920else
mlcreech94984912008-03-04 19:03:08 +00008921 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8922echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008923if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925else
8926 ac_check_lib_save_LIBS=$LIBS
8927LIBS="-lsvld $LIBS"
8928cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008929/* confdefs.h. */
8930_ACEOF
8931cat confdefs.h >>conftest.$ac_ext
8932cat >>conftest.$ac_ext <<_ACEOF
8933/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008934
mlcreech94984912008-03-04 19:03:08 +00008935/* Override any GCC internal prototype to avoid an error.
8936 Use char because int might match the return type of a GCC
8937 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008938#ifdef __cplusplus
8939extern "C"
8940#endif
drh71eb93e2001-09-28 01:34:43 +00008941char dlopen ();
8942int
8943main ()
8944{
mlcreech94984912008-03-04 19:03:08 +00008945return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008946 ;
8947 return 0;
8948}
8949_ACEOF
8950rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008951if { (ac_try="$ac_link"
8952case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8955esac
8956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008958 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008963 (exit $ac_status); } && {
8964 test -z "$ac_c_werror_flag" ||
8965 test ! -s conftest.err
8966 } && test -s conftest$ac_exeext &&
8967 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008968 ac_cv_lib_svld_dlopen=yes
8969else
8970 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008971sed 's/^/| /' conftest.$ac_ext >&5
8972
mlcreech94984912008-03-04 19:03:08 +00008973 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008974fi
mlcreech94984912008-03-04 19:03:08 +00008975
8976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008977 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008978LIBS=$ac_check_lib_save_LIBS
8979fi
mlcreech94984912008-03-04 19:03:08 +00008980{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8981echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008982if test $ac_cv_lib_svld_dlopen = yes; then
8983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00008984else
mlcreech94984912008-03-04 19:03:08 +00008985 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8986echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008987if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8989else
8990 ac_check_lib_save_LIBS=$LIBS
8991LIBS="-ldld $LIBS"
8992cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008993/* confdefs.h. */
8994_ACEOF
8995cat confdefs.h >>conftest.$ac_ext
8996cat >>conftest.$ac_ext <<_ACEOF
8997/* end confdefs.h. */
8998
mlcreech94984912008-03-04 19:03:08 +00008999/* Override any GCC internal prototype to avoid an error.
9000 Use char because int might match the return type of a GCC
9001 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009002#ifdef __cplusplus
9003extern "C"
9004#endif
a.rottmann84e63352003-03-24 09:42:16 +00009005char dld_link ();
9006int
9007main ()
9008{
mlcreech94984912008-03-04 19:03:08 +00009009return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009010 ;
9011 return 0;
9012}
9013_ACEOF
9014rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009015if { (ac_try="$ac_link"
9016case "(($ac_try" in
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9019esac
9020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009022 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009023 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1
9025 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009027 (exit $ac_status); } && {
9028 test -z "$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9030 } && test -s conftest$ac_exeext &&
9031 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00009032 ac_cv_lib_dld_dld_link=yes
9033else
9034 echo "$as_me: failed program was:" >&5
9035sed 's/^/| /' conftest.$ac_ext >&5
9036
mlcreech94984912008-03-04 19:03:08 +00009037 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009038fi
mlcreech94984912008-03-04 19:03:08 +00009039
9040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009041 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009042LIBS=$ac_check_lib_save_LIBS
9043fi
mlcreech94984912008-03-04 19:03:08 +00009044{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9045echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009046if test $ac_cv_lib_dld_dld_link = yes; then
9047 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9048fi
9049
drh71eb93e2001-09-28 01:34:43 +00009050
9051fi
9052
drh71eb93e2001-09-28 01:34:43 +00009053
9054fi
9055
a.rottmann84e63352003-03-24 09:42:16 +00009056
9057fi
9058
9059
9060fi
9061
9062
drh71eb93e2001-09-28 01:34:43 +00009063fi
9064
9065 ;;
9066 esac
9067
9068 if test "x$lt_cv_dlopen" != xno; then
9069 enable_dlopen=yes
9070 else
9071 enable_dlopen=no
9072 fi
9073
9074 case $lt_cv_dlopen in
9075 dlopen)
9076 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009077 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009078
9079 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009080 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009081
9082 save_LIBS="$LIBS"
9083 LIBS="$lt_cv_dlopen_libs $LIBS"
9084
mlcreech94984912008-03-04 19:03:08 +00009085 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9086echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009087if test "${lt_cv_dlopen_self+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089else
9090 if test "$cross_compiling" = yes; then :
9091 lt_cv_dlopen_self=cross
9092else
a.rottmann9bc8b932004-02-29 15:18:31 +00009093 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009094 lt_status=$lt_dlunknown
9095 cat > conftest.$ac_ext <<EOF
mlcreechb87057f2008-03-06 07:19:20 +00009096#line 9096 "configure"
drh71eb93e2001-09-28 01:34:43 +00009097#include "confdefs.h"
9098
9099#if HAVE_DLFCN_H
9100#include <dlfcn.h>
9101#endif
9102
9103#include <stdio.h>
9104
9105#ifdef RTLD_GLOBAL
9106# define LT_DLGLOBAL RTLD_GLOBAL
9107#else
9108# ifdef DL_GLOBAL
9109# define LT_DLGLOBAL DL_GLOBAL
9110# else
9111# define LT_DLGLOBAL 0
9112# endif
9113#endif
9114
9115/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9116 find out it does not work in some platform. */
9117#ifndef LT_DLLAZY_OR_NOW
9118# ifdef RTLD_LAZY
9119# define LT_DLLAZY_OR_NOW RTLD_LAZY
9120# else
9121# ifdef DL_LAZY
9122# define LT_DLLAZY_OR_NOW DL_LAZY
9123# else
9124# ifdef RTLD_NOW
9125# define LT_DLLAZY_OR_NOW RTLD_NOW
9126# else
9127# ifdef DL_NOW
9128# define LT_DLLAZY_OR_NOW DL_NOW
9129# else
9130# define LT_DLLAZY_OR_NOW 0
9131# endif
9132# endif
9133# endif
9134# endif
9135#endif
9136
9137#ifdef __cplusplus
9138extern "C" void exit (int);
9139#endif
9140
9141void fnord() { int i=42;}
9142int main ()
9143{
9144 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9145 int status = $lt_dlunknown;
9146
9147 if (self)
9148 {
9149 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9150 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9151 /* dlclose (self); */
9152 }
vapier7f19c022007-02-17 14:46:31 +00009153 else
9154 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009155
9156 exit (status);
9157}
9158EOF
a.rottmann84e63352003-03-24 09:42:16 +00009159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009160 (eval $ac_link) 2>&5
9161 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009163 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009164 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009165 lt_status=$?
9166 case x$lt_status in
9167 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9168 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009169 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009170 esac
9171 else :
9172 # compilation failed
9173 lt_cv_dlopen_self=no
9174 fi
9175fi
9176rm -fr conftest*
9177
a.rottmann84e63352003-03-24 09:42:16 +00009178
drh71eb93e2001-09-28 01:34:43 +00009179fi
mlcreech94984912008-03-04 19:03:08 +00009180{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9181echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009182
9183 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
mlcreech94984912008-03-04 19:03:08 +00009185 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9186echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009187if test "${lt_cv_dlopen_self_static+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189else
9190 if test "$cross_compiling" = yes; then :
9191 lt_cv_dlopen_self_static=cross
9192else
a.rottmann9bc8b932004-02-29 15:18:31 +00009193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009194 lt_status=$lt_dlunknown
9195 cat > conftest.$ac_ext <<EOF
mlcreechb87057f2008-03-06 07:19:20 +00009196#line 9196 "configure"
drh71eb93e2001-09-28 01:34:43 +00009197#include "confdefs.h"
9198
9199#if HAVE_DLFCN_H
9200#include <dlfcn.h>
9201#endif
9202
9203#include <stdio.h>
9204
9205#ifdef RTLD_GLOBAL
9206# define LT_DLGLOBAL RTLD_GLOBAL
9207#else
9208# ifdef DL_GLOBAL
9209# define LT_DLGLOBAL DL_GLOBAL
9210# else
9211# define LT_DLGLOBAL 0
9212# endif
9213#endif
9214
9215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9216 find out it does not work in some platform. */
9217#ifndef LT_DLLAZY_OR_NOW
9218# ifdef RTLD_LAZY
9219# define LT_DLLAZY_OR_NOW RTLD_LAZY
9220# else
9221# ifdef DL_LAZY
9222# define LT_DLLAZY_OR_NOW DL_LAZY
9223# else
9224# ifdef RTLD_NOW
9225# define LT_DLLAZY_OR_NOW RTLD_NOW
9226# else
9227# ifdef DL_NOW
9228# define LT_DLLAZY_OR_NOW DL_NOW
9229# else
9230# define LT_DLLAZY_OR_NOW 0
9231# endif
9232# endif
9233# endif
9234# endif
9235#endif
9236
9237#ifdef __cplusplus
9238extern "C" void exit (int);
9239#endif
9240
9241void fnord() { int i=42;}
9242int main ()
9243{
9244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9245 int status = $lt_dlunknown;
9246
9247 if (self)
9248 {
9249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9251 /* dlclose (self); */
9252 }
vapier7f19c022007-02-17 14:46:31 +00009253 else
9254 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009255
9256 exit (status);
9257}
9258EOF
a.rottmann84e63352003-03-24 09:42:16 +00009259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009260 (eval $ac_link) 2>&5
9261 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009263 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009264 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009265 lt_status=$?
9266 case x$lt_status in
9267 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9268 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009269 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009270 esac
9271 else :
9272 # compilation failed
9273 lt_cv_dlopen_self_static=no
9274 fi
9275fi
9276rm -fr conftest*
9277
a.rottmann84e63352003-03-24 09:42:16 +00009278
drh71eb93e2001-09-28 01:34:43 +00009279fi
mlcreech94984912008-03-04 19:03:08 +00009280{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9281echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009282 fi
9283
9284 CPPFLAGS="$save_CPPFLAGS"
9285 LDFLAGS="$save_LDFLAGS"
9286 LIBS="$save_LIBS"
9287 ;;
9288 esac
9289
9290 case $lt_cv_dlopen_self in
9291 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9292 *) enable_dlopen_self=unknown ;;
9293 esac
9294
9295 case $lt_cv_dlopen_self_static in
9296 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9297 *) enable_dlopen_self_static=unknown ;;
9298 esac
9299fi
9300
drh71eb93e2001-09-28 01:34:43 +00009301
vapier7f19c022007-02-17 14:46:31 +00009302# Report which library types will actually be built
mlcreech94984912008-03-04 19:03:08 +00009303{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9304echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9305{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9306echo "${ECHO_T}$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009307
mlcreech94984912008-03-04 19:03:08 +00009308{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9309echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009310test "$can_build_shared" = "no" && enable_shared=no
9311
9312# On AIX, shared libraries and static libraries use the same namespace, and
9313# are all built from PIC.
vapier7f19c022007-02-17 14:46:31 +00009314case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00009315aix3*)
9316 test "$enable_shared" = yes && enable_static=no
9317 if test -n "$RANLIB"; then
9318 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9319 postinstall_cmds='$RANLIB $lib'
9320 fi
9321 ;;
9322
vapier7f19c022007-02-17 14:46:31 +00009323aix4* | aix5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009324 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9325 test "$enable_shared" = yes && enable_static=no
9326 fi
a.rottmann84e63352003-03-24 09:42:16 +00009327 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009328esac
mlcreech94984912008-03-04 19:03:08 +00009329{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9330echo "${ECHO_T}$enable_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009331
mlcreech94984912008-03-04 19:03:08 +00009332{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9333echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009334# Make sure either enable_shared or enable_static is yes.
9335test "$enable_shared" = yes || enable_static=yes
mlcreech94984912008-03-04 19:03:08 +00009336{ echo "$as_me:$LINENO: result: $enable_static" >&5
9337echo "${ECHO_T}$enable_static" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009338
9339# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00009340# libtool distribution, otherwise you forgot to ship ltmain.sh
9341# with your package, and you will get complaints that there are
9342# no rules to generate ltmain.sh.
9343if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009344 # See if we are running on zsh, and set the options which allow our commands through
9345 # without removal of \ escapes.
9346 if test -n "${ZSH_VERSION+set}" ; then
9347 setopt NO_GLOB_SUBST
9348 fi
drh71eb93e2001-09-28 01:34:43 +00009349 # Now quote all the things that may contain metacharacters while being
9350 # careful not to overquote the AC_SUBSTed values. We take copies of the
9351 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +00009352 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +00009353 SED SHELL STRIP \
9354 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9355 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9356 deplibs_check_method reload_flag reload_cmds need_locks \
9357 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9358 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00009359 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00009360 old_postinstall_cmds old_postuninstall_cmds \
9361 compiler \
9362 CC \
9363 LD \
9364 lt_prog_compiler_wl \
9365 lt_prog_compiler_pic \
9366 lt_prog_compiler_static \
9367 lt_prog_compiler_no_builtin_flag \
9368 export_dynamic_flag_spec \
9369 thread_safe_flag_spec \
9370 whole_archive_flag_spec \
9371 enable_shared_with_static_runtimes \
9372 old_archive_cmds \
9373 old_archive_from_new_cmds \
9374 predep_objects \
9375 postdep_objects \
9376 predeps \
9377 postdeps \
9378 compiler_lib_search_path \
9379 archive_cmds \
9380 archive_expsym_cmds \
9381 postinstall_cmds \
9382 postuninstall_cmds \
9383 old_archive_from_expsyms_cmds \
9384 allow_undefined_flag \
9385 no_undefined_flag \
9386 export_symbols_cmds \
9387 hardcode_libdir_flag_spec \
9388 hardcode_libdir_flag_spec_ld \
9389 hardcode_libdir_separator \
9390 hardcode_automatic \
9391 module_cmds \
9392 module_expsym_cmds \
9393 lt_cv_prog_compiler_c_o \
9394 exclude_expsyms \
9395 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00009396
9397 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00009398 old_archive_cmds | \
9399 old_archive_from_new_cmds | \
9400 archive_cmds | \
9401 archive_expsym_cmds | \
9402 module_cmds | \
9403 module_expsym_cmds | \
9404 old_archive_from_expsyms_cmds | \
9405 export_symbols_cmds | \
9406 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00009407 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00009408 old_postinstall_cmds | old_postuninstall_cmds | \
9409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00009410 # Double-quote double-evaled strings.
9411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9412 ;;
9413 *)
9414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9415 ;;
9416 esac
9417 done
9418
a.rottmann9bc8b932004-02-29 15:18:31 +00009419 case $lt_echo in
9420 *'\$0 --fallback-echo"')
9421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9422 ;;
9423 esac
9424
9425cfgfile="${ofile}T"
9426 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9427 $rm -f "$cfgfile"
9428 { echo "$as_me:$LINENO: creating $ofile" >&5
9429echo "$as_me: creating $ofile" >&6;}
9430
9431 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00009432#! $SHELL
9433
a.rottmann9bc8b932004-02-29 15:18:31 +00009434# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00009435# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9436# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9437#
a.rottmann9bc8b932004-02-29 15:18:31 +00009438# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9439# Free Software Foundation, Inc.
9440#
9441# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00009442# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9443#
9444# This program is free software; you can redistribute it and/or modify
9445# it under the terms of the GNU General Public License as published by
9446# the Free Software Foundation; either version 2 of the License, or
9447# (at your option) any later version.
9448#
9449# This program is distributed in the hope that it will be useful, but
9450# WITHOUT ANY WARRANTY; without even the implied warranty of
9451# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9452# General Public License for more details.
9453#
9454# You should have received a copy of the GNU General Public License
9455# along with this program; if not, write to the Free Software
vapier7f19c022007-02-17 14:46:31 +00009456# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
drh71eb93e2001-09-28 01:34:43 +00009457#
9458# As a special exception to the GNU General Public License, if you
9459# distribute this file as part of a program that contains a
9460# configuration script generated by Autoconf, you may include it under
9461# the same distribution terms that you use for the rest of that program.
9462
a.rottmann9bc8b932004-02-29 15:18:31 +00009463# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00009464SED=$lt_SED
9465
drh71eb93e2001-09-28 01:34:43 +00009466# Sed that helps us avoid accidentally triggering echo(1) options like -n.
vapier7f19c022007-02-17 14:46:31 +00009467Xsed="$SED -e 1s/^X//"
drh71eb93e2001-09-28 01:34:43 +00009468
9469# The HP-UX ksh and POSIX shell print the target directory to stdout
9470# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +00009471(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +00009472
a.rottmann9bc8b932004-02-29 15:18:31 +00009473# The names of the tagged configurations supported by this script.
9474available_tags=
9475
drh71eb93e2001-09-28 01:34:43 +00009476# ### BEGIN LIBTOOL CONFIG
9477
9478# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9479
9480# Shell to use when invoking shell scripts.
9481SHELL=$lt_SHELL
9482
9483# Whether or not to build shared libraries.
9484build_libtool_libs=$enable_shared
9485
9486# Whether or not to build static libraries.
9487build_old_libs=$enable_static
9488
9489# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00009490build_libtool_need_lc=$archive_cmds_need_lc
9491
9492# Whether or not to disallow shared libs when runtime libs are static
9493allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00009494
9495# Whether or not to optimize for fast installation.
9496fast_install=$enable_fast_install
9497
9498# The host system.
9499host_alias=$host_alias
9500host=$host
vapier7f19c022007-02-17 14:46:31 +00009501host_os=$host_os
9502
9503# The build system.
9504build_alias=$build_alias
9505build=$build
9506build_os=$build_os
drh71eb93e2001-09-28 01:34:43 +00009507
9508# An echo program that does not interpret backslashes.
9509echo=$lt_echo
9510
9511# The archiver.
9512AR=$lt_AR
9513AR_FLAGS=$lt_AR_FLAGS
9514
a.rottmann9bc8b932004-02-29 15:18:31 +00009515# A C compiler.
9516LTCC=$lt_LTCC
9517
vapier7f19c022007-02-17 14:46:31 +00009518# LTCC compiler flags.
9519LTCFLAGS=$lt_LTCFLAGS
9520
a.rottmann9bc8b932004-02-29 15:18:31 +00009521# A language-specific compiler.
9522CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00009523
9524# Is the compiler the GNU C compiler?
9525with_gcc=$GCC
9526
a.rottmann9bc8b932004-02-29 15:18:31 +00009527# An ERE matcher.
9528EGREP=$lt_EGREP
9529
drh71eb93e2001-09-28 01:34:43 +00009530# The linker used to build libraries.
9531LD=$lt_LD
9532
9533# Whether we need hard or soft links.
9534LN_S=$lt_LN_S
9535
9536# A BSD-compatible nm program.
9537NM=$lt_NM
9538
9539# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00009540STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00009541
9542# Used to examine libraries when file_magic_cmd begins "file"
9543MAGIC_CMD=$MAGIC_CMD
9544
9545# Used on cygwin: DLL creation program.
9546DLLTOOL="$DLLTOOL"
9547
9548# Used on cygwin: object dumper.
9549OBJDUMP="$OBJDUMP"
9550
9551# Used on cygwin: assembler.
9552AS="$AS"
9553
9554# The name of the directory that contains temporary libtool files.
9555objdir=$objdir
9556
9557# How to create reloadable object files.
9558reload_flag=$lt_reload_flag
9559reload_cmds=$lt_reload_cmds
9560
9561# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00009562wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00009563
9564# Object file suffix (normally "o").
9565objext="$ac_objext"
9566
9567# Old archive suffix (normally "a").
9568libext="$libext"
9569
a.rottmann9bc8b932004-02-29 15:18:31 +00009570# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +00009571shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +00009572
drh71eb93e2001-09-28 01:34:43 +00009573# Executable file suffix (normally "").
9574exeext="$exeext"
9575
9576# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00009577pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00009578pic_mode=$pic_mode
9579
a.rottmann9bc8b932004-02-29 15:18:31 +00009580# What is the maximum length of a command?
9581max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00009582
a.rottmann9bc8b932004-02-29 15:18:31 +00009583# Does compiler simultaneously support -c and -o options?
9584compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00009585
vapier7f19c022007-02-17 14:46:31 +00009586# Must we lock files when doing compilation?
drh71eb93e2001-09-28 01:34:43 +00009587need_locks=$lt_need_locks
9588
9589# Do we need the lib prefix for modules?
9590need_lib_prefix=$need_lib_prefix
9591
9592# Do we need a version for libraries?
9593need_version=$need_version
9594
9595# Whether dlopen is supported.
9596dlopen_support=$enable_dlopen
9597
9598# Whether dlopen of programs is supported.
9599dlopen_self=$enable_dlopen_self
9600
9601# Whether dlopen of statically linked programs is supported.
9602dlopen_self_static=$enable_dlopen_self_static
9603
9604# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00009605link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00009606
9607# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00009608no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00009609
9610# Compiler flag to allow reflexive dlopens.
9611export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9612
9613# Compiler flag to generate shared objects directly from archives.
9614whole_archive_flag_spec=$lt_whole_archive_flag_spec
9615
9616# Compiler flag to generate thread-safe objects.
9617thread_safe_flag_spec=$lt_thread_safe_flag_spec
9618
9619# Library versioning type.
9620version_type=$version_type
9621
9622# Format of library name prefix.
9623libname_spec=$lt_libname_spec
9624
9625# List of archive names. First name is the real one, the rest are links.
9626# The last name is the one that the linker finds with -lNAME.
9627library_names_spec=$lt_library_names_spec
9628
9629# The coded name of the library, if different from the real name.
9630soname_spec=$lt_soname_spec
9631
9632# Commands used to build and install an old-style archive.
9633RANLIB=$lt_RANLIB
9634old_archive_cmds=$lt_old_archive_cmds
9635old_postinstall_cmds=$lt_old_postinstall_cmds
9636old_postuninstall_cmds=$lt_old_postuninstall_cmds
9637
9638# Create an old-style archive from a shared archive.
9639old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9640
9641# Create a temporary old-style archive to link instead of a shared archive.
9642old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9643
9644# Commands used to build and install a shared archive.
9645archive_cmds=$lt_archive_cmds
9646archive_expsym_cmds=$lt_archive_expsym_cmds
9647postinstall_cmds=$lt_postinstall_cmds
9648postuninstall_cmds=$lt_postuninstall_cmds
9649
a.rottmann9bc8b932004-02-29 15:18:31 +00009650# Commands used to build a loadable module (assumed same as above if empty)
9651module_cmds=$lt_module_cmds
9652module_expsym_cmds=$lt_module_expsym_cmds
9653
drh71eb93e2001-09-28 01:34:43 +00009654# Commands to strip libraries.
9655old_striplib=$lt_old_striplib
9656striplib=$lt_striplib
9657
a.rottmann9bc8b932004-02-29 15:18:31 +00009658# Dependencies to place before the objects being linked to create a
9659# shared library.
9660predep_objects=$lt_predep_objects
9661
9662# Dependencies to place after the objects being linked to create a
9663# shared library.
9664postdep_objects=$lt_postdep_objects
9665
9666# Dependencies to place before the objects being linked to create a
9667# shared library.
9668predeps=$lt_predeps
9669
9670# Dependencies to place after the objects being linked to create a
9671# shared library.
9672postdeps=$lt_postdeps
9673
9674# The library search path used internally by the compiler when linking
9675# a shared library.
9676compiler_lib_search_path=$lt_compiler_lib_search_path
9677
drh71eb93e2001-09-28 01:34:43 +00009678# Method to check whether dependent libraries are shared objects.
9679deplibs_check_method=$lt_deplibs_check_method
9680
9681# Command to use when deplibs_check_method == file_magic.
9682file_magic_cmd=$lt_file_magic_cmd
9683
9684# Flag that allows shared libraries with undefined symbols to be built.
9685allow_undefined_flag=$lt_allow_undefined_flag
9686
9687# Flag that forces no undefined symbols.
9688no_undefined_flag=$lt_no_undefined_flag
9689
9690# Commands used to finish a libtool library installation in a directory.
9691finish_cmds=$lt_finish_cmds
9692
9693# Same as above, but a single script fragment to be evaled but not shown.
9694finish_eval=$lt_finish_eval
9695
9696# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00009697global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00009698
9699# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00009700global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00009701
9702# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00009703global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00009704
9705# This is the shared library runtime path variable.
9706runpath_var=$runpath_var
9707
9708# This is the shared library path variable.
9709shlibpath_var=$shlibpath_var
9710
9711# Is shlibpath searched before the hard-coded library search path?
9712shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9713
9714# How to hardcode a shared library path into an executable.
9715hardcode_action=$hardcode_action
9716
9717# Whether we should hardcode library paths into libraries.
9718hardcode_into_libs=$hardcode_into_libs
9719
9720# Flag to hardcode \$libdir into a binary during linking.
9721# This must work even if \$libdir does not exist.
9722hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9723
a.rottmann9bc8b932004-02-29 15:18:31 +00009724# If ld is used when linking, flag to hardcode \$libdir into
9725# a binary during linking. This must work even if \$libdir does
9726# not exist.
9727hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9728
drh71eb93e2001-09-28 01:34:43 +00009729# Whether we need a single -rpath flag with a separated argument.
9730hardcode_libdir_separator=$lt_hardcode_libdir_separator
9731
a.rottmann9bc8b932004-02-29 15:18:31 +00009732# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00009733# resulting binary.
9734hardcode_direct=$hardcode_direct
9735
9736# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9737# resulting binary.
9738hardcode_minus_L=$hardcode_minus_L
9739
9740# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9741# the resulting binary.
9742hardcode_shlibpath_var=$hardcode_shlibpath_var
9743
a.rottmann9bc8b932004-02-29 15:18:31 +00009744# Set to yes if building a shared library automatically hardcodes DIR into the library
9745# and all subsequent libraries and executables linked against it.
9746hardcode_automatic=$hardcode_automatic
9747
drh71eb93e2001-09-28 01:34:43 +00009748# Variables whose values should be saved in libtool wrapper scripts and
9749# restored at relink time.
9750variables_saved_for_relink="$variables_saved_for_relink"
9751
9752# Whether libtool must link a program against all its dependency libraries.
9753link_all_deplibs=$link_all_deplibs
9754
9755# Compile-time system search path for libraries
9756sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9757
9758# Run-time system search path for libraries
9759sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9760
9761# Fix the shell variable \$srcfile for the compiler.
9762fix_srcfile_path="$fix_srcfile_path"
9763
9764# Set to yes if exported symbols are required.
9765always_export_symbols=$always_export_symbols
9766
9767# The commands to list exported symbols.
9768export_symbols_cmds=$lt_export_symbols_cmds
9769
9770# The commands to extract the exported symbol list from a shared archive.
9771extract_expsyms_cmds=$lt_extract_expsyms_cmds
9772
9773# Symbols that should not be listed in the preloaded symbols.
9774exclude_expsyms=$lt_exclude_expsyms
9775
9776# Symbols that must always be exported.
9777include_expsyms=$lt_include_expsyms
9778
9779# ### END LIBTOOL CONFIG
9780
9781__EOF__
9782
a.rottmann9bc8b932004-02-29 15:18:31 +00009783
drh71eb93e2001-09-28 01:34:43 +00009784 case $host_os in
9785 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009786 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00009787
9788# AIX sometimes has problems with the GCC collect2 program. For some
9789# reason, if we set the COLLECT_NAMES environment variable, the problems
9790# vanish in a puff of smoke.
9791if test "X${COLLECT_NAMES+set}" != Xset; then
9792 COLLECT_NAMES=
9793 export COLLECT_NAMES
9794fi
9795EOF
9796 ;;
a.rottmann84e63352003-03-24 09:42:16 +00009797 esac
drh71eb93e2001-09-28 01:34:43 +00009798
drh71eb93e2001-09-28 01:34:43 +00009799 # We use sed instead of cat because bash on DJGPP gets confused if
9800 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9801 # text mode, it properly converts lines to CR/LF. This bash problem
9802 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00009803 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00009804
a.rottmann9bc8b932004-02-29 15:18:31 +00009805 mv -f "$cfgfile" "$ofile" || \
9806 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00009807 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00009808
9809else
9810 # If there is no Makefile yet, we rely on a make rule to execute
9811 # `config.status --recheck' to rerun these tests and create the
9812 # libtool script then.
9813 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9814 if test -f "$ltmain_in"; then
9815 test -f Makefile && make "$ltmain"
9816 fi
drh71eb93e2001-09-28 01:34:43 +00009817fi
9818
drh71eb93e2001-09-28 01:34:43 +00009819
a.rottmann9bc8b932004-02-29 15:18:31 +00009820ac_ext=c
9821ac_cpp='$CPP $CPPFLAGS'
9822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9824ac_compiler_gnu=$ac_cv_c_compiler_gnu
9825
9826CC="$lt_save_CC"
9827
9828
mlcreech94984912008-03-04 19:03:08 +00009829# Check whether --with-tags was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00009830if test "${with_tags+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00009831 withval=$with_tags; tagnames="$withval"
9832fi
9833
a.rottmann9bc8b932004-02-29 15:18:31 +00009834
9835if test -f "$ltmain" && test -n "$tagnames"; then
9836 if test ! -f "${ofile}"; then
9837 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9838echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9839 fi
9840
9841 if test -z "$LTCC"; then
9842 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9843 if test -z "$LTCC"; then
9844 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9845echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9846 else
9847 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9848echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9849 fi
9850 fi
vapier7f19c022007-02-17 14:46:31 +00009851 if test -z "$LTCFLAGS"; then
9852 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9853 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009854
9855 # Extract list of available tagged configurations in $ofile.
9856 # Note that this assumes the entire list is on one line.
9857 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9858
9859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9860 for tagname in $tagnames; do
9861 IFS="$lt_save_ifs"
9862 # Check whether tagname contains only valid characters
9863 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9864 "") ;;
9865 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9866echo "$as_me: error: invalid tag name: $tagname" >&2;}
9867 { (exit 1); exit 1; }; }
9868 ;;
9869 esac
9870
9871 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9872 then
9873 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9874echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9875 { (exit 1); exit 1; }; }
9876 fi
9877
9878 # Update the list of available tags.
9879 if test -n "$tagname"; then
9880 echo appending configuration tag \"$tagname\" to $ofile
9881
9882 case $tagname in
9883 CXX)
vapier7f19c022007-02-17 14:46:31 +00009884 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9885 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9886 (test "X$CXX" != "Xg++"))) ; then
mlcreech94984912008-03-04 19:03:08 +00009887 ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00009888ac_cpp='$CXXCPP $CPPFLAGS'
9889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9892
9893
9894
9895
9896archive_cmds_need_lc_CXX=no
9897allow_undefined_flag_CXX=
9898always_export_symbols_CXX=no
9899archive_expsym_cmds_CXX=
9900export_dynamic_flag_spec_CXX=
9901hardcode_direct_CXX=no
9902hardcode_libdir_flag_spec_CXX=
9903hardcode_libdir_flag_spec_ld_CXX=
9904hardcode_libdir_separator_CXX=
9905hardcode_minus_L_CXX=no
vapier7f19c022007-02-17 14:46:31 +00009906hardcode_shlibpath_var_CXX=unsupported
a.rottmann9bc8b932004-02-29 15:18:31 +00009907hardcode_automatic_CXX=no
9908module_cmds_CXX=
9909module_expsym_cmds_CXX=
9910link_all_deplibs_CXX=unknown
9911old_archive_cmds_CXX=$old_archive_cmds
9912no_undefined_flag_CXX=
9913whole_archive_flag_spec_CXX=
9914enable_shared_with_static_runtimes_CXX=no
9915
9916# Dependencies to place before and after the object being linked:
9917predep_objects_CXX=
9918postdep_objects_CXX=
9919predeps_CXX=
9920postdeps_CXX=
9921compiler_lib_search_path_CXX=
9922
9923# Source file extension for C++ test sources.
vapier7f19c022007-02-17 14:46:31 +00009924ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00009925
9926# Object file extension for compiled C++ test sources.
9927objext=o
9928objext_CXX=$objext
9929
9930# Code to be used in simple compile tests
9931lt_simple_compile_test_code="int some_variable = 0;\n"
9932
9933# Code to be used in simple link tests
vapier7f19c022007-02-17 14:46:31 +00009934lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
a.rottmann9bc8b932004-02-29 15:18:31 +00009935
9936# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9937
9938# If no C compiler was specified, use CC.
9939LTCC=${LTCC-"$CC"}
9940
vapier7f19c022007-02-17 14:46:31 +00009941# If no C compiler flags were specified, use CFLAGS.
9942LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9943
a.rottmann9bc8b932004-02-29 15:18:31 +00009944# Allow CC to be a program name with arguments.
9945compiler=$CC
9946
9947
vapier7f19c022007-02-17 14:46:31 +00009948# save warnings/boilerplate of simple test code
9949ac_outfile=conftest.$ac_objext
9950printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9951eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9952_lt_compiler_boilerplate=`cat conftest.err`
9953$rm conftest*
9954
9955ac_outfile=conftest.$ac_objext
9956printf "$lt_simple_link_test_code" >conftest.$ac_ext
9957eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9958_lt_linker_boilerplate=`cat conftest.err`
9959$rm conftest*
9960
9961
a.rottmann9bc8b932004-02-29 15:18:31 +00009962# Allow CC to be a program name with arguments.
9963lt_save_CC=$CC
9964lt_save_LD=$LD
9965lt_save_GCC=$GCC
9966GCC=$GXX
9967lt_save_with_gnu_ld=$with_gnu_ld
9968lt_save_path_LD=$lt_cv_path_LD
9969if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9970 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9971else
vapier7f19c022007-02-17 14:46:31 +00009972 $as_unset lt_cv_prog_gnu_ld
a.rottmann9bc8b932004-02-29 15:18:31 +00009973fi
9974if test -n "${lt_cv_path_LDCXX+set}"; then
9975 lt_cv_path_LD=$lt_cv_path_LDCXX
9976else
vapier7f19c022007-02-17 14:46:31 +00009977 $as_unset lt_cv_path_LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009978fi
9979test -z "${LDCXX+set}" || LD=$LDCXX
9980CC=${CXX-"c++"}
9981compiler=$CC
9982compiler_CXX=$CC
vapier7f19c022007-02-17 14:46:31 +00009983for cc_temp in $compiler""; do
9984 case $cc_temp in
9985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9987 \-*) ;;
9988 *) break;;
9989 esac
9990done
9991cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9992
a.rottmann9bc8b932004-02-29 15:18:31 +00009993
9994# We don't want -fno-exception wen compiling C++ code, so set the
9995# no_builtin_flag separately
9996if test "$GXX" = yes; then
9997 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9998else
9999 lt_prog_compiler_no_builtin_flag_CXX=
10000fi
10001
10002if test "$GXX" = yes; then
10003 # Set up default GNU C++ configuration
10004
10005
mlcreech94984912008-03-04 19:03:08 +000010006# Check whether --with-gnu-ld was given.
a.rottmann9bc8b932004-02-29 15:18:31 +000010007if test "${with_gnu_ld+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000010008 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010009else
10010 with_gnu_ld=no
mlcreech94984912008-03-04 19:03:08 +000010011fi
10012
a.rottmann9bc8b932004-02-29 15:18:31 +000010013ac_prog=ld
10014if test "$GCC" = yes; then
10015 # Check if gcc -print-prog-name=ld gives a path.
mlcreech94984912008-03-04 19:03:08 +000010016 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10017echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010018 case $host in
10019 *-*-mingw*)
10020 # gcc leaves a trailing carriage return which upsets mingw
10021 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10022 *)
10023 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10024 esac
10025 case $ac_prog in
10026 # Accept absolute paths.
10027 [\\/]* | ?:[\\/]*)
10028 re_direlt='/[^/][^/]*/\.\./'
10029 # Canonicalize the pathname of ld
10030 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10031 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10032 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10033 done
10034 test -z "$LD" && LD="$ac_prog"
10035 ;;
10036 "")
10037 # If it fails, then pretend we aren't using GCC.
10038 ac_prog=ld
10039 ;;
10040 *)
10041 # If it is relative, then search for the first ld in PATH.
10042 with_gnu_ld=unknown
10043 ;;
10044 esac
10045elif test "$with_gnu_ld" = yes; then
mlcreech94984912008-03-04 19:03:08 +000010046 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10047echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010048else
mlcreech94984912008-03-04 19:03:08 +000010049 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10050echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010051fi
10052if test "${lt_cv_path_LD+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054else
10055 if test -z "$LD"; then
10056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10057 for ac_dir in $PATH; do
10058 IFS="$lt_save_ifs"
10059 test -z "$ac_dir" && ac_dir=.
10060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10061 lt_cv_path_LD="$ac_dir/$ac_prog"
10062 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +000010063 # but apparently some variants of GNU ld only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +000010064 # Break only if it was the GNU/non-GNU ld that we prefer.
10065 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10066 *GNU* | *'with BFD'*)
10067 test "$with_gnu_ld" != no && break
10068 ;;
10069 *)
10070 test "$with_gnu_ld" != yes && break
10071 ;;
10072 esac
10073 fi
10074 done
10075 IFS="$lt_save_ifs"
10076else
10077 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10078fi
10079fi
10080
10081LD="$lt_cv_path_LD"
10082if test -n "$LD"; then
mlcreech94984912008-03-04 19:03:08 +000010083 { echo "$as_me:$LINENO: result: $LD" >&5
10084echo "${ECHO_T}$LD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010085else
mlcreech94984912008-03-04 19:03:08 +000010086 { echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010088fi
10089test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10090echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10091 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000010092{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10093echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010094if test "${lt_cv_prog_gnu_ld+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096else
vapier7f19c022007-02-17 14:46:31 +000010097 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +000010098case `$LD -v 2>&1 </dev/null` in
10099*GNU* | *'with BFD'*)
10100 lt_cv_prog_gnu_ld=yes
10101 ;;
10102*)
10103 lt_cv_prog_gnu_ld=no
10104 ;;
10105esac
10106fi
mlcreech94984912008-03-04 19:03:08 +000010107{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10108echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010109with_gnu_ld=$lt_cv_prog_gnu_ld
10110
10111
10112
10113 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10114 # archiving commands below assume that GNU ld is being used.
10115 if test "$with_gnu_ld" = yes; then
10116 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10117 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'
10118
10119 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10120 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10121
10122 # If archive_cmds runs LD, not CC, wlarc should be empty
10123 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10124 # investigate it a little bit more. (MM)
10125 wlarc='${wl}'
10126
10127 # ancient GNU ld didn't support --whole-archive et. al.
10128 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10129 grep 'no-whole-archive' > /dev/null; then
10130 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10131 else
10132 whole_archive_flag_spec_CXX=
10133 fi
10134 else
10135 with_gnu_ld=no
10136 wlarc=
10137
10138 # A generic and very simple default shared library creation
10139 # command for GNU C++ for the case where it uses the native
10140 # linker, instead of GNU ld. If possible, this setting should
10141 # overridden to take advantage of the native linker features on
10142 # the platform it is being used on.
10143 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10144 fi
10145
10146 # Commands to make compiler produce verbose output that lists
10147 # what "hidden" libraries, object files and flags are used when
10148 # linking a shared library.
10149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10150
10151else
10152 GXX=no
10153 with_gnu_ld=no
10154 wlarc=
10155fi
10156
10157# PORTME: fill in a description of your system's C++ link characteristics
mlcreech94984912008-03-04 19:03:08 +000010158{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10159echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010160ld_shlibs_CXX=yes
10161case $host_os in
10162 aix3*)
10163 # FIXME: insert proper C++ library support
10164 ld_shlibs_CXX=no
10165 ;;
10166 aix4* | aix5*)
10167 if test "$host_cpu" = ia64; then
10168 # On IA64, the linker does run time linking by default, so we don't
10169 # have to do anything special.
10170 aix_use_runtimelinking=no
10171 exp_sym_flag='-Bexport'
10172 no_entry_flag=""
10173 else
10174 aix_use_runtimelinking=no
10175
10176 # Test if we are trying to use run time linking or normal
10177 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10178 # need to do runtime linking.
10179 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10180 for ld_flag in $LDFLAGS; do
10181 case $ld_flag in
10182 *-brtl*)
10183 aix_use_runtimelinking=yes
10184 break
10185 ;;
10186 esac
10187 done
vapier7f19c022007-02-17 14:46:31 +000010188 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010189 esac
10190
10191 exp_sym_flag='-bexport'
10192 no_entry_flag='-bnoentry'
10193 fi
10194
10195 # When large executables or shared objects are built, AIX ld can
10196 # have problems creating the table of contents. If linking a library
10197 # or program results in "error TOC overflow" add -mminimal-toc to
10198 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10199 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10200
10201 archive_cmds_CXX=''
10202 hardcode_direct_CXX=yes
10203 hardcode_libdir_separator_CXX=':'
10204 link_all_deplibs_CXX=yes
10205
10206 if test "$GXX" = yes; then
vapier7f19c022007-02-17 14:46:31 +000010207 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010208 # We only want to do this on AIX 4.2 and lower, the check
10209 # below for broken collect2 doesn't work under 4.3+
10210 collect2name=`${CC} -print-prog-name=collect2`
10211 if test -f "$collect2name" && \
10212 strings "$collect2name" | grep resolve_lib_name >/dev/null
10213 then
10214 # We have reworked collect2
10215 hardcode_direct_CXX=yes
10216 else
10217 # We have old collect2
10218 hardcode_direct_CXX=unsupported
10219 # It fails to find uninstalled libraries when the uninstalled
10220 # path is not listed in the libpath. Setting hardcode_minus_L
10221 # to unsupported forces relinking
10222 hardcode_minus_L_CXX=yes
10223 hardcode_libdir_flag_spec_CXX='-L$libdir'
10224 hardcode_libdir_separator_CXX=
10225 fi
vapier7f19c022007-02-17 14:46:31 +000010226 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010227 esac
10228 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000010229 if test "$aix_use_runtimelinking" = yes; then
10230 shared_flag="$shared_flag "'${wl}-G'
10231 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010232 else
10233 # not using gcc
10234 if test "$host_cpu" = ia64; then
10235 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10236 # chokes on -Wl,-G. The following line is correct:
10237 shared_flag='-G'
10238 else
10239 if test "$aix_use_runtimelinking" = yes; then
10240 shared_flag='${wl}-G'
10241 else
10242 shared_flag='${wl}-bM:SRE'
10243 fi
10244 fi
10245 fi
10246
10247 # It seems that -bexpall does not export symbols beginning with
10248 # underscore (_), so it is better to generate a list of symbols to export.
10249 always_export_symbols_CXX=yes
10250 if test "$aix_use_runtimelinking" = yes; then
10251 # Warning - without using the other runtime loading flags (-brtl),
10252 # -berok will link without error, but may produce a broken library.
10253 allow_undefined_flag_CXX='-berok'
10254 # Determine the default libpath from the value encoded in an empty executable.
10255 cat >conftest.$ac_ext <<_ACEOF
10256/* confdefs.h. */
10257_ACEOF
10258cat confdefs.h >>conftest.$ac_ext
10259cat >>conftest.$ac_ext <<_ACEOF
10260/* end confdefs.h. */
10261
10262int
10263main ()
10264{
10265
10266 ;
10267 return 0;
10268}
10269_ACEOF
10270rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000010271if { (ac_try="$ac_link"
10272case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275esac
10276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000010278 ac_status=$?
10279 grep -v '^ *+' conftest.er1 >conftest.err
10280 rm -f conftest.er1
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000010283 (exit $ac_status); } && {
10284 test -z "$ac_cxx_werror_flag" ||
10285 test ! -s conftest.err
10286 } && test -s conftest$ac_exeext &&
10287 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000010288
10289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10290}'`
10291# Check for a 64-bit object if we didn't find anything.
10292if 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; }
10293}'`; fi
10294else
10295 echo "$as_me: failed program was:" >&5
10296sed 's/^/| /' conftest.$ac_ext >&5
10297
mlcreech94984912008-03-04 19:03:08 +000010298
a.rottmann9bc8b932004-02-29 15:18:31 +000010299fi
mlcreech94984912008-03-04 19:03:08 +000010300
10301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000010302 conftest$ac_exeext conftest.$ac_ext
10303if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10304
10305 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10306
vapier7f19c022007-02-17 14:46:31 +000010307 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000010308 else
10309 if test "$host_cpu" = ia64; then
10310 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10311 allow_undefined_flag_CXX="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000010312 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000010313 else
10314 # Determine the default libpath from the value encoded in an empty executable.
10315 cat >conftest.$ac_ext <<_ACEOF
10316/* confdefs.h. */
10317_ACEOF
10318cat confdefs.h >>conftest.$ac_ext
10319cat >>conftest.$ac_ext <<_ACEOF
10320/* end confdefs.h. */
10321
10322int
10323main ()
10324{
10325
10326 ;
10327 return 0;
10328}
10329_ACEOF
10330rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000010331if { (ac_try="$ac_link"
10332case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335esac
10336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000010338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000010343 (exit $ac_status); } && {
10344 test -z "$ac_cxx_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest$ac_exeext &&
10347 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000010348
10349aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10350}'`
10351# Check for a 64-bit object if we didn't find anything.
10352if 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; }
10353}'`; fi
10354else
10355 echo "$as_me: failed program was:" >&5
10356sed 's/^/| /' conftest.$ac_ext >&5
10357
mlcreech94984912008-03-04 19:03:08 +000010358
a.rottmann9bc8b932004-02-29 15:18:31 +000010359fi
mlcreech94984912008-03-04 19:03:08 +000010360
10361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000010362 conftest$ac_exeext conftest.$ac_ext
10363if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10364
10365 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10366 # Warning - without using the other run time loading flags,
10367 # -berok will link without error, but may produce a broken library.
10368 no_undefined_flag_CXX=' ${wl}-bernotok'
10369 allow_undefined_flag_CXX=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000010370 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000010371 whole_archive_flag_spec_CXX='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000010372 archive_cmds_need_lc_CXX=yes
vapier7f19c022007-02-17 14:46:31 +000010373 # This is similar to how AIX traditionally builds its shared libraries.
10374 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010375 fi
10376 fi
10377 ;;
vapier7f19c022007-02-17 14:46:31 +000010378
10379 beos*)
10380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10381 allow_undefined_flag_CXX=unsupported
10382 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10383 # support --undefined. This deserves some investigation. FIXME
10384 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10385 else
10386 ld_shlibs_CXX=no
10387 fi
10388 ;;
10389
a.rottmann9bc8b932004-02-29 15:18:31 +000010390 chorus*)
10391 case $cc_basename in
10392 *)
10393 # FIXME: insert proper C++ library support
10394 ld_shlibs_CXX=no
10395 ;;
10396 esac
10397 ;;
10398
10399 cygwin* | mingw* | pw32*)
10400 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10401 # as there is no search path for DLLs.
10402 hardcode_libdir_flag_spec_CXX='-L$libdir'
10403 allow_undefined_flag_CXX=unsupported
10404 always_export_symbols_CXX=no
10405 enable_shared_with_static_runtimes_CXX=yes
10406
10407 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010408 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010409 # If the export-symbols file already is a .def file (1st line
10410 # is EXPORTS), use it as is; otherwise, prepend...
10411 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10412 cp $export_symbols $output_objdir/$soname.def;
10413 else
10414 echo EXPORTS > $output_objdir/$soname.def;
10415 cat $export_symbols >> $output_objdir/$soname.def;
10416 fi~
vapier7f19c022007-02-17 14:46:31 +000010417 $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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010418 else
10419 ld_shlibs_CXX=no
10420 fi
10421 ;;
vapier7f19c022007-02-17 14:46:31 +000010422 darwin* | rhapsody*)
10423 case $host_os in
10424 rhapsody* | darwin1.[012])
10425 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10426 ;;
10427 *) # Darwin 1.3 on
10428 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10429 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10430 else
10431 case ${MACOSX_DEPLOYMENT_TARGET} in
10432 10.[012])
10433 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10434 ;;
10435 10.*)
10436 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10437 ;;
10438 esac
10439 fi
10440 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010441 esac
vapier7f19c022007-02-17 14:46:31 +000010442 archive_cmds_need_lc_CXX=no
10443 hardcode_direct_CXX=no
10444 hardcode_automatic_CXX=yes
10445 hardcode_shlibpath_var_CXX=unsupported
10446 whole_archive_flag_spec_CXX=''
10447 link_all_deplibs_CXX=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010448
vapier7f19c022007-02-17 14:46:31 +000010449 if test "$GXX" = yes ; then
10450 lt_int_apple_cc_single_mod=no
10451 output_verbose_link_cmd='echo'
10452 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10453 lt_int_apple_cc_single_mod=yes
10454 fi
10455 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10456 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10457 else
10458 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'
10459 fi
10460 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10462 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10463 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}'
10464 else
10465 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}'
10466 fi
10467 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}'
10468 else
10469 case $cc_basename in
10470 xlc*)
10471 output_verbose_link_cmd='echo'
10472 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'
10473 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10474 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10475 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}'
10476 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}'
10477 ;;
10478 *)
10479 ld_shlibs_CXX=no
10480 ;;
10481 esac
10482 fi
10483 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010484
10485 dgux*)
10486 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010487 ec++*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010488 # FIXME: insert proper C++ library support
10489 ld_shlibs_CXX=no
10490 ;;
vapier7f19c022007-02-17 14:46:31 +000010491 ghcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010492 # Green Hills C++ Compiler
10493 # FIXME: insert proper C++ library support
10494 ld_shlibs_CXX=no
10495 ;;
10496 *)
10497 # FIXME: insert proper C++ library support
10498 ld_shlibs_CXX=no
10499 ;;
10500 esac
10501 ;;
vapier7f19c022007-02-17 14:46:31 +000010502 freebsd[12]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010503 # C++ shared libraries reported to be fairly broken before switch to ELF
10504 ld_shlibs_CXX=no
10505 ;;
10506 freebsd-elf*)
10507 archive_cmds_need_lc_CXX=no
10508 ;;
vapier7f19c022007-02-17 14:46:31 +000010509 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010510 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10511 # conventions
10512 ld_shlibs_CXX=yes
10513 ;;
10514 gnu*)
10515 ;;
10516 hpux9*)
10517 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10518 hardcode_libdir_separator_CXX=:
10519 export_dynamic_flag_spec_CXX='${wl}-E'
10520 hardcode_direct_CXX=yes
10521 hardcode_minus_L_CXX=yes # Not in the search PATH,
10522 # but as the default
10523 # location of the library.
10524
10525 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010526 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010527 # FIXME: insert proper C++ library support
10528 ld_shlibs_CXX=no
10529 ;;
vapier7f19c022007-02-17 14:46:31 +000010530 aCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010531 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'
10532 # Commands to make compiler produce verbose output that lists
10533 # what "hidden" libraries, object files and flags are used when
10534 # linking a shared library.
10535 #
10536 # There doesn't appear to be a way to prevent this compiler from
10537 # explicitly linking system object files so we need to strip them
10538 # from the output so that they don't get included in the library
10539 # dependencies.
vapier7f19c022007-02-17 14:46:31 +000010540 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010541 ;;
10542 *)
10543 if test "$GXX" = yes; then
10544 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'
10545 else
10546 # FIXME: insert proper C++ library support
10547 ld_shlibs_CXX=no
10548 fi
10549 ;;
10550 esac
10551 ;;
10552 hpux10*|hpux11*)
10553 if test $with_gnu_ld = no; then
vapier7f19c022007-02-17 14:46:31 +000010554 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10555 hardcode_libdir_separator_CXX=:
10556
10557 case $host_cpu in
10558 hppa*64*|ia64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010559 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
a.rottmann9bc8b932004-02-29 15:18:31 +000010560 ;;
10561 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000010562 export_dynamic_flag_spec_CXX='${wl}-E'
10563 ;;
10564 esac
10565 fi
vapier7f19c022007-02-17 14:46:31 +000010566 case $host_cpu in
10567 hppa*64*|ia64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010568 hardcode_direct_CXX=no
10569 hardcode_shlibpath_var_CXX=no
10570 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010571 *)
10572 hardcode_direct_CXX=yes
10573 hardcode_minus_L_CXX=yes # Not in the search PATH,
10574 # but as the default
10575 # location of the library.
10576 ;;
10577 esac
10578
10579 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010580 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010581 # FIXME: insert proper C++ library support
10582 ld_shlibs_CXX=no
10583 ;;
vapier7f19c022007-02-17 14:46:31 +000010584 aCC*)
10585 case $host_cpu in
10586 hppa*64*)
10587 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10588 ;;
10589 ia64*)
10590 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000010591 ;;
10592 *)
10593 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10594 ;;
10595 esac
10596 # Commands to make compiler produce verbose output that lists
10597 # what "hidden" libraries, object files and flags are used when
10598 # linking a shared library.
10599 #
10600 # There doesn't appear to be a way to prevent this compiler from
10601 # explicitly linking system object files so we need to strip them
10602 # from the output so that they don't get included in the library
10603 # dependencies.
10604 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'
10605 ;;
10606 *)
10607 if test "$GXX" = yes; then
10608 if test $with_gnu_ld = no; then
vapier7f19c022007-02-17 14:46:31 +000010609 case $host_cpu in
10610 hppa*64*)
10611 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10612 ;;
10613 ia64*)
10614 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000010615 ;;
10616 *)
10617 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'
10618 ;;
10619 esac
10620 fi
10621 else
10622 # FIXME: insert proper C++ library support
10623 ld_shlibs_CXX=no
10624 fi
10625 ;;
10626 esac
10627 ;;
vapier7f19c022007-02-17 14:46:31 +000010628 interix3*)
10629 hardcode_direct_CXX=no
10630 hardcode_shlibpath_var_CXX=no
10631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10632 export_dynamic_flag_spec_CXX='${wl}-E'
10633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10634 # Instead, shared libraries are loaded at an image base (0x10000000 by
10635 # default) and relocated if they conflict, which is a slow very memory
10636 # consuming and fragmenting process. To avoid this, we pick a random,
10637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10638 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10639 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'
10640 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'
10641 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010642 irix5* | irix6*)
10643 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010644 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010645 # SGI C++
vapier7f19c022007-02-17 14:46:31 +000010646 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010647
10648 # Archives containing C++ object files must be created using
10649 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10650 # necessary to make sure instantiated templates are included
10651 # in the archive.
10652 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10653 ;;
10654 *)
10655 if test "$GXX" = yes; then
10656 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000010657 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010658 else
10659 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'
10660 fi
10661 fi
10662 link_all_deplibs_CXX=yes
10663 ;;
10664 esac
10665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10666 hardcode_libdir_separator_CXX=:
10667 ;;
10668 linux*)
10669 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010670 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010671 # Kuck and Associates, Inc. (KAI) C++ Compiler
10672
10673 # KCC will only create a shared library if the output file
10674 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10675 # to its proper name (with version) after linking.
10676 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'
10677 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'
10678 # Commands to make compiler produce verbose output that lists
10679 # what "hidden" libraries, object files and flags are used when
10680 # linking a shared library.
10681 #
10682 # There doesn't appear to be a way to prevent this compiler from
10683 # explicitly linking system object files so we need to strip them
10684 # from the output so that they don't get included in the library
10685 # dependencies.
10686 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'
10687
10688 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10690
10691 # Archives containing C++ object files must be created using
10692 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10693 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10694 ;;
vapier7f19c022007-02-17 14:46:31 +000010695 icpc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010696 # Intel C++
10697 with_gnu_ld=yes
vapier7f19c022007-02-17 14:46:31 +000010698 # version 8.0 and above of icpc choke on multiply defined symbols
10699 # if we add $predep_objects and $postdep_objects, however 7.1 and
10700 # earlier do not add the objects themselves.
10701 case `$CC -V 2>&1` in
10702 *"Version 7."*)
10703 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10704 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'
10705 ;;
10706 *) # Version 8.0 or newer
10707 tmp_idyn=
10708 case $host_cpu in
10709 ia64*) tmp_idyn=' -i_dynamic';;
10710 esac
10711 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10712 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'
10713 ;;
10714 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000010715 archive_cmds_need_lc_CXX=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10718 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10719 ;;
vapier7f19c022007-02-17 14:46:31 +000010720 pgCC*)
10721 # Portland Group C++ compiler
10722 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10723 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'
10724
10725 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10726 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10727 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'
10728 ;;
10729 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010730 # Compaq C++
10731 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10732 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'
10733
10734 runpath_var=LD_RUN_PATH
10735 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10736 hardcode_libdir_separator_CXX=:
10737
10738 # Commands to make compiler produce verbose output that lists
10739 # what "hidden" libraries, object files and flags are used when
10740 # linking a shared library.
10741 #
10742 # There doesn't appear to be a way to prevent this compiler from
10743 # explicitly linking system object files so we need to strip them
10744 # from the output so that they don't get included in the library
10745 # dependencies.
10746 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'
10747 ;;
10748 esac
10749 ;;
10750 lynxos*)
10751 # FIXME: insert proper C++ library support
10752 ld_shlibs_CXX=no
10753 ;;
10754 m88k*)
10755 # FIXME: insert proper C++ library support
10756 ld_shlibs_CXX=no
10757 ;;
10758 mvs*)
10759 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010760 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010761 # FIXME: insert proper C++ library support
10762 ld_shlibs_CXX=no
10763 ;;
10764 *)
10765 # FIXME: insert proper C++ library support
10766 ld_shlibs_CXX=no
10767 ;;
10768 esac
10769 ;;
vapier7f19c022007-02-17 14:46:31 +000010770 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10772 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10773 wlarc=
10774 hardcode_libdir_flag_spec_CXX='-R$libdir'
10775 hardcode_direct_CXX=yes
10776 hardcode_shlibpath_var_CXX=no
10777 fi
10778 # Workaround some broken pre-1.5 toolchains
10779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10780 ;;
vapier7f19c022007-02-17 14:46:31 +000010781 openbsd2*)
10782 # C++ shared libraries are fairly broken
10783 ld_shlibs_CXX=no
10784 ;;
10785 openbsd*)
10786 hardcode_direct_CXX=yes
10787 hardcode_shlibpath_var_CXX=no
10788 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10791 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10792 export_dynamic_flag_spec_CXX='${wl}-E'
10793 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10794 fi
10795 output_verbose_link_cmd='echo'
10796 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010797 osf3*)
10798 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010799 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010800 # Kuck and Associates, Inc. (KAI) C++ Compiler
10801
10802 # KCC will only create a shared library if the output file
10803 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10804 # to its proper name (with version) after linking.
10805 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'
10806
10807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10808 hardcode_libdir_separator_CXX=:
10809
10810 # Archives containing C++ object files must be created using
10811 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10812 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10813
10814 ;;
vapier7f19c022007-02-17 14:46:31 +000010815 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010816 # Rational C++ 2.4.1
10817 # FIXME: insert proper C++ library support
10818 ld_shlibs_CXX=no
10819 ;;
vapier7f19c022007-02-17 14:46:31 +000010820 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010821 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010822 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010823
10824 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10825 hardcode_libdir_separator_CXX=:
10826
10827 # Commands to make compiler produce verbose output that lists
10828 # what "hidden" libraries, object files and flags are used when
10829 # linking a shared library.
10830 #
10831 # There doesn't appear to be a way to prevent this compiler from
10832 # explicitly linking system object files so we need to strip them
10833 # from the output so that they don't get included in the library
10834 # dependencies.
10835 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'
10836 ;;
10837 *)
10838 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010840 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010841
10842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10843 hardcode_libdir_separator_CXX=:
10844
10845 # Commands to make compiler produce verbose output that lists
10846 # what "hidden" libraries, object files and flags are used when
10847 # linking a shared library.
10848 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10849
10850 else
10851 # FIXME: insert proper C++ library support
10852 ld_shlibs_CXX=no
10853 fi
10854 ;;
10855 esac
10856 ;;
10857 osf4* | osf5*)
10858 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010859 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010860 # Kuck and Associates, Inc. (KAI) C++ Compiler
10861
10862 # KCC will only create a shared library if the output file
10863 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10864 # to its proper name (with version) after linking.
10865 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'
10866
10867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10868 hardcode_libdir_separator_CXX=:
10869
10870 # Archives containing C++ object files must be created using
10871 # the KAI C++ compiler.
10872 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10873 ;;
vapier7f19c022007-02-17 14:46:31 +000010874 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010875 # Rational C++ 2.4.1
10876 # FIXME: insert proper C++ library support
10877 ld_shlibs_CXX=no
10878 ;;
vapier7f19c022007-02-17 14:46:31 +000010879 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010880 allow_undefined_flag_CXX=' -expect_unresolved \*'
vapier7f19c022007-02-17 14:46:31 +000010881 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010882 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10883 echo "-hidden">> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +000010884 $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~
a.rottmann9bc8b932004-02-29 15:18:31 +000010885 $rm $lib.exp'
10886
10887 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10888 hardcode_libdir_separator_CXX=:
10889
10890 # Commands to make compiler produce verbose output that lists
10891 # what "hidden" libraries, object files and flags are used when
10892 # linking a shared library.
10893 #
10894 # There doesn't appear to be a way to prevent this compiler from
10895 # explicitly linking system object files so we need to strip them
10896 # from the output so that they don't get included in the library
10897 # dependencies.
10898 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'
10899 ;;
10900 *)
10901 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10902 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010903 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010904
10905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10906 hardcode_libdir_separator_CXX=:
10907
10908 # Commands to make compiler produce verbose output that lists
10909 # what "hidden" libraries, object files and flags are used when
10910 # linking a shared library.
10911 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10912
10913 else
10914 # FIXME: insert proper C++ library support
10915 ld_shlibs_CXX=no
10916 fi
10917 ;;
10918 esac
10919 ;;
10920 psos*)
10921 # FIXME: insert proper C++ library support
10922 ld_shlibs_CXX=no
10923 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010924 sunos4*)
10925 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010926 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010927 # Sun C++ 4.x
10928 # FIXME: insert proper C++ library support
10929 ld_shlibs_CXX=no
10930 ;;
vapier7f19c022007-02-17 14:46:31 +000010931 lcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010932 # Lucid
10933 # FIXME: insert proper C++ library support
10934 ld_shlibs_CXX=no
10935 ;;
10936 *)
10937 # FIXME: insert proper C++ library support
10938 ld_shlibs_CXX=no
10939 ;;
10940 esac
10941 ;;
10942 solaris*)
10943 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010944 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010945 # Sun C++ 4.2, 5.x and Centerline C++
vapier7f19c022007-02-17 14:46:31 +000010946 archive_cmds_need_lc_CXX=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010947 no_undefined_flag_CXX=' -zdefs'
vapier7f19c022007-02-17 14:46:31 +000010948 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000010949 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +000010950 $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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010951
10952 hardcode_libdir_flag_spec_CXX='-R$libdir'
10953 hardcode_shlibpath_var_CXX=no
10954 case $host_os in
vapier7f19c022007-02-17 14:46:31 +000010955 solaris2.[0-5] | solaris2.[0-5].*) ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010956 *)
10957 # The C++ compiler is used as linker so we must use $wl
10958 # flag to pass the commands to the underlying system
vapier7f19c022007-02-17 14:46:31 +000010959 # linker. We must also pass each convience library through
10960 # to the system linker between allextract/defaultextract.
10961 # The C++ compiler will combine linker options so we
10962 # cannot just pass the convience library names through
10963 # without $wl.
a.rottmann9bc8b932004-02-29 15:18:31 +000010964 # Supported since Solaris 2.6 (maybe 2.5.1?)
vapier7f19c022007-02-17 14:46:31 +000010965 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010966 ;;
10967 esac
10968 link_all_deplibs_CXX=yes
10969
vapier7f19c022007-02-17 14:46:31 +000010970 output_verbose_link_cmd='echo'
a.rottmann9bc8b932004-02-29 15:18:31 +000010971
10972 # Archives containing C++ object files must be created using
10973 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10974 # necessary to make sure instantiated templates are included
10975 # in the archive.
10976 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10977 ;;
vapier7f19c022007-02-17 14:46:31 +000010978 gcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010979 # Green Hills C++ Compiler
10980 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10981
10982 # The C++ compiler must be used to create the archive.
10983 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10984 ;;
10985 *)
10986 # GNU C++ compiler with Solaris linker
10987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10988 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10989 if $CC --version | grep -v '^2\.7' > /dev/null; then
10990 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10991 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10992 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10993
10994 # Commands to make compiler produce verbose output that lists
10995 # what "hidden" libraries, object files and flags are used when
10996 # linking a shared library.
10997 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10998 else
10999 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11000 # platform.
11001 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11002 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11003 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11004
11005 # Commands to make compiler produce verbose output that lists
11006 # what "hidden" libraries, object files and flags are used when
11007 # linking a shared library.
11008 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11009 fi
11010
11011 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11012 fi
11013 ;;
11014 esac
11015 ;;
vapier7f19c022007-02-17 14:46:31 +000011016 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11017 no_undefined_flag_CXX='${wl}-z,text'
a.rottmann9bc8b932004-02-29 15:18:31 +000011018 archive_cmds_need_lc_CXX=no
vapier7f19c022007-02-17 14:46:31 +000011019 hardcode_shlibpath_var_CXX=no
11020 runpath_var='LD_RUN_PATH'
11021
11022 case $cc_basename in
11023 CC*)
11024 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026 ;;
11027 *)
11028 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 ;;
11031 esac
11032 ;;
11033 sysv5* | sco3.2v5* | sco5v6*)
11034 # Note: We can NOT use -z defs as we might desire, because we do not
11035 # link with -lc, and that would cause any symbols used from libc to
11036 # always be unresolved, which means just about no library would
11037 # ever link correctly. If we're not using GNU ld we use -z text
11038 # though, which does catch some bad symbols but isn't as heavy-handed
11039 # as -z defs.
11040 # For security reasons, it is highly recommended that you always
11041 # use absolute paths for naming shared libraries, and exclude the
11042 # DT_RUNPATH tag from executables and libraries. But doing so
11043 # requires that you compile everything twice, which is a pain.
11044 # So that behaviour is only enabled if SCOABSPATH is set to a
11045 # non-empty value in the environment. Most likely only useful for
11046 # creating official distributions of packages.
11047 # This is a hack until libtool officially supports absolute path
11048 # names for shared libraries.
11049 no_undefined_flag_CXX='${wl}-z,text'
11050 allow_undefined_flag_CXX='${wl}-z,nodefs'
11051 archive_cmds_need_lc_CXX=no
11052 hardcode_shlibpath_var_CXX=no
11053 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11054 hardcode_libdir_separator_CXX=':'
11055 link_all_deplibs_CXX=yes
11056 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11057 runpath_var='LD_RUN_PATH'
11058
11059 case $cc_basename in
11060 CC*)
11061 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11062 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11063 ;;
11064 *)
11065 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11066 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11067 ;;
11068 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000011069 ;;
11070 tandem*)
11071 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011072 NCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011073 # NonStop-UX NCC 3.20
11074 # FIXME: insert proper C++ library support
11075 ld_shlibs_CXX=no
11076 ;;
11077 *)
11078 # FIXME: insert proper C++ library support
11079 ld_shlibs_CXX=no
11080 ;;
11081 esac
11082 ;;
11083 vxworks*)
11084 # FIXME: insert proper C++ library support
11085 ld_shlibs_CXX=no
11086 ;;
11087 *)
11088 # FIXME: insert proper C++ library support
11089 ld_shlibs_CXX=no
11090 ;;
11091esac
mlcreech94984912008-03-04 19:03:08 +000011092{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11093echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011094test "$ld_shlibs_CXX" = no && can_build_shared=no
11095
11096GCC_CXX="$GXX"
11097LD_CXX="$LD"
11098
11099
11100cat > conftest.$ac_ext <<EOF
11101class Foo
11102{
11103public:
11104 Foo (void) { a = 0; }
11105private:
11106 int a;
11107};
11108EOF
11109
11110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11111 (eval $ac_compile) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; then
11115 # Parse the compiler output and extract the necessary
11116 # objects, libraries and library flags.
11117
11118 # Sentinel used to keep track of whether or not we are before
11119 # the conftest object file.
11120 pre_test_object_deps_done=no
11121
11122 # The `*' in the case matches for architectures that use `case' in
11123 # $output_verbose_cmd can trigger glob expansion during the loop
11124 # eval without this substitution.
vapier7f19c022007-02-17 14:46:31 +000011125 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
a.rottmann9bc8b932004-02-29 15:18:31 +000011126
11127 for p in `eval $output_verbose_link_cmd`; do
11128 case $p in
11129
11130 -L* | -R* | -l*)
11131 # Some compilers place space between "-{L,R}" and the path.
11132 # Remove the space.
11133 if test $p = "-L" \
11134 || test $p = "-R"; then
11135 prev=$p
11136 continue
11137 else
11138 prev=
11139 fi
11140
11141 if test "$pre_test_object_deps_done" = no; then
11142 case $p in
11143 -L* | -R*)
11144 # Internal compiler library paths should come after those
11145 # provided the user. The postdeps already come after the
11146 # user supplied libs so there is no need to process them.
11147 if test -z "$compiler_lib_search_path_CXX"; then
11148 compiler_lib_search_path_CXX="${prev}${p}"
11149 else
11150 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11151 fi
11152 ;;
11153 # The "-l" case would never come before the object being
11154 # linked, so don't bother handling this case.
11155 esac
11156 else
11157 if test -z "$postdeps_CXX"; then
11158 postdeps_CXX="${prev}${p}"
11159 else
11160 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11161 fi
11162 fi
11163 ;;
11164
11165 *.$objext)
11166 # This assumes that the test object file only shows up
11167 # once in the compiler output.
11168 if test "$p" = "conftest.$objext"; then
11169 pre_test_object_deps_done=yes
11170 continue
11171 fi
11172
11173 if test "$pre_test_object_deps_done" = no; then
11174 if test -z "$predep_objects_CXX"; then
11175 predep_objects_CXX="$p"
11176 else
11177 predep_objects_CXX="$predep_objects_CXX $p"
11178 fi
11179 else
11180 if test -z "$postdep_objects_CXX"; then
11181 postdep_objects_CXX="$p"
11182 else
11183 postdep_objects_CXX="$postdep_objects_CXX $p"
11184 fi
11185 fi
11186 ;;
11187
11188 *) ;; # Ignore the rest.
11189
11190 esac
11191 done
11192
11193 # Clean up.
11194 rm -f a.out a.exe
11195else
11196 echo "libtool.m4: error: problem compiling CXX test program"
11197fi
11198
11199$rm -f confest.$objext
11200
vapier7f19c022007-02-17 14:46:31 +000011201# PORTME: override above test on systems where it is broken
11202case $host_os in
11203interix3*)
11204 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11205 # hack all around it, let's just trust "g++" to DTRT.
11206 predep_objects_CXX=
11207 postdep_objects_CXX=
11208 postdeps_CXX=
11209 ;;
11210
11211solaris*)
11212 case $cc_basename in
11213 CC*)
11214 # Adding this requires a known-good setup of shared libraries for
11215 # Sun compiler versions before 5.6, else PIC objects from an old
11216 # archive will be linked into the output, leading to subtle bugs.
11217 postdeps_CXX='-lCstd -lCrun'
11218 ;;
11219 esac
11220 ;;
11221esac
11222
11223
a.rottmann9bc8b932004-02-29 15:18:31 +000011224case " $postdeps_CXX " in
11225*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11226esac
11227
11228lt_prog_compiler_wl_CXX=
11229lt_prog_compiler_pic_CXX=
11230lt_prog_compiler_static_CXX=
11231
mlcreech94984912008-03-04 19:03:08 +000011232{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11233echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011234
11235 # C++ specific cases for pic, static, wl, etc.
11236 if test "$GXX" = yes; then
11237 lt_prog_compiler_wl_CXX='-Wl,'
11238 lt_prog_compiler_static_CXX='-static'
11239
11240 case $host_os in
11241 aix*)
11242 # All AIX code is PIC.
11243 if test "$host_cpu" = ia64; then
11244 # AIX 5 now supports IA64 processor
11245 lt_prog_compiler_static_CXX='-Bstatic'
11246 fi
11247 ;;
11248 amigaos*)
11249 # FIXME: we need at least 68020 code to build shared libraries, but
11250 # adding the `-m68020' flag to GCC prevents building anything better,
11251 # like `-m68040'.
11252 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11253 ;;
11254 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11255 # PIC is the default for these OSes.
11256 ;;
11257 mingw* | os2* | pw32*)
11258 # This hack is so that the source file can tell whether it is being
11259 # built for inclusion in a dll (and should export symbols for example).
11260 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11261 ;;
11262 darwin* | rhapsody*)
11263 # PIC is the default on this platform
11264 # Common symbols not allowed in MH_DYLIB files
11265 lt_prog_compiler_pic_CXX='-fno-common'
11266 ;;
11267 *djgpp*)
11268 # DJGPP does not support shared libraries at all
11269 lt_prog_compiler_pic_CXX=
11270 ;;
vapier7f19c022007-02-17 14:46:31 +000011271 interix3*)
11272 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11273 # Instead, we relocate shared libraries at runtime.
11274 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011275 sysv4*MP*)
11276 if test -d /usr/nec; then
11277 lt_prog_compiler_pic_CXX=-Kconform_pic
11278 fi
11279 ;;
11280 hpux*)
11281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11282 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000011283 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000011284 hppa*64*|ia64*)
11285 ;;
11286 *)
11287 lt_prog_compiler_pic_CXX='-fPIC'
11288 ;;
11289 esac
11290 ;;
11291 *)
11292 lt_prog_compiler_pic_CXX='-fPIC'
11293 ;;
11294 esac
11295 else
11296 case $host_os in
11297 aix4* | aix5*)
11298 # All AIX code is PIC.
11299 if test "$host_cpu" = ia64; then
11300 # AIX 5 now supports IA64 processor
11301 lt_prog_compiler_static_CXX='-Bstatic'
11302 else
11303 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11304 fi
11305 ;;
11306 chorus*)
11307 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011308 cxch68*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011309 # Green Hills C++ Compiler
11310 # _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"
11311 ;;
11312 esac
11313 ;;
vapier7f19c022007-02-17 14:46:31 +000011314 darwin*)
11315 # PIC is the default on this platform
11316 # Common symbols not allowed in MH_DYLIB files
11317 case $cc_basename in
11318 xlc*)
11319 lt_prog_compiler_pic_CXX='-qnocommon'
11320 lt_prog_compiler_wl_CXX='-Wl,'
11321 ;;
11322 esac
11323 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011324 dgux*)
11325 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011326 ec++*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011327 lt_prog_compiler_pic_CXX='-KPIC'
11328 ;;
vapier7f19c022007-02-17 14:46:31 +000011329 ghcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011330 # Green Hills C++ Compiler
11331 lt_prog_compiler_pic_CXX='-pic'
11332 ;;
11333 *)
11334 ;;
11335 esac
11336 ;;
vapier7f19c022007-02-17 14:46:31 +000011337 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011338 # FreeBSD uses GNU C++
11339 ;;
11340 hpux9* | hpux10* | hpux11*)
11341 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011342 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011343 lt_prog_compiler_wl_CXX='-Wl,'
vapier7f19c022007-02-17 14:46:31 +000011344 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
a.rottmann9bc8b932004-02-29 15:18:31 +000011345 if test "$host_cpu" != ia64; then
11346 lt_prog_compiler_pic_CXX='+Z'
11347 fi
11348 ;;
vapier7f19c022007-02-17 14:46:31 +000011349 aCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011350 lt_prog_compiler_wl_CXX='-Wl,'
vapier7f19c022007-02-17 14:46:31 +000011351 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11352 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000011353 hppa*64*|ia64*)
11354 # +Z the default
11355 ;;
11356 *)
11357 lt_prog_compiler_pic_CXX='+Z'
11358 ;;
11359 esac
11360 ;;
11361 *)
11362 ;;
11363 esac
11364 ;;
vapier7f19c022007-02-17 14:46:31 +000011365 interix*)
11366 # This is c89, which is MS Visual C++ (no shared libs)
11367 # Anyone wants to do a port?
11368 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011369 irix5* | irix6* | nonstopux*)
11370 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011371 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011372 lt_prog_compiler_wl_CXX='-Wl,'
11373 lt_prog_compiler_static_CXX='-non_shared'
11374 # CC pic flag -KPIC is the default.
11375 ;;
11376 *)
11377 ;;
11378 esac
11379 ;;
11380 linux*)
11381 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011382 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011383 # KAI C++ Compiler
11384 lt_prog_compiler_wl_CXX='--backend -Wl,'
11385 lt_prog_compiler_pic_CXX='-fPIC'
11386 ;;
vapier7f19c022007-02-17 14:46:31 +000011387 icpc* | ecpc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011388 # Intel C++
11389 lt_prog_compiler_wl_CXX='-Wl,'
11390 lt_prog_compiler_pic_CXX='-KPIC'
11391 lt_prog_compiler_static_CXX='-static'
11392 ;;
vapier7f19c022007-02-17 14:46:31 +000011393 pgCC*)
11394 # Portland Group C++ compiler.
11395 lt_prog_compiler_wl_CXX='-Wl,'
11396 lt_prog_compiler_pic_CXX='-fpic'
11397 lt_prog_compiler_static_CXX='-Bstatic'
11398 ;;
11399 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011400 # Compaq C++
11401 # Make sure the PIC flag is empty. It appears that all Alpha
11402 # Linux and Compaq Tru64 Unix objects are PIC.
11403 lt_prog_compiler_pic_CXX=
11404 lt_prog_compiler_static_CXX='-non_shared'
11405 ;;
11406 *)
11407 ;;
11408 esac
11409 ;;
11410 lynxos*)
11411 ;;
11412 m88k*)
11413 ;;
11414 mvs*)
11415 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011416 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011417 lt_prog_compiler_pic_CXX='-W c,exportall'
11418 ;;
11419 *)
11420 ;;
11421 esac
11422 ;;
vapier7f19c022007-02-17 14:46:31 +000011423 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011424 ;;
11425 osf3* | osf4* | osf5*)
11426 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011427 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011428 lt_prog_compiler_wl_CXX='--backend -Wl,'
11429 ;;
vapier7f19c022007-02-17 14:46:31 +000011430 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011431 # Rational C++ 2.4.1
11432 lt_prog_compiler_pic_CXX='-pic'
11433 ;;
vapier7f19c022007-02-17 14:46:31 +000011434 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011435 # Digital/Compaq C++
11436 lt_prog_compiler_wl_CXX='-Wl,'
11437 # Make sure the PIC flag is empty. It appears that all Alpha
11438 # Linux and Compaq Tru64 Unix objects are PIC.
11439 lt_prog_compiler_pic_CXX=
11440 lt_prog_compiler_static_CXX='-non_shared'
11441 ;;
11442 *)
11443 ;;
11444 esac
11445 ;;
11446 psos*)
11447 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011448 solaris*)
11449 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011450 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011451 # Sun C++ 4.2, 5.x and Centerline C++
11452 lt_prog_compiler_pic_CXX='-KPIC'
11453 lt_prog_compiler_static_CXX='-Bstatic'
11454 lt_prog_compiler_wl_CXX='-Qoption ld '
11455 ;;
vapier7f19c022007-02-17 14:46:31 +000011456 gcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011457 # Green Hills C++ Compiler
11458 lt_prog_compiler_pic_CXX='-PIC'
11459 ;;
11460 *)
11461 ;;
11462 esac
11463 ;;
11464 sunos4*)
11465 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011466 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011467 # Sun C++ 4.x
11468 lt_prog_compiler_pic_CXX='-pic'
11469 lt_prog_compiler_static_CXX='-Bstatic'
11470 ;;
vapier7f19c022007-02-17 14:46:31 +000011471 lcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011472 # Lucid
11473 lt_prog_compiler_pic_CXX='-pic'
11474 ;;
11475 *)
11476 ;;
11477 esac
11478 ;;
11479 tandem*)
11480 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011481 NCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011482 # NonStop-UX NCC 3.20
11483 lt_prog_compiler_pic_CXX='-KPIC'
11484 ;;
11485 *)
11486 ;;
11487 esac
11488 ;;
vapier7f19c022007-02-17 14:46:31 +000011489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11490 case $cc_basename in
11491 CC*)
11492 lt_prog_compiler_wl_CXX='-Wl,'
11493 lt_prog_compiler_pic_CXX='-KPIC'
11494 lt_prog_compiler_static_CXX='-Bstatic'
11495 ;;
11496 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000011497 ;;
11498 vxworks*)
11499 ;;
11500 *)
11501 lt_prog_compiler_can_build_shared_CXX=no
11502 ;;
11503 esac
11504 fi
11505
mlcreech94984912008-03-04 19:03:08 +000011506{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11507echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011508
11509#
11510# Check to make sure the PIC flag actually works.
11511#
11512if test -n "$lt_prog_compiler_pic_CXX"; then
11513
mlcreech94984912008-03-04 19:03:08 +000011514{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11515echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011516if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518else
11519 lt_prog_compiler_pic_works_CXX=no
11520 ac_outfile=conftest.$ac_objext
11521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11522 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11523 # Insert the option either (1) after the last *FLAGS variable, or
11524 # (2) before a word containing "conftest.", or (3) at the end.
11525 # Note that $ac_compile itself does not contain backslashes and begins
11526 # with a dollar sign (not a hyphen), so the echo should work correctly.
11527 # The option is referenced via a variable to avoid confusing sed.
11528 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000011529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000011530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11531 -e 's:$: $lt_compiler_flag:'`
mlcreechb87057f2008-03-06 07:19:20 +000011532 (eval echo "\"\$as_me:11532: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000011533 (eval "$lt_compile" 2>conftest.err)
11534 ac_status=$?
11535 cat conftest.err >&5
mlcreechb87057f2008-03-06 07:19:20 +000011536 echo "$as_me:11536: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011537 if (exit $ac_status) && test -s "$ac_outfile"; then
11538 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000011539 # So say no if there are warnings other than the usual output.
11540 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000011543 lt_prog_compiler_pic_works_CXX=yes
11544 fi
11545 fi
11546 $rm conftest*
11547
11548fi
mlcreech94984912008-03-04 19:03:08 +000011549{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11550echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011551
11552if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11553 case $lt_prog_compiler_pic_CXX in
11554 "" | " "*) ;;
11555 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11556 esac
11557else
11558 lt_prog_compiler_pic_CXX=
11559 lt_prog_compiler_can_build_shared_CXX=no
11560fi
11561
11562fi
vapier7f19c022007-02-17 14:46:31 +000011563case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000011564 # For platforms which do not support PIC, -DPIC is meaningless:
11565 *djgpp*)
11566 lt_prog_compiler_pic_CXX=
11567 ;;
11568 *)
11569 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11570 ;;
11571esac
11572
vapier7f19c022007-02-17 14:46:31 +000011573#
11574# Check to make sure the static flag actually works.
11575#
11576wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
mlcreech94984912008-03-04 19:03:08 +000011577{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11578echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000011579if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11581else
11582 lt_prog_compiler_static_works_CXX=no
11583 save_LDFLAGS="$LDFLAGS"
11584 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11585 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11587 # The linker can only warn and ignore the option if not recognized
11588 # So say no if there are warnings
11589 if test -s conftest.err; then
11590 # Append any errors to the config.log.
11591 cat conftest.err 1>&5
11592 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11594 if diff conftest.exp conftest.er2 >/dev/null; then
11595 lt_prog_compiler_static_works_CXX=yes
11596 fi
11597 else
11598 lt_prog_compiler_static_works_CXX=yes
11599 fi
11600 fi
11601 $rm conftest*
11602 LDFLAGS="$save_LDFLAGS"
11603
11604fi
mlcreech94984912008-03-04 19:03:08 +000011605{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11606echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
vapier7f19c022007-02-17 14:46:31 +000011607
11608if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11609 :
11610else
11611 lt_prog_compiler_static_CXX=
11612fi
11613
11614
mlcreech94984912008-03-04 19:03:08 +000011615{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11616echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011617if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619else
11620 lt_cv_prog_compiler_c_o_CXX=no
11621 $rm -r conftest 2>/dev/null
11622 mkdir conftest
11623 cd conftest
11624 mkdir out
11625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11626
11627 lt_compiler_flag="-o out/conftest2.$ac_objext"
11628 # Insert the option either (1) after the last *FLAGS variable, or
11629 # (2) before a word containing "conftest.", or (3) at the end.
11630 # Note that $ac_compile itself does not contain backslashes and begins
11631 # with a dollar sign (not a hyphen), so the echo should work correctly.
11632 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000011633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000011634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11635 -e 's:$: $lt_compiler_flag:'`
mlcreechb87057f2008-03-06 07:19:20 +000011636 (eval echo "\"\$as_me:11636: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000011637 (eval "$lt_compile" 2>out/conftest.err)
11638 ac_status=$?
11639 cat out/conftest.err >&5
mlcreechb87057f2008-03-06 07:19:20 +000011640 echo "$as_me:11640: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11642 then
11643 # The compiler can only warn and ignore the option if not recognized
11644 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000011645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000011648 lt_cv_prog_compiler_c_o_CXX=yes
11649 fi
11650 fi
vapier7f19c022007-02-17 14:46:31 +000011651 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011652 $rm conftest*
11653 # SGI C++ compiler will create directory out/ii_files/ for
11654 # template instantiation
11655 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11656 $rm out/* && rmdir out
11657 cd ..
11658 rmdir conftest
11659 $rm conftest*
11660
11661fi
mlcreech94984912008-03-04 19:03:08 +000011662{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11663echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011664
11665
11666hard_links="nottested"
11667if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11668 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000011669 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11670echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011671 hard_links=yes
11672 $rm conftest*
11673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11674 touch conftest.a
11675 ln conftest.a conftest.b 2>&5 || hard_links=no
11676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000011677 { echo "$as_me:$LINENO: result: $hard_links" >&5
11678echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011679 if test "$hard_links" = no; then
11680 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11681echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11682 need_locks=warn
11683 fi
11684else
11685 need_locks=no
11686fi
11687
mlcreech94984912008-03-04 19:03:08 +000011688{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11689echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011690
11691 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11692 case $host_os in
11693 aix4* | aix5*)
11694 # If we're using GNU nm, then we don't want the "-C" option.
11695 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11696 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11697 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'
11698 else
11699 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'
11700 fi
11701 ;;
11702 pw32*)
11703 export_symbols_cmds_CXX="$ltdll_cmds"
11704 ;;
11705 cygwin* | mingw*)
vapier7f19c022007-02-17 14:46:31 +000011706 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000011707 ;;
11708 *)
11709 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11710 ;;
11711 esac
11712
mlcreech94984912008-03-04 19:03:08 +000011713{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11714echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011715test "$ld_shlibs_CXX" = no && can_build_shared=no
11716
a.rottmann9bc8b932004-02-29 15:18:31 +000011717#
11718# Do we need to explicitly link libc?
11719#
11720case "x$archive_cmds_need_lc_CXX" in
11721x|xyes)
11722 # Assume -lc should be added
11723 archive_cmds_need_lc_CXX=yes
11724
11725 if test "$enable_shared" = yes && test "$GCC" = yes; then
11726 case $archive_cmds_CXX in
11727 *'~'*)
11728 # FIXME: we may have to deal with multi-command sequences.
11729 ;;
11730 '$CC '*)
11731 # Test whether the compiler implicitly links with -lc since on some
11732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11733 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000011734 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11735echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011736 $rm conftest*
11737 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11738
11739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } 2>conftest.err; then
11744 soname=conftest
11745 lib=conftest
11746 libobjs=conftest.$ac_objext
11747 deplibs=
11748 wl=$lt_prog_compiler_wl_CXX
vapier7f19c022007-02-17 14:46:31 +000011749 pic_flag=$lt_prog_compiler_pic_CXX
a.rottmann9bc8b932004-02-29 15:18:31 +000011750 compiler_flags=-v
11751 linker_flags=-v
11752 verstring=
11753 output_objdir=.
11754 libname=conftest
11755 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11756 allow_undefined_flag_CXX=
11757 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11758 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }
11762 then
11763 archive_cmds_need_lc_CXX=no
11764 else
11765 archive_cmds_need_lc_CXX=yes
11766 fi
11767 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11768 else
11769 cat conftest.err 1>&5
11770 fi
11771 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000011772 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11773echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011774 ;;
11775 esac
11776 fi
11777 ;;
11778esac
11779
mlcreech94984912008-03-04 19:03:08 +000011780{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11781echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011782library_names_spec=
11783libname_spec='lib$name'
11784soname_spec=
vapier7f19c022007-02-17 14:46:31 +000011785shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000011786postinstall_cmds=
11787postuninstall_cmds=
11788finish_cmds=
11789finish_eval=
11790shlibpath_var=
11791shlibpath_overrides_runpath=unknown
11792version_type=none
11793dynamic_linker="$host_os ld.so"
11794sys_lib_dlsearch_path_spec="/lib /usr/lib"
11795if test "$GCC" = yes; then
11796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11797 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11798 # if the path contains ";" then we assume it to be the separator
11799 # otherwise default to the standard path separator (i.e. ":") - it is
11800 # assumed that no part of a normal pathname contains ";" but that should
11801 # okay in the real world where ";" in dirpaths is itself problematic.
11802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11803 else
11804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11805 fi
11806else
11807 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11808fi
11809need_lib_prefix=unknown
11810hardcode_into_libs=no
11811
11812# when you set need_version to no, make sure it does not cause -set_version
11813# flags to be left without arguments
11814need_version=unknown
11815
11816case $host_os in
11817aix3*)
11818 version_type=linux
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11820 shlibpath_var=LIBPATH
11821
11822 # AIX 3 has no versioning support, so we append a major version to the name.
11823 soname_spec='${libname}${release}${shared_ext}$major'
11824 ;;
11825
11826aix4* | aix5*)
11827 version_type=linux
11828 need_lib_prefix=no
11829 need_version=no
11830 hardcode_into_libs=yes
11831 if test "$host_cpu" = ia64; then
11832 # AIX 5 supports IA64
11833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 else
11836 # With GCC up to 2.95.x, collect2 would create an import file
11837 # for dependence libraries. The import file would start with
11838 # the line `#! .'. This would cause the generated library to
11839 # depend on `.', always an invalid library. This was fixed in
11840 # development snapshots of GCC prior to 3.0.
11841 case $host_os in
11842 aix4 | aix4.[01] | aix4.[01].*)
11843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11844 echo ' yes '
11845 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11846 :
11847 else
11848 can_build_shared=no
11849 fi
11850 ;;
11851 esac
11852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11853 # soname into executable. Probably we can add versioning support to
11854 # collect2, so additional links can be useful in future.
11855 if test "$aix_use_runtimelinking" = yes; then
11856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11857 # instead of lib<name>.a to let people know that these are not
11858 # typical AIX shared libraries.
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860 else
11861 # We preserve .a as extension for shared libraries through AIX4.2
11862 # and later when we are not doing run time linking.
11863 library_names_spec='${libname}${release}.a $libname.a'
11864 soname_spec='${libname}${release}${shared_ext}$major'
11865 fi
11866 shlibpath_var=LIBPATH
11867 fi
11868 ;;
11869
11870amigaos*)
11871 library_names_spec='$libname.ixlibrary $libname.a'
11872 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11873 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'
11874 ;;
11875
11876beos*)
11877 library_names_spec='${libname}${shared_ext}'
11878 dynamic_linker="$host_os ld.so"
11879 shlibpath_var=LIBRARY_PATH
11880 ;;
11881
vapier7f19c022007-02-17 14:46:31 +000011882bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011883 version_type=linux
11884 need_version=no
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11891 # the default ld.so.conf also contains /usr/contrib/lib and
11892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11893 # libtool to hard-code these into programs
11894 ;;
11895
11896cygwin* | mingw* | pw32*)
11897 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000011898 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000011899 need_version=no
11900 need_lib_prefix=no
11901
11902 case $GCC,$host_os in
11903 yes,cygwin* | yes,mingw* | yes,pw32*)
11904 library_names_spec='$libname.dll.a'
11905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11906 postinstall_cmds='base_file=`basename \${file}`~
11907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11908 dldir=$destdir/`dirname \$dlpath`~
11909 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000011910 $install_prog $dir/$dlname \$dldir/$dlname~
11911 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000011912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11913 dlpath=$dir/\$dldll~
11914 $rm \$dlpath'
11915 shlibpath_overrides_runpath=yes
11916
11917 case $host_os in
11918 cygwin*)
11919 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11921 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11922 ;;
11923 mingw*)
11924 # MinGW DLLs use traditional 'lib' prefix
11925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11926 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11927 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11928 # It is most probably a Windows format PATH printed by
11929 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11930 # path with ; separators, and with drive letters. We can handle the
11931 # drive letters (cygwin fileutils understands them), so leave them,
11932 # especially as we might pass files found there to a mingw objdump,
11933 # which wouldn't understand a cygwinified path. Ahh.
11934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11935 else
11936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11937 fi
11938 ;;
11939 pw32*)
11940 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000011941 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +000011942 ;;
11943 esac
11944 ;;
11945
vapier7f19c022007-02-17 14:46:31 +000011946 linux*)
11947 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11949 supports_anon_versioning=no
11950 case `$LD -v 2>/dev/null` in
11951 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11952 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11953 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11954 *\ 2.11.*) ;; # other 2.11 versions
11955 *) supports_anon_versioning=yes ;;
11956 esac
11957 if test $supports_anon_versioning = yes; then
11958 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11959cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11960$echo "local: *; };" >> $output_objdir/$libname.ver~
11961 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11962 else
11963 $archive_expsym_cmds="$archive_cmds"
11964 fi
11965 else
11966 ld_shlibs=no
11967 fi
11968 ;;
11969
a.rottmann9bc8b932004-02-29 15:18:31 +000011970 *)
11971 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11972 ;;
11973 esac
11974 dynamic_linker='Win32 ld.exe'
11975 # FIXME: first we should search . and the directory the executable is in
11976 shlibpath_var=PATH
11977 ;;
11978
11979darwin* | rhapsody*)
11980 dynamic_linker="$host_os dyld"
11981 version_type=darwin
11982 need_lib_prefix=no
11983 need_version=no
11984 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11985 soname_spec='${libname}${release}${major}$shared_ext'
11986 shlibpath_overrides_runpath=yes
11987 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000011988 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000011989 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11990 if test "$GCC" = yes; then
11991 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"`
11992 else
11993 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11994 fi
11995 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11996 ;;
11997
11998dgux*)
11999 version_type=linux
12000 need_lib_prefix=no
12001 need_version=no
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12003 soname_spec='${libname}${release}${shared_ext}$major'
12004 shlibpath_var=LD_LIBRARY_PATH
12005 ;;
12006
12007freebsd1*)
12008 dynamic_linker=no
12009 ;;
12010
12011kfreebsd*-gnu)
12012 version_type=linux
12013 need_lib_prefix=no
12014 need_version=no
12015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12016 soname_spec='${libname}${release}${shared_ext}$major'
12017 shlibpath_var=LD_LIBRARY_PATH
12018 shlibpath_overrides_runpath=no
12019 hardcode_into_libs=yes
12020 dynamic_linker='GNU ld.so'
12021 ;;
12022
vapier7f19c022007-02-17 14:46:31 +000012023freebsd* | dragonfly*)
12024 # DragonFly does not have aout. When/if they implement a new
12025 # versioning mechanism, adjust this.
12026 if test -x /usr/bin/objformat; then
12027 objformat=`/usr/bin/objformat`
12028 else
12029 case $host_os in
12030 freebsd[123]*) objformat=aout ;;
12031 *) objformat=elf ;;
12032 esac
12033 fi
12034 # Handle Gentoo/FreeBSD as it was Linux
12035 case $host_vendor in
12036 gentoo)
12037 version_type=linux ;;
12038 *)
12039 version_type=freebsd-$objformat ;;
12040 esac
12041
a.rottmann9bc8b932004-02-29 15:18:31 +000012042 case $version_type in
12043 freebsd-elf*)
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12045 need_version=no
12046 need_lib_prefix=no
12047 ;;
12048 freebsd-*)
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12050 need_version=yes
12051 ;;
vapier7f19c022007-02-17 14:46:31 +000012052 linux)
12053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12054 soname_spec='${libname}${release}${shared_ext}$major'
12055 need_lib_prefix=no
12056 need_version=no
12057 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012058 esac
12059 shlibpath_var=LD_LIBRARY_PATH
12060 case $host_os in
12061 freebsd2*)
12062 shlibpath_overrides_runpath=yes
12063 ;;
vapier7f19c022007-02-17 14:46:31 +000012064 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012065 shlibpath_overrides_runpath=yes
12066 hardcode_into_libs=yes
12067 ;;
vapier7f19c022007-02-17 14:46:31 +000012068 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12069 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000012070 shlibpath_overrides_runpath=no
12071 hardcode_into_libs=yes
12072 ;;
vapier7f19c022007-02-17 14:46:31 +000012073 freebsd*) # from 4.6 on
12074 shlibpath_overrides_runpath=yes
12075 hardcode_into_libs=yes
12076 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012077 esac
12078 ;;
12079
12080gnu*)
12081 version_type=linux
12082 need_lib_prefix=no
12083 need_version=no
12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12085 soname_spec='${libname}${release}${shared_ext}$major'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 hardcode_into_libs=yes
12088 ;;
12089
12090hpux9* | hpux10* | hpux11*)
12091 # Give a soname corresponding to the major version so that dld.sl refuses to
12092 # link against other versions.
12093 version_type=sunos
12094 need_lib_prefix=no
12095 need_version=no
vapier7f19c022007-02-17 14:46:31 +000012096 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000012097 ia64*)
vapier7f19c022007-02-17 14:46:31 +000012098 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000012099 hardcode_into_libs=yes
12100 dynamic_linker="$host_os dld.so"
12101 shlibpath_var=LD_LIBRARY_PATH
12102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104 soname_spec='${libname}${release}${shared_ext}$major'
12105 if test "X$HPUX_IA64_MODE" = X32; then
12106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12107 else
12108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12109 fi
12110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12111 ;;
12112 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000012113 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000012114 hardcode_into_libs=yes
12115 dynamic_linker="$host_os dld.sl"
12116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12119 soname_spec='${libname}${release}${shared_ext}$major'
12120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12122 ;;
12123 *)
vapier7f19c022007-02-17 14:46:31 +000012124 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000012125 dynamic_linker="$host_os dld.sl"
12126 shlibpath_var=SHLIB_PATH
12127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12129 soname_spec='${libname}${release}${shared_ext}$major'
12130 ;;
12131 esac
12132 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12133 postinstall_cmds='chmod 555 $lib'
12134 ;;
12135
vapier7f19c022007-02-17 14:46:31 +000012136interix3*)
12137 version_type=linux
12138 need_lib_prefix=no
12139 need_version=no
12140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12141 soname_spec='${libname}${release}${shared_ext}$major'
12142 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12143 shlibpath_var=LD_LIBRARY_PATH
12144 shlibpath_overrides_runpath=no
12145 hardcode_into_libs=yes
12146 ;;
12147
a.rottmann9bc8b932004-02-29 15:18:31 +000012148irix5* | irix6* | nonstopux*)
12149 case $host_os in
12150 nonstopux*) version_type=nonstopux ;;
12151 *)
12152 if test "$lt_cv_prog_gnu_ld" = yes; then
12153 version_type=linux
12154 else
12155 version_type=irix
12156 fi ;;
12157 esac
12158 need_lib_prefix=no
12159 need_version=no
12160 soname_spec='${libname}${release}${shared_ext}$major'
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12162 case $host_os in
12163 irix5* | nonstopux*)
12164 libsuff= shlibsuff=
12165 ;;
12166 *)
12167 case $LD in # libtool.m4 will add one of these switches to LD
12168 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12169 libsuff= shlibsuff= libmagic=32-bit;;
12170 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12171 libsuff=32 shlibsuff=N32 libmagic=N32;;
12172 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12173 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12174 *) libsuff= shlibsuff= libmagic=never-match;;
12175 esac
12176 ;;
12177 esac
12178 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12179 shlibpath_overrides_runpath=no
12180 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12181 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12182 hardcode_into_libs=yes
12183 ;;
12184
12185# No shared lib support for Linux oldld, aout, or coff.
12186linux*oldld* | linux*aout* | linux*coff*)
12187 dynamic_linker=no
12188 ;;
12189
12190# This must be Linux ELF.
12191linux*)
12192 version_type=linux
12193 need_lib_prefix=no
12194 need_version=no
12195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12196 soname_spec='${libname}${release}${shared_ext}$major'
12197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12198 shlibpath_var=LD_LIBRARY_PATH
12199 shlibpath_overrides_runpath=no
12200 # This implies no fast_install, which is unacceptable.
12201 # Some rework will be needed to allow for fast_install
12202 # before this can be enabled.
12203 hardcode_into_libs=yes
12204
12205 # Append ld.so.conf contents to the search path
12206 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000012207 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' ' '`
12208 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000012209 fi
12210
12211 # We used to test for /lib/ld.so.1 and disable shared libraries on
12212 # powerpc, because MkLinux only supported shared libraries with the
12213 # GNU dynamic linker. Since this was broken with cross compilers,
12214 # most powerpc-linux boxes support dynamic linking these days and
12215 # people can always --disable-shared, the test was removed, and we
12216 # assume the GNU/Linux dynamic linker is in use.
12217 dynamic_linker='GNU/Linux ld.so'
12218 ;;
12219
12220knetbsd*-gnu)
12221 version_type=linux
12222 need_lib_prefix=no
12223 need_version=no
12224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12225 soname_spec='${libname}${release}${shared_ext}$major'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 shlibpath_overrides_runpath=no
12228 hardcode_into_libs=yes
12229 dynamic_linker='GNU ld.so'
12230 ;;
12231
12232netbsd*)
12233 version_type=sunos
12234 need_lib_prefix=no
12235 need_version=no
12236 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12239 dynamic_linker='NetBSD (a.out) ld.so'
12240 else
12241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 dynamic_linker='NetBSD ld.elf_so'
12244 fi
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=yes
12247 hardcode_into_libs=yes
12248 ;;
12249
12250newsos6)
12251 version_type=linux
12252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12253 shlibpath_var=LD_LIBRARY_PATH
12254 shlibpath_overrides_runpath=yes
12255 ;;
12256
12257nto-qnx*)
12258 version_type=linux
12259 need_lib_prefix=no
12260 need_version=no
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12262 soname_spec='${libname}${release}${shared_ext}$major'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=yes
12265 ;;
12266
12267openbsd*)
12268 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000012269 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000012270 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000012271 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12272 case $host_os in
12273 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12274 *) need_version=no ;;
12275 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000012276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12280 case $host_os in
12281 openbsd2.[89] | openbsd2.[89].*)
12282 shlibpath_overrides_runpath=no
12283 ;;
12284 *)
12285 shlibpath_overrides_runpath=yes
12286 ;;
12287 esac
12288 else
12289 shlibpath_overrides_runpath=yes
12290 fi
12291 ;;
12292
12293os2*)
12294 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000012295 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000012296 need_lib_prefix=no
12297 library_names_spec='$libname${shared_ext} $libname.a'
12298 dynamic_linker='OS/2 ld.exe'
12299 shlibpath_var=LIBPATH
12300 ;;
12301
12302osf3* | osf4* | osf5*)
12303 version_type=osf
12304 need_lib_prefix=no
12305 need_version=no
12306 soname_spec='${libname}${release}${shared_ext}$major'
12307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12310 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12311 ;;
12312
a.rottmann9bc8b932004-02-29 15:18:31 +000012313solaris*)
12314 version_type=linux
12315 need_lib_prefix=no
12316 need_version=no
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12318 soname_spec='${libname}${release}${shared_ext}$major'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 shlibpath_overrides_runpath=yes
12321 hardcode_into_libs=yes
12322 # ldd complains unless libraries are executable
12323 postinstall_cmds='chmod +x $lib'
12324 ;;
12325
12326sunos4*)
12327 version_type=sunos
12328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12329 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 shlibpath_overrides_runpath=yes
12332 if test "$with_gnu_ld" = yes; then
12333 need_lib_prefix=no
12334 fi
12335 need_version=yes
12336 ;;
12337
vapier7f19c022007-02-17 14:46:31 +000012338sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012339 version_type=linux
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12341 soname_spec='${libname}${release}${shared_ext}$major'
12342 shlibpath_var=LD_LIBRARY_PATH
12343 case $host_vendor in
12344 sni)
12345 shlibpath_overrides_runpath=no
12346 need_lib_prefix=no
12347 export_dynamic_flag_spec='${wl}-Blargedynsym'
12348 runpath_var=LD_RUN_PATH
12349 ;;
12350 siemens)
12351 need_lib_prefix=no
12352 ;;
12353 motorola)
12354 need_lib_prefix=no
12355 need_version=no
12356 shlibpath_overrides_runpath=no
12357 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12358 ;;
12359 esac
12360 ;;
12361
12362sysv4*MP*)
12363 if test -d /usr/nec ;then
12364 version_type=linux
12365 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12366 soname_spec='$libname${shared_ext}.$major'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 fi
12369 ;;
12370
vapier7f19c022007-02-17 14:46:31 +000012371sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12372 version_type=freebsd-elf
12373 need_lib_prefix=no
12374 need_version=no
12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12376 soname_spec='${libname}${release}${shared_ext}$major'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 hardcode_into_libs=yes
12379 if test "$with_gnu_ld" = yes; then
12380 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12381 shlibpath_overrides_runpath=no
12382 else
12383 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12384 shlibpath_overrides_runpath=yes
12385 case $host_os in
12386 sco3.2v5*)
12387 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12388 ;;
12389 esac
12390 fi
12391 sys_lib_dlsearch_path_spec='/usr/lib'
12392 ;;
12393
a.rottmann9bc8b932004-02-29 15:18:31 +000012394uts4*)
12395 version_type=linux
12396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12397 soname_spec='${libname}${release}${shared_ext}$major'
12398 shlibpath_var=LD_LIBRARY_PATH
12399 ;;
12400
12401*)
12402 dynamic_linker=no
12403 ;;
12404esac
mlcreech94984912008-03-04 19:03:08 +000012405{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12406echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012407test "$dynamic_linker" = no && can_build_shared=no
12408
vapier7f19c022007-02-17 14:46:31 +000012409variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12410if test "$GCC" = yes; then
12411 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12412fi
12413
mlcreech94984912008-03-04 19:03:08 +000012414{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12415echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012416hardcode_action_CXX=
12417if test -n "$hardcode_libdir_flag_spec_CXX" || \
vapier7f19c022007-02-17 14:46:31 +000012418 test -n "$runpath_var_CXX" || \
12419 test "X$hardcode_automatic_CXX" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000012420
12421 # We can hardcode non-existant directories.
12422 if test "$hardcode_direct_CXX" != no &&
12423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12424 # have to relink, otherwise we might link with an installed library
12425 # when we should be linking with a yet-to-be-installed one
12426 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12427 test "$hardcode_minus_L_CXX" != no; then
12428 # Linking always hardcodes the temporary library directory.
12429 hardcode_action_CXX=relink
12430 else
12431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12432 hardcode_action_CXX=immediate
12433 fi
12434else
12435 # We cannot hardcode anything, or else we can only hardcode existing
12436 # directories.
12437 hardcode_action_CXX=unsupported
12438fi
mlcreech94984912008-03-04 19:03:08 +000012439{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12440echo "${ECHO_T}$hardcode_action_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012441
12442if test "$hardcode_action_CXX" = relink; then
12443 # Fast installation is not supported
12444 enable_fast_install=no
12445elif test "$shlibpath_overrides_runpath" = yes ||
12446 test "$enable_shared" = no; then
12447 # Fast installation is not necessary
12448 enable_fast_install=needless
12449fi
12450
a.rottmann9bc8b932004-02-29 15:18:31 +000012451
12452# The else clause should only fire when bootstrapping the
12453# libtool distribution, otherwise you forgot to ship ltmain.sh
12454# with your package, and you will get complaints that there are
12455# no rules to generate ltmain.sh.
12456if test -f "$ltmain"; then
12457 # See if we are running on zsh, and set the options which allow our commands through
12458 # without removal of \ escapes.
12459 if test -n "${ZSH_VERSION+set}" ; then
12460 setopt NO_GLOB_SUBST
12461 fi
12462 # Now quote all the things that may contain metacharacters while being
12463 # careful not to overquote the AC_SUBSTed values. We take copies of the
12464 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000012465 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000012466 SED SHELL STRIP \
12467 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12468 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12469 deplibs_check_method reload_flag reload_cmds need_locks \
12470 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12471 lt_cv_sys_global_symbol_to_c_name_address \
12472 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12473 old_postinstall_cmds old_postuninstall_cmds \
12474 compiler_CXX \
12475 CC_CXX \
12476 LD_CXX \
12477 lt_prog_compiler_wl_CXX \
12478 lt_prog_compiler_pic_CXX \
12479 lt_prog_compiler_static_CXX \
12480 lt_prog_compiler_no_builtin_flag_CXX \
12481 export_dynamic_flag_spec_CXX \
12482 thread_safe_flag_spec_CXX \
12483 whole_archive_flag_spec_CXX \
12484 enable_shared_with_static_runtimes_CXX \
12485 old_archive_cmds_CXX \
12486 old_archive_from_new_cmds_CXX \
12487 predep_objects_CXX \
12488 postdep_objects_CXX \
12489 predeps_CXX \
12490 postdeps_CXX \
12491 compiler_lib_search_path_CXX \
12492 archive_cmds_CXX \
12493 archive_expsym_cmds_CXX \
12494 postinstall_cmds_CXX \
12495 postuninstall_cmds_CXX \
12496 old_archive_from_expsyms_cmds_CXX \
12497 allow_undefined_flag_CXX \
12498 no_undefined_flag_CXX \
12499 export_symbols_cmds_CXX \
12500 hardcode_libdir_flag_spec_CXX \
12501 hardcode_libdir_flag_spec_ld_CXX \
12502 hardcode_libdir_separator_CXX \
12503 hardcode_automatic_CXX \
12504 module_cmds_CXX \
12505 module_expsym_cmds_CXX \
12506 lt_cv_prog_compiler_c_o_CXX \
12507 exclude_expsyms_CXX \
12508 include_expsyms_CXX; do
12509
12510 case $var in
12511 old_archive_cmds_CXX | \
12512 old_archive_from_new_cmds_CXX | \
12513 archive_cmds_CXX | \
12514 archive_expsym_cmds_CXX | \
12515 module_cmds_CXX | \
12516 module_expsym_cmds_CXX | \
12517 old_archive_from_expsyms_cmds_CXX | \
12518 export_symbols_cmds_CXX | \
12519 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12520 postinstall_cmds | postuninstall_cmds | \
12521 old_postinstall_cmds | old_postuninstall_cmds | \
12522 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12523 # Double-quote double-evaled strings.
12524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12525 ;;
12526 *)
12527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12528 ;;
12529 esac
12530 done
12531
12532 case $lt_echo in
12533 *'\$0 --fallback-echo"')
12534 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12535 ;;
12536 esac
12537
12538cfgfile="$ofile"
12539
12540 cat <<__EOF__ >> "$cfgfile"
12541# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12542
12543# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12544
12545# Shell to use when invoking shell scripts.
12546SHELL=$lt_SHELL
12547
12548# Whether or not to build shared libraries.
12549build_libtool_libs=$enable_shared
12550
12551# Whether or not to build static libraries.
12552build_old_libs=$enable_static
12553
12554# Whether or not to add -lc for building shared libraries.
12555build_libtool_need_lc=$archive_cmds_need_lc_CXX
12556
12557# Whether or not to disallow shared libs when runtime libs are static
12558allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12559
12560# Whether or not to optimize for fast installation.
12561fast_install=$enable_fast_install
12562
12563# The host system.
12564host_alias=$host_alias
12565host=$host
vapier7f19c022007-02-17 14:46:31 +000012566host_os=$host_os
12567
12568# The build system.
12569build_alias=$build_alias
12570build=$build
12571build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000012572
12573# An echo program that does not interpret backslashes.
12574echo=$lt_echo
12575
12576# The archiver.
12577AR=$lt_AR
12578AR_FLAGS=$lt_AR_FLAGS
12579
12580# A C compiler.
12581LTCC=$lt_LTCC
12582
vapier7f19c022007-02-17 14:46:31 +000012583# LTCC compiler flags.
12584LTCFLAGS=$lt_LTCFLAGS
12585
a.rottmann9bc8b932004-02-29 15:18:31 +000012586# A language-specific compiler.
12587CC=$lt_compiler_CXX
12588
12589# Is the compiler the GNU C compiler?
12590with_gcc=$GCC_CXX
12591
12592# An ERE matcher.
12593EGREP=$lt_EGREP
12594
12595# The linker used to build libraries.
12596LD=$lt_LD_CXX
12597
12598# Whether we need hard or soft links.
12599LN_S=$lt_LN_S
12600
12601# A BSD-compatible nm program.
12602NM=$lt_NM
12603
12604# A symbol stripping program
12605STRIP=$lt_STRIP
12606
12607# Used to examine libraries when file_magic_cmd begins "file"
12608MAGIC_CMD=$MAGIC_CMD
12609
12610# Used on cygwin: DLL creation program.
12611DLLTOOL="$DLLTOOL"
12612
12613# Used on cygwin: object dumper.
12614OBJDUMP="$OBJDUMP"
12615
12616# Used on cygwin: assembler.
12617AS="$AS"
12618
12619# The name of the directory that contains temporary libtool files.
12620objdir=$objdir
12621
12622# How to create reloadable object files.
12623reload_flag=$lt_reload_flag
12624reload_cmds=$lt_reload_cmds
12625
12626# How to pass a linker flag through the compiler.
12627wl=$lt_lt_prog_compiler_wl_CXX
12628
12629# Object file suffix (normally "o").
12630objext="$ac_objext"
12631
12632# Old archive suffix (normally "a").
12633libext="$libext"
12634
12635# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000012636shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000012637
12638# Executable file suffix (normally "").
12639exeext="$exeext"
12640
12641# Additional compiler flags for building library objects.
12642pic_flag=$lt_lt_prog_compiler_pic_CXX
12643pic_mode=$pic_mode
12644
12645# What is the maximum length of a command?
12646max_cmd_len=$lt_cv_sys_max_cmd_len
12647
12648# Does compiler simultaneously support -c and -o options?
12649compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12650
vapier7f19c022007-02-17 14:46:31 +000012651# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000012652need_locks=$lt_need_locks
12653
12654# Do we need the lib prefix for modules?
12655need_lib_prefix=$need_lib_prefix
12656
12657# Do we need a version for libraries?
12658need_version=$need_version
12659
12660# Whether dlopen is supported.
12661dlopen_support=$enable_dlopen
12662
12663# Whether dlopen of programs is supported.
12664dlopen_self=$enable_dlopen_self
12665
12666# Whether dlopen of statically linked programs is supported.
12667dlopen_self_static=$enable_dlopen_self_static
12668
12669# Compiler flag to prevent dynamic linking.
12670link_static_flag=$lt_lt_prog_compiler_static_CXX
12671
12672# Compiler flag to turn off builtin functions.
12673no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12674
12675# Compiler flag to allow reflexive dlopens.
12676export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12677
12678# Compiler flag to generate shared objects directly from archives.
12679whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12680
12681# Compiler flag to generate thread-safe objects.
12682thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12683
12684# Library versioning type.
12685version_type=$version_type
12686
12687# Format of library name prefix.
12688libname_spec=$lt_libname_spec
12689
12690# List of archive names. First name is the real one, the rest are links.
12691# The last name is the one that the linker finds with -lNAME.
12692library_names_spec=$lt_library_names_spec
12693
12694# The coded name of the library, if different from the real name.
12695soname_spec=$lt_soname_spec
12696
12697# Commands used to build and install an old-style archive.
12698RANLIB=$lt_RANLIB
12699old_archive_cmds=$lt_old_archive_cmds_CXX
12700old_postinstall_cmds=$lt_old_postinstall_cmds
12701old_postuninstall_cmds=$lt_old_postuninstall_cmds
12702
12703# Create an old-style archive from a shared archive.
12704old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12705
12706# Create a temporary old-style archive to link instead of a shared archive.
12707old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12708
12709# Commands used to build and install a shared archive.
12710archive_cmds=$lt_archive_cmds_CXX
12711archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12712postinstall_cmds=$lt_postinstall_cmds
12713postuninstall_cmds=$lt_postuninstall_cmds
12714
12715# Commands used to build a loadable module (assumed same as above if empty)
12716module_cmds=$lt_module_cmds_CXX
12717module_expsym_cmds=$lt_module_expsym_cmds_CXX
12718
12719# Commands to strip libraries.
12720old_striplib=$lt_old_striplib
12721striplib=$lt_striplib
12722
12723# Dependencies to place before the objects being linked to create a
12724# shared library.
12725predep_objects=$lt_predep_objects_CXX
12726
12727# Dependencies to place after the objects being linked to create a
12728# shared library.
12729postdep_objects=$lt_postdep_objects_CXX
12730
12731# Dependencies to place before the objects being linked to create a
12732# shared library.
12733predeps=$lt_predeps_CXX
12734
12735# Dependencies to place after the objects being linked to create a
12736# shared library.
12737postdeps=$lt_postdeps_CXX
12738
12739# The library search path used internally by the compiler when linking
12740# a shared library.
12741compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12742
12743# Method to check whether dependent libraries are shared objects.
12744deplibs_check_method=$lt_deplibs_check_method
12745
12746# Command to use when deplibs_check_method == file_magic.
12747file_magic_cmd=$lt_file_magic_cmd
12748
12749# Flag that allows shared libraries with undefined symbols to be built.
12750allow_undefined_flag=$lt_allow_undefined_flag_CXX
12751
12752# Flag that forces no undefined symbols.
12753no_undefined_flag=$lt_no_undefined_flag_CXX
12754
12755# Commands used to finish a libtool library installation in a directory.
12756finish_cmds=$lt_finish_cmds
12757
12758# Same as above, but a single script fragment to be evaled but not shown.
12759finish_eval=$lt_finish_eval
12760
12761# Take the output of nm and produce a listing of raw symbols and C names.
12762global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12763
12764# Transform the output of nm in a proper C declaration
12765global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12766
12767# Transform the output of nm in a C name address pair
12768global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12769
12770# This is the shared library runtime path variable.
12771runpath_var=$runpath_var
12772
12773# This is the shared library path variable.
12774shlibpath_var=$shlibpath_var
12775
12776# Is shlibpath searched before the hard-coded library search path?
12777shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12778
12779# How to hardcode a shared library path into an executable.
12780hardcode_action=$hardcode_action_CXX
12781
12782# Whether we should hardcode library paths into libraries.
12783hardcode_into_libs=$hardcode_into_libs
12784
12785# Flag to hardcode \$libdir into a binary during linking.
12786# This must work even if \$libdir does not exist.
12787hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12788
12789# If ld is used when linking, flag to hardcode \$libdir into
12790# a binary during linking. This must work even if \$libdir does
12791# not exist.
12792hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12793
12794# Whether we need a single -rpath flag with a separated argument.
12795hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12796
12797# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12798# resulting binary.
12799hardcode_direct=$hardcode_direct_CXX
12800
12801# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12802# resulting binary.
12803hardcode_minus_L=$hardcode_minus_L_CXX
12804
12805# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12806# the resulting binary.
12807hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12808
12809# Set to yes if building a shared library automatically hardcodes DIR into the library
12810# and all subsequent libraries and executables linked against it.
12811hardcode_automatic=$hardcode_automatic_CXX
12812
12813# Variables whose values should be saved in libtool wrapper scripts and
12814# restored at relink time.
12815variables_saved_for_relink="$variables_saved_for_relink"
12816
12817# Whether libtool must link a program against all its dependency libraries.
12818link_all_deplibs=$link_all_deplibs_CXX
12819
12820# Compile-time system search path for libraries
12821sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12822
12823# Run-time system search path for libraries
12824sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12825
12826# Fix the shell variable \$srcfile for the compiler.
12827fix_srcfile_path="$fix_srcfile_path_CXX"
12828
12829# Set to yes if exported symbols are required.
12830always_export_symbols=$always_export_symbols_CXX
12831
12832# The commands to list exported symbols.
12833export_symbols_cmds=$lt_export_symbols_cmds_CXX
12834
12835# The commands to extract the exported symbol list from a shared archive.
12836extract_expsyms_cmds=$lt_extract_expsyms_cmds
12837
12838# Symbols that should not be listed in the preloaded symbols.
12839exclude_expsyms=$lt_exclude_expsyms_CXX
12840
12841# Symbols that must always be exported.
12842include_expsyms=$lt_include_expsyms_CXX
12843
12844# ### END LIBTOOL TAG CONFIG: $tagname
12845
12846__EOF__
12847
12848
12849else
12850 # If there is no Makefile yet, we rely on a make rule to execute
12851 # `config.status --recheck' to rerun these tests and create the
12852 # libtool script then.
12853 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12854 if test -f "$ltmain_in"; then
12855 test -f Makefile && make "$ltmain"
12856 fi
12857fi
12858
12859
12860ac_ext=c
12861ac_cpp='$CPP $CPPFLAGS'
12862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12864ac_compiler_gnu=$ac_cv_c_compiler_gnu
12865
12866CC=$lt_save_CC
12867LDCXX=$LD
12868LD=$lt_save_LD
12869GCC=$lt_save_GCC
12870with_gnu_ldcxx=$with_gnu_ld
12871with_gnu_ld=$lt_save_with_gnu_ld
12872lt_cv_path_LDCXX=$lt_cv_path_LD
12873lt_cv_path_LD=$lt_save_path_LD
12874lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12875lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12876
12877 else
12878 tagname=""
12879 fi
12880 ;;
12881
12882 F77)
12883 if test -n "$F77" && test "X$F77" != "Xno"; then
12884
12885ac_ext=f
12886ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12887ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12889
12890
12891archive_cmds_need_lc_F77=no
12892allow_undefined_flag_F77=
12893always_export_symbols_F77=no
12894archive_expsym_cmds_F77=
12895export_dynamic_flag_spec_F77=
12896hardcode_direct_F77=no
12897hardcode_libdir_flag_spec_F77=
12898hardcode_libdir_flag_spec_ld_F77=
12899hardcode_libdir_separator_F77=
12900hardcode_minus_L_F77=no
12901hardcode_automatic_F77=no
12902module_cmds_F77=
12903module_expsym_cmds_F77=
12904link_all_deplibs_F77=unknown
12905old_archive_cmds_F77=$old_archive_cmds
12906no_undefined_flag_F77=
12907whole_archive_flag_spec_F77=
12908enable_shared_with_static_runtimes_F77=no
12909
12910# Source file extension for f77 test sources.
12911ac_ext=f
12912
12913# Object file extension for compiled f77 test sources.
12914objext=o
12915objext_F77=$objext
12916
12917# Code to be used in simple compile tests
12918lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12919
12920# Code to be used in simple link tests
12921lt_simple_link_test_code=" program t\n end\n"
12922
12923# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12924
12925# If no C compiler was specified, use CC.
12926LTCC=${LTCC-"$CC"}
12927
vapier7f19c022007-02-17 14:46:31 +000012928# If no C compiler flags were specified, use CFLAGS.
12929LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12930
a.rottmann9bc8b932004-02-29 15:18:31 +000012931# Allow CC to be a program name with arguments.
12932compiler=$CC
12933
12934
vapier7f19c022007-02-17 14:46:31 +000012935# save warnings/boilerplate of simple test code
12936ac_outfile=conftest.$ac_objext
12937printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12938eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12939_lt_compiler_boilerplate=`cat conftest.err`
12940$rm conftest*
12941
12942ac_outfile=conftest.$ac_objext
12943printf "$lt_simple_link_test_code" >conftest.$ac_ext
12944eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12945_lt_linker_boilerplate=`cat conftest.err`
12946$rm conftest*
12947
12948
a.rottmann9bc8b932004-02-29 15:18:31 +000012949# Allow CC to be a program name with arguments.
12950lt_save_CC="$CC"
12951CC=${F77-"f77"}
12952compiler=$CC
12953compiler_F77=$CC
vapier7f19c022007-02-17 14:46:31 +000012954for cc_temp in $compiler""; do
12955 case $cc_temp in
12956 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12957 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12958 \-*) ;;
12959 *) break;;
12960 esac
12961done
12962cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000012963
a.rottmann9bc8b932004-02-29 15:18:31 +000012964
mlcreech94984912008-03-04 19:03:08 +000012965{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12966echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12967{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12968echo "${ECHO_T}$can_build_shared" >&6; }
vapier7f19c022007-02-17 14:46:31 +000012969
mlcreech94984912008-03-04 19:03:08 +000012970{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12971echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012972test "$can_build_shared" = "no" && enable_shared=no
12973
12974# On AIX, shared libraries and static libraries use the same namespace, and
12975# are all built from PIC.
vapier7f19c022007-02-17 14:46:31 +000012976case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000012977aix3*)
12978 test "$enable_shared" = yes && enable_static=no
12979 if test -n "$RANLIB"; then
12980 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12981 postinstall_cmds='$RANLIB $lib'
12982 fi
12983 ;;
vapier7f19c022007-02-17 14:46:31 +000012984aix4* | aix5*)
12985 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12986 test "$enable_shared" = yes && enable_static=no
12987 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000012988 ;;
12989esac
mlcreech94984912008-03-04 19:03:08 +000012990{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12991echo "${ECHO_T}$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012992
mlcreech94984912008-03-04 19:03:08 +000012993{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12994echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012995# Make sure either enable_shared or enable_static is yes.
12996test "$enable_shared" = yes || enable_static=yes
mlcreech94984912008-03-04 19:03:08 +000012997{ echo "$as_me:$LINENO: result: $enable_static" >&5
12998echo "${ECHO_T}$enable_static" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012999
13000GCC_F77="$G77"
13001LD_F77="$LD"
13002
13003lt_prog_compiler_wl_F77=
13004lt_prog_compiler_pic_F77=
13005lt_prog_compiler_static_F77=
13006
mlcreech94984912008-03-04 19:03:08 +000013007{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13008echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013009
13010 if test "$GCC" = yes; then
13011 lt_prog_compiler_wl_F77='-Wl,'
13012 lt_prog_compiler_static_F77='-static'
13013
13014 case $host_os in
13015 aix*)
13016 # All AIX code is PIC.
13017 if test "$host_cpu" = ia64; then
13018 # AIX 5 now supports IA64 processor
13019 lt_prog_compiler_static_F77='-Bstatic'
13020 fi
13021 ;;
13022
13023 amigaos*)
13024 # FIXME: we need at least 68020 code to build shared libraries, but
13025 # adding the `-m68020' flag to GCC prevents building anything better,
13026 # like `-m68040'.
13027 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13028 ;;
13029
13030 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13031 # PIC is the default for these OSes.
13032 ;;
13033
13034 mingw* | pw32* | os2*)
13035 # This hack is so that the source file can tell whether it is being
13036 # built for inclusion in a dll (and should export symbols for example).
13037 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13038 ;;
13039
13040 darwin* | rhapsody*)
13041 # PIC is the default on this platform
13042 # Common symbols not allowed in MH_DYLIB files
13043 lt_prog_compiler_pic_F77='-fno-common'
13044 ;;
13045
vapier7f19c022007-02-17 14:46:31 +000013046 interix3*)
13047 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13048 # Instead, we relocate shared libraries at runtime.
13049 ;;
13050
a.rottmann9bc8b932004-02-29 15:18:31 +000013051 msdosdjgpp*)
13052 # Just because we use GCC doesn't mean we suddenly get shared libraries
13053 # on systems that don't support them.
13054 lt_prog_compiler_can_build_shared_F77=no
13055 enable_shared=no
13056 ;;
13057
13058 sysv4*MP*)
13059 if test -d /usr/nec; then
13060 lt_prog_compiler_pic_F77=-Kconform_pic
13061 fi
13062 ;;
13063
13064 hpux*)
13065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13066 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000013067 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000013068 hppa*64*|ia64*)
13069 # +Z the default
13070 ;;
13071 *)
13072 lt_prog_compiler_pic_F77='-fPIC'
13073 ;;
13074 esac
13075 ;;
13076
13077 *)
13078 lt_prog_compiler_pic_F77='-fPIC'
13079 ;;
13080 esac
13081 else
13082 # PORTME Check for flag to pass linker flags through the system compiler.
13083 case $host_os in
13084 aix*)
13085 lt_prog_compiler_wl_F77='-Wl,'
13086 if test "$host_cpu" = ia64; then
13087 # AIX 5 now supports IA64 processor
13088 lt_prog_compiler_static_F77='-Bstatic'
13089 else
13090 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13091 fi
13092 ;;
vapier7f19c022007-02-17 14:46:31 +000013093 darwin*)
13094 # PIC is the default on this platform
13095 # Common symbols not allowed in MH_DYLIB files
13096 case $cc_basename in
13097 xlc*)
13098 lt_prog_compiler_pic_F77='-qnocommon'
13099 lt_prog_compiler_wl_F77='-Wl,'
13100 ;;
13101 esac
13102 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013103
13104 mingw* | pw32* | os2*)
13105 # This hack is so that the source file can tell whether it is being
13106 # built for inclusion in a dll (and should export symbols for example).
13107 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13108 ;;
13109
13110 hpux9* | hpux10* | hpux11*)
13111 lt_prog_compiler_wl_F77='-Wl,'
13112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13113 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000013114 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000013115 hppa*64*|ia64*)
13116 # +Z the default
13117 ;;
13118 *)
13119 lt_prog_compiler_pic_F77='+Z'
13120 ;;
13121 esac
13122 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13123 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13124 ;;
13125
13126 irix5* | irix6* | nonstopux*)
13127 lt_prog_compiler_wl_F77='-Wl,'
13128 # PIC (with -KPIC) is the default.
13129 lt_prog_compiler_static_F77='-non_shared'
13130 ;;
13131
13132 newsos6)
13133 lt_prog_compiler_pic_F77='-KPIC'
13134 lt_prog_compiler_static_F77='-Bstatic'
13135 ;;
13136
13137 linux*)
vapier7f19c022007-02-17 14:46:31 +000013138 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +000013139 icc* | ecc*)
13140 lt_prog_compiler_wl_F77='-Wl,'
13141 lt_prog_compiler_pic_F77='-KPIC'
13142 lt_prog_compiler_static_F77='-static'
13143 ;;
vapier7f19c022007-02-17 14:46:31 +000013144 pgcc* | pgf77* | pgf90* | pgf95*)
13145 # Portland Group compilers (*not* the Pentium gcc compiler,
13146 # which looks to be a dead project)
13147 lt_prog_compiler_wl_F77='-Wl,'
13148 lt_prog_compiler_pic_F77='-fpic'
13149 lt_prog_compiler_static_F77='-Bstatic'
13150 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013151 ccc*)
13152 lt_prog_compiler_wl_F77='-Wl,'
13153 # All Alpha code is PIC.
13154 lt_prog_compiler_static_F77='-non_shared'
13155 ;;
13156 esac
13157 ;;
13158
13159 osf3* | osf4* | osf5*)
13160 lt_prog_compiler_wl_F77='-Wl,'
13161 # All OSF/1 code is PIC.
13162 lt_prog_compiler_static_F77='-non_shared'
13163 ;;
13164
a.rottmann9bc8b932004-02-29 15:18:31 +000013165 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013166 lt_prog_compiler_pic_F77='-KPIC'
13167 lt_prog_compiler_static_F77='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +000013168 case $cc_basename in
13169 f77* | f90* | f95*)
13170 lt_prog_compiler_wl_F77='-Qoption ld ';;
13171 *)
13172 lt_prog_compiler_wl_F77='-Wl,';;
13173 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000013174 ;;
13175
13176 sunos4*)
13177 lt_prog_compiler_wl_F77='-Qoption ld '
13178 lt_prog_compiler_pic_F77='-PIC'
13179 lt_prog_compiler_static_F77='-Bstatic'
13180 ;;
13181
vapier7f19c022007-02-17 14:46:31 +000013182 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013183 lt_prog_compiler_wl_F77='-Wl,'
13184 lt_prog_compiler_pic_F77='-KPIC'
13185 lt_prog_compiler_static_F77='-Bstatic'
13186 ;;
13187
13188 sysv4*MP*)
13189 if test -d /usr/nec ;then
13190 lt_prog_compiler_pic_F77='-Kconform_pic'
13191 lt_prog_compiler_static_F77='-Bstatic'
13192 fi
13193 ;;
13194
vapier7f19c022007-02-17 14:46:31 +000013195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13196 lt_prog_compiler_wl_F77='-Wl,'
13197 lt_prog_compiler_pic_F77='-KPIC'
13198 lt_prog_compiler_static_F77='-Bstatic'
13199 ;;
13200
13201 unicos*)
13202 lt_prog_compiler_wl_F77='-Wl,'
13203 lt_prog_compiler_can_build_shared_F77=no
13204 ;;
13205
a.rottmann9bc8b932004-02-29 15:18:31 +000013206 uts4*)
13207 lt_prog_compiler_pic_F77='-pic'
13208 lt_prog_compiler_static_F77='-Bstatic'
13209 ;;
13210
13211 *)
13212 lt_prog_compiler_can_build_shared_F77=no
13213 ;;
13214 esac
13215 fi
13216
mlcreech94984912008-03-04 19:03:08 +000013217{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13218echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013219
13220#
13221# Check to make sure the PIC flag actually works.
13222#
13223if test -n "$lt_prog_compiler_pic_F77"; then
13224
mlcreech94984912008-03-04 19:03:08 +000013225{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13226echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013227if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13229else
13230 lt_prog_compiler_pic_works_F77=no
13231 ac_outfile=conftest.$ac_objext
13232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13233 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13234 # Insert the option either (1) after the last *FLAGS variable, or
13235 # (2) before a word containing "conftest.", or (3) at the end.
13236 # Note that $ac_compile itself does not contain backslashes and begins
13237 # with a dollar sign (not a hyphen), so the echo should work correctly.
13238 # The option is referenced via a variable to avoid confusing sed.
13239 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000013240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000013241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13242 -e 's:$: $lt_compiler_flag:'`
mlcreechb87057f2008-03-06 07:19:20 +000013243 (eval echo "\"\$as_me:13243: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000013244 (eval "$lt_compile" 2>conftest.err)
13245 ac_status=$?
13246 cat conftest.err >&5
mlcreechb87057f2008-03-06 07:19:20 +000013247 echo "$as_me:13247: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013248 if (exit $ac_status) && test -s "$ac_outfile"; then
13249 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000013250 # So say no if there are warnings other than the usual output.
13251 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13253 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013254 lt_prog_compiler_pic_works_F77=yes
13255 fi
13256 fi
13257 $rm conftest*
13258
13259fi
mlcreech94984912008-03-04 19:03:08 +000013260{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13261echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013262
13263if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13264 case $lt_prog_compiler_pic_F77 in
13265 "" | " "*) ;;
13266 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13267 esac
13268else
13269 lt_prog_compiler_pic_F77=
13270 lt_prog_compiler_can_build_shared_F77=no
13271fi
13272
13273fi
vapier7f19c022007-02-17 14:46:31 +000013274case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000013275 # For platforms which do not support PIC, -DPIC is meaningless:
13276 *djgpp*)
13277 lt_prog_compiler_pic_F77=
13278 ;;
13279 *)
13280 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13281 ;;
13282esac
13283
vapier7f19c022007-02-17 14:46:31 +000013284#
13285# Check to make sure the static flag actually works.
13286#
13287wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
mlcreech94984912008-03-04 19:03:08 +000013288{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13289echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000013290if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292else
13293 lt_prog_compiler_static_works_F77=no
13294 save_LDFLAGS="$LDFLAGS"
13295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13296 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13298 # The linker can only warn and ignore the option if not recognized
13299 # So say no if there are warnings
13300 if test -s conftest.err; then
13301 # Append any errors to the config.log.
13302 cat conftest.err 1>&5
13303 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13305 if diff conftest.exp conftest.er2 >/dev/null; then
13306 lt_prog_compiler_static_works_F77=yes
13307 fi
13308 else
13309 lt_prog_compiler_static_works_F77=yes
13310 fi
13311 fi
13312 $rm conftest*
13313 LDFLAGS="$save_LDFLAGS"
13314
13315fi
mlcreech94984912008-03-04 19:03:08 +000013316{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13317echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
vapier7f19c022007-02-17 14:46:31 +000013318
13319if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13320 :
13321else
13322 lt_prog_compiler_static_F77=
13323fi
13324
13325
mlcreech94984912008-03-04 19:03:08 +000013326{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13327echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013328if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330else
13331 lt_cv_prog_compiler_c_o_F77=no
13332 $rm -r conftest 2>/dev/null
13333 mkdir conftest
13334 cd conftest
13335 mkdir out
13336 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13337
13338 lt_compiler_flag="-o out/conftest2.$ac_objext"
13339 # Insert the option either (1) after the last *FLAGS variable, or
13340 # (2) before a word containing "conftest.", or (3) at the end.
13341 # Note that $ac_compile itself does not contain backslashes and begins
13342 # with a dollar sign (not a hyphen), so the echo should work correctly.
13343 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000013344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000013345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13346 -e 's:$: $lt_compiler_flag:'`
mlcreechb87057f2008-03-06 07:19:20 +000013347 (eval echo "\"\$as_me:13347: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000013348 (eval "$lt_compile" 2>out/conftest.err)
13349 ac_status=$?
13350 cat out/conftest.err >&5
mlcreechb87057f2008-03-06 07:19:20 +000013351 echo "$as_me:13351: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13353 then
13354 # The compiler can only warn and ignore the option if not recognized
13355 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000013356 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013359 lt_cv_prog_compiler_c_o_F77=yes
13360 fi
13361 fi
vapier7f19c022007-02-17 14:46:31 +000013362 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013363 $rm conftest*
13364 # SGI C++ compiler will create directory out/ii_files/ for
13365 # template instantiation
13366 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13367 $rm out/* && rmdir out
13368 cd ..
13369 rmdir conftest
13370 $rm conftest*
13371
13372fi
mlcreech94984912008-03-04 19:03:08 +000013373{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13374echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013375
13376
13377hard_links="nottested"
13378if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13379 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000013380 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13381echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013382 hard_links=yes
13383 $rm conftest*
13384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13385 touch conftest.a
13386 ln conftest.a conftest.b 2>&5 || hard_links=no
13387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000013388 { echo "$as_me:$LINENO: result: $hard_links" >&5
13389echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013390 if test "$hard_links" = no; then
13391 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13392echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13393 need_locks=warn
13394 fi
13395else
13396 need_locks=no
13397fi
13398
mlcreech94984912008-03-04 19:03:08 +000013399{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13400echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013401
13402 runpath_var=
13403 allow_undefined_flag_F77=
13404 enable_shared_with_static_runtimes_F77=no
13405 archive_cmds_F77=
13406 archive_expsym_cmds_F77=
13407 old_archive_From_new_cmds_F77=
13408 old_archive_from_expsyms_cmds_F77=
13409 export_dynamic_flag_spec_F77=
13410 whole_archive_flag_spec_F77=
13411 thread_safe_flag_spec_F77=
13412 hardcode_libdir_flag_spec_F77=
13413 hardcode_libdir_flag_spec_ld_F77=
13414 hardcode_libdir_separator_F77=
13415 hardcode_direct_F77=no
13416 hardcode_minus_L_F77=no
13417 hardcode_shlibpath_var_F77=unsupported
13418 link_all_deplibs_F77=unknown
13419 hardcode_automatic_F77=no
13420 module_cmds_F77=
13421 module_expsym_cmds_F77=
13422 always_export_symbols_F77=no
13423 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13424 # include_expsyms should be a list of space-separated symbols to be *always*
13425 # included in the symbol list
13426 include_expsyms_F77=
13427 # exclude_expsyms can be an extended regexp of symbols to exclude
13428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13430 # as well as any symbol that contains `d'.
13431 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13433 # platforms (ab)use it in PIC code, but their linkers get confused if
13434 # the symbol is explicitly referenced. Since portable code cannot
13435 # rely on this symbol name, it's probably fine to never include it in
13436 # preloaded symbol tables.
13437 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +000013438 # Just being paranoid about ensuring that cc_basename is set.
13439 for cc_temp in $compiler""; do
13440 case $cc_temp in
13441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13443 \-*) ;;
13444 *) break;;
13445 esac
13446done
13447cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000013448
13449 case $host_os in
13450 cygwin* | mingw* | pw32*)
13451 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13452 # When not using gcc, we currently assume that we are using
13453 # Microsoft Visual C++.
13454 if test "$GCC" != yes; then
13455 with_gnu_ld=no
13456 fi
13457 ;;
vapier7f19c022007-02-17 14:46:31 +000013458 interix*)
13459 # we just hope/assume this is gcc and not c89 (= MSVC++)
13460 with_gnu_ld=yes
13461 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013462 openbsd*)
13463 with_gnu_ld=no
13464 ;;
13465 esac
13466
13467 ld_shlibs_F77=yes
13468 if test "$with_gnu_ld" = yes; then
13469 # If archive_cmds runs LD, not CC, wlarc should be empty
13470 wlarc='${wl}'
13471
vapier7f19c022007-02-17 14:46:31 +000013472 # Set some defaults for GNU ld with shared library support. These
13473 # are reset later if shared libraries are not supported. Putting them
13474 # here allows them to be overridden if necessary.
13475 runpath_var=LD_RUN_PATH
13476 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13477 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13478 # ancient GNU ld didn't support --whole-archive et. al.
13479 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13480 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13481 else
13482 whole_archive_flag_spec_F77=
13483 fi
13484 supports_anon_versioning=no
13485 case `$LD -v 2>/dev/null` in
13486 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13487 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13488 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13489 *\ 2.11.*) ;; # other 2.11 versions
13490 *) supports_anon_versioning=yes ;;
13491 esac
13492
a.rottmann9bc8b932004-02-29 15:18:31 +000013493 # See if GNU ld supports shared libraries.
13494 case $host_os in
13495 aix3* | aix4* | aix5*)
13496 # On AIX/PPC, the GNU linker is very broken
13497 if test "$host_cpu" != ia64; then
13498 ld_shlibs_F77=no
13499 cat <<EOF 1>&2
13500
13501*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13502*** to be unable to reliably create shared libraries on AIX.
13503*** Therefore, libtool is disabling shared libraries support. If you
13504*** really care for shared libraries, you may want to modify your PATH
13505*** so that a non-GNU linker is found, and then restart.
13506
13507EOF
13508 fi
13509 ;;
13510
13511 amigaos*)
13512 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)'
13513 hardcode_libdir_flag_spec_F77='-L$libdir'
13514 hardcode_minus_L_F77=yes
13515
13516 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13517 # that the semantics of dynamic libraries on AmigaOS, at least up
13518 # to version 4, is to share data among multiple programs linked
13519 # with the same dynamic library. Since this doesn't match the
13520 # behavior of shared libraries on other platforms, we can't use
13521 # them.
13522 ld_shlibs_F77=no
13523 ;;
13524
13525 beos*)
13526 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13527 allow_undefined_flag_F77=unsupported
13528 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13529 # support --undefined. This deserves some investigation. FIXME
13530 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531 else
13532 ld_shlibs_F77=no
13533 fi
13534 ;;
13535
13536 cygwin* | mingw* | pw32*)
13537 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13538 # as there is no search path for DLLs.
13539 hardcode_libdir_flag_spec_F77='-L$libdir'
13540 allow_undefined_flag_F77=unsupported
13541 always_export_symbols_F77=no
13542 enable_shared_with_static_runtimes_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013543 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000013544
13545 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000013546 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000013547 # If the export-symbols file already is a .def file (1st line
13548 # is EXPORTS), use it as is; otherwise, prepend...
13549 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13550 cp $export_symbols $output_objdir/$soname.def;
13551 else
13552 echo EXPORTS > $output_objdir/$soname.def;
13553 cat $export_symbols >> $output_objdir/$soname.def;
13554 fi~
vapier7f19c022007-02-17 14:46:31 +000013555 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000013556 else
vapier7f19c022007-02-17 14:46:31 +000013557 ld_shlibs_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013558 fi
13559 ;;
13560
vapier7f19c022007-02-17 14:46:31 +000013561 interix3*)
13562 hardcode_direct_F77=no
13563 hardcode_shlibpath_var_F77=no
13564 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13565 export_dynamic_flag_spec_F77='${wl}-E'
13566 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13567 # Instead, shared libraries are loaded at an image base (0x10000000 by
13568 # default) and relocated if they conflict, which is a slow very memory
13569 # consuming and fragmenting process. To avoid this, we pick a random,
13570 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13571 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13572 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'
13573 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'
13574 ;;
13575
13576 linux*)
13577 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13578 tmp_addflag=
13579 case $cc_basename,$host_cpu in
13580 pgcc*) # Portland Group C compiler
13581 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'
13582 tmp_addflag=' $pic_flag'
13583 ;;
13584 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13585 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'
13586 tmp_addflag=' $pic_flag -Mnomain' ;;
13587 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13588 tmp_addflag=' -i_dynamic' ;;
13589 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13590 tmp_addflag=' -i_dynamic -nofor_main' ;;
13591 ifc* | ifort*) # Intel Fortran compiler
13592 tmp_addflag=' -nofor_main' ;;
13593 esac
13594 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13595
13596 if test $supports_anon_versioning = yes; then
13597 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13599 $echo "local: *; };" >> $output_objdir/$libname.ver~
13600 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13601 fi
13602 else
13603 ld_shlibs_F77=no
13604 fi
13605 ;;
13606
13607 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13609 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13610 wlarc=
13611 else
13612 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13613 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13614 fi
13615 ;;
13616
vapier7f19c022007-02-17 14:46:31 +000013617 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013618 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13619 ld_shlibs_F77=no
13620 cat <<EOF 1>&2
13621
13622*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13623*** create shared libraries on Solaris systems. Therefore, libtool
13624*** is disabling shared libraries support. We urge you to upgrade GNU
13625*** binutils to release 2.9.1 or newer. Another option is to modify
13626*** your PATH or compiler configuration so that the native linker is
13627*** used, and then restart.
13628
13629EOF
13630 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13631 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13632 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13633 else
13634 ld_shlibs_F77=no
13635 fi
13636 ;;
13637
vapier7f19c022007-02-17 14:46:31 +000013638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13639 case `$LD -v 2>&1` in
13640 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13641 ld_shlibs_F77=no
13642 cat <<_LT_EOF 1>&2
13643
13644*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13645*** reliably create shared libraries on SCO systems. Therefore, libtool
13646*** is disabling shared libraries support. We urge you to upgrade GNU
13647*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13648*** your PATH or compiler configuration so that the native linker is
13649*** used, and then restart.
13650
13651_LT_EOF
13652 ;;
13653 *)
13654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13655 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13656 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13657 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13658 else
13659 ld_shlibs_F77=no
13660 fi
13661 ;;
13662 esac
13663 ;;
13664
a.rottmann9bc8b932004-02-29 15:18:31 +000013665 sunos4*)
13666 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13667 wlarc=
13668 hardcode_direct_F77=yes
13669 hardcode_shlibpath_var_F77=no
13670 ;;
13671
a.rottmann9bc8b932004-02-29 15:18:31 +000013672 *)
13673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13674 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13675 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13676 else
13677 ld_shlibs_F77=no
13678 fi
13679 ;;
13680 esac
13681
vapier7f19c022007-02-17 14:46:31 +000013682 if test "$ld_shlibs_F77" = no; then
13683 runpath_var=
13684 hardcode_libdir_flag_spec_F77=
13685 export_dynamic_flag_spec_F77=
13686 whole_archive_flag_spec_F77=
a.rottmann9bc8b932004-02-29 15:18:31 +000013687 fi
13688 else
13689 # PORTME fill in a description of your system's linker (not GNU ld)
13690 case $host_os in
13691 aix3*)
13692 allow_undefined_flag_F77=unsupported
13693 always_export_symbols_F77=yes
13694 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'
13695 # Note: this linker hardcodes the directories in LIBPATH if there
13696 # are no directories specified by -L.
13697 hardcode_minus_L_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013698 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013699 # Neither direct hardcoding nor static linking is supported with a
13700 # broken collect2.
13701 hardcode_direct_F77=unsupported
13702 fi
13703 ;;
13704
13705 aix4* | aix5*)
13706 if test "$host_cpu" = ia64; then
13707 # On IA64, the linker does run time linking by default, so we don't
13708 # have to do anything special.
13709 aix_use_runtimelinking=no
13710 exp_sym_flag='-Bexport'
13711 no_entry_flag=""
13712 else
13713 # If we're using GNU nm, then we don't want the "-C" option.
13714 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13715 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13716 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'
13717 else
13718 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'
13719 fi
13720 aix_use_runtimelinking=no
13721
13722 # Test if we are trying to use run time linking or normal
13723 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13724 # need to do runtime linking.
13725 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13726 for ld_flag in $LDFLAGS; do
13727 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13728 aix_use_runtimelinking=yes
13729 break
13730 fi
13731 done
vapier7f19c022007-02-17 14:46:31 +000013732 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013733 esac
13734
13735 exp_sym_flag='-bexport'
13736 no_entry_flag='-bnoentry'
13737 fi
13738
13739 # When large executables or shared objects are built, AIX ld can
13740 # have problems creating the table of contents. If linking a library
13741 # or program results in "error TOC overflow" add -mminimal-toc to
13742 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13743 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13744
13745 archive_cmds_F77=''
13746 hardcode_direct_F77=yes
13747 hardcode_libdir_separator_F77=':'
13748 link_all_deplibs_F77=yes
13749
13750 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000013751 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013752 # We only want to do this on AIX 4.2 and lower, the check
13753 # below for broken collect2 doesn't work under 4.3+
13754 collect2name=`${CC} -print-prog-name=collect2`
13755 if test -f "$collect2name" && \
13756 strings "$collect2name" | grep resolve_lib_name >/dev/null
13757 then
13758 # We have reworked collect2
13759 hardcode_direct_F77=yes
13760 else
13761 # We have old collect2
13762 hardcode_direct_F77=unsupported
13763 # It fails to find uninstalled libraries when the uninstalled
13764 # path is not listed in the libpath. Setting hardcode_minus_L
13765 # to unsupported forces relinking
13766 hardcode_minus_L_F77=yes
13767 hardcode_libdir_flag_spec_F77='-L$libdir'
13768 hardcode_libdir_separator_F77=
13769 fi
vapier7f19c022007-02-17 14:46:31 +000013770 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013771 esac
13772 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000013773 if test "$aix_use_runtimelinking" = yes; then
13774 shared_flag="$shared_flag "'${wl}-G'
13775 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013776 else
13777 # not using gcc
13778 if test "$host_cpu" = ia64; then
13779 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13780 # chokes on -Wl,-G. The following line is correct:
13781 shared_flag='-G'
13782 else
vapier7f19c022007-02-17 14:46:31 +000013783 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013784 shared_flag='${wl}-G'
13785 else
13786 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +000013787 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013788 fi
13789 fi
13790
13791 # It seems that -bexpall does not export symbols beginning with
13792 # underscore (_), so it is better to generate a list of symbols to export.
13793 always_export_symbols_F77=yes
13794 if test "$aix_use_runtimelinking" = yes; then
13795 # Warning - without using the other runtime loading flags (-brtl),
13796 # -berok will link without error, but may produce a broken library.
13797 allow_undefined_flag_F77='-berok'
13798 # Determine the default libpath from the value encoded in an empty executable.
13799 cat >conftest.$ac_ext <<_ACEOF
13800 program main
13801
13802 end
13803_ACEOF
13804rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000013805if { (ac_try="$ac_link"
13806case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809esac
13810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000013812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013817 (exit $ac_status); } && {
13818 test -z "$ac_f77_werror_flag" ||
13819 test ! -s conftest.err
13820 } && test -s conftest$ac_exeext &&
13821 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013822
13823aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13824}'`
13825# Check for a 64-bit object if we didn't find anything.
13826if 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; }
13827}'`; fi
13828else
13829 echo "$as_me: failed program was:" >&5
13830sed 's/^/| /' conftest.$ac_ext >&5
13831
mlcreech94984912008-03-04 19:03:08 +000013832
a.rottmann9bc8b932004-02-29 15:18:31 +000013833fi
mlcreech94984912008-03-04 19:03:08 +000013834
13835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000013836 conftest$ac_exeext conftest.$ac_ext
13837if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13838
13839 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +000013840 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000013841 else
13842 if test "$host_cpu" = ia64; then
13843 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13844 allow_undefined_flag_F77="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000013845 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000013846 else
13847 # Determine the default libpath from the value encoded in an empty executable.
13848 cat >conftest.$ac_ext <<_ACEOF
13849 program main
13850
13851 end
13852_ACEOF
13853rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000013854if { (ac_try="$ac_link"
13855case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858esac
13859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000013861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013866 (exit $ac_status); } && {
13867 test -z "$ac_f77_werror_flag" ||
13868 test ! -s conftest.err
13869 } && test -s conftest$ac_exeext &&
13870 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013871
13872aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13873}'`
13874# Check for a 64-bit object if we didn't find anything.
13875if 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; }
13876}'`; fi
13877else
13878 echo "$as_me: failed program was:" >&5
13879sed 's/^/| /' conftest.$ac_ext >&5
13880
mlcreech94984912008-03-04 19:03:08 +000013881
a.rottmann9bc8b932004-02-29 15:18:31 +000013882fi
mlcreech94984912008-03-04 19:03:08 +000013883
13884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000013885 conftest$ac_exeext conftest.$ac_ext
13886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13887
13888 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13889 # Warning - without using the other run time loading flags,
13890 # -berok will link without error, but may produce a broken library.
13891 no_undefined_flag_F77=' ${wl}-bernotok'
13892 allow_undefined_flag_F77=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000013893 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000013894 whole_archive_flag_spec_F77='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000013895 archive_cmds_need_lc_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013896 # This is similar to how AIX traditionally builds its shared libraries.
13897 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000013898 fi
13899 fi
13900 ;;
13901
13902 amigaos*)
13903 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)'
13904 hardcode_libdir_flag_spec_F77='-L$libdir'
13905 hardcode_minus_L_F77=yes
13906 # see comment about different semantics on the GNU ld section
13907 ld_shlibs_F77=no
13908 ;;
13909
vapier7f19c022007-02-17 14:46:31 +000013910 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013911 export_dynamic_flag_spec_F77=-rdynamic
13912 ;;
13913
13914 cygwin* | mingw* | pw32*)
13915 # When not using gcc, we currently assume that we are using
13916 # Microsoft Visual C++.
13917 # hardcode_libdir_flag_spec is actually meaningless, as there is
13918 # no search path for DLLs.
13919 hardcode_libdir_flag_spec_F77=' '
13920 allow_undefined_flag_F77=unsupported
13921 # Tell ltmain to make .lib files, not .a files.
13922 libext=lib
13923 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +000013924 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000013925 # FIXME: Setting linknames here is a bad hack.
13926 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13927 # The linker will automatically build a .lib file if we build a DLL.
13928 old_archive_From_new_cmds_F77='true'
13929 # FIXME: Should let the user specify the lib program.
13930 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
vapier7f19c022007-02-17 14:46:31 +000013931 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
a.rottmann9bc8b932004-02-29 15:18:31 +000013932 enable_shared_with_static_runtimes_F77=yes
13933 ;;
13934
13935 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +000013936 case $host_os in
13937 rhapsody* | darwin1.[012])
13938 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13939 ;;
13940 *) # Darwin 1.3 on
13941 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13942 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13943 else
13944 case ${MACOSX_DEPLOYMENT_TARGET} in
13945 10.[012])
13946 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13947 ;;
13948 10.*)
13949 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13950 ;;
13951 esac
13952 fi
13953 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013954 esac
vapier7f19c022007-02-17 14:46:31 +000013955 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013956 hardcode_direct_F77=no
13957 hardcode_automatic_F77=yes
13958 hardcode_shlibpath_var_F77=unsupported
vapier7f19c022007-02-17 14:46:31 +000013959 whole_archive_flag_spec_F77=''
a.rottmann9bc8b932004-02-29 15:18:31 +000013960 link_all_deplibs_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013961 if test "$GCC" = yes ; then
13962 output_verbose_link_cmd='echo'
13963 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13964 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13965 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13966 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}'
13967 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}'
a.rottmann9bc8b932004-02-29 15:18:31 +000013968 else
vapier7f19c022007-02-17 14:46:31 +000013969 case $cc_basename in
13970 xlc*)
13971 output_verbose_link_cmd='echo'
13972 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13973 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13974 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13975 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}'
13976 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}'
13977 ;;
13978 *)
13979 ld_shlibs_F77=no
13980 ;;
13981 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000013982 fi
13983 ;;
13984
13985 dgux*)
13986 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13987 hardcode_libdir_flag_spec_F77='-L$libdir'
13988 hardcode_shlibpath_var_F77=no
13989 ;;
13990
13991 freebsd1*)
13992 ld_shlibs_F77=no
13993 ;;
13994
13995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13996 # support. Future versions do this automatically, but an explicit c++rt0.o
13997 # does not break anything, and helps significantly (at the cost of a little
13998 # extra space).
13999 freebsd2.2*)
14000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14001 hardcode_libdir_flag_spec_F77='-R$libdir'
14002 hardcode_direct_F77=yes
14003 hardcode_shlibpath_var_F77=no
14004 ;;
14005
14006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14007 freebsd2*)
14008 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14009 hardcode_direct_F77=yes
14010 hardcode_minus_L_F77=yes
14011 hardcode_shlibpath_var_F77=no
14012 ;;
14013
14014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +000014015 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014016 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14017 hardcode_libdir_flag_spec_F77='-R$libdir'
14018 hardcode_direct_F77=yes
14019 hardcode_shlibpath_var_F77=no
14020 ;;
14021
14022 hpux9*)
14023 if test "$GCC" = yes; then
14024 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'
14025 else
14026 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'
14027 fi
14028 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14029 hardcode_libdir_separator_F77=:
14030 hardcode_direct_F77=yes
14031
14032 # hardcode_minus_L: Not really in the search PATH,
14033 # but as the default location of the library.
14034 hardcode_minus_L_F77=yes
14035 export_dynamic_flag_spec_F77='${wl}-E'
14036 ;;
14037
vapier7f19c022007-02-17 14:46:31 +000014038 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014039 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000014040 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14041 else
14042 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14043 fi
14044 if test "$with_gnu_ld" = no; then
14045 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14046 hardcode_libdir_separator_F77=:
14047
14048 hardcode_direct_F77=yes
14049 export_dynamic_flag_spec_F77='${wl}-E'
14050
14051 # hardcode_minus_L: Not really in the search PATH,
14052 # but as the default location of the library.
14053 hardcode_minus_L_F77=yes
14054 fi
14055 ;;
14056
14057 hpux11*)
14058 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14059 case $host_cpu in
14060 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014061 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 ;;
vapier7f19c022007-02-17 14:46:31 +000014063 ia64*)
14064 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14065 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014066 *)
14067 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14068 ;;
14069 esac
14070 else
vapier7f19c022007-02-17 14:46:31 +000014071 case $host_cpu in
14072 hppa*64*)
14073 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14074 ;;
14075 ia64*)
14076 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000014077 ;;
14078 *)
vapier7f19c022007-02-17 14:46:31 +000014079 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000014080 ;;
14081 esac
14082 fi
14083 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000014084 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14085 hardcode_libdir_separator_F77=:
a.rottmann9bc8b932004-02-29 15:18:31 +000014086
vapier7f19c022007-02-17 14:46:31 +000014087 case $host_cpu in
14088 hppa*64*|ia64*)
14089 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14090 hardcode_direct_F77=no
14091 hardcode_shlibpath_var_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014092 ;;
14093 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000014094 hardcode_direct_F77=yes
14095 export_dynamic_flag_spec_F77='${wl}-E'
14096
14097 # hardcode_minus_L: Not really in the search PATH,
14098 # but as the default location of the library.
14099 hardcode_minus_L_F77=yes
14100 ;;
14101 esac
14102 fi
14103 ;;
14104
14105 irix5* | irix6* | nonstopux*)
14106 if test "$GCC" = yes; then
14107 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'
14108 else
14109 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'
14110 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14111 fi
14112 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14113 hardcode_libdir_separator_F77=:
14114 link_all_deplibs_F77=yes
14115 ;;
14116
vapier7f19c022007-02-17 14:46:31 +000014117 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14119 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14120 else
14121 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14122 fi
14123 hardcode_libdir_flag_spec_F77='-R$libdir'
14124 hardcode_direct_F77=yes
14125 hardcode_shlibpath_var_F77=no
14126 ;;
14127
14128 newsos6)
14129 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14130 hardcode_direct_F77=yes
14131 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14132 hardcode_libdir_separator_F77=:
14133 hardcode_shlibpath_var_F77=no
14134 ;;
14135
14136 openbsd*)
14137 hardcode_direct_F77=yes
14138 hardcode_shlibpath_var_F77=no
14139 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14140 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +000014141 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000014142 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14143 export_dynamic_flag_spec_F77='${wl}-E'
14144 else
14145 case $host_os in
14146 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14147 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14148 hardcode_libdir_flag_spec_F77='-R$libdir'
14149 ;;
14150 *)
14151 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14152 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14153 ;;
14154 esac
14155 fi
14156 ;;
14157
14158 os2*)
14159 hardcode_libdir_flag_spec_F77='-L$libdir'
14160 hardcode_minus_L_F77=yes
14161 allow_undefined_flag_F77=unsupported
14162 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'
14163 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14164 ;;
14165
14166 osf3*)
14167 if test "$GCC" = yes; then
14168 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14169 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'
14170 else
14171 allow_undefined_flag_F77=' -expect_unresolved \*'
14172 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'
14173 fi
14174 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14175 hardcode_libdir_separator_F77=:
14176 ;;
14177
14178 osf4* | osf5*) # as osf3* with the addition of -msym flag
14179 if test "$GCC" = yes; then
14180 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14181 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'
14182 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14183 else
14184 allow_undefined_flag_F77=' -expect_unresolved \*'
14185 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'
14186 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~
vapier7f19c022007-02-17 14:46:31 +000014187 $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'
a.rottmann9bc8b932004-02-29 15:18:31 +000014188
14189 # Both c and cxx compiler support -rpath directly
14190 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14191 fi
14192 hardcode_libdir_separator_F77=:
14193 ;;
14194
a.rottmann9bc8b932004-02-29 15:18:31 +000014195 solaris*)
14196 no_undefined_flag_F77=' -z text'
14197 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000014198 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +000014199 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14200 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14201 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14202 else
vapier7f19c022007-02-17 14:46:31 +000014203 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +000014204 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14205 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14206 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14207 fi
14208 hardcode_libdir_flag_spec_F77='-R$libdir'
14209 hardcode_shlibpath_var_F77=no
14210 case $host_os in
14211 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +000014212 *)
14213 # The compiler driver will combine linker options so we
14214 # cannot just pass the convience library names through
14215 # without $wl, iff we do not link with $LD.
14216 # Luckily, gcc supports the same syntax we need for Sun Studio.
14217 # Supported since Solaris 2.6 (maybe 2.5.1?)
14218 case $wlarc in
14219 '')
14220 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14221 *)
14222 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' ;;
14223 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014224 esac
14225 link_all_deplibs_F77=yes
14226 ;;
14227
14228 sunos4*)
14229 if test "x$host_vendor" = xsequent; then
14230 # Use $CC to link under sequent, because it throws in some extra .o
14231 # files that make .init and .fini sections work.
14232 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14233 else
14234 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14235 fi
14236 hardcode_libdir_flag_spec_F77='-L$libdir'
14237 hardcode_direct_F77=yes
14238 hardcode_minus_L_F77=yes
14239 hardcode_shlibpath_var_F77=no
14240 ;;
14241
14242 sysv4)
14243 case $host_vendor in
14244 sni)
14245 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14246 hardcode_direct_F77=yes # is this really true???
14247 ;;
14248 siemens)
14249 ## LD is ld it makes a PLAMLIB
14250 ## CC just makes a GrossModule.
14251 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14252 reload_cmds_F77='$CC -r -o $output$reload_objs'
14253 hardcode_direct_F77=no
14254 ;;
14255 motorola)
14256 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14257 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14258 ;;
14259 esac
14260 runpath_var='LD_RUN_PATH'
14261 hardcode_shlibpath_var_F77=no
14262 ;;
14263
14264 sysv4.3*)
14265 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14266 hardcode_shlibpath_var_F77=no
14267 export_dynamic_flag_spec_F77='-Bexport'
14268 ;;
14269
14270 sysv4*MP*)
14271 if test -d /usr/nec; then
14272 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14273 hardcode_shlibpath_var_F77=no
14274 runpath_var=LD_RUN_PATH
14275 hardcode_runpath_var=yes
14276 ld_shlibs_F77=yes
14277 fi
14278 ;;
14279
vapier7f19c022007-02-17 14:46:31 +000014280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14281 no_undefined_flag_F77='${wl}-z,text'
14282 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014283 hardcode_shlibpath_var_F77=no
vapier7f19c022007-02-17 14:46:31 +000014284 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +000014285
a.rottmann9bc8b932004-02-29 15:18:31 +000014286 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000014287 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14288 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000014289 else
vapier7f19c022007-02-17 14:46:31 +000014290 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14291 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000014292 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000014293 ;;
14294
vapier7f19c022007-02-17 14:46:31 +000014295 sysv5* | sco3.2v5* | sco5v6*)
14296 # Note: We can NOT use -z defs as we might desire, because we do not
14297 # link with -lc, and that would cause any symbols used from libc to
14298 # always be unresolved, which means just about no library would
14299 # ever link correctly. If we're not using GNU ld we use -z text
14300 # though, which does catch some bad symbols but isn't as heavy-handed
14301 # as -z defs.
14302 no_undefined_flag_F77='${wl}-z,text'
14303 allow_undefined_flag_F77='${wl}-z,nodefs'
14304 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014305 hardcode_shlibpath_var_F77=no
vapier7f19c022007-02-17 14:46:31 +000014306 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14307 hardcode_libdir_separator_F77=':'
14308 link_all_deplibs_F77=yes
14309 export_dynamic_flag_spec_F77='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +000014310 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +000014311
14312 if test "$GCC" = yes; then
14313 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14314 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14315 else
14316 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14317 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14318 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000014319 ;;
14320
14321 uts4*)
14322 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14323 hardcode_libdir_flag_spec_F77='-L$libdir'
14324 hardcode_shlibpath_var_F77=no
14325 ;;
14326
14327 *)
14328 ld_shlibs_F77=no
14329 ;;
14330 esac
14331 fi
14332
mlcreech94984912008-03-04 19:03:08 +000014333{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14334echo "${ECHO_T}$ld_shlibs_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014335test "$ld_shlibs_F77" = no && can_build_shared=no
14336
a.rottmann9bc8b932004-02-29 15:18:31 +000014337#
14338# Do we need to explicitly link libc?
14339#
14340case "x$archive_cmds_need_lc_F77" in
14341x|xyes)
14342 # Assume -lc should be added
14343 archive_cmds_need_lc_F77=yes
14344
14345 if test "$enable_shared" = yes && test "$GCC" = yes; then
14346 case $archive_cmds_F77 in
14347 *'~'*)
14348 # FIXME: we may have to deal with multi-command sequences.
14349 ;;
14350 '$CC '*)
14351 # Test whether the compiler implicitly links with -lc since on some
14352 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14353 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000014354 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14355echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014356 $rm conftest*
14357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14358
14359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14360 (eval $ac_compile) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } 2>conftest.err; then
14364 soname=conftest
14365 lib=conftest
14366 libobjs=conftest.$ac_objext
14367 deplibs=
14368 wl=$lt_prog_compiler_wl_F77
vapier7f19c022007-02-17 14:46:31 +000014369 pic_flag=$lt_prog_compiler_pic_F77
a.rottmann9bc8b932004-02-29 15:18:31 +000014370 compiler_flags=-v
14371 linker_flags=-v
14372 verstring=
14373 output_objdir=.
14374 libname=conftest
14375 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14376 allow_undefined_flag_F77=
14377 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14378 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }
14382 then
14383 archive_cmds_need_lc_F77=no
14384 else
14385 archive_cmds_need_lc_F77=yes
14386 fi
14387 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14388 else
14389 cat conftest.err 1>&5
14390 fi
14391 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000014392 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14393echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014394 ;;
14395 esac
14396 fi
14397 ;;
14398esac
14399
mlcreech94984912008-03-04 19:03:08 +000014400{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14401echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014402library_names_spec=
14403libname_spec='lib$name'
14404soname_spec=
vapier7f19c022007-02-17 14:46:31 +000014405shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000014406postinstall_cmds=
14407postuninstall_cmds=
14408finish_cmds=
14409finish_eval=
14410shlibpath_var=
14411shlibpath_overrides_runpath=unknown
14412version_type=none
14413dynamic_linker="$host_os ld.so"
14414sys_lib_dlsearch_path_spec="/lib /usr/lib"
14415if test "$GCC" = yes; then
14416 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14417 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14418 # if the path contains ";" then we assume it to be the separator
14419 # otherwise default to the standard path separator (i.e. ":") - it is
14420 # assumed that no part of a normal pathname contains ";" but that should
14421 # okay in the real world where ";" in dirpaths is itself problematic.
14422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14423 else
14424 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14425 fi
14426else
14427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14428fi
14429need_lib_prefix=unknown
14430hardcode_into_libs=no
14431
14432# when you set need_version to no, make sure it does not cause -set_version
14433# flags to be left without arguments
14434need_version=unknown
14435
14436case $host_os in
14437aix3*)
14438 version_type=linux
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14440 shlibpath_var=LIBPATH
14441
14442 # AIX 3 has no versioning support, so we append a major version to the name.
14443 soname_spec='${libname}${release}${shared_ext}$major'
14444 ;;
14445
14446aix4* | aix5*)
14447 version_type=linux
14448 need_lib_prefix=no
14449 need_version=no
14450 hardcode_into_libs=yes
14451 if test "$host_cpu" = ia64; then
14452 # AIX 5 supports IA64
14453 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 else
14456 # With GCC up to 2.95.x, collect2 would create an import file
14457 # for dependence libraries. The import file would start with
14458 # the line `#! .'. This would cause the generated library to
14459 # depend on `.', always an invalid library. This was fixed in
14460 # development snapshots of GCC prior to 3.0.
14461 case $host_os in
14462 aix4 | aix4.[01] | aix4.[01].*)
14463 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14464 echo ' yes '
14465 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14466 :
14467 else
14468 can_build_shared=no
14469 fi
14470 ;;
14471 esac
14472 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14473 # soname into executable. Probably we can add versioning support to
14474 # collect2, so additional links can be useful in future.
14475 if test "$aix_use_runtimelinking" = yes; then
14476 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14477 # instead of lib<name>.a to let people know that these are not
14478 # typical AIX shared libraries.
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480 else
14481 # We preserve .a as extension for shared libraries through AIX4.2
14482 # and later when we are not doing run time linking.
14483 library_names_spec='${libname}${release}.a $libname.a'
14484 soname_spec='${libname}${release}${shared_ext}$major'
14485 fi
14486 shlibpath_var=LIBPATH
14487 fi
14488 ;;
14489
14490amigaos*)
14491 library_names_spec='$libname.ixlibrary $libname.a'
14492 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14493 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'
14494 ;;
14495
14496beos*)
14497 library_names_spec='${libname}${shared_ext}'
14498 dynamic_linker="$host_os ld.so"
14499 shlibpath_var=LIBRARY_PATH
14500 ;;
14501
vapier7f19c022007-02-17 14:46:31 +000014502bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014503 version_type=linux
14504 need_version=no
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14510 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14511 # the default ld.so.conf also contains /usr/contrib/lib and
14512 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14513 # libtool to hard-code these into programs
14514 ;;
14515
14516cygwin* | mingw* | pw32*)
14517 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000014518 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000014519 need_version=no
14520 need_lib_prefix=no
14521
14522 case $GCC,$host_os in
14523 yes,cygwin* | yes,mingw* | yes,pw32*)
14524 library_names_spec='$libname.dll.a'
14525 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14526 postinstall_cmds='base_file=`basename \${file}`~
14527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14528 dldir=$destdir/`dirname \$dlpath`~
14529 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000014530 $install_prog $dir/$dlname \$dldir/$dlname~
14531 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000014532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14533 dlpath=$dir/\$dldll~
14534 $rm \$dlpath'
14535 shlibpath_overrides_runpath=yes
14536
14537 case $host_os in
14538 cygwin*)
14539 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14540 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14541 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14542 ;;
14543 mingw*)
14544 # MinGW DLLs use traditional 'lib' prefix
14545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14547 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14548 # It is most probably a Windows format PATH printed by
14549 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14550 # path with ; separators, and with drive letters. We can handle the
14551 # drive letters (cygwin fileutils understands them), so leave them,
14552 # especially as we might pass files found there to a mingw objdump,
14553 # which wouldn't understand a cygwinified path. Ahh.
14554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14555 else
14556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14557 fi
14558 ;;
14559 pw32*)
14560 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000014561 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +000014562 ;;
14563 esac
14564 ;;
14565
vapier7f19c022007-02-17 14:46:31 +000014566 linux*)
14567 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14569 supports_anon_versioning=no
14570 case `$LD -v 2>/dev/null` in
14571 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14572 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14573 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14574 *\ 2.11.*) ;; # other 2.11 versions
14575 *) supports_anon_versioning=yes ;;
14576 esac
14577 if test $supports_anon_versioning = yes; then
14578 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14579cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14580$echo "local: *; };" >> $output_objdir/$libname.ver~
14581 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14582 else
14583 $archive_expsym_cmds="$archive_cmds"
14584 fi
14585 else
14586 ld_shlibs=no
14587 fi
14588 ;;
14589
a.rottmann9bc8b932004-02-29 15:18:31 +000014590 *)
14591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14592 ;;
14593 esac
14594 dynamic_linker='Win32 ld.exe'
14595 # FIXME: first we should search . and the directory the executable is in
14596 shlibpath_var=PATH
14597 ;;
14598
14599darwin* | rhapsody*)
14600 dynamic_linker="$host_os dyld"
14601 version_type=darwin
14602 need_lib_prefix=no
14603 need_version=no
14604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14605 soname_spec='${libname}${release}${major}$shared_ext'
14606 shlibpath_overrides_runpath=yes
14607 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000014608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000014609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14610 if test "$GCC" = yes; then
14611 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"`
14612 else
14613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14614 fi
14615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14616 ;;
14617
14618dgux*)
14619 version_type=linux
14620 need_lib_prefix=no
14621 need_version=no
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14623 soname_spec='${libname}${release}${shared_ext}$major'
14624 shlibpath_var=LD_LIBRARY_PATH
14625 ;;
14626
14627freebsd1*)
14628 dynamic_linker=no
14629 ;;
14630
14631kfreebsd*-gnu)
14632 version_type=linux
14633 need_lib_prefix=no
14634 need_version=no
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath=no
14639 hardcode_into_libs=yes
14640 dynamic_linker='GNU ld.so'
14641 ;;
14642
vapier7f19c022007-02-17 14:46:31 +000014643freebsd* | dragonfly*)
14644 # DragonFly does not have aout. When/if they implement a new
14645 # versioning mechanism, adjust this.
14646 if test -x /usr/bin/objformat; then
14647 objformat=`/usr/bin/objformat`
14648 else
14649 case $host_os in
14650 freebsd[123]*) objformat=aout ;;
14651 *) objformat=elf ;;
14652 esac
14653 fi
14654 # Handle Gentoo/FreeBSD as it was Linux
14655 case $host_vendor in
14656 gentoo)
14657 version_type=linux ;;
14658 *)
14659 version_type=freebsd-$objformat ;;
14660 esac
14661
a.rottmann9bc8b932004-02-29 15:18:31 +000014662 case $version_type in
14663 freebsd-elf*)
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14665 need_version=no
14666 need_lib_prefix=no
14667 ;;
14668 freebsd-*)
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14670 need_version=yes
14671 ;;
vapier7f19c022007-02-17 14:46:31 +000014672 linux)
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 need_lib_prefix=no
14676 need_version=no
14677 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014678 esac
14679 shlibpath_var=LD_LIBRARY_PATH
14680 case $host_os in
14681 freebsd2*)
14682 shlibpath_overrides_runpath=yes
14683 ;;
vapier7f19c022007-02-17 14:46:31 +000014684 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014685 shlibpath_overrides_runpath=yes
14686 hardcode_into_libs=yes
14687 ;;
vapier7f19c022007-02-17 14:46:31 +000014688 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14689 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000014690 shlibpath_overrides_runpath=no
14691 hardcode_into_libs=yes
14692 ;;
vapier7f19c022007-02-17 14:46:31 +000014693 freebsd*) # from 4.6 on
14694 shlibpath_overrides_runpath=yes
14695 hardcode_into_libs=yes
14696 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014697 esac
14698 ;;
14699
14700gnu*)
14701 version_type=linux
14702 need_lib_prefix=no
14703 need_version=no
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 hardcode_into_libs=yes
14708 ;;
14709
14710hpux9* | hpux10* | hpux11*)
14711 # Give a soname corresponding to the major version so that dld.sl refuses to
14712 # link against other versions.
14713 version_type=sunos
14714 need_lib_prefix=no
14715 need_version=no
vapier7f19c022007-02-17 14:46:31 +000014716 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000014717 ia64*)
vapier7f19c022007-02-17 14:46:31 +000014718 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000014719 hardcode_into_libs=yes
14720 dynamic_linker="$host_os dld.so"
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 if test "X$HPUX_IA64_MODE" = X32; then
14726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14727 else
14728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14729 fi
14730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14731 ;;
14732 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000014733 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000014734 hardcode_into_libs=yes
14735 dynamic_linker="$host_os dld.sl"
14736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14742 ;;
14743 *)
vapier7f19c022007-02-17 14:46:31 +000014744 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000014745 dynamic_linker="$host_os dld.sl"
14746 shlibpath_var=SHLIB_PATH
14747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 ;;
14751 esac
14752 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14753 postinstall_cmds='chmod 555 $lib'
14754 ;;
14755
vapier7f19c022007-02-17 14:46:31 +000014756interix3*)
14757 version_type=linux
14758 need_lib_prefix=no
14759 need_version=no
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=no
14765 hardcode_into_libs=yes
14766 ;;
14767
a.rottmann9bc8b932004-02-29 15:18:31 +000014768irix5* | irix6* | nonstopux*)
14769 case $host_os in
14770 nonstopux*) version_type=nonstopux ;;
14771 *)
14772 if test "$lt_cv_prog_gnu_ld" = yes; then
14773 version_type=linux
14774 else
14775 version_type=irix
14776 fi ;;
14777 esac
14778 need_lib_prefix=no
14779 need_version=no
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14782 case $host_os in
14783 irix5* | nonstopux*)
14784 libsuff= shlibsuff=
14785 ;;
14786 *)
14787 case $LD in # libtool.m4 will add one of these switches to LD
14788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14789 libsuff= shlibsuff= libmagic=32-bit;;
14790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14791 libsuff=32 shlibsuff=N32 libmagic=N32;;
14792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14793 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14794 *) libsuff= shlibsuff= libmagic=never-match;;
14795 esac
14796 ;;
14797 esac
14798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14799 shlibpath_overrides_runpath=no
14800 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14801 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14802 hardcode_into_libs=yes
14803 ;;
14804
14805# No shared lib support for Linux oldld, aout, or coff.
14806linux*oldld* | linux*aout* | linux*coff*)
14807 dynamic_linker=no
14808 ;;
14809
14810# This must be Linux ELF.
14811linux*)
14812 version_type=linux
14813 need_lib_prefix=no
14814 need_version=no
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816 soname_spec='${libname}${release}${shared_ext}$major'
14817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 shlibpath_overrides_runpath=no
14820 # This implies no fast_install, which is unacceptable.
14821 # Some rework will be needed to allow for fast_install
14822 # before this can be enabled.
14823 hardcode_into_libs=yes
14824
14825 # Append ld.so.conf contents to the search path
14826 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000014827 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' ' '`
14828 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000014829 fi
14830
14831 # We used to test for /lib/ld.so.1 and disable shared libraries on
14832 # powerpc, because MkLinux only supported shared libraries with the
14833 # GNU dynamic linker. Since this was broken with cross compilers,
14834 # most powerpc-linux boxes support dynamic linking these days and
14835 # people can always --disable-shared, the test was removed, and we
14836 # assume the GNU/Linux dynamic linker is in use.
14837 dynamic_linker='GNU/Linux ld.so'
14838 ;;
14839
14840knetbsd*-gnu)
14841 version_type=linux
14842 need_lib_prefix=no
14843 need_version=no
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=no
14848 hardcode_into_libs=yes
14849 dynamic_linker='GNU ld.so'
14850 ;;
14851
14852netbsd*)
14853 version_type=sunos
14854 need_lib_prefix=no
14855 need_version=no
14856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14859 dynamic_linker='NetBSD (a.out) ld.so'
14860 else
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 dynamic_linker='NetBSD ld.elf_so'
14864 fi
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 hardcode_into_libs=yes
14868 ;;
14869
14870newsos6)
14871 version_type=linux
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 shlibpath_overrides_runpath=yes
14875 ;;
14876
14877nto-qnx*)
14878 version_type=linux
14879 need_lib_prefix=no
14880 need_version=no
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882 soname_spec='${libname}${release}${shared_ext}$major'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 shlibpath_overrides_runpath=yes
14885 ;;
14886
14887openbsd*)
14888 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000014889 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000014890 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000014891 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14892 case $host_os in
14893 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14894 *) need_version=no ;;
14895 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000014896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14900 case $host_os in
14901 openbsd2.[89] | openbsd2.[89].*)
14902 shlibpath_overrides_runpath=no
14903 ;;
14904 *)
14905 shlibpath_overrides_runpath=yes
14906 ;;
14907 esac
14908 else
14909 shlibpath_overrides_runpath=yes
14910 fi
14911 ;;
14912
14913os2*)
14914 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000014915 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000014916 need_lib_prefix=no
14917 library_names_spec='$libname${shared_ext} $libname.a'
14918 dynamic_linker='OS/2 ld.exe'
14919 shlibpath_var=LIBPATH
14920 ;;
14921
14922osf3* | osf4* | osf5*)
14923 version_type=osf
14924 need_lib_prefix=no
14925 need_version=no
14926 soname_spec='${libname}${release}${shared_ext}$major'
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14930 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14931 ;;
14932
a.rottmann9bc8b932004-02-29 15:18:31 +000014933solaris*)
14934 version_type=linux
14935 need_lib_prefix=no
14936 need_version=no
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=yes
14941 hardcode_into_libs=yes
14942 # ldd complains unless libraries are executable
14943 postinstall_cmds='chmod +x $lib'
14944 ;;
14945
14946sunos4*)
14947 version_type=sunos
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14949 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14950 shlibpath_var=LD_LIBRARY_PATH
14951 shlibpath_overrides_runpath=yes
14952 if test "$with_gnu_ld" = yes; then
14953 need_lib_prefix=no
14954 fi
14955 need_version=yes
14956 ;;
14957
vapier7f19c022007-02-17 14:46:31 +000014958sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014959 version_type=linux
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 case $host_vendor in
14964 sni)
14965 shlibpath_overrides_runpath=no
14966 need_lib_prefix=no
14967 export_dynamic_flag_spec='${wl}-Blargedynsym'
14968 runpath_var=LD_RUN_PATH
14969 ;;
14970 siemens)
14971 need_lib_prefix=no
14972 ;;
14973 motorola)
14974 need_lib_prefix=no
14975 need_version=no
14976 shlibpath_overrides_runpath=no
14977 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14978 ;;
14979 esac
14980 ;;
14981
14982sysv4*MP*)
14983 if test -d /usr/nec ;then
14984 version_type=linux
14985 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14986 soname_spec='$libname${shared_ext}.$major'
14987 shlibpath_var=LD_LIBRARY_PATH
14988 fi
14989 ;;
14990
vapier7f19c022007-02-17 14:46:31 +000014991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14992 version_type=freebsd-elf
14993 need_lib_prefix=no
14994 need_version=no
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14996 soname_spec='${libname}${release}${shared_ext}$major'
14997 shlibpath_var=LD_LIBRARY_PATH
14998 hardcode_into_libs=yes
14999 if test "$with_gnu_ld" = yes; then
15000 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15001 shlibpath_overrides_runpath=no
15002 else
15003 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15004 shlibpath_overrides_runpath=yes
15005 case $host_os in
15006 sco3.2v5*)
15007 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15008 ;;
15009 esac
15010 fi
15011 sys_lib_dlsearch_path_spec='/usr/lib'
15012 ;;
15013
a.rottmann9bc8b932004-02-29 15:18:31 +000015014uts4*)
15015 version_type=linux
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 shlibpath_var=LD_LIBRARY_PATH
15019 ;;
15020
15021*)
15022 dynamic_linker=no
15023 ;;
15024esac
mlcreech94984912008-03-04 19:03:08 +000015025{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15026echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015027test "$dynamic_linker" = no && can_build_shared=no
15028
vapier7f19c022007-02-17 14:46:31 +000015029variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15030if test "$GCC" = yes; then
15031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15032fi
15033
mlcreech94984912008-03-04 19:03:08 +000015034{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15035echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015036hardcode_action_F77=
15037if test -n "$hardcode_libdir_flag_spec_F77" || \
vapier7f19c022007-02-17 14:46:31 +000015038 test -n "$runpath_var_F77" || \
15039 test "X$hardcode_automatic_F77" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015040
15041 # We can hardcode non-existant directories.
15042 if test "$hardcode_direct_F77" != no &&
15043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15044 # have to relink, otherwise we might link with an installed library
15045 # when we should be linking with a yet-to-be-installed one
15046 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15047 test "$hardcode_minus_L_F77" != no; then
15048 # Linking always hardcodes the temporary library directory.
15049 hardcode_action_F77=relink
15050 else
15051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15052 hardcode_action_F77=immediate
15053 fi
15054else
15055 # We cannot hardcode anything, or else we can only hardcode existing
15056 # directories.
15057 hardcode_action_F77=unsupported
15058fi
mlcreech94984912008-03-04 19:03:08 +000015059{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15060echo "${ECHO_T}$hardcode_action_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015061
15062if test "$hardcode_action_F77" = relink; then
15063 # Fast installation is not supported
15064 enable_fast_install=no
15065elif test "$shlibpath_overrides_runpath" = yes ||
15066 test "$enable_shared" = no; then
15067 # Fast installation is not necessary
15068 enable_fast_install=needless
15069fi
15070
a.rottmann9bc8b932004-02-29 15:18:31 +000015071
15072# The else clause should only fire when bootstrapping the
15073# libtool distribution, otherwise you forgot to ship ltmain.sh
15074# with your package, and you will get complaints that there are
15075# no rules to generate ltmain.sh.
15076if test -f "$ltmain"; then
15077 # See if we are running on zsh, and set the options which allow our commands through
15078 # without removal of \ escapes.
15079 if test -n "${ZSH_VERSION+set}" ; then
15080 setopt NO_GLOB_SUBST
15081 fi
15082 # Now quote all the things that may contain metacharacters while being
15083 # careful not to overquote the AC_SUBSTed values. We take copies of the
15084 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000015085 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000015086 SED SHELL STRIP \
15087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15089 deplibs_check_method reload_flag reload_cmds need_locks \
15090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15091 lt_cv_sys_global_symbol_to_c_name_address \
15092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15093 old_postinstall_cmds old_postuninstall_cmds \
15094 compiler_F77 \
15095 CC_F77 \
15096 LD_F77 \
15097 lt_prog_compiler_wl_F77 \
15098 lt_prog_compiler_pic_F77 \
15099 lt_prog_compiler_static_F77 \
15100 lt_prog_compiler_no_builtin_flag_F77 \
15101 export_dynamic_flag_spec_F77 \
15102 thread_safe_flag_spec_F77 \
15103 whole_archive_flag_spec_F77 \
15104 enable_shared_with_static_runtimes_F77 \
15105 old_archive_cmds_F77 \
15106 old_archive_from_new_cmds_F77 \
15107 predep_objects_F77 \
15108 postdep_objects_F77 \
15109 predeps_F77 \
15110 postdeps_F77 \
15111 compiler_lib_search_path_F77 \
15112 archive_cmds_F77 \
15113 archive_expsym_cmds_F77 \
15114 postinstall_cmds_F77 \
15115 postuninstall_cmds_F77 \
15116 old_archive_from_expsyms_cmds_F77 \
15117 allow_undefined_flag_F77 \
15118 no_undefined_flag_F77 \
15119 export_symbols_cmds_F77 \
15120 hardcode_libdir_flag_spec_F77 \
15121 hardcode_libdir_flag_spec_ld_F77 \
15122 hardcode_libdir_separator_F77 \
15123 hardcode_automatic_F77 \
15124 module_cmds_F77 \
15125 module_expsym_cmds_F77 \
15126 lt_cv_prog_compiler_c_o_F77 \
15127 exclude_expsyms_F77 \
15128 include_expsyms_F77; do
15129
15130 case $var in
15131 old_archive_cmds_F77 | \
15132 old_archive_from_new_cmds_F77 | \
15133 archive_cmds_F77 | \
15134 archive_expsym_cmds_F77 | \
15135 module_cmds_F77 | \
15136 module_expsym_cmds_F77 | \
15137 old_archive_from_expsyms_cmds_F77 | \
15138 export_symbols_cmds_F77 | \
15139 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15140 postinstall_cmds | postuninstall_cmds | \
15141 old_postinstall_cmds | old_postuninstall_cmds | \
15142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15143 # Double-quote double-evaled strings.
15144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15145 ;;
15146 *)
15147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15148 ;;
15149 esac
15150 done
15151
15152 case $lt_echo in
15153 *'\$0 --fallback-echo"')
15154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15155 ;;
15156 esac
15157
15158cfgfile="$ofile"
15159
15160 cat <<__EOF__ >> "$cfgfile"
15161# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15162
15163# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15164
15165# Shell to use when invoking shell scripts.
15166SHELL=$lt_SHELL
15167
15168# Whether or not to build shared libraries.
15169build_libtool_libs=$enable_shared
15170
15171# Whether or not to build static libraries.
15172build_old_libs=$enable_static
15173
15174# Whether or not to add -lc for building shared libraries.
15175build_libtool_need_lc=$archive_cmds_need_lc_F77
15176
15177# Whether or not to disallow shared libs when runtime libs are static
15178allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15179
15180# Whether or not to optimize for fast installation.
15181fast_install=$enable_fast_install
15182
15183# The host system.
15184host_alias=$host_alias
15185host=$host
vapier7f19c022007-02-17 14:46:31 +000015186host_os=$host_os
15187
15188# The build system.
15189build_alias=$build_alias
15190build=$build
15191build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000015192
15193# An echo program that does not interpret backslashes.
15194echo=$lt_echo
15195
15196# The archiver.
15197AR=$lt_AR
15198AR_FLAGS=$lt_AR_FLAGS
15199
15200# A C compiler.
15201LTCC=$lt_LTCC
15202
vapier7f19c022007-02-17 14:46:31 +000015203# LTCC compiler flags.
15204LTCFLAGS=$lt_LTCFLAGS
15205
a.rottmann9bc8b932004-02-29 15:18:31 +000015206# A language-specific compiler.
15207CC=$lt_compiler_F77
15208
15209# Is the compiler the GNU C compiler?
15210with_gcc=$GCC_F77
15211
15212# An ERE matcher.
15213EGREP=$lt_EGREP
15214
15215# The linker used to build libraries.
15216LD=$lt_LD_F77
15217
15218# Whether we need hard or soft links.
15219LN_S=$lt_LN_S
15220
15221# A BSD-compatible nm program.
15222NM=$lt_NM
15223
15224# A symbol stripping program
15225STRIP=$lt_STRIP
15226
15227# Used to examine libraries when file_magic_cmd begins "file"
15228MAGIC_CMD=$MAGIC_CMD
15229
15230# Used on cygwin: DLL creation program.
15231DLLTOOL="$DLLTOOL"
15232
15233# Used on cygwin: object dumper.
15234OBJDUMP="$OBJDUMP"
15235
15236# Used on cygwin: assembler.
15237AS="$AS"
15238
15239# The name of the directory that contains temporary libtool files.
15240objdir=$objdir
15241
15242# How to create reloadable object files.
15243reload_flag=$lt_reload_flag
15244reload_cmds=$lt_reload_cmds
15245
15246# How to pass a linker flag through the compiler.
15247wl=$lt_lt_prog_compiler_wl_F77
15248
15249# Object file suffix (normally "o").
15250objext="$ac_objext"
15251
15252# Old archive suffix (normally "a").
15253libext="$libext"
15254
15255# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000015256shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000015257
15258# Executable file suffix (normally "").
15259exeext="$exeext"
15260
15261# Additional compiler flags for building library objects.
15262pic_flag=$lt_lt_prog_compiler_pic_F77
15263pic_mode=$pic_mode
15264
15265# What is the maximum length of a command?
15266max_cmd_len=$lt_cv_sys_max_cmd_len
15267
15268# Does compiler simultaneously support -c and -o options?
15269compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15270
vapier7f19c022007-02-17 14:46:31 +000015271# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000015272need_locks=$lt_need_locks
15273
15274# Do we need the lib prefix for modules?
15275need_lib_prefix=$need_lib_prefix
15276
15277# Do we need a version for libraries?
15278need_version=$need_version
15279
15280# Whether dlopen is supported.
15281dlopen_support=$enable_dlopen
15282
15283# Whether dlopen of programs is supported.
15284dlopen_self=$enable_dlopen_self
15285
15286# Whether dlopen of statically linked programs is supported.
15287dlopen_self_static=$enable_dlopen_self_static
15288
15289# Compiler flag to prevent dynamic linking.
15290link_static_flag=$lt_lt_prog_compiler_static_F77
15291
15292# Compiler flag to turn off builtin functions.
15293no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15294
15295# Compiler flag to allow reflexive dlopens.
15296export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15297
15298# Compiler flag to generate shared objects directly from archives.
15299whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15300
15301# Compiler flag to generate thread-safe objects.
15302thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15303
15304# Library versioning type.
15305version_type=$version_type
15306
15307# Format of library name prefix.
15308libname_spec=$lt_libname_spec
15309
15310# List of archive names. First name is the real one, the rest are links.
15311# The last name is the one that the linker finds with -lNAME.
15312library_names_spec=$lt_library_names_spec
15313
15314# The coded name of the library, if different from the real name.
15315soname_spec=$lt_soname_spec
15316
15317# Commands used to build and install an old-style archive.
15318RANLIB=$lt_RANLIB
15319old_archive_cmds=$lt_old_archive_cmds_F77
15320old_postinstall_cmds=$lt_old_postinstall_cmds
15321old_postuninstall_cmds=$lt_old_postuninstall_cmds
15322
15323# Create an old-style archive from a shared archive.
15324old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15325
15326# Create a temporary old-style archive to link instead of a shared archive.
15327old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15328
15329# Commands used to build and install a shared archive.
15330archive_cmds=$lt_archive_cmds_F77
15331archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15332postinstall_cmds=$lt_postinstall_cmds
15333postuninstall_cmds=$lt_postuninstall_cmds
15334
15335# Commands used to build a loadable module (assumed same as above if empty)
15336module_cmds=$lt_module_cmds_F77
15337module_expsym_cmds=$lt_module_expsym_cmds_F77
15338
15339# Commands to strip libraries.
15340old_striplib=$lt_old_striplib
15341striplib=$lt_striplib
15342
15343# Dependencies to place before the objects being linked to create a
15344# shared library.
15345predep_objects=$lt_predep_objects_F77
15346
15347# Dependencies to place after the objects being linked to create a
15348# shared library.
15349postdep_objects=$lt_postdep_objects_F77
15350
15351# Dependencies to place before the objects being linked to create a
15352# shared library.
15353predeps=$lt_predeps_F77
15354
15355# Dependencies to place after the objects being linked to create a
15356# shared library.
15357postdeps=$lt_postdeps_F77
15358
15359# The library search path used internally by the compiler when linking
15360# a shared library.
15361compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15362
15363# Method to check whether dependent libraries are shared objects.
15364deplibs_check_method=$lt_deplibs_check_method
15365
15366# Command to use when deplibs_check_method == file_magic.
15367file_magic_cmd=$lt_file_magic_cmd
15368
15369# Flag that allows shared libraries with undefined symbols to be built.
15370allow_undefined_flag=$lt_allow_undefined_flag_F77
15371
15372# Flag that forces no undefined symbols.
15373no_undefined_flag=$lt_no_undefined_flag_F77
15374
15375# Commands used to finish a libtool library installation in a directory.
15376finish_cmds=$lt_finish_cmds
15377
15378# Same as above, but a single script fragment to be evaled but not shown.
15379finish_eval=$lt_finish_eval
15380
15381# Take the output of nm and produce a listing of raw symbols and C names.
15382global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15383
15384# Transform the output of nm in a proper C declaration
15385global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15386
15387# Transform the output of nm in a C name address pair
15388global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15389
15390# This is the shared library runtime path variable.
15391runpath_var=$runpath_var
15392
15393# This is the shared library path variable.
15394shlibpath_var=$shlibpath_var
15395
15396# Is shlibpath searched before the hard-coded library search path?
15397shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15398
15399# How to hardcode a shared library path into an executable.
15400hardcode_action=$hardcode_action_F77
15401
15402# Whether we should hardcode library paths into libraries.
15403hardcode_into_libs=$hardcode_into_libs
15404
15405# Flag to hardcode \$libdir into a binary during linking.
15406# This must work even if \$libdir does not exist.
15407hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15408
15409# If ld is used when linking, flag to hardcode \$libdir into
15410# a binary during linking. This must work even if \$libdir does
15411# not exist.
15412hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15413
15414# Whether we need a single -rpath flag with a separated argument.
15415hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15416
15417# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15418# resulting binary.
15419hardcode_direct=$hardcode_direct_F77
15420
15421# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15422# resulting binary.
15423hardcode_minus_L=$hardcode_minus_L_F77
15424
15425# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15426# the resulting binary.
15427hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15428
15429# Set to yes if building a shared library automatically hardcodes DIR into the library
15430# and all subsequent libraries and executables linked against it.
15431hardcode_automatic=$hardcode_automatic_F77
15432
15433# Variables whose values should be saved in libtool wrapper scripts and
15434# restored at relink time.
15435variables_saved_for_relink="$variables_saved_for_relink"
15436
15437# Whether libtool must link a program against all its dependency libraries.
15438link_all_deplibs=$link_all_deplibs_F77
15439
15440# Compile-time system search path for libraries
15441sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15442
15443# Run-time system search path for libraries
15444sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15445
15446# Fix the shell variable \$srcfile for the compiler.
15447fix_srcfile_path="$fix_srcfile_path_F77"
15448
15449# Set to yes if exported symbols are required.
15450always_export_symbols=$always_export_symbols_F77
15451
15452# The commands to list exported symbols.
15453export_symbols_cmds=$lt_export_symbols_cmds_F77
15454
15455# The commands to extract the exported symbol list from a shared archive.
15456extract_expsyms_cmds=$lt_extract_expsyms_cmds
15457
15458# Symbols that should not be listed in the preloaded symbols.
15459exclude_expsyms=$lt_exclude_expsyms_F77
15460
15461# Symbols that must always be exported.
15462include_expsyms=$lt_include_expsyms_F77
15463
15464# ### END LIBTOOL TAG CONFIG: $tagname
15465
15466__EOF__
15467
15468
15469else
15470 # If there is no Makefile yet, we rely on a make rule to execute
15471 # `config.status --recheck' to rerun these tests and create the
15472 # libtool script then.
15473 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15474 if test -f "$ltmain_in"; then
15475 test -f Makefile && make "$ltmain"
15476 fi
15477fi
15478
15479
15480ac_ext=c
15481ac_cpp='$CPP $CPPFLAGS'
15482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15484ac_compiler_gnu=$ac_cv_c_compiler_gnu
15485
15486CC="$lt_save_CC"
15487
15488 else
15489 tagname=""
15490 fi
15491 ;;
15492
15493 GCJ)
15494 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15495
15496
a.rottmann9bc8b932004-02-29 15:18:31 +000015497# Source file extension for Java test sources.
15498ac_ext=java
15499
15500# Object file extension for compiled Java test sources.
15501objext=o
15502objext_GCJ=$objext
15503
15504# Code to be used in simple compile tests
15505lt_simple_compile_test_code="class foo {}\n"
15506
15507# Code to be used in simple link tests
vapier7f19c022007-02-17 14:46:31 +000015508lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
a.rottmann9bc8b932004-02-29 15:18:31 +000015509
15510# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15511
15512# If no C compiler was specified, use CC.
15513LTCC=${LTCC-"$CC"}
15514
vapier7f19c022007-02-17 14:46:31 +000015515# If no C compiler flags were specified, use CFLAGS.
15516LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15517
a.rottmann9bc8b932004-02-29 15:18:31 +000015518# Allow CC to be a program name with arguments.
15519compiler=$CC
15520
15521
vapier7f19c022007-02-17 14:46:31 +000015522# save warnings/boilerplate of simple test code
15523ac_outfile=conftest.$ac_objext
15524printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15525eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15526_lt_compiler_boilerplate=`cat conftest.err`
15527$rm conftest*
15528
15529ac_outfile=conftest.$ac_objext
15530printf "$lt_simple_link_test_code" >conftest.$ac_ext
15531eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15532_lt_linker_boilerplate=`cat conftest.err`
15533$rm conftest*
15534
15535
a.rottmann9bc8b932004-02-29 15:18:31 +000015536# Allow CC to be a program name with arguments.
15537lt_save_CC="$CC"
15538CC=${GCJ-"gcj"}
15539compiler=$CC
15540compiler_GCJ=$CC
vapier7f19c022007-02-17 14:46:31 +000015541for cc_temp in $compiler""; do
15542 case $cc_temp in
15543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15545 \-*) ;;
15546 *) break;;
15547 esac
15548done
15549cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15550
a.rottmann9bc8b932004-02-29 15:18:31 +000015551
15552# GCJ did not exist at the time GCC didn't implicitly link libc in.
15553archive_cmds_need_lc_GCJ=no
15554
vapier7f19c022007-02-17 14:46:31 +000015555old_archive_cmds_GCJ=$old_archive_cmds
15556
a.rottmann9bc8b932004-02-29 15:18:31 +000015557
15558lt_prog_compiler_no_builtin_flag_GCJ=
15559
15560if test "$GCC" = yes; then
15561 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15562
15563
mlcreech94984912008-03-04 19:03:08 +000015564{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15565echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015566if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15568else
15569 lt_cv_prog_compiler_rtti_exceptions=no
15570 ac_outfile=conftest.$ac_objext
15571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15572 lt_compiler_flag="-fno-rtti -fno-exceptions"
15573 # Insert the option either (1) after the last *FLAGS variable, or
15574 # (2) before a word containing "conftest.", or (3) at the end.
15575 # Note that $ac_compile itself does not contain backslashes and begins
15576 # with a dollar sign (not a hyphen), so the echo should work correctly.
15577 # The option is referenced via a variable to avoid confusing sed.
15578 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15581 -e 's:$: $lt_compiler_flag:'`
mlcreechb87057f2008-03-06 07:19:20 +000015582 (eval echo "\"\$as_me:15582: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015583 (eval "$lt_compile" 2>conftest.err)
15584 ac_status=$?
15585 cat conftest.err >&5
mlcreechb87057f2008-03-06 07:19:20 +000015586 echo "$as_me:15586: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015587 if (exit $ac_status) && test -s "$ac_outfile"; then
15588 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000015589 # So say no if there are warnings other than the usual output.
15590 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015593 lt_cv_prog_compiler_rtti_exceptions=yes
15594 fi
15595 fi
15596 $rm conftest*
15597
15598fi
mlcreech94984912008-03-04 19:03:08 +000015599{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15600echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015601
15602if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15603 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15604else
15605 :
15606fi
15607
15608fi
15609
15610lt_prog_compiler_wl_GCJ=
15611lt_prog_compiler_pic_GCJ=
15612lt_prog_compiler_static_GCJ=
15613
mlcreech94984912008-03-04 19:03:08 +000015614{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15615echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015616
15617 if test "$GCC" = yes; then
15618 lt_prog_compiler_wl_GCJ='-Wl,'
15619 lt_prog_compiler_static_GCJ='-static'
15620
15621 case $host_os in
15622 aix*)
15623 # All AIX code is PIC.
15624 if test "$host_cpu" = ia64; then
15625 # AIX 5 now supports IA64 processor
15626 lt_prog_compiler_static_GCJ='-Bstatic'
15627 fi
15628 ;;
15629
15630 amigaos*)
15631 # FIXME: we need at least 68020 code to build shared libraries, but
15632 # adding the `-m68020' flag to GCC prevents building anything better,
15633 # like `-m68040'.
15634 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15635 ;;
15636
15637 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15638 # PIC is the default for these OSes.
15639 ;;
15640
15641 mingw* | pw32* | os2*)
15642 # This hack is so that the source file can tell whether it is being
15643 # built for inclusion in a dll (and should export symbols for example).
15644 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15645 ;;
15646
15647 darwin* | rhapsody*)
15648 # PIC is the default on this platform
15649 # Common symbols not allowed in MH_DYLIB files
15650 lt_prog_compiler_pic_GCJ='-fno-common'
15651 ;;
15652
vapier7f19c022007-02-17 14:46:31 +000015653 interix3*)
15654 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15655 # Instead, we relocate shared libraries at runtime.
15656 ;;
15657
a.rottmann9bc8b932004-02-29 15:18:31 +000015658 msdosdjgpp*)
15659 # Just because we use GCC doesn't mean we suddenly get shared libraries
15660 # on systems that don't support them.
15661 lt_prog_compiler_can_build_shared_GCJ=no
15662 enable_shared=no
15663 ;;
15664
15665 sysv4*MP*)
15666 if test -d /usr/nec; then
15667 lt_prog_compiler_pic_GCJ=-Kconform_pic
15668 fi
15669 ;;
15670
15671 hpux*)
15672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15673 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000015674 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000015675 hppa*64*|ia64*)
15676 # +Z the default
15677 ;;
15678 *)
15679 lt_prog_compiler_pic_GCJ='-fPIC'
15680 ;;
15681 esac
15682 ;;
15683
15684 *)
15685 lt_prog_compiler_pic_GCJ='-fPIC'
15686 ;;
15687 esac
15688 else
15689 # PORTME Check for flag to pass linker flags through the system compiler.
15690 case $host_os in
15691 aix*)
15692 lt_prog_compiler_wl_GCJ='-Wl,'
15693 if test "$host_cpu" = ia64; then
15694 # AIX 5 now supports IA64 processor
15695 lt_prog_compiler_static_GCJ='-Bstatic'
15696 else
15697 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15698 fi
15699 ;;
vapier7f19c022007-02-17 14:46:31 +000015700 darwin*)
15701 # PIC is the default on this platform
15702 # Common symbols not allowed in MH_DYLIB files
15703 case $cc_basename in
15704 xlc*)
15705 lt_prog_compiler_pic_GCJ='-qnocommon'
15706 lt_prog_compiler_wl_GCJ='-Wl,'
15707 ;;
15708 esac
15709 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015710
15711 mingw* | pw32* | os2*)
15712 # This hack is so that the source file can tell whether it is being
15713 # built for inclusion in a dll (and should export symbols for example).
15714 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15715 ;;
15716
15717 hpux9* | hpux10* | hpux11*)
15718 lt_prog_compiler_wl_GCJ='-Wl,'
15719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15720 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000015721 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000015722 hppa*64*|ia64*)
15723 # +Z the default
15724 ;;
15725 *)
15726 lt_prog_compiler_pic_GCJ='+Z'
15727 ;;
15728 esac
15729 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15730 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15731 ;;
15732
15733 irix5* | irix6* | nonstopux*)
15734 lt_prog_compiler_wl_GCJ='-Wl,'
15735 # PIC (with -KPIC) is the default.
15736 lt_prog_compiler_static_GCJ='-non_shared'
15737 ;;
15738
15739 newsos6)
15740 lt_prog_compiler_pic_GCJ='-KPIC'
15741 lt_prog_compiler_static_GCJ='-Bstatic'
15742 ;;
15743
15744 linux*)
vapier7f19c022007-02-17 14:46:31 +000015745 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +000015746 icc* | ecc*)
15747 lt_prog_compiler_wl_GCJ='-Wl,'
15748 lt_prog_compiler_pic_GCJ='-KPIC'
15749 lt_prog_compiler_static_GCJ='-static'
15750 ;;
vapier7f19c022007-02-17 14:46:31 +000015751 pgcc* | pgf77* | pgf90* | pgf95*)
15752 # Portland Group compilers (*not* the Pentium gcc compiler,
15753 # which looks to be a dead project)
15754 lt_prog_compiler_wl_GCJ='-Wl,'
15755 lt_prog_compiler_pic_GCJ='-fpic'
15756 lt_prog_compiler_static_GCJ='-Bstatic'
15757 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015758 ccc*)
15759 lt_prog_compiler_wl_GCJ='-Wl,'
15760 # All Alpha code is PIC.
15761 lt_prog_compiler_static_GCJ='-non_shared'
15762 ;;
15763 esac
15764 ;;
15765
15766 osf3* | osf4* | osf5*)
15767 lt_prog_compiler_wl_GCJ='-Wl,'
15768 # All OSF/1 code is PIC.
15769 lt_prog_compiler_static_GCJ='-non_shared'
15770 ;;
15771
a.rottmann9bc8b932004-02-29 15:18:31 +000015772 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015773 lt_prog_compiler_pic_GCJ='-KPIC'
15774 lt_prog_compiler_static_GCJ='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +000015775 case $cc_basename in
15776 f77* | f90* | f95*)
15777 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15778 *)
15779 lt_prog_compiler_wl_GCJ='-Wl,';;
15780 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000015781 ;;
15782
15783 sunos4*)
15784 lt_prog_compiler_wl_GCJ='-Qoption ld '
15785 lt_prog_compiler_pic_GCJ='-PIC'
15786 lt_prog_compiler_static_GCJ='-Bstatic'
15787 ;;
15788
vapier7f19c022007-02-17 14:46:31 +000015789 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015790 lt_prog_compiler_wl_GCJ='-Wl,'
15791 lt_prog_compiler_pic_GCJ='-KPIC'
15792 lt_prog_compiler_static_GCJ='-Bstatic'
15793 ;;
15794
15795 sysv4*MP*)
15796 if test -d /usr/nec ;then
15797 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15798 lt_prog_compiler_static_GCJ='-Bstatic'
15799 fi
15800 ;;
15801
vapier7f19c022007-02-17 14:46:31 +000015802 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15803 lt_prog_compiler_wl_GCJ='-Wl,'
15804 lt_prog_compiler_pic_GCJ='-KPIC'
15805 lt_prog_compiler_static_GCJ='-Bstatic'
15806 ;;
15807
15808 unicos*)
15809 lt_prog_compiler_wl_GCJ='-Wl,'
15810 lt_prog_compiler_can_build_shared_GCJ=no
15811 ;;
15812
a.rottmann9bc8b932004-02-29 15:18:31 +000015813 uts4*)
15814 lt_prog_compiler_pic_GCJ='-pic'
15815 lt_prog_compiler_static_GCJ='-Bstatic'
15816 ;;
15817
15818 *)
15819 lt_prog_compiler_can_build_shared_GCJ=no
15820 ;;
15821 esac
15822 fi
15823
mlcreech94984912008-03-04 19:03:08 +000015824{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15825echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015826
15827#
15828# Check to make sure the PIC flag actually works.
15829#
15830if test -n "$lt_prog_compiler_pic_GCJ"; then
15831
mlcreech94984912008-03-04 19:03:08 +000015832{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15833echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015834if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836else
15837 lt_prog_compiler_pic_works_GCJ=no
15838 ac_outfile=conftest.$ac_objext
15839 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15840 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15841 # Insert the option either (1) after the last *FLAGS variable, or
15842 # (2) before a word containing "conftest.", or (3) at the end.
15843 # Note that $ac_compile itself does not contain backslashes and begins
15844 # with a dollar sign (not a hyphen), so the echo should work correctly.
15845 # The option is referenced via a variable to avoid confusing sed.
15846 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15849 -e 's:$: $lt_compiler_flag:'`
mlcreechb87057f2008-03-06 07:19:20 +000015850 (eval echo "\"\$as_me:15850: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015851 (eval "$lt_compile" 2>conftest.err)
15852 ac_status=$?
15853 cat conftest.err >&5
mlcreechb87057f2008-03-06 07:19:20 +000015854 echo "$as_me:15854: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015855 if (exit $ac_status) && test -s "$ac_outfile"; then
15856 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000015857 # So say no if there are warnings other than the usual output.
15858 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015861 lt_prog_compiler_pic_works_GCJ=yes
15862 fi
15863 fi
15864 $rm conftest*
15865
15866fi
mlcreech94984912008-03-04 19:03:08 +000015867{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15868echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015869
15870if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15871 case $lt_prog_compiler_pic_GCJ in
15872 "" | " "*) ;;
15873 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15874 esac
15875else
15876 lt_prog_compiler_pic_GCJ=
15877 lt_prog_compiler_can_build_shared_GCJ=no
15878fi
15879
15880fi
vapier7f19c022007-02-17 14:46:31 +000015881case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000015882 # For platforms which do not support PIC, -DPIC is meaningless:
15883 *djgpp*)
15884 lt_prog_compiler_pic_GCJ=
15885 ;;
15886 *)
15887 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15888 ;;
15889esac
15890
vapier7f19c022007-02-17 14:46:31 +000015891#
15892# Check to make sure the static flag actually works.
15893#
15894wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
mlcreech94984912008-03-04 19:03:08 +000015895{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15896echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000015897if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15899else
15900 lt_prog_compiler_static_works_GCJ=no
15901 save_LDFLAGS="$LDFLAGS"
15902 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15903 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15905 # The linker can only warn and ignore the option if not recognized
15906 # So say no if there are warnings
15907 if test -s conftest.err; then
15908 # Append any errors to the config.log.
15909 cat conftest.err 1>&5
15910 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15912 if diff conftest.exp conftest.er2 >/dev/null; then
15913 lt_prog_compiler_static_works_GCJ=yes
15914 fi
15915 else
15916 lt_prog_compiler_static_works_GCJ=yes
15917 fi
15918 fi
15919 $rm conftest*
15920 LDFLAGS="$save_LDFLAGS"
15921
15922fi
mlcreech94984912008-03-04 19:03:08 +000015923{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15924echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
vapier7f19c022007-02-17 14:46:31 +000015925
15926if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15927 :
15928else
15929 lt_prog_compiler_static_GCJ=
15930fi
15931
15932
mlcreech94984912008-03-04 19:03:08 +000015933{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15934echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015935if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15937else
15938 lt_cv_prog_compiler_c_o_GCJ=no
15939 $rm -r conftest 2>/dev/null
15940 mkdir conftest
15941 cd conftest
15942 mkdir out
15943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15944
15945 lt_compiler_flag="-o out/conftest2.$ac_objext"
15946 # Insert the option either (1) after the last *FLAGS variable, or
15947 # (2) before a word containing "conftest.", or (3) at the end.
15948 # Note that $ac_compile itself does not contain backslashes and begins
15949 # with a dollar sign (not a hyphen), so the echo should work correctly.
15950 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15953 -e 's:$: $lt_compiler_flag:'`
mlcreechb87057f2008-03-06 07:19:20 +000015954 (eval echo "\"\$as_me:15954: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015955 (eval "$lt_compile" 2>out/conftest.err)
15956 ac_status=$?
15957 cat out/conftest.err >&5
mlcreechb87057f2008-03-06 07:19:20 +000015958 echo "$as_me:15958: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015959 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15960 then
15961 # The compiler can only warn and ignore the option if not recognized
15962 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000015963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15964 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15965 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015966 lt_cv_prog_compiler_c_o_GCJ=yes
15967 fi
15968 fi
vapier7f19c022007-02-17 14:46:31 +000015969 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015970 $rm conftest*
15971 # SGI C++ compiler will create directory out/ii_files/ for
15972 # template instantiation
15973 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15974 $rm out/* && rmdir out
15975 cd ..
15976 rmdir conftest
15977 $rm conftest*
15978
15979fi
mlcreech94984912008-03-04 19:03:08 +000015980{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15981echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015982
15983
15984hard_links="nottested"
15985if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15986 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000015987 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15988echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015989 hard_links=yes
15990 $rm conftest*
15991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15992 touch conftest.a
15993 ln conftest.a conftest.b 2>&5 || hard_links=no
15994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000015995 { echo "$as_me:$LINENO: result: $hard_links" >&5
15996echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015997 if test "$hard_links" = no; then
15998 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15999echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16000 need_locks=warn
16001 fi
16002else
16003 need_locks=no
16004fi
16005
mlcreech94984912008-03-04 19:03:08 +000016006{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16007echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000016008
16009 runpath_var=
16010 allow_undefined_flag_GCJ=
16011 enable_shared_with_static_runtimes_GCJ=no
16012 archive_cmds_GCJ=
16013 archive_expsym_cmds_GCJ=
16014 old_archive_From_new_cmds_GCJ=
16015 old_archive_from_expsyms_cmds_GCJ=
16016 export_dynamic_flag_spec_GCJ=
16017 whole_archive_flag_spec_GCJ=
16018 thread_safe_flag_spec_GCJ=
16019 hardcode_libdir_flag_spec_GCJ=
16020 hardcode_libdir_flag_spec_ld_GCJ=
16021 hardcode_libdir_separator_GCJ=
16022 hardcode_direct_GCJ=no
16023 hardcode_minus_L_GCJ=no
16024 hardcode_shlibpath_var_GCJ=unsupported
16025 link_all_deplibs_GCJ=unknown
16026 hardcode_automatic_GCJ=no
16027 module_cmds_GCJ=
16028 module_expsym_cmds_GCJ=
16029 always_export_symbols_GCJ=no
16030 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16031 # include_expsyms should be a list of space-separated symbols to be *always*
16032 # included in the symbol list
16033 include_expsyms_GCJ=
16034 # exclude_expsyms can be an extended regexp of symbols to exclude
16035 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16036 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16037 # as well as any symbol that contains `d'.
16038 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16039 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16040 # platforms (ab)use it in PIC code, but their linkers get confused if
16041 # the symbol is explicitly referenced. Since portable code cannot
16042 # rely on this symbol name, it's probably fine to never include it in
16043 # preloaded symbol tables.
16044 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +000016045 # Just being paranoid about ensuring that cc_basename is set.
16046 for cc_temp in $compiler""; do
16047 case $cc_temp in
16048 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16049 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16050 \-*) ;;
16051 *) break;;
16052 esac
16053done
16054cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000016055
16056 case $host_os in
16057 cygwin* | mingw* | pw32*)
16058 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16059 # When not using gcc, we currently assume that we are using
16060 # Microsoft Visual C++.
16061 if test "$GCC" != yes; then
16062 with_gnu_ld=no
16063 fi
16064 ;;
vapier7f19c022007-02-17 14:46:31 +000016065 interix*)
16066 # we just hope/assume this is gcc and not c89 (= MSVC++)
16067 with_gnu_ld=yes
16068 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016069 openbsd*)
16070 with_gnu_ld=no
16071 ;;
16072 esac
16073
16074 ld_shlibs_GCJ=yes
16075 if test "$with_gnu_ld" = yes; then
16076 # If archive_cmds runs LD, not CC, wlarc should be empty
16077 wlarc='${wl}'
16078
vapier7f19c022007-02-17 14:46:31 +000016079 # Set some defaults for GNU ld with shared library support. These
16080 # are reset later if shared libraries are not supported. Putting them
16081 # here allows them to be overridden if necessary.
16082 runpath_var=LD_RUN_PATH
16083 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16084 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16085 # ancient GNU ld didn't support --whole-archive et. al.
16086 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16087 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16088 else
16089 whole_archive_flag_spec_GCJ=
16090 fi
16091 supports_anon_versioning=no
16092 case `$LD -v 2>/dev/null` in
16093 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16094 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16095 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16096 *\ 2.11.*) ;; # other 2.11 versions
16097 *) supports_anon_versioning=yes ;;
16098 esac
16099
a.rottmann9bc8b932004-02-29 15:18:31 +000016100 # See if GNU ld supports shared libraries.
16101 case $host_os in
16102 aix3* | aix4* | aix5*)
16103 # On AIX/PPC, the GNU linker is very broken
16104 if test "$host_cpu" != ia64; then
16105 ld_shlibs_GCJ=no
16106 cat <<EOF 1>&2
16107
16108*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16109*** to be unable to reliably create shared libraries on AIX.
16110*** Therefore, libtool is disabling shared libraries support. If you
16111*** really care for shared libraries, you may want to modify your PATH
16112*** so that a non-GNU linker is found, and then restart.
16113
16114EOF
16115 fi
16116 ;;
16117
16118 amigaos*)
16119 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)'
16120 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16121 hardcode_minus_L_GCJ=yes
16122
16123 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16124 # that the semantics of dynamic libraries on AmigaOS, at least up
16125 # to version 4, is to share data among multiple programs linked
16126 # with the same dynamic library. Since this doesn't match the
16127 # behavior of shared libraries on other platforms, we can't use
16128 # them.
16129 ld_shlibs_GCJ=no
16130 ;;
16131
16132 beos*)
16133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16134 allow_undefined_flag_GCJ=unsupported
16135 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16136 # support --undefined. This deserves some investigation. FIXME
16137 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16138 else
16139 ld_shlibs_GCJ=no
16140 fi
16141 ;;
16142
16143 cygwin* | mingw* | pw32*)
16144 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16145 # as there is no search path for DLLs.
16146 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16147 allow_undefined_flag_GCJ=unsupported
16148 always_export_symbols_GCJ=no
16149 enable_shared_with_static_runtimes_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016150 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000016151
16152 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000016153 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000016154 # If the export-symbols file already is a .def file (1st line
16155 # is EXPORTS), use it as is; otherwise, prepend...
16156 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16157 cp $export_symbols $output_objdir/$soname.def;
16158 else
16159 echo EXPORTS > $output_objdir/$soname.def;
16160 cat $export_symbols >> $output_objdir/$soname.def;
16161 fi~
vapier7f19c022007-02-17 14:46:31 +000016162 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000016163 else
vapier7f19c022007-02-17 14:46:31 +000016164 ld_shlibs_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016165 fi
16166 ;;
16167
vapier7f19c022007-02-17 14:46:31 +000016168 interix3*)
16169 hardcode_direct_GCJ=no
16170 hardcode_shlibpath_var_GCJ=no
16171 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16172 export_dynamic_flag_spec_GCJ='${wl}-E'
16173 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16174 # Instead, shared libraries are loaded at an image base (0x10000000 by
16175 # default) and relocated if they conflict, which is a slow very memory
16176 # consuming and fragmenting process. To avoid this, we pick a random,
16177 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16178 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16179 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'
16180 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'
16181 ;;
16182
16183 linux*)
16184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16185 tmp_addflag=
16186 case $cc_basename,$host_cpu in
16187 pgcc*) # Portland Group C compiler
16188 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'
16189 tmp_addflag=' $pic_flag'
16190 ;;
16191 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16192 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'
16193 tmp_addflag=' $pic_flag -Mnomain' ;;
16194 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16195 tmp_addflag=' -i_dynamic' ;;
16196 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16197 tmp_addflag=' -i_dynamic -nofor_main' ;;
16198 ifc* | ifort*) # Intel Fortran compiler
16199 tmp_addflag=' -nofor_main' ;;
16200 esac
16201 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16202
16203 if test $supports_anon_versioning = yes; then
16204 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16205 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16206 $echo "local: *; };" >> $output_objdir/$libname.ver~
16207 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16208 fi
16209 else
16210 ld_shlibs_GCJ=no
16211 fi
16212 ;;
16213
16214 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16216 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16217 wlarc=
16218 else
16219 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16220 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16221 fi
16222 ;;
16223
vapier7f19c022007-02-17 14:46:31 +000016224 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016225 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16226 ld_shlibs_GCJ=no
16227 cat <<EOF 1>&2
16228
16229*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16230*** create shared libraries on Solaris systems. Therefore, libtool
16231*** is disabling shared libraries support. We urge you to upgrade GNU
16232*** binutils to release 2.9.1 or newer. Another option is to modify
16233*** your PATH or compiler configuration so that the native linker is
16234*** used, and then restart.
16235
16236EOF
16237 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16238 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16239 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16240 else
16241 ld_shlibs_GCJ=no
16242 fi
16243 ;;
16244
vapier7f19c022007-02-17 14:46:31 +000016245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16246 case `$LD -v 2>&1` in
16247 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16248 ld_shlibs_GCJ=no
16249 cat <<_LT_EOF 1>&2
16250
16251*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16252*** reliably create shared libraries on SCO systems. Therefore, libtool
16253*** is disabling shared libraries support. We urge you to upgrade GNU
16254*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16255*** your PATH or compiler configuration so that the native linker is
16256*** used, and then restart.
16257
16258_LT_EOF
16259 ;;
16260 *)
16261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16262 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16263 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16264 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16265 else
16266 ld_shlibs_GCJ=no
16267 fi
16268 ;;
16269 esac
16270 ;;
16271
a.rottmann9bc8b932004-02-29 15:18:31 +000016272 sunos4*)
16273 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16274 wlarc=
16275 hardcode_direct_GCJ=yes
16276 hardcode_shlibpath_var_GCJ=no
16277 ;;
16278
a.rottmann9bc8b932004-02-29 15:18:31 +000016279 *)
16280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16281 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16282 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16283 else
16284 ld_shlibs_GCJ=no
16285 fi
16286 ;;
16287 esac
16288
vapier7f19c022007-02-17 14:46:31 +000016289 if test "$ld_shlibs_GCJ" = no; then
16290 runpath_var=
16291 hardcode_libdir_flag_spec_GCJ=
16292 export_dynamic_flag_spec_GCJ=
16293 whole_archive_flag_spec_GCJ=
a.rottmann9bc8b932004-02-29 15:18:31 +000016294 fi
16295 else
16296 # PORTME fill in a description of your system's linker (not GNU ld)
16297 case $host_os in
16298 aix3*)
16299 allow_undefined_flag_GCJ=unsupported
16300 always_export_symbols_GCJ=yes
16301 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'
16302 # Note: this linker hardcodes the directories in LIBPATH if there
16303 # are no directories specified by -L.
16304 hardcode_minus_L_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016305 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016306 # Neither direct hardcoding nor static linking is supported with a
16307 # broken collect2.
16308 hardcode_direct_GCJ=unsupported
16309 fi
16310 ;;
16311
16312 aix4* | aix5*)
16313 if test "$host_cpu" = ia64; then
16314 # On IA64, the linker does run time linking by default, so we don't
16315 # have to do anything special.
16316 aix_use_runtimelinking=no
16317 exp_sym_flag='-Bexport'
16318 no_entry_flag=""
16319 else
16320 # If we're using GNU nm, then we don't want the "-C" option.
16321 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16322 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16323 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'
16324 else
16325 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'
16326 fi
16327 aix_use_runtimelinking=no
16328
16329 # Test if we are trying to use run time linking or normal
16330 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16331 # need to do runtime linking.
16332 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16333 for ld_flag in $LDFLAGS; do
16334 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16335 aix_use_runtimelinking=yes
16336 break
16337 fi
16338 done
vapier7f19c022007-02-17 14:46:31 +000016339 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016340 esac
16341
16342 exp_sym_flag='-bexport'
16343 no_entry_flag='-bnoentry'
16344 fi
16345
16346 # When large executables or shared objects are built, AIX ld can
16347 # have problems creating the table of contents. If linking a library
16348 # or program results in "error TOC overflow" add -mminimal-toc to
16349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16351
16352 archive_cmds_GCJ=''
16353 hardcode_direct_GCJ=yes
16354 hardcode_libdir_separator_GCJ=':'
16355 link_all_deplibs_GCJ=yes
16356
16357 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016358 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016359 # We only want to do this on AIX 4.2 and lower, the check
16360 # below for broken collect2 doesn't work under 4.3+
16361 collect2name=`${CC} -print-prog-name=collect2`
16362 if test -f "$collect2name" && \
16363 strings "$collect2name" | grep resolve_lib_name >/dev/null
16364 then
16365 # We have reworked collect2
16366 hardcode_direct_GCJ=yes
16367 else
16368 # We have old collect2
16369 hardcode_direct_GCJ=unsupported
16370 # It fails to find uninstalled libraries when the uninstalled
16371 # path is not listed in the libpath. Setting hardcode_minus_L
16372 # to unsupported forces relinking
16373 hardcode_minus_L_GCJ=yes
16374 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16375 hardcode_libdir_separator_GCJ=
16376 fi
vapier7f19c022007-02-17 14:46:31 +000016377 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016378 esac
16379 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000016380 if test "$aix_use_runtimelinking" = yes; then
16381 shared_flag="$shared_flag "'${wl}-G'
16382 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016383 else
16384 # not using gcc
16385 if test "$host_cpu" = ia64; then
16386 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16387 # chokes on -Wl,-G. The following line is correct:
16388 shared_flag='-G'
16389 else
vapier7f19c022007-02-17 14:46:31 +000016390 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016391 shared_flag='${wl}-G'
16392 else
16393 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +000016394 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016395 fi
16396 fi
16397
16398 # It seems that -bexpall does not export symbols beginning with
16399 # underscore (_), so it is better to generate a list of symbols to export.
16400 always_export_symbols_GCJ=yes
16401 if test "$aix_use_runtimelinking" = yes; then
16402 # Warning - without using the other runtime loading flags (-brtl),
16403 # -berok will link without error, but may produce a broken library.
16404 allow_undefined_flag_GCJ='-berok'
16405 # Determine the default libpath from the value encoded in an empty executable.
16406 cat >conftest.$ac_ext <<_ACEOF
16407/* confdefs.h. */
16408_ACEOF
16409cat confdefs.h >>conftest.$ac_ext
16410cat >>conftest.$ac_ext <<_ACEOF
16411/* end confdefs.h. */
16412
16413int
16414main ()
16415{
16416
16417 ;
16418 return 0;
16419}
16420_ACEOF
16421rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000016422if { (ac_try="$ac_link"
16423case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426esac
16427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000016429 ac_status=$?
16430 grep -v '^ *+' conftest.er1 >conftest.err
16431 rm -f conftest.er1
16432 cat conftest.err >&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000016434 (exit $ac_status); } && {
16435 test -z "$ac_c_werror_flag" ||
16436 test ! -s conftest.err
16437 } && test -s conftest$ac_exeext &&
16438 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016439
16440aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16441}'`
16442# Check for a 64-bit object if we didn't find anything.
16443if 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; }
16444}'`; fi
16445else
16446 echo "$as_me: failed program was:" >&5
16447sed 's/^/| /' conftest.$ac_ext >&5
16448
mlcreech94984912008-03-04 19:03:08 +000016449
a.rottmann9bc8b932004-02-29 15:18:31 +000016450fi
mlcreech94984912008-03-04 19:03:08 +000016451
16452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000016453 conftest$ac_exeext conftest.$ac_ext
16454if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16455
16456 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +000016457 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000016458 else
16459 if test "$host_cpu" = ia64; then
16460 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16461 allow_undefined_flag_GCJ="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000016462 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000016463 else
16464 # Determine the default libpath from the value encoded in an empty executable.
16465 cat >conftest.$ac_ext <<_ACEOF
16466/* confdefs.h. */
16467_ACEOF
16468cat confdefs.h >>conftest.$ac_ext
16469cat >>conftest.$ac_ext <<_ACEOF
16470/* end confdefs.h. */
16471
16472int
16473main ()
16474{
16475
16476 ;
16477 return 0;
16478}
16479_ACEOF
16480rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000016481if { (ac_try="$ac_link"
16482case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16485esac
16486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000016488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000016493 (exit $ac_status); } && {
16494 test -z "$ac_c_werror_flag" ||
16495 test ! -s conftest.err
16496 } && test -s conftest$ac_exeext &&
16497 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016498
16499aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16500}'`
16501# Check for a 64-bit object if we didn't find anything.
16502if 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; }
16503}'`; fi
16504else
16505 echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
mlcreech94984912008-03-04 19:03:08 +000016508
a.rottmann9bc8b932004-02-29 15:18:31 +000016509fi
mlcreech94984912008-03-04 19:03:08 +000016510
16511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000016512 conftest$ac_exeext conftest.$ac_ext
16513if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16514
16515 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16516 # Warning - without using the other run time loading flags,
16517 # -berok will link without error, but may produce a broken library.
16518 no_undefined_flag_GCJ=' ${wl}-bernotok'
16519 allow_undefined_flag_GCJ=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000016520 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000016521 whole_archive_flag_spec_GCJ='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000016522 archive_cmds_need_lc_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016523 # This is similar to how AIX traditionally builds its shared libraries.
16524 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000016525 fi
16526 fi
16527 ;;
16528
16529 amigaos*)
16530 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)'
16531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532 hardcode_minus_L_GCJ=yes
16533 # see comment about different semantics on the GNU ld section
16534 ld_shlibs_GCJ=no
16535 ;;
16536
vapier7f19c022007-02-17 14:46:31 +000016537 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016538 export_dynamic_flag_spec_GCJ=-rdynamic
16539 ;;
16540
16541 cygwin* | mingw* | pw32*)
16542 # When not using gcc, we currently assume that we are using
16543 # Microsoft Visual C++.
16544 # hardcode_libdir_flag_spec is actually meaningless, as there is
16545 # no search path for DLLs.
16546 hardcode_libdir_flag_spec_GCJ=' '
16547 allow_undefined_flag_GCJ=unsupported
16548 # Tell ltmain to make .lib files, not .a files.
16549 libext=lib
16550 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +000016551 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000016552 # FIXME: Setting linknames here is a bad hack.
16553 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16554 # The linker will automatically build a .lib file if we build a DLL.
16555 old_archive_From_new_cmds_GCJ='true'
16556 # FIXME: Should let the user specify the lib program.
16557 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
vapier7f19c022007-02-17 14:46:31 +000016558 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
a.rottmann9bc8b932004-02-29 15:18:31 +000016559 enable_shared_with_static_runtimes_GCJ=yes
16560 ;;
16561
16562 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +000016563 case $host_os in
16564 rhapsody* | darwin1.[012])
16565 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16566 ;;
16567 *) # Darwin 1.3 on
16568 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16569 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16570 else
16571 case ${MACOSX_DEPLOYMENT_TARGET} in
16572 10.[012])
16573 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16574 ;;
16575 10.*)
16576 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16577 ;;
16578 esac
16579 fi
16580 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016581 esac
vapier7f19c022007-02-17 14:46:31 +000016582 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016583 hardcode_direct_GCJ=no
16584 hardcode_automatic_GCJ=yes
16585 hardcode_shlibpath_var_GCJ=unsupported
vapier7f19c022007-02-17 14:46:31 +000016586 whole_archive_flag_spec_GCJ=''
a.rottmann9bc8b932004-02-29 15:18:31 +000016587 link_all_deplibs_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016588 if test "$GCC" = yes ; then
16589 output_verbose_link_cmd='echo'
16590 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16591 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16592 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16593 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}'
16594 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}'
a.rottmann9bc8b932004-02-29 15:18:31 +000016595 else
vapier7f19c022007-02-17 14:46:31 +000016596 case $cc_basename in
16597 xlc*)
16598 output_verbose_link_cmd='echo'
16599 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16600 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16601 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16602 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}'
16603 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}'
16604 ;;
16605 *)
16606 ld_shlibs_GCJ=no
16607 ;;
16608 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000016609 fi
16610 ;;
16611
16612 dgux*)
16613 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16614 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16615 hardcode_shlibpath_var_GCJ=no
16616 ;;
16617
16618 freebsd1*)
16619 ld_shlibs_GCJ=no
16620 ;;
16621
16622 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16623 # support. Future versions do this automatically, but an explicit c++rt0.o
16624 # does not break anything, and helps significantly (at the cost of a little
16625 # extra space).
16626 freebsd2.2*)
16627 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16628 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16629 hardcode_direct_GCJ=yes
16630 hardcode_shlibpath_var_GCJ=no
16631 ;;
16632
16633 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16634 freebsd2*)
16635 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16636 hardcode_direct_GCJ=yes
16637 hardcode_minus_L_GCJ=yes
16638 hardcode_shlibpath_var_GCJ=no
16639 ;;
16640
16641 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +000016642 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016643 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16644 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16645 hardcode_direct_GCJ=yes
16646 hardcode_shlibpath_var_GCJ=no
16647 ;;
16648
16649 hpux9*)
16650 if test "$GCC" = yes; then
16651 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'
16652 else
16653 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'
16654 fi
16655 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16656 hardcode_libdir_separator_GCJ=:
16657 hardcode_direct_GCJ=yes
16658
16659 # hardcode_minus_L: Not really in the search PATH,
16660 # but as the default location of the library.
16661 hardcode_minus_L_GCJ=yes
16662 export_dynamic_flag_spec_GCJ='${wl}-E'
16663 ;;
16664
vapier7f19c022007-02-17 14:46:31 +000016665 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016666 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000016667 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16668 else
16669 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16670 fi
16671 if test "$with_gnu_ld" = no; then
16672 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16673 hardcode_libdir_separator_GCJ=:
16674
16675 hardcode_direct_GCJ=yes
16676 export_dynamic_flag_spec_GCJ='${wl}-E'
16677
16678 # hardcode_minus_L: Not really in the search PATH,
16679 # but as the default location of the library.
16680 hardcode_minus_L_GCJ=yes
16681 fi
16682 ;;
16683
16684 hpux11*)
16685 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16686 case $host_cpu in
16687 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016688 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16689 ;;
vapier7f19c022007-02-17 14:46:31 +000016690 ia64*)
16691 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16692 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016693 *)
16694 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16695 ;;
16696 esac
16697 else
vapier7f19c022007-02-17 14:46:31 +000016698 case $host_cpu in
16699 hppa*64*)
16700 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16701 ;;
16702 ia64*)
16703 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016704 ;;
16705 *)
vapier7f19c022007-02-17 14:46:31 +000016706 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016707 ;;
16708 esac
16709 fi
16710 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000016711 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16712 hardcode_libdir_separator_GCJ=:
a.rottmann9bc8b932004-02-29 15:18:31 +000016713
vapier7f19c022007-02-17 14:46:31 +000016714 case $host_cpu in
16715 hppa*64*|ia64*)
16716 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16717 hardcode_direct_GCJ=no
16718 hardcode_shlibpath_var_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016719 ;;
16720 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000016721 hardcode_direct_GCJ=yes
16722 export_dynamic_flag_spec_GCJ='${wl}-E'
16723
16724 # hardcode_minus_L: Not really in the search PATH,
16725 # but as the default location of the library.
16726 hardcode_minus_L_GCJ=yes
16727 ;;
16728 esac
16729 fi
16730 ;;
16731
16732 irix5* | irix6* | nonstopux*)
16733 if test "$GCC" = yes; then
16734 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'
16735 else
16736 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'
16737 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16738 fi
16739 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16740 hardcode_libdir_separator_GCJ=:
16741 link_all_deplibs_GCJ=yes
16742 ;;
16743
vapier7f19c022007-02-17 14:46:31 +000016744 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16746 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16747 else
16748 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16749 fi
16750 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16751 hardcode_direct_GCJ=yes
16752 hardcode_shlibpath_var_GCJ=no
16753 ;;
16754
16755 newsos6)
16756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16757 hardcode_direct_GCJ=yes
16758 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16759 hardcode_libdir_separator_GCJ=:
16760 hardcode_shlibpath_var_GCJ=no
16761 ;;
16762
16763 openbsd*)
16764 hardcode_direct_GCJ=yes
16765 hardcode_shlibpath_var_GCJ=no
16766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16767 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +000016768 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000016769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16770 export_dynamic_flag_spec_GCJ='${wl}-E'
16771 else
16772 case $host_os in
16773 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16774 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16775 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16776 ;;
16777 *)
16778 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16779 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16780 ;;
16781 esac
16782 fi
16783 ;;
16784
16785 os2*)
16786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16787 hardcode_minus_L_GCJ=yes
16788 allow_undefined_flag_GCJ=unsupported
16789 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'
16790 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16791 ;;
16792
16793 osf3*)
16794 if test "$GCC" = yes; then
16795 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16796 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'
16797 else
16798 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16799 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'
16800 fi
16801 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16802 hardcode_libdir_separator_GCJ=:
16803 ;;
16804
16805 osf4* | osf5*) # as osf3* with the addition of -msym flag
16806 if test "$GCC" = yes; then
16807 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16808 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'
16809 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16810 else
16811 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16812 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'
16813 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~
vapier7f19c022007-02-17 14:46:31 +000016814 $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'
a.rottmann9bc8b932004-02-29 15:18:31 +000016815
16816 # Both c and cxx compiler support -rpath directly
16817 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16818 fi
16819 hardcode_libdir_separator_GCJ=:
16820 ;;
16821
a.rottmann9bc8b932004-02-29 15:18:31 +000016822 solaris*)
16823 no_undefined_flag_GCJ=' -z text'
16824 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016825 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +000016826 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16827 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16828 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16829 else
vapier7f19c022007-02-17 14:46:31 +000016830 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +000016831 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16834 fi
16835 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16836 hardcode_shlibpath_var_GCJ=no
16837 case $host_os in
16838 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +000016839 *)
16840 # The compiler driver will combine linker options so we
16841 # cannot just pass the convience library names through
16842 # without $wl, iff we do not link with $LD.
16843 # Luckily, gcc supports the same syntax we need for Sun Studio.
16844 # Supported since Solaris 2.6 (maybe 2.5.1?)
16845 case $wlarc in
16846 '')
16847 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16848 *)
16849 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' ;;
16850 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016851 esac
16852 link_all_deplibs_GCJ=yes
16853 ;;
16854
16855 sunos4*)
16856 if test "x$host_vendor" = xsequent; then
16857 # Use $CC to link under sequent, because it throws in some extra .o
16858 # files that make .init and .fini sections work.
16859 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16860 else
16861 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16862 fi
16863 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16864 hardcode_direct_GCJ=yes
16865 hardcode_minus_L_GCJ=yes
16866 hardcode_shlibpath_var_GCJ=no
16867 ;;
16868
16869 sysv4)
16870 case $host_vendor in
16871 sni)
16872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16873 hardcode_direct_GCJ=yes # is this really true???
16874 ;;
16875 siemens)
16876 ## LD is ld it makes a PLAMLIB
16877 ## CC just makes a GrossModule.
16878 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16879 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16880 hardcode_direct_GCJ=no
16881 ;;
16882 motorola)
16883 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16885 ;;
16886 esac
16887 runpath_var='LD_RUN_PATH'
16888 hardcode_shlibpath_var_GCJ=no
16889 ;;
16890
16891 sysv4.3*)
16892 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16893 hardcode_shlibpath_var_GCJ=no
16894 export_dynamic_flag_spec_GCJ='-Bexport'
16895 ;;
16896
16897 sysv4*MP*)
16898 if test -d /usr/nec; then
16899 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900 hardcode_shlibpath_var_GCJ=no
16901 runpath_var=LD_RUN_PATH
16902 hardcode_runpath_var=yes
16903 ld_shlibs_GCJ=yes
16904 fi
16905 ;;
16906
vapier7f19c022007-02-17 14:46:31 +000016907 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16908 no_undefined_flag_GCJ='${wl}-z,text'
16909 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016910 hardcode_shlibpath_var_GCJ=no
vapier7f19c022007-02-17 14:46:31 +000016911 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +000016912
a.rottmann9bc8b932004-02-29 15:18:31 +000016913 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016914 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16915 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016916 else
vapier7f19c022007-02-17 14:46:31 +000016917 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16918 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016919 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016920 ;;
16921
vapier7f19c022007-02-17 14:46:31 +000016922 sysv5* | sco3.2v5* | sco5v6*)
16923 # Note: We can NOT use -z defs as we might desire, because we do not
16924 # link with -lc, and that would cause any symbols used from libc to
16925 # always be unresolved, which means just about no library would
16926 # ever link correctly. If we're not using GNU ld we use -z text
16927 # though, which does catch some bad symbols but isn't as heavy-handed
16928 # as -z defs.
16929 no_undefined_flag_GCJ='${wl}-z,text'
16930 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16931 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016932 hardcode_shlibpath_var_GCJ=no
vapier7f19c022007-02-17 14:46:31 +000016933 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16934 hardcode_libdir_separator_GCJ=':'
16935 link_all_deplibs_GCJ=yes
16936 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +000016937 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +000016938
16939 if test "$GCC" = yes; then
16940 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16941 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16942 else
16943 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16945 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016946 ;;
16947
16948 uts4*)
16949 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16951 hardcode_shlibpath_var_GCJ=no
16952 ;;
16953
16954 *)
16955 ld_shlibs_GCJ=no
16956 ;;
16957 esac
16958 fi
16959
mlcreech94984912008-03-04 19:03:08 +000016960{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16961echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000016962test "$ld_shlibs_GCJ" = no && can_build_shared=no
16963
a.rottmann9bc8b932004-02-29 15:18:31 +000016964#
16965# Do we need to explicitly link libc?
16966#
16967case "x$archive_cmds_need_lc_GCJ" in
16968x|xyes)
16969 # Assume -lc should be added
16970 archive_cmds_need_lc_GCJ=yes
16971
16972 if test "$enable_shared" = yes && test "$GCC" = yes; then
16973 case $archive_cmds_GCJ in
16974 *'~'*)
16975 # FIXME: we may have to deal with multi-command sequences.
16976 ;;
16977 '$CC '*)
16978 # Test whether the compiler implicitly links with -lc since on some
16979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16980 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000016981 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16982echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000016983 $rm conftest*
16984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16985
16986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16987 (eval $ac_compile) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } 2>conftest.err; then
16991 soname=conftest
16992 lib=conftest
16993 libobjs=conftest.$ac_objext
16994 deplibs=
16995 wl=$lt_prog_compiler_wl_GCJ
vapier7f19c022007-02-17 14:46:31 +000016996 pic_flag=$lt_prog_compiler_pic_GCJ
a.rottmann9bc8b932004-02-29 15:18:31 +000016997 compiler_flags=-v
16998 linker_flags=-v
16999 verstring=
17000 output_objdir=.
17001 libname=conftest
17002 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17003 allow_undefined_flag_GCJ=
17004 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17005 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }
17009 then
17010 archive_cmds_need_lc_GCJ=no
17011 else
17012 archive_cmds_need_lc_GCJ=yes
17013 fi
17014 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17015 else
17016 cat conftest.err 1>&5
17017 fi
17018 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000017019 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17020echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017021 ;;
17022 esac
17023 fi
17024 ;;
17025esac
17026
mlcreech94984912008-03-04 19:03:08 +000017027{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17028echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017029library_names_spec=
17030libname_spec='lib$name'
17031soname_spec=
vapier7f19c022007-02-17 14:46:31 +000017032shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000017033postinstall_cmds=
17034postuninstall_cmds=
17035finish_cmds=
17036finish_eval=
17037shlibpath_var=
17038shlibpath_overrides_runpath=unknown
17039version_type=none
17040dynamic_linker="$host_os ld.so"
17041sys_lib_dlsearch_path_spec="/lib /usr/lib"
17042if test "$GCC" = yes; then
17043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17044 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17045 # if the path contains ";" then we assume it to be the separator
17046 # otherwise default to the standard path separator (i.e. ":") - it is
17047 # assumed that no part of a normal pathname contains ";" but that should
17048 # okay in the real world where ";" in dirpaths is itself problematic.
17049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17050 else
17051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17052 fi
17053else
17054 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17055fi
17056need_lib_prefix=unknown
17057hardcode_into_libs=no
17058
17059# when you set need_version to no, make sure it does not cause -set_version
17060# flags to be left without arguments
17061need_version=unknown
17062
17063case $host_os in
17064aix3*)
17065 version_type=linux
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17067 shlibpath_var=LIBPATH
17068
17069 # AIX 3 has no versioning support, so we append a major version to the name.
17070 soname_spec='${libname}${release}${shared_ext}$major'
17071 ;;
17072
17073aix4* | aix5*)
17074 version_type=linux
17075 need_lib_prefix=no
17076 need_version=no
17077 hardcode_into_libs=yes
17078 if test "$host_cpu" = ia64; then
17079 # AIX 5 supports IA64
17080 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17081 shlibpath_var=LD_LIBRARY_PATH
17082 else
17083 # With GCC up to 2.95.x, collect2 would create an import file
17084 # for dependence libraries. The import file would start with
17085 # the line `#! .'. This would cause the generated library to
17086 # depend on `.', always an invalid library. This was fixed in
17087 # development snapshots of GCC prior to 3.0.
17088 case $host_os in
17089 aix4 | aix4.[01] | aix4.[01].*)
17090 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17091 echo ' yes '
17092 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17093 :
17094 else
17095 can_build_shared=no
17096 fi
17097 ;;
17098 esac
17099 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17100 # soname into executable. Probably we can add versioning support to
17101 # collect2, so additional links can be useful in future.
17102 if test "$aix_use_runtimelinking" = yes; then
17103 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17104 # instead of lib<name>.a to let people know that these are not
17105 # typical AIX shared libraries.
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 else
17108 # We preserve .a as extension for shared libraries through AIX4.2
17109 # and later when we are not doing run time linking.
17110 library_names_spec='${libname}${release}.a $libname.a'
17111 soname_spec='${libname}${release}${shared_ext}$major'
17112 fi
17113 shlibpath_var=LIBPATH
17114 fi
17115 ;;
17116
17117amigaos*)
17118 library_names_spec='$libname.ixlibrary $libname.a'
17119 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17120 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'
17121 ;;
17122
17123beos*)
17124 library_names_spec='${libname}${shared_ext}'
17125 dynamic_linker="$host_os ld.so"
17126 shlibpath_var=LIBRARY_PATH
17127 ;;
17128
vapier7f19c022007-02-17 14:46:31 +000017129bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017130 version_type=linux
17131 need_version=no
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17135 shlibpath_var=LD_LIBRARY_PATH
17136 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17137 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17138 # the default ld.so.conf also contains /usr/contrib/lib and
17139 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17140 # libtool to hard-code these into programs
17141 ;;
17142
17143cygwin* | mingw* | pw32*)
17144 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000017145 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000017146 need_version=no
17147 need_lib_prefix=no
17148
17149 case $GCC,$host_os in
17150 yes,cygwin* | yes,mingw* | yes,pw32*)
17151 library_names_spec='$libname.dll.a'
17152 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17153 postinstall_cmds='base_file=`basename \${file}`~
17154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17155 dldir=$destdir/`dirname \$dlpath`~
17156 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000017157 $install_prog $dir/$dlname \$dldir/$dlname~
17158 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000017159 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17160 dlpath=$dir/\$dldll~
17161 $rm \$dlpath'
17162 shlibpath_overrides_runpath=yes
17163
17164 case $host_os in
17165 cygwin*)
17166 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17167 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17168 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17169 ;;
17170 mingw*)
17171 # MinGW DLLs use traditional 'lib' prefix
17172 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17173 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17174 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17175 # It is most probably a Windows format PATH printed by
17176 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17177 # path with ; separators, and with drive letters. We can handle the
17178 # drive letters (cygwin fileutils understands them), so leave them,
17179 # especially as we might pass files found there to a mingw objdump,
17180 # which wouldn't understand a cygwinified path. Ahh.
17181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17182 else
17183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17184 fi
17185 ;;
17186 pw32*)
17187 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000017188 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +000017189 ;;
17190 esac
17191 ;;
17192
vapier7f19c022007-02-17 14:46:31 +000017193 linux*)
17194 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17196 supports_anon_versioning=no
17197 case `$LD -v 2>/dev/null` in
17198 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17201 *\ 2.11.*) ;; # other 2.11 versions
17202 *) supports_anon_versioning=yes ;;
17203 esac
17204 if test $supports_anon_versioning = yes; then
17205 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17206cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17207$echo "local: *; };" >> $output_objdir/$libname.ver~
17208 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17209 else
17210 $archive_expsym_cmds="$archive_cmds"
17211 fi
17212 else
17213 ld_shlibs=no
17214 fi
17215 ;;
17216
a.rottmann9bc8b932004-02-29 15:18:31 +000017217 *)
17218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17219 ;;
17220 esac
17221 dynamic_linker='Win32 ld.exe'
17222 # FIXME: first we should search . and the directory the executable is in
17223 shlibpath_var=PATH
17224 ;;
17225
17226darwin* | rhapsody*)
17227 dynamic_linker="$host_os dyld"
17228 version_type=darwin
17229 need_lib_prefix=no
17230 need_version=no
17231 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17232 soname_spec='${libname}${release}${major}$shared_ext'
17233 shlibpath_overrides_runpath=yes
17234 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000017235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000017236 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17237 if test "$GCC" = yes; then
17238 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"`
17239 else
17240 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17241 fi
17242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17243 ;;
17244
17245dgux*)
17246 version_type=linux
17247 need_lib_prefix=no
17248 need_version=no
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17250 soname_spec='${libname}${release}${shared_ext}$major'
17251 shlibpath_var=LD_LIBRARY_PATH
17252 ;;
17253
17254freebsd1*)
17255 dynamic_linker=no
17256 ;;
17257
17258kfreebsd*-gnu)
17259 version_type=linux
17260 need_lib_prefix=no
17261 need_version=no
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 shlibpath_overrides_runpath=no
17266 hardcode_into_libs=yes
17267 dynamic_linker='GNU ld.so'
17268 ;;
17269
vapier7f19c022007-02-17 14:46:31 +000017270freebsd* | dragonfly*)
17271 # DragonFly does not have aout. When/if they implement a new
17272 # versioning mechanism, adjust this.
17273 if test -x /usr/bin/objformat; then
17274 objformat=`/usr/bin/objformat`
17275 else
17276 case $host_os in
17277 freebsd[123]*) objformat=aout ;;
17278 *) objformat=elf ;;
17279 esac
17280 fi
17281 # Handle Gentoo/FreeBSD as it was Linux
17282 case $host_vendor in
17283 gentoo)
17284 version_type=linux ;;
17285 *)
17286 version_type=freebsd-$objformat ;;
17287 esac
17288
a.rottmann9bc8b932004-02-29 15:18:31 +000017289 case $version_type in
17290 freebsd-elf*)
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17292 need_version=no
17293 need_lib_prefix=no
17294 ;;
17295 freebsd-*)
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17297 need_version=yes
17298 ;;
vapier7f19c022007-02-17 14:46:31 +000017299 linux)
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 need_lib_prefix=no
17303 need_version=no
17304 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000017305 esac
17306 shlibpath_var=LD_LIBRARY_PATH
17307 case $host_os in
17308 freebsd2*)
17309 shlibpath_overrides_runpath=yes
17310 ;;
vapier7f19c022007-02-17 14:46:31 +000017311 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017312 shlibpath_overrides_runpath=yes
17313 hardcode_into_libs=yes
17314 ;;
vapier7f19c022007-02-17 14:46:31 +000017315 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17316 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000017317 shlibpath_overrides_runpath=no
17318 hardcode_into_libs=yes
17319 ;;
vapier7f19c022007-02-17 14:46:31 +000017320 freebsd*) # from 4.6 on
17321 shlibpath_overrides_runpath=yes
17322 hardcode_into_libs=yes
17323 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000017324 esac
17325 ;;
17326
17327gnu*)
17328 version_type=linux
17329 need_lib_prefix=no
17330 need_version=no
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 shlibpath_var=LD_LIBRARY_PATH
17334 hardcode_into_libs=yes
17335 ;;
17336
17337hpux9* | hpux10* | hpux11*)
17338 # Give a soname corresponding to the major version so that dld.sl refuses to
17339 # link against other versions.
17340 version_type=sunos
17341 need_lib_prefix=no
17342 need_version=no
vapier7f19c022007-02-17 14:46:31 +000017343 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000017344 ia64*)
vapier7f19c022007-02-17 14:46:31 +000017345 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000017346 hardcode_into_libs=yes
17347 dynamic_linker="$host_os dld.so"
17348 shlibpath_var=LD_LIBRARY_PATH
17349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 if test "X$HPUX_IA64_MODE" = X32; then
17353 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17354 else
17355 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17356 fi
17357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17358 ;;
17359 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000017360 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000017361 hardcode_into_libs=yes
17362 dynamic_linker="$host_os dld.sl"
17363 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17369 ;;
17370 *)
vapier7f19c022007-02-17 14:46:31 +000017371 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000017372 dynamic_linker="$host_os dld.sl"
17373 shlibpath_var=SHLIB_PATH
17374 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 ;;
17378 esac
17379 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17380 postinstall_cmds='chmod 555 $lib'
17381 ;;
17382
vapier7f19c022007-02-17 14:46:31 +000017383interix3*)
17384 version_type=linux
17385 need_lib_prefix=no
17386 need_version=no
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 shlibpath_overrides_runpath=no
17392 hardcode_into_libs=yes
17393 ;;
17394
a.rottmann9bc8b932004-02-29 15:18:31 +000017395irix5* | irix6* | nonstopux*)
17396 case $host_os in
17397 nonstopux*) version_type=nonstopux ;;
17398 *)
17399 if test "$lt_cv_prog_gnu_ld" = yes; then
17400 version_type=linux
17401 else
17402 version_type=irix
17403 fi ;;
17404 esac
17405 need_lib_prefix=no
17406 need_version=no
17407 soname_spec='${libname}${release}${shared_ext}$major'
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17409 case $host_os in
17410 irix5* | nonstopux*)
17411 libsuff= shlibsuff=
17412 ;;
17413 *)
17414 case $LD in # libtool.m4 will add one of these switches to LD
17415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17416 libsuff= shlibsuff= libmagic=32-bit;;
17417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17418 libsuff=32 shlibsuff=N32 libmagic=N32;;
17419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17421 *) libsuff= shlibsuff= libmagic=never-match;;
17422 esac
17423 ;;
17424 esac
17425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17426 shlibpath_overrides_runpath=no
17427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17429 hardcode_into_libs=yes
17430 ;;
17431
17432# No shared lib support for Linux oldld, aout, or coff.
17433linux*oldld* | linux*aout* | linux*coff*)
17434 dynamic_linker=no
17435 ;;
17436
17437# This must be Linux ELF.
17438linux*)
17439 version_type=linux
17440 need_lib_prefix=no
17441 need_version=no
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 shlibpath_overrides_runpath=no
17447 # This implies no fast_install, which is unacceptable.
17448 # Some rework will be needed to allow for fast_install
17449 # before this can be enabled.
17450 hardcode_into_libs=yes
17451
17452 # Append ld.so.conf contents to the search path
17453 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000017454 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' ' '`
17455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000017456 fi
17457
17458 # We used to test for /lib/ld.so.1 and disable shared libraries on
17459 # powerpc, because MkLinux only supported shared libraries with the
17460 # GNU dynamic linker. Since this was broken with cross compilers,
17461 # most powerpc-linux boxes support dynamic linking these days and
17462 # people can always --disable-shared, the test was removed, and we
17463 # assume the GNU/Linux dynamic linker is in use.
17464 dynamic_linker='GNU/Linux ld.so'
17465 ;;
17466
17467knetbsd*-gnu)
17468 version_type=linux
17469 need_lib_prefix=no
17470 need_version=no
17471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17472 soname_spec='${libname}${release}${shared_ext}$major'
17473 shlibpath_var=LD_LIBRARY_PATH
17474 shlibpath_overrides_runpath=no
17475 hardcode_into_libs=yes
17476 dynamic_linker='GNU ld.so'
17477 ;;
17478
17479netbsd*)
17480 version_type=sunos
17481 need_lib_prefix=no
17482 need_version=no
17483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17486 dynamic_linker='NetBSD (a.out) ld.so'
17487 else
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17489 soname_spec='${libname}${release}${shared_ext}$major'
17490 dynamic_linker='NetBSD ld.elf_so'
17491 fi
17492 shlibpath_var=LD_LIBRARY_PATH
17493 shlibpath_overrides_runpath=yes
17494 hardcode_into_libs=yes
17495 ;;
17496
17497newsos6)
17498 version_type=linux
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath=yes
17502 ;;
17503
17504nto-qnx*)
17505 version_type=linux
17506 need_lib_prefix=no
17507 need_version=no
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17509 soname_spec='${libname}${release}${shared_ext}$major'
17510 shlibpath_var=LD_LIBRARY_PATH
17511 shlibpath_overrides_runpath=yes
17512 ;;
17513
17514openbsd*)
17515 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000017516 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000017517 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000017518 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17519 case $host_os in
17520 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17521 *) need_version=no ;;
17522 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000017523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17525 shlibpath_var=LD_LIBRARY_PATH
17526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17527 case $host_os in
17528 openbsd2.[89] | openbsd2.[89].*)
17529 shlibpath_overrides_runpath=no
17530 ;;
17531 *)
17532 shlibpath_overrides_runpath=yes
17533 ;;
17534 esac
17535 else
17536 shlibpath_overrides_runpath=yes
17537 fi
17538 ;;
17539
17540os2*)
17541 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000017542 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000017543 need_lib_prefix=no
17544 library_names_spec='$libname${shared_ext} $libname.a'
17545 dynamic_linker='OS/2 ld.exe'
17546 shlibpath_var=LIBPATH
17547 ;;
17548
17549osf3* | osf4* | osf5*)
17550 version_type=osf
17551 need_lib_prefix=no
17552 need_version=no
17553 soname_spec='${libname}${release}${shared_ext}$major'
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17555 shlibpath_var=LD_LIBRARY_PATH
17556 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17557 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17558 ;;
17559
a.rottmann9bc8b932004-02-29 15:18:31 +000017560solaris*)
17561 version_type=linux
17562 need_lib_prefix=no
17563 need_version=no
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath=yes
17568 hardcode_into_libs=yes
17569 # ldd complains unless libraries are executable
17570 postinstall_cmds='chmod +x $lib'
17571 ;;
17572
17573sunos4*)
17574 version_type=sunos
17575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17576 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17577 shlibpath_var=LD_LIBRARY_PATH
17578 shlibpath_overrides_runpath=yes
17579 if test "$with_gnu_ld" = yes; then
17580 need_lib_prefix=no
17581 fi
17582 need_version=yes
17583 ;;
17584
vapier7f19c022007-02-17 14:46:31 +000017585sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017586 version_type=linux
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588 soname_spec='${libname}${release}${shared_ext}$major'
17589 shlibpath_var=LD_LIBRARY_PATH
17590 case $host_vendor in
17591 sni)
17592 shlibpath_overrides_runpath=no
17593 need_lib_prefix=no
17594 export_dynamic_flag_spec='${wl}-Blargedynsym'
17595 runpath_var=LD_RUN_PATH
17596 ;;
17597 siemens)
17598 need_lib_prefix=no
17599 ;;
17600 motorola)
17601 need_lib_prefix=no
17602 need_version=no
17603 shlibpath_overrides_runpath=no
17604 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17605 ;;
17606 esac
17607 ;;
17608
17609sysv4*MP*)
17610 if test -d /usr/nec ;then
17611 version_type=linux
17612 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17613 soname_spec='$libname${shared_ext}.$major'
17614 shlibpath_var=LD_LIBRARY_PATH
17615 fi
17616 ;;
17617
vapier7f19c022007-02-17 14:46:31 +000017618sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17619 version_type=freebsd-elf
17620 need_lib_prefix=no
17621 need_version=no
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 shlibpath_var=LD_LIBRARY_PATH
17625 hardcode_into_libs=yes
17626 if test "$with_gnu_ld" = yes; then
17627 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17628 shlibpath_overrides_runpath=no
17629 else
17630 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17631 shlibpath_overrides_runpath=yes
17632 case $host_os in
17633 sco3.2v5*)
17634 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17635 ;;
17636 esac
17637 fi
17638 sys_lib_dlsearch_path_spec='/usr/lib'
17639 ;;
17640
a.rottmann9bc8b932004-02-29 15:18:31 +000017641uts4*)
17642 version_type=linux
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644 soname_spec='${libname}${release}${shared_ext}$major'
17645 shlibpath_var=LD_LIBRARY_PATH
17646 ;;
17647
17648*)
17649 dynamic_linker=no
17650 ;;
17651esac
mlcreech94984912008-03-04 19:03:08 +000017652{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17653echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017654test "$dynamic_linker" = no && can_build_shared=no
17655
vapier7f19c022007-02-17 14:46:31 +000017656variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17657if test "$GCC" = yes; then
17658 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17659fi
17660
mlcreech94984912008-03-04 19:03:08 +000017661{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17662echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017663hardcode_action_GCJ=
17664if test -n "$hardcode_libdir_flag_spec_GCJ" || \
vapier7f19c022007-02-17 14:46:31 +000017665 test -n "$runpath_var_GCJ" || \
17666 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000017667
17668 # We can hardcode non-existant directories.
17669 if test "$hardcode_direct_GCJ" != no &&
17670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17671 # have to relink, otherwise we might link with an installed library
17672 # when we should be linking with a yet-to-be-installed one
17673 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17674 test "$hardcode_minus_L_GCJ" != no; then
17675 # Linking always hardcodes the temporary library directory.
17676 hardcode_action_GCJ=relink
17677 else
17678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17679 hardcode_action_GCJ=immediate
17680 fi
17681else
17682 # We cannot hardcode anything, or else we can only hardcode existing
17683 # directories.
17684 hardcode_action_GCJ=unsupported
17685fi
mlcreech94984912008-03-04 19:03:08 +000017686{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17687echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017688
17689if test "$hardcode_action_GCJ" = relink; then
17690 # Fast installation is not supported
17691 enable_fast_install=no
17692elif test "$shlibpath_overrides_runpath" = yes ||
17693 test "$enable_shared" = no; then
17694 # Fast installation is not necessary
17695 enable_fast_install=needless
17696fi
17697
a.rottmann9bc8b932004-02-29 15:18:31 +000017698
17699# The else clause should only fire when bootstrapping the
17700# libtool distribution, otherwise you forgot to ship ltmain.sh
17701# with your package, and you will get complaints that there are
17702# no rules to generate ltmain.sh.
17703if test -f "$ltmain"; then
17704 # See if we are running on zsh, and set the options which allow our commands through
17705 # without removal of \ escapes.
17706 if test -n "${ZSH_VERSION+set}" ; then
17707 setopt NO_GLOB_SUBST
17708 fi
17709 # Now quote all the things that may contain metacharacters while being
17710 # careful not to overquote the AC_SUBSTed values. We take copies of the
17711 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000017712 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000017713 SED SHELL STRIP \
17714 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17715 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17716 deplibs_check_method reload_flag reload_cmds need_locks \
17717 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17718 lt_cv_sys_global_symbol_to_c_name_address \
17719 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17720 old_postinstall_cmds old_postuninstall_cmds \
17721 compiler_GCJ \
17722 CC_GCJ \
17723 LD_GCJ \
17724 lt_prog_compiler_wl_GCJ \
17725 lt_prog_compiler_pic_GCJ \
17726 lt_prog_compiler_static_GCJ \
17727 lt_prog_compiler_no_builtin_flag_GCJ \
17728 export_dynamic_flag_spec_GCJ \
17729 thread_safe_flag_spec_GCJ \
17730 whole_archive_flag_spec_GCJ \
17731 enable_shared_with_static_runtimes_GCJ \
17732 old_archive_cmds_GCJ \
17733 old_archive_from_new_cmds_GCJ \
17734 predep_objects_GCJ \
17735 postdep_objects_GCJ \
17736 predeps_GCJ \
17737 postdeps_GCJ \
17738 compiler_lib_search_path_GCJ \
17739 archive_cmds_GCJ \
17740 archive_expsym_cmds_GCJ \
17741 postinstall_cmds_GCJ \
17742 postuninstall_cmds_GCJ \
17743 old_archive_from_expsyms_cmds_GCJ \
17744 allow_undefined_flag_GCJ \
17745 no_undefined_flag_GCJ \
17746 export_symbols_cmds_GCJ \
17747 hardcode_libdir_flag_spec_GCJ \
17748 hardcode_libdir_flag_spec_ld_GCJ \
17749 hardcode_libdir_separator_GCJ \
17750 hardcode_automatic_GCJ \
17751 module_cmds_GCJ \
17752 module_expsym_cmds_GCJ \
17753 lt_cv_prog_compiler_c_o_GCJ \
17754 exclude_expsyms_GCJ \
17755 include_expsyms_GCJ; do
17756
17757 case $var in
17758 old_archive_cmds_GCJ | \
17759 old_archive_from_new_cmds_GCJ | \
17760 archive_cmds_GCJ | \
17761 archive_expsym_cmds_GCJ | \
17762 module_cmds_GCJ | \
17763 module_expsym_cmds_GCJ | \
17764 old_archive_from_expsyms_cmds_GCJ | \
17765 export_symbols_cmds_GCJ | \
17766 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17767 postinstall_cmds | postuninstall_cmds | \
17768 old_postinstall_cmds | old_postuninstall_cmds | \
17769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17770 # Double-quote double-evaled strings.
17771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17772 ;;
17773 *)
17774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17775 ;;
17776 esac
17777 done
17778
17779 case $lt_echo in
17780 *'\$0 --fallback-echo"')
17781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17782 ;;
17783 esac
17784
17785cfgfile="$ofile"
17786
17787 cat <<__EOF__ >> "$cfgfile"
17788# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17789
17790# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17791
17792# Shell to use when invoking shell scripts.
17793SHELL=$lt_SHELL
17794
17795# Whether or not to build shared libraries.
17796build_libtool_libs=$enable_shared
17797
17798# Whether or not to build static libraries.
17799build_old_libs=$enable_static
17800
17801# Whether or not to add -lc for building shared libraries.
17802build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17803
17804# Whether or not to disallow shared libs when runtime libs are static
17805allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17806
17807# Whether or not to optimize for fast installation.
17808fast_install=$enable_fast_install
17809
17810# The host system.
17811host_alias=$host_alias
17812host=$host
vapier7f19c022007-02-17 14:46:31 +000017813host_os=$host_os
17814
17815# The build system.
17816build_alias=$build_alias
17817build=$build
17818build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000017819
17820# An echo program that does not interpret backslashes.
17821echo=$lt_echo
17822
17823# The archiver.
17824AR=$lt_AR
17825AR_FLAGS=$lt_AR_FLAGS
17826
17827# A C compiler.
17828LTCC=$lt_LTCC
17829
vapier7f19c022007-02-17 14:46:31 +000017830# LTCC compiler flags.
17831LTCFLAGS=$lt_LTCFLAGS
17832
a.rottmann9bc8b932004-02-29 15:18:31 +000017833# A language-specific compiler.
17834CC=$lt_compiler_GCJ
17835
17836# Is the compiler the GNU C compiler?
17837with_gcc=$GCC_GCJ
17838
17839# An ERE matcher.
17840EGREP=$lt_EGREP
17841
17842# The linker used to build libraries.
17843LD=$lt_LD_GCJ
17844
17845# Whether we need hard or soft links.
17846LN_S=$lt_LN_S
17847
17848# A BSD-compatible nm program.
17849NM=$lt_NM
17850
17851# A symbol stripping program
17852STRIP=$lt_STRIP
17853
17854# Used to examine libraries when file_magic_cmd begins "file"
17855MAGIC_CMD=$MAGIC_CMD
17856
17857# Used on cygwin: DLL creation program.
17858DLLTOOL="$DLLTOOL"
17859
17860# Used on cygwin: object dumper.
17861OBJDUMP="$OBJDUMP"
17862
17863# Used on cygwin: assembler.
17864AS="$AS"
17865
17866# The name of the directory that contains temporary libtool files.
17867objdir=$objdir
17868
17869# How to create reloadable object files.
17870reload_flag=$lt_reload_flag
17871reload_cmds=$lt_reload_cmds
17872
17873# How to pass a linker flag through the compiler.
17874wl=$lt_lt_prog_compiler_wl_GCJ
17875
17876# Object file suffix (normally "o").
17877objext="$ac_objext"
17878
17879# Old archive suffix (normally "a").
17880libext="$libext"
17881
17882# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000017883shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000017884
17885# Executable file suffix (normally "").
17886exeext="$exeext"
17887
17888# Additional compiler flags for building library objects.
17889pic_flag=$lt_lt_prog_compiler_pic_GCJ
17890pic_mode=$pic_mode
17891
17892# What is the maximum length of a command?
17893max_cmd_len=$lt_cv_sys_max_cmd_len
17894
17895# Does compiler simultaneously support -c and -o options?
17896compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17897
vapier7f19c022007-02-17 14:46:31 +000017898# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000017899need_locks=$lt_need_locks
17900
17901# Do we need the lib prefix for modules?
17902need_lib_prefix=$need_lib_prefix
17903
17904# Do we need a version for libraries?
17905need_version=$need_version
17906
17907# Whether dlopen is supported.
17908dlopen_support=$enable_dlopen
17909
17910# Whether dlopen of programs is supported.
17911dlopen_self=$enable_dlopen_self
17912
17913# Whether dlopen of statically linked programs is supported.
17914dlopen_self_static=$enable_dlopen_self_static
17915
17916# Compiler flag to prevent dynamic linking.
17917link_static_flag=$lt_lt_prog_compiler_static_GCJ
17918
17919# Compiler flag to turn off builtin functions.
17920no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17921
17922# Compiler flag to allow reflexive dlopens.
17923export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17924
17925# Compiler flag to generate shared objects directly from archives.
17926whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17927
17928# Compiler flag to generate thread-safe objects.
17929thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17930
17931# Library versioning type.
17932version_type=$version_type
17933
17934# Format of library name prefix.
17935libname_spec=$lt_libname_spec
17936
17937# List of archive names. First name is the real one, the rest are links.
17938# The last name is the one that the linker finds with -lNAME.
17939library_names_spec=$lt_library_names_spec
17940
17941# The coded name of the library, if different from the real name.
17942soname_spec=$lt_soname_spec
17943
17944# Commands used to build and install an old-style archive.
17945RANLIB=$lt_RANLIB
17946old_archive_cmds=$lt_old_archive_cmds_GCJ
17947old_postinstall_cmds=$lt_old_postinstall_cmds
17948old_postuninstall_cmds=$lt_old_postuninstall_cmds
17949
17950# Create an old-style archive from a shared archive.
17951old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17952
17953# Create a temporary old-style archive to link instead of a shared archive.
17954old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17955
17956# Commands used to build and install a shared archive.
17957archive_cmds=$lt_archive_cmds_GCJ
17958archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17959postinstall_cmds=$lt_postinstall_cmds
17960postuninstall_cmds=$lt_postuninstall_cmds
17961
17962# Commands used to build a loadable module (assumed same as above if empty)
17963module_cmds=$lt_module_cmds_GCJ
17964module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17965
17966# Commands to strip libraries.
17967old_striplib=$lt_old_striplib
17968striplib=$lt_striplib
17969
17970# Dependencies to place before the objects being linked to create a
17971# shared library.
17972predep_objects=$lt_predep_objects_GCJ
17973
17974# Dependencies to place after the objects being linked to create a
17975# shared library.
17976postdep_objects=$lt_postdep_objects_GCJ
17977
17978# Dependencies to place before the objects being linked to create a
17979# shared library.
17980predeps=$lt_predeps_GCJ
17981
17982# Dependencies to place after the objects being linked to create a
17983# shared library.
17984postdeps=$lt_postdeps_GCJ
17985
17986# The library search path used internally by the compiler when linking
17987# a shared library.
17988compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17989
17990# Method to check whether dependent libraries are shared objects.
17991deplibs_check_method=$lt_deplibs_check_method
17992
17993# Command to use when deplibs_check_method == file_magic.
17994file_magic_cmd=$lt_file_magic_cmd
17995
17996# Flag that allows shared libraries with undefined symbols to be built.
17997allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17998
17999# Flag that forces no undefined symbols.
18000no_undefined_flag=$lt_no_undefined_flag_GCJ
18001
18002# Commands used to finish a libtool library installation in a directory.
18003finish_cmds=$lt_finish_cmds
18004
18005# Same as above, but a single script fragment to be evaled but not shown.
18006finish_eval=$lt_finish_eval
18007
18008# Take the output of nm and produce a listing of raw symbols and C names.
18009global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18010
18011# Transform the output of nm in a proper C declaration
18012global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18013
18014# Transform the output of nm in a C name address pair
18015global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18016
18017# This is the shared library runtime path variable.
18018runpath_var=$runpath_var
18019
18020# This is the shared library path variable.
18021shlibpath_var=$shlibpath_var
18022
18023# Is shlibpath searched before the hard-coded library search path?
18024shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18025
18026# How to hardcode a shared library path into an executable.
18027hardcode_action=$hardcode_action_GCJ
18028
18029# Whether we should hardcode library paths into libraries.
18030hardcode_into_libs=$hardcode_into_libs
18031
18032# Flag to hardcode \$libdir into a binary during linking.
18033# This must work even if \$libdir does not exist.
18034hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18035
18036# If ld is used when linking, flag to hardcode \$libdir into
18037# a binary during linking. This must work even if \$libdir does
18038# not exist.
18039hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18040
18041# Whether we need a single -rpath flag with a separated argument.
18042hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18043
18044# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18045# resulting binary.
18046hardcode_direct=$hardcode_direct_GCJ
18047
18048# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18049# resulting binary.
18050hardcode_minus_L=$hardcode_minus_L_GCJ
18051
18052# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18053# the resulting binary.
18054hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18055
18056# Set to yes if building a shared library automatically hardcodes DIR into the library
18057# and all subsequent libraries and executables linked against it.
18058hardcode_automatic=$hardcode_automatic_GCJ
18059
18060# Variables whose values should be saved in libtool wrapper scripts and
18061# restored at relink time.
18062variables_saved_for_relink="$variables_saved_for_relink"
18063
18064# Whether libtool must link a program against all its dependency libraries.
18065link_all_deplibs=$link_all_deplibs_GCJ
18066
18067# Compile-time system search path for libraries
18068sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18069
18070# Run-time system search path for libraries
18071sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18072
18073# Fix the shell variable \$srcfile for the compiler.
18074fix_srcfile_path="$fix_srcfile_path_GCJ"
18075
18076# Set to yes if exported symbols are required.
18077always_export_symbols=$always_export_symbols_GCJ
18078
18079# The commands to list exported symbols.
18080export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18081
18082# The commands to extract the exported symbol list from a shared archive.
18083extract_expsyms_cmds=$lt_extract_expsyms_cmds
18084
18085# Symbols that should not be listed in the preloaded symbols.
18086exclude_expsyms=$lt_exclude_expsyms_GCJ
18087
18088# Symbols that must always be exported.
18089include_expsyms=$lt_include_expsyms_GCJ
18090
18091# ### END LIBTOOL TAG CONFIG: $tagname
18092
18093__EOF__
18094
18095
18096else
18097 # If there is no Makefile yet, we rely on a make rule to execute
18098 # `config.status --recheck' to rerun these tests and create the
18099 # libtool script then.
18100 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18101 if test -f "$ltmain_in"; then
18102 test -f Makefile && make "$ltmain"
18103 fi
18104fi
18105
18106
18107ac_ext=c
18108ac_cpp='$CPP $CPPFLAGS'
18109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18111ac_compiler_gnu=$ac_cv_c_compiler_gnu
18112
18113CC="$lt_save_CC"
18114
18115 else
18116 tagname=""
18117 fi
18118 ;;
18119
18120 RC)
18121
18122
a.rottmann9bc8b932004-02-29 15:18:31 +000018123# Source file extension for RC test sources.
18124ac_ext=rc
18125
18126# Object file extension for compiled RC test sources.
18127objext=o
18128objext_RC=$objext
18129
18130# Code to be used in simple compile tests
18131lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18132
18133# Code to be used in simple link tests
18134lt_simple_link_test_code="$lt_simple_compile_test_code"
18135
18136# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18137
18138# If no C compiler was specified, use CC.
18139LTCC=${LTCC-"$CC"}
18140
vapier7f19c022007-02-17 14:46:31 +000018141# If no C compiler flags were specified, use CFLAGS.
18142LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18143
a.rottmann9bc8b932004-02-29 15:18:31 +000018144# Allow CC to be a program name with arguments.
18145compiler=$CC
18146
18147
vapier7f19c022007-02-17 14:46:31 +000018148# save warnings/boilerplate of simple test code
18149ac_outfile=conftest.$ac_objext
18150printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18151eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18152_lt_compiler_boilerplate=`cat conftest.err`
18153$rm conftest*
18154
18155ac_outfile=conftest.$ac_objext
18156printf "$lt_simple_link_test_code" >conftest.$ac_ext
18157eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18158_lt_linker_boilerplate=`cat conftest.err`
18159$rm conftest*
18160
18161
a.rottmann9bc8b932004-02-29 15:18:31 +000018162# Allow CC to be a program name with arguments.
18163lt_save_CC="$CC"
18164CC=${RC-"windres"}
18165compiler=$CC
18166compiler_RC=$CC
vapier7f19c022007-02-17 14:46:31 +000018167for cc_temp in $compiler""; do
18168 case $cc_temp in
18169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18171 \-*) ;;
18172 *) break;;
18173 esac
18174done
18175cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18176
a.rottmann9bc8b932004-02-29 15:18:31 +000018177lt_cv_prog_compiler_c_o_RC=yes
18178
18179# The else clause should only fire when bootstrapping the
18180# libtool distribution, otherwise you forgot to ship ltmain.sh
18181# with your package, and you will get complaints that there are
18182# no rules to generate ltmain.sh.
18183if test -f "$ltmain"; then
18184 # See if we are running on zsh, and set the options which allow our commands through
18185 # without removal of \ escapes.
18186 if test -n "${ZSH_VERSION+set}" ; then
18187 setopt NO_GLOB_SUBST
18188 fi
18189 # Now quote all the things that may contain metacharacters while being
18190 # careful not to overquote the AC_SUBSTed values. We take copies of the
18191 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000018192 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000018193 SED SHELL STRIP \
18194 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18195 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18196 deplibs_check_method reload_flag reload_cmds need_locks \
18197 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18198 lt_cv_sys_global_symbol_to_c_name_address \
18199 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18200 old_postinstall_cmds old_postuninstall_cmds \
18201 compiler_RC \
18202 CC_RC \
18203 LD_RC \
18204 lt_prog_compiler_wl_RC \
18205 lt_prog_compiler_pic_RC \
18206 lt_prog_compiler_static_RC \
18207 lt_prog_compiler_no_builtin_flag_RC \
18208 export_dynamic_flag_spec_RC \
18209 thread_safe_flag_spec_RC \
18210 whole_archive_flag_spec_RC \
18211 enable_shared_with_static_runtimes_RC \
18212 old_archive_cmds_RC \
18213 old_archive_from_new_cmds_RC \
18214 predep_objects_RC \
18215 postdep_objects_RC \
18216 predeps_RC \
18217 postdeps_RC \
18218 compiler_lib_search_path_RC \
18219 archive_cmds_RC \
18220 archive_expsym_cmds_RC \
18221 postinstall_cmds_RC \
18222 postuninstall_cmds_RC \
18223 old_archive_from_expsyms_cmds_RC \
18224 allow_undefined_flag_RC \
18225 no_undefined_flag_RC \
18226 export_symbols_cmds_RC \
18227 hardcode_libdir_flag_spec_RC \
18228 hardcode_libdir_flag_spec_ld_RC \
18229 hardcode_libdir_separator_RC \
18230 hardcode_automatic_RC \
18231 module_cmds_RC \
18232 module_expsym_cmds_RC \
18233 lt_cv_prog_compiler_c_o_RC \
18234 exclude_expsyms_RC \
18235 include_expsyms_RC; do
18236
18237 case $var in
18238 old_archive_cmds_RC | \
18239 old_archive_from_new_cmds_RC | \
18240 archive_cmds_RC | \
18241 archive_expsym_cmds_RC | \
18242 module_cmds_RC | \
18243 module_expsym_cmds_RC | \
18244 old_archive_from_expsyms_cmds_RC | \
18245 export_symbols_cmds_RC | \
18246 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18247 postinstall_cmds | postuninstall_cmds | \
18248 old_postinstall_cmds | old_postuninstall_cmds | \
18249 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18250 # Double-quote double-evaled strings.
18251 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18252 ;;
18253 *)
18254 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18255 ;;
18256 esac
18257 done
18258
18259 case $lt_echo in
18260 *'\$0 --fallback-echo"')
18261 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18262 ;;
18263 esac
18264
18265cfgfile="$ofile"
18266
18267 cat <<__EOF__ >> "$cfgfile"
18268# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18269
18270# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18271
18272# Shell to use when invoking shell scripts.
18273SHELL=$lt_SHELL
18274
18275# Whether or not to build shared libraries.
18276build_libtool_libs=$enable_shared
18277
18278# Whether or not to build static libraries.
18279build_old_libs=$enable_static
18280
18281# Whether or not to add -lc for building shared libraries.
18282build_libtool_need_lc=$archive_cmds_need_lc_RC
18283
18284# Whether or not to disallow shared libs when runtime libs are static
18285allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18286
18287# Whether or not to optimize for fast installation.
18288fast_install=$enable_fast_install
18289
18290# The host system.
18291host_alias=$host_alias
18292host=$host
vapier7f19c022007-02-17 14:46:31 +000018293host_os=$host_os
18294
18295# The build system.
18296build_alias=$build_alias
18297build=$build
18298build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000018299
18300# An echo program that does not interpret backslashes.
18301echo=$lt_echo
18302
18303# The archiver.
18304AR=$lt_AR
18305AR_FLAGS=$lt_AR_FLAGS
18306
18307# A C compiler.
18308LTCC=$lt_LTCC
18309
vapier7f19c022007-02-17 14:46:31 +000018310# LTCC compiler flags.
18311LTCFLAGS=$lt_LTCFLAGS
18312
a.rottmann9bc8b932004-02-29 15:18:31 +000018313# A language-specific compiler.
18314CC=$lt_compiler_RC
18315
18316# Is the compiler the GNU C compiler?
18317with_gcc=$GCC_RC
18318
18319# An ERE matcher.
18320EGREP=$lt_EGREP
18321
18322# The linker used to build libraries.
18323LD=$lt_LD_RC
18324
18325# Whether we need hard or soft links.
18326LN_S=$lt_LN_S
18327
18328# A BSD-compatible nm program.
18329NM=$lt_NM
18330
18331# A symbol stripping program
18332STRIP=$lt_STRIP
18333
18334# Used to examine libraries when file_magic_cmd begins "file"
18335MAGIC_CMD=$MAGIC_CMD
18336
18337# Used on cygwin: DLL creation program.
18338DLLTOOL="$DLLTOOL"
18339
18340# Used on cygwin: object dumper.
18341OBJDUMP="$OBJDUMP"
18342
18343# Used on cygwin: assembler.
18344AS="$AS"
18345
18346# The name of the directory that contains temporary libtool files.
18347objdir=$objdir
18348
18349# How to create reloadable object files.
18350reload_flag=$lt_reload_flag
18351reload_cmds=$lt_reload_cmds
18352
18353# How to pass a linker flag through the compiler.
18354wl=$lt_lt_prog_compiler_wl_RC
18355
18356# Object file suffix (normally "o").
18357objext="$ac_objext"
18358
18359# Old archive suffix (normally "a").
18360libext="$libext"
18361
18362# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000018363shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000018364
18365# Executable file suffix (normally "").
18366exeext="$exeext"
18367
18368# Additional compiler flags for building library objects.
18369pic_flag=$lt_lt_prog_compiler_pic_RC
18370pic_mode=$pic_mode
18371
18372# What is the maximum length of a command?
18373max_cmd_len=$lt_cv_sys_max_cmd_len
18374
18375# Does compiler simultaneously support -c and -o options?
18376compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18377
vapier7f19c022007-02-17 14:46:31 +000018378# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000018379need_locks=$lt_need_locks
18380
18381# Do we need the lib prefix for modules?
18382need_lib_prefix=$need_lib_prefix
18383
18384# Do we need a version for libraries?
18385need_version=$need_version
18386
18387# Whether dlopen is supported.
18388dlopen_support=$enable_dlopen
18389
18390# Whether dlopen of programs is supported.
18391dlopen_self=$enable_dlopen_self
18392
18393# Whether dlopen of statically linked programs is supported.
18394dlopen_self_static=$enable_dlopen_self_static
18395
18396# Compiler flag to prevent dynamic linking.
18397link_static_flag=$lt_lt_prog_compiler_static_RC
18398
18399# Compiler flag to turn off builtin functions.
18400no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18401
18402# Compiler flag to allow reflexive dlopens.
18403export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18404
18405# Compiler flag to generate shared objects directly from archives.
18406whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18407
18408# Compiler flag to generate thread-safe objects.
18409thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18410
18411# Library versioning type.
18412version_type=$version_type
18413
18414# Format of library name prefix.
18415libname_spec=$lt_libname_spec
18416
18417# List of archive names. First name is the real one, the rest are links.
18418# The last name is the one that the linker finds with -lNAME.
18419library_names_spec=$lt_library_names_spec
18420
18421# The coded name of the library, if different from the real name.
18422soname_spec=$lt_soname_spec
18423
18424# Commands used to build and install an old-style archive.
18425RANLIB=$lt_RANLIB
18426old_archive_cmds=$lt_old_archive_cmds_RC
18427old_postinstall_cmds=$lt_old_postinstall_cmds
18428old_postuninstall_cmds=$lt_old_postuninstall_cmds
18429
18430# Create an old-style archive from a shared archive.
18431old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18432
18433# Create a temporary old-style archive to link instead of a shared archive.
18434old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18435
18436# Commands used to build and install a shared archive.
18437archive_cmds=$lt_archive_cmds_RC
18438archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18439postinstall_cmds=$lt_postinstall_cmds
18440postuninstall_cmds=$lt_postuninstall_cmds
18441
18442# Commands used to build a loadable module (assumed same as above if empty)
18443module_cmds=$lt_module_cmds_RC
18444module_expsym_cmds=$lt_module_expsym_cmds_RC
18445
18446# Commands to strip libraries.
18447old_striplib=$lt_old_striplib
18448striplib=$lt_striplib
18449
18450# Dependencies to place before the objects being linked to create a
18451# shared library.
18452predep_objects=$lt_predep_objects_RC
18453
18454# Dependencies to place after the objects being linked to create a
18455# shared library.
18456postdep_objects=$lt_postdep_objects_RC
18457
18458# Dependencies to place before the objects being linked to create a
18459# shared library.
18460predeps=$lt_predeps_RC
18461
18462# Dependencies to place after the objects being linked to create a
18463# shared library.
18464postdeps=$lt_postdeps_RC
18465
18466# The library search path used internally by the compiler when linking
18467# a shared library.
18468compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18469
18470# Method to check whether dependent libraries are shared objects.
18471deplibs_check_method=$lt_deplibs_check_method
18472
18473# Command to use when deplibs_check_method == file_magic.
18474file_magic_cmd=$lt_file_magic_cmd
18475
18476# Flag that allows shared libraries with undefined symbols to be built.
18477allow_undefined_flag=$lt_allow_undefined_flag_RC
18478
18479# Flag that forces no undefined symbols.
18480no_undefined_flag=$lt_no_undefined_flag_RC
18481
18482# Commands used to finish a libtool library installation in a directory.
18483finish_cmds=$lt_finish_cmds
18484
18485# Same as above, but a single script fragment to be evaled but not shown.
18486finish_eval=$lt_finish_eval
18487
18488# Take the output of nm and produce a listing of raw symbols and C names.
18489global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18490
18491# Transform the output of nm in a proper C declaration
18492global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18493
18494# Transform the output of nm in a C name address pair
18495global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18496
18497# This is the shared library runtime path variable.
18498runpath_var=$runpath_var
18499
18500# This is the shared library path variable.
18501shlibpath_var=$shlibpath_var
18502
18503# Is shlibpath searched before the hard-coded library search path?
18504shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18505
18506# How to hardcode a shared library path into an executable.
18507hardcode_action=$hardcode_action_RC
18508
18509# Whether we should hardcode library paths into libraries.
18510hardcode_into_libs=$hardcode_into_libs
18511
18512# Flag to hardcode \$libdir into a binary during linking.
18513# This must work even if \$libdir does not exist.
18514hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18515
18516# If ld is used when linking, flag to hardcode \$libdir into
18517# a binary during linking. This must work even if \$libdir does
18518# not exist.
18519hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18520
18521# Whether we need a single -rpath flag with a separated argument.
18522hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18523
18524# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18525# resulting binary.
18526hardcode_direct=$hardcode_direct_RC
18527
18528# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18529# resulting binary.
18530hardcode_minus_L=$hardcode_minus_L_RC
18531
18532# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18533# the resulting binary.
18534hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18535
18536# Set to yes if building a shared library automatically hardcodes DIR into the library
18537# and all subsequent libraries and executables linked against it.
18538hardcode_automatic=$hardcode_automatic_RC
18539
18540# Variables whose values should be saved in libtool wrapper scripts and
18541# restored at relink time.
18542variables_saved_for_relink="$variables_saved_for_relink"
18543
18544# Whether libtool must link a program against all its dependency libraries.
18545link_all_deplibs=$link_all_deplibs_RC
18546
18547# Compile-time system search path for libraries
18548sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18549
18550# Run-time system search path for libraries
18551sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18552
18553# Fix the shell variable \$srcfile for the compiler.
18554fix_srcfile_path="$fix_srcfile_path_RC"
18555
18556# Set to yes if exported symbols are required.
18557always_export_symbols=$always_export_symbols_RC
18558
18559# The commands to list exported symbols.
18560export_symbols_cmds=$lt_export_symbols_cmds_RC
18561
18562# The commands to extract the exported symbol list from a shared archive.
18563extract_expsyms_cmds=$lt_extract_expsyms_cmds
18564
18565# Symbols that should not be listed in the preloaded symbols.
18566exclude_expsyms=$lt_exclude_expsyms_RC
18567
18568# Symbols that must always be exported.
18569include_expsyms=$lt_include_expsyms_RC
18570
18571# ### END LIBTOOL TAG CONFIG: $tagname
18572
18573__EOF__
18574
18575
18576else
18577 # If there is no Makefile yet, we rely on a make rule to execute
18578 # `config.status --recheck' to rerun these tests and create the
18579 # libtool script then.
18580 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18581 if test -f "$ltmain_in"; then
18582 test -f Makefile && make "$ltmain"
18583 fi
18584fi
18585
18586
18587ac_ext=c
18588ac_cpp='$CPP $CPPFLAGS'
18589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18591ac_compiler_gnu=$ac_cv_c_compiler_gnu
18592
18593CC="$lt_save_CC"
18594
18595 ;;
18596
18597 *)
18598 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18599echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18600 { (exit 1); exit 1; }; }
18601 ;;
18602 esac
18603
18604 # Append the new tag name to the list of available tags.
18605 if test -n "$tagname" ; then
18606 available_tags="$available_tags $tagname"
18607 fi
18608 fi
18609 done
18610 IFS="$lt_save_ifs"
18611
18612 # Now substitute the updated list of available tags.
18613 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18614 mv "${ofile}T" "$ofile"
18615 chmod +x "$ofile"
18616 else
18617 rm -f "${ofile}T"
18618 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18619echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18620 { (exit 1); exit 1; }; }
18621 fi
18622fi
drh71eb93e2001-09-28 01:34:43 +000018623
drh71eb93e2001-09-28 01:34:43 +000018624
drh71eb93e2001-09-28 01:34:43 +000018625
18626# This can be used to rebuild libtool when needed
18627LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18628
18629# Always use our own libtool.
18630LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18631
18632# Prevent multiple expansion
18633
a.rottmann84e63352003-03-24 09:42:16 +000018634
a.rottmann9bc8b932004-02-29 15:18:31 +000018635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
drh71eb93e2001-09-28 01:34:43 +000018653# Find a good install program. We prefer a C program (faster),
18654# so one script is as good as another. But avoid the broken or
18655# incompatible versions:
18656# SysV /etc/install, /usr/sbin/install
18657# SunOS /usr/etc/install
18658# IRIX /sbin/install
18659# AIX /bin/install
18660# AmigaOS /C/install, which installs bootblocks on floppy discs
18661# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18662# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18663# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018664# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018665# ./install, which can be erroneously created by make from ./install.sh.
mlcreech94984912008-03-04 19:03:08 +000018666{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18667echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018668if test -z "$INSTALL"; then
18669if test "${ac_cv_path_install+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671else
a.rottmann84e63352003-03-24 09:42:16 +000018672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18673for as_dir in $PATH
18674do
18675 IFS=$as_save_IFS
18676 test -z "$as_dir" && as_dir=.
18677 # Account for people who put trailing slashes in PATH elements.
18678case $as_dir/ in
18679 ./ | .// | /cC/* | \
18680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018681 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018682 /usr/ucb/* ) ;;
18683 *)
18684 # OSF1 and SCO ODT 3.0 have their own names for install.
18685 # Don't use installbsd from OSF since it installs stuff as root
18686 # by default.
18687 for ac_prog in ginstall scoinst install; do
18688 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000018689 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
a.rottmann964dbb12004-02-26 19:47:42 +000018690 if test $ac_prog = install &&
18691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18692 # AIX install. It has an incompatible calling convention.
18693 :
18694 elif test $ac_prog = install &&
18695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18696 # program-specific install script used by HP pwplus--don't use.
18697 :
18698 else
18699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18700 break 3
18701 fi
18702 fi
drh71eb93e2001-09-28 01:34:43 +000018703 done
a.rottmann84e63352003-03-24 09:42:16 +000018704 done
18705 ;;
18706esac
18707done
mlcreech94984912008-03-04 19:03:08 +000018708IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000018709
drh71eb93e2001-09-28 01:34:43 +000018710
18711fi
18712 if test "${ac_cv_path_install+set}" = set; then
18713 INSTALL=$ac_cv_path_install
18714 else
mlcreech94984912008-03-04 19:03:08 +000018715 # As a last resort, use the slow shell script. Don't cache a
18716 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000018717 # break other packages using the cache if that directory is
mlcreech94984912008-03-04 19:03:08 +000018718 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000018719 INSTALL=$ac_install_sh
18720 fi
18721fi
mlcreech94984912008-03-04 19:03:08 +000018722{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18723echo "${ECHO_T}$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018724
18725# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18726# It thinks the first close brace ends the variable substitution.
18727test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18728
18729test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18730
18731test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18732
drhf1878b42006-01-23 18:06:52 +000018733for ac_prog in gawk mawk nawk awk
18734do
18735 # Extract the first word of "$ac_prog", so it can be a program name with args.
18736set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +000018737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drhf1878b42006-01-23 18:06:52 +000018739if test "${ac_cv_prog_AWK+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18741else
18742 if test -n "$AWK"; then
18743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18744else
18745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18746for as_dir in $PATH
18747do
18748 IFS=$as_save_IFS
18749 test -z "$as_dir" && as_dir=.
18750 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000018751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
drhf1878b42006-01-23 18:06:52 +000018752 ac_cv_prog_AWK="$ac_prog"
18753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18754 break 2
18755 fi
18756done
18757done
mlcreech94984912008-03-04 19:03:08 +000018758IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000018759
18760fi
18761fi
18762AWK=$ac_cv_prog_AWK
18763if test -n "$AWK"; then
mlcreech94984912008-03-04 19:03:08 +000018764 { echo "$as_me:$LINENO: result: $AWK" >&5
18765echo "${ECHO_T}$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000018766else
mlcreech94984912008-03-04 19:03:08 +000018767 { echo "$as_me:$LINENO: result: no" >&5
18768echo "${ECHO_T}no" >&6; }
drhf1878b42006-01-23 18:06:52 +000018769fi
18770
mlcreech94984912008-03-04 19:03:08 +000018771
drhf1878b42006-01-23 18:06:52 +000018772 test -n "$AWK" && break
18773done
18774
a.rottmann84e63352003-03-24 09:42:16 +000018775
drh75897232000-05-29 14:26:00 +000018776#########
mlcreechb87057f2008-03-06 07:19:20 +000018777# Check for needed/wanted data types
18778{ echo "$as_me:$LINENO: checking for int8_t" >&5
18779echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
18780if test "${ac_cv_type_int8_t+set}" = set; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18782else
18783 cat >conftest.$ac_ext <<_ACEOF
18784/* confdefs.h. */
18785_ACEOF
18786cat confdefs.h >>conftest.$ac_ext
18787cat >>conftest.$ac_ext <<_ACEOF
18788/* end confdefs.h. */
18789$ac_includes_default
18790typedef int8_t ac__type_new_;
18791int
18792main ()
18793{
18794if ((ac__type_new_ *) 0)
18795 return 0;
18796if (sizeof (ac__type_new_))
18797 return 0;
18798 ;
18799 return 0;
18800}
18801_ACEOF
18802rm -f conftest.$ac_objext
18803if { (ac_try="$ac_compile"
18804case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18807esac
18808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_cv_type_int8_t=yes
18820else
18821 echo "$as_me: failed program was:" >&5
18822sed 's/^/| /' conftest.$ac_ext >&5
18823
18824 ac_cv_type_int8_t=no
18825fi
18826
18827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828fi
18829{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
18830echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
18831if test $ac_cv_type_int8_t = yes; then
18832
18833cat >>confdefs.h <<_ACEOF
18834#define HAVE_INT8_T 1
18835_ACEOF
18836
18837
18838fi
18839{ echo "$as_me:$LINENO: checking for int16_t" >&5
18840echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
18841if test "${ac_cv_type_int16_t+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844 cat >conftest.$ac_ext <<_ACEOF
18845/* confdefs.h. */
18846_ACEOF
18847cat confdefs.h >>conftest.$ac_ext
18848cat >>conftest.$ac_ext <<_ACEOF
18849/* end confdefs.h. */
18850$ac_includes_default
18851typedef int16_t ac__type_new_;
18852int
18853main ()
18854{
18855if ((ac__type_new_ *) 0)
18856 return 0;
18857if (sizeof (ac__type_new_))
18858 return 0;
18859 ;
18860 return 0;
18861}
18862_ACEOF
18863rm -f conftest.$ac_objext
18864if { (ac_try="$ac_compile"
18865case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18868esac
18869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_compile") 2>conftest.er1
18871 ac_status=$?
18872 grep -v '^ *+' conftest.er1 >conftest.err
18873 rm -f conftest.er1
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } && {
18877 test -z "$ac_c_werror_flag" ||
18878 test ! -s conftest.err
18879 } && test -s conftest.$ac_objext; then
18880 ac_cv_type_int16_t=yes
18881else
18882 echo "$as_me: failed program was:" >&5
18883sed 's/^/| /' conftest.$ac_ext >&5
18884
18885 ac_cv_type_int16_t=no
18886fi
18887
18888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18889fi
18890{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
18891echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
18892if test $ac_cv_type_int16_t = yes; then
18893
18894cat >>confdefs.h <<_ACEOF
18895#define HAVE_INT16_T 1
18896_ACEOF
18897
18898
18899fi
18900{ echo "$as_me:$LINENO: checking for int32_t" >&5
18901echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
18902if test "${ac_cv_type_int32_t+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18904else
18905 cat >conftest.$ac_ext <<_ACEOF
18906/* confdefs.h. */
18907_ACEOF
18908cat confdefs.h >>conftest.$ac_ext
18909cat >>conftest.$ac_ext <<_ACEOF
18910/* end confdefs.h. */
18911$ac_includes_default
18912typedef int32_t ac__type_new_;
18913int
18914main ()
18915{
18916if ((ac__type_new_ *) 0)
18917 return 0;
18918if (sizeof (ac__type_new_))
18919 return 0;
18920 ;
18921 return 0;
18922}
18923_ACEOF
18924rm -f conftest.$ac_objext
18925if { (ac_try="$ac_compile"
18926case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929esac
18930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_compile") 2>conftest.er1
18932 ac_status=$?
18933 grep -v '^ *+' conftest.er1 >conftest.err
18934 rm -f conftest.er1
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } && {
18938 test -z "$ac_c_werror_flag" ||
18939 test ! -s conftest.err
18940 } && test -s conftest.$ac_objext; then
18941 ac_cv_type_int32_t=yes
18942else
18943 echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 ac_cv_type_int32_t=no
18947fi
18948
18949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18950fi
18951{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
18952echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
18953if test $ac_cv_type_int32_t = yes; then
18954
18955cat >>confdefs.h <<_ACEOF
18956#define HAVE_INT32_T 1
18957_ACEOF
18958
18959
18960fi
18961{ echo "$as_me:$LINENO: checking for int64_t" >&5
18962echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
18963if test "${ac_cv_type_int64_t+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965else
18966 cat >conftest.$ac_ext <<_ACEOF
18967/* confdefs.h. */
18968_ACEOF
18969cat confdefs.h >>conftest.$ac_ext
18970cat >>conftest.$ac_ext <<_ACEOF
18971/* end confdefs.h. */
18972$ac_includes_default
18973typedef int64_t ac__type_new_;
18974int
18975main ()
18976{
18977if ((ac__type_new_ *) 0)
18978 return 0;
18979if (sizeof (ac__type_new_))
18980 return 0;
18981 ;
18982 return 0;
18983}
18984_ACEOF
18985rm -f conftest.$ac_objext
18986if { (ac_try="$ac_compile"
18987case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18990esac
18991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_compile") 2>conftest.er1
18993 ac_status=$?
18994 grep -v '^ *+' conftest.er1 >conftest.err
18995 rm -f conftest.er1
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_c_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest.$ac_objext; then
19002 ac_cv_type_int64_t=yes
19003else
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
19007 ac_cv_type_int64_t=no
19008fi
19009
19010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011fi
19012{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19013echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
19014if test $ac_cv_type_int64_t = yes; then
19015
19016cat >>confdefs.h <<_ACEOF
19017#define HAVE_INT64_T 1
19018_ACEOF
19019
19020
19021fi
19022{ echo "$as_me:$LINENO: checking for intptr_t" >&5
19023echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
19024if test "${ac_cv_type_intptr_t+set}" = set; then
19025 echo $ECHO_N "(cached) $ECHO_C" >&6
19026else
19027 cat >conftest.$ac_ext <<_ACEOF
19028/* confdefs.h. */
19029_ACEOF
19030cat confdefs.h >>conftest.$ac_ext
19031cat >>conftest.$ac_ext <<_ACEOF
19032/* end confdefs.h. */
19033$ac_includes_default
19034typedef intptr_t ac__type_new_;
19035int
19036main ()
19037{
19038if ((ac__type_new_ *) 0)
19039 return 0;
19040if (sizeof (ac__type_new_))
19041 return 0;
19042 ;
19043 return 0;
19044}
19045_ACEOF
19046rm -f conftest.$ac_objext
19047if { (ac_try="$ac_compile"
19048case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051esac
19052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_compile") 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } && {
19060 test -z "$ac_c_werror_flag" ||
19061 test ! -s conftest.err
19062 } && test -s conftest.$ac_objext; then
19063 ac_cv_type_intptr_t=yes
19064else
19065 echo "$as_me: failed program was:" >&5
19066sed 's/^/| /' conftest.$ac_ext >&5
19067
19068 ac_cv_type_intptr_t=no
19069fi
19070
19071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19072fi
19073{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
19074echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
19075if test $ac_cv_type_intptr_t = yes; then
19076
19077cat >>confdefs.h <<_ACEOF
19078#define HAVE_INTPTR_T 1
19079_ACEOF
19080
19081
19082fi
19083{ echo "$as_me:$LINENO: checking for uint8_t" >&5
19084echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
19085if test "${ac_cv_type_uint8_t+set}" = set; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
19087else
19088 cat >conftest.$ac_ext <<_ACEOF
19089/* confdefs.h. */
19090_ACEOF
19091cat confdefs.h >>conftest.$ac_ext
19092cat >>conftest.$ac_ext <<_ACEOF
19093/* end confdefs.h. */
19094$ac_includes_default
19095typedef uint8_t ac__type_new_;
19096int
19097main ()
19098{
19099if ((ac__type_new_ *) 0)
19100 return 0;
19101if (sizeof (ac__type_new_))
19102 return 0;
19103 ;
19104 return 0;
19105}
19106_ACEOF
19107rm -f conftest.$ac_objext
19108if { (ac_try="$ac_compile"
19109case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19112esac
19113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_compile") 2>conftest.er1
19115 ac_status=$?
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } && {
19121 test -z "$ac_c_werror_flag" ||
19122 test ! -s conftest.err
19123 } && test -s conftest.$ac_objext; then
19124 ac_cv_type_uint8_t=yes
19125else
19126 echo "$as_me: failed program was:" >&5
19127sed 's/^/| /' conftest.$ac_ext >&5
19128
19129 ac_cv_type_uint8_t=no
19130fi
19131
19132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133fi
19134{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
19135echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
19136if test $ac_cv_type_uint8_t = yes; then
19137
19138cat >>confdefs.h <<_ACEOF
19139#define HAVE_UINT8_T 1
19140_ACEOF
19141
19142
19143fi
19144{ echo "$as_me:$LINENO: checking for uint16_t" >&5
19145echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
19146if test "${ac_cv_type_uint16_t+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19148else
19149 cat >conftest.$ac_ext <<_ACEOF
19150/* confdefs.h. */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
19154/* end confdefs.h. */
19155$ac_includes_default
19156typedef uint16_t ac__type_new_;
19157int
19158main ()
19159{
19160if ((ac__type_new_ *) 0)
19161 return 0;
19162if (sizeof (ac__type_new_))
19163 return 0;
19164 ;
19165 return 0;
19166}
19167_ACEOF
19168rm -f conftest.$ac_objext
19169if { (ac_try="$ac_compile"
19170case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19173esac
19174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_compile") 2>conftest.er1
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } && {
19182 test -z "$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19184 } && test -s conftest.$ac_objext; then
19185 ac_cv_type_uint16_t=yes
19186else
19187 echo "$as_me: failed program was:" >&5
19188sed 's/^/| /' conftest.$ac_ext >&5
19189
19190 ac_cv_type_uint16_t=no
19191fi
19192
19193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19194fi
19195{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
19196echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
19197if test $ac_cv_type_uint16_t = yes; then
19198
19199cat >>confdefs.h <<_ACEOF
19200#define HAVE_UINT16_T 1
19201_ACEOF
19202
19203
19204fi
19205{ echo "$as_me:$LINENO: checking for uint32_t" >&5
19206echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
19207if test "${ac_cv_type_uint32_t+set}" = set; then
19208 echo $ECHO_N "(cached) $ECHO_C" >&6
19209else
19210 cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216$ac_includes_default
19217typedef uint32_t ac__type_new_;
19218int
19219main ()
19220{
19221if ((ac__type_new_ *) 0)
19222 return 0;
19223if (sizeof (ac__type_new_))
19224 return 0;
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext
19230if { (ac_try="$ac_compile"
19231case "(($ac_try" in
19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233 *) ac_try_echo=$ac_try;;
19234esac
19235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236 (eval "$ac_compile") 2>conftest.er1
19237 ac_status=$?
19238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } && {
19243 test -z "$ac_c_werror_flag" ||
19244 test ! -s conftest.err
19245 } && test -s conftest.$ac_objext; then
19246 ac_cv_type_uint32_t=yes
19247else
19248 echo "$as_me: failed program was:" >&5
19249sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ac_cv_type_uint32_t=no
19252fi
19253
19254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19255fi
19256{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
19257echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
19258if test $ac_cv_type_uint32_t = yes; then
19259
19260cat >>confdefs.h <<_ACEOF
19261#define HAVE_UINT32_T 1
19262_ACEOF
19263
19264
19265fi
19266{ echo "$as_me:$LINENO: checking for uint64_t" >&5
19267echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
19268if test "${ac_cv_type_uint64_t+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270else
19271 cat >conftest.$ac_ext <<_ACEOF
19272/* confdefs.h. */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h. */
19277$ac_includes_default
19278typedef uint64_t ac__type_new_;
19279int
19280main ()
19281{
19282if ((ac__type_new_ *) 0)
19283 return 0;
19284if (sizeof (ac__type_new_))
19285 return 0;
19286 ;
19287 return 0;
19288}
19289_ACEOF
19290rm -f conftest.$ac_objext
19291if { (ac_try="$ac_compile"
19292case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19295esac
19296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_compile") 2>conftest.er1
19298 ac_status=$?
19299 grep -v '^ *+' conftest.er1 >conftest.err
19300 rm -f conftest.er1
19301 cat conftest.err >&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } && {
19304 test -z "$ac_c_werror_flag" ||
19305 test ! -s conftest.err
19306 } && test -s conftest.$ac_objext; then
19307 ac_cv_type_uint64_t=yes
19308else
19309 echo "$as_me: failed program was:" >&5
19310sed 's/^/| /' conftest.$ac_ext >&5
19311
19312 ac_cv_type_uint64_t=no
19313fi
19314
19315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316fi
19317{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19318echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
19319if test $ac_cv_type_uint64_t = yes; then
19320
19321cat >>confdefs.h <<_ACEOF
19322#define HAVE_UINT64_T 1
19323_ACEOF
19324
19325
19326fi
19327{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
19328echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
19329if test "${ac_cv_type_uintptr_t+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331else
19332 cat >conftest.$ac_ext <<_ACEOF
19333/* confdefs.h. */
19334_ACEOF
19335cat confdefs.h >>conftest.$ac_ext
19336cat >>conftest.$ac_ext <<_ACEOF
19337/* end confdefs.h. */
19338$ac_includes_default
19339typedef uintptr_t ac__type_new_;
19340int
19341main ()
19342{
19343if ((ac__type_new_ *) 0)
19344 return 0;
19345if (sizeof (ac__type_new_))
19346 return 0;
19347 ;
19348 return 0;
19349}
19350_ACEOF
19351rm -f conftest.$ac_objext
19352if { (ac_try="$ac_compile"
19353case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356esac
19357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_compile") 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_c_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest.$ac_objext; then
19368 ac_cv_type_uintptr_t=yes
19369else
19370 echo "$as_me: failed program was:" >&5
19371sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 ac_cv_type_uintptr_t=no
19374fi
19375
19376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377fi
19378{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
19379echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
19380if test $ac_cv_type_uintptr_t = yes; then
19381
19382cat >>confdefs.h <<_ACEOF
19383#define HAVE_UINTPTR_T 1
19384_ACEOF
19385
19386
19387fi
19388
19389
19390#########
19391# Check for needed/wanted headers
19392
19393for ac_header in sys/types.h
19394do
19395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19396{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400else
19401 cat >conftest.$ac_ext <<_ACEOF
19402/* confdefs.h. */
19403_ACEOF
19404cat confdefs.h >>conftest.$ac_ext
19405cat >>conftest.$ac_ext <<_ACEOF
19406/* end confdefs.h. */
19407inttypes.h
19408
19409#include <$ac_header>
19410_ACEOF
19411rm -f conftest.$ac_objext
19412if { (ac_try="$ac_compile"
19413case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416esac
19417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_compile") 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && {
19425 test -z "$ac_c_werror_flag" ||
19426 test ! -s conftest.err
19427 } && test -s conftest.$ac_objext; then
19428 eval "$as_ac_Header=yes"
19429else
19430 echo "$as_me: failed program was:" >&5
19431sed 's/^/| /' conftest.$ac_ext >&5
19432
19433 eval "$as_ac_Header=no"
19434fi
19435
19436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437fi
19438ac_res=`eval echo '${'$as_ac_Header'}'`
19439 { echo "$as_me:$LINENO: result: $ac_res" >&5
19440echo "${ECHO_T}$ac_res" >&6; }
19441if test `eval echo '${'$as_ac_Header'}'` = yes; then
19442 cat >>confdefs.h <<_ACEOF
19443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19444_ACEOF
19445 stdlib.h
19446else
19447 stdint.h
19448fi
19449
19450done
19451
19452
19453#########
drh75897232000-05-29 14:26:00 +000019454# Set up an appropriate program prefix
19455#
19456if test "$program_prefix" = "NONE"; then
19457 program_prefix=""
19458fi
19459
a.rottmann84e63352003-03-24 09:42:16 +000019460
drh4b2266a2004-11-27 15:52:16 +000019461VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
19462echo "Version set to $VERSION"
19463
19464RELEASE=`cat $srcdir/VERSION`
19465echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000019466
danielk197799ba19e2005-02-05 07:33:34 +000019467VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000019468 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000019469 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000019470echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000019471
drh26d0e2a2005-07-06 13:51:27 +000019472
drh75897232000-05-29 14:26:00 +000019473#########
19474# Check to see if the --with-hints=FILE option is used. If there is none,
19475# then check for a files named "$host.hints" and ../$hosts.hints where
19476# $host is the hostname of the build system. If still no hints are
19477# found, try looking in $system.hints and ../$system.hints where
19478# $system is the result of uname -s.
19479#
drh71eb93e2001-09-28 01:34:43 +000019480
mlcreech94984912008-03-04 19:03:08 +000019481# Check whether --with-hints was given.
drh75897232000-05-29 14:26:00 +000019482if test "${with_hints+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019483 withval=$with_hints; hints=$withval
19484fi
19485
drh75897232000-05-29 14:26:00 +000019486if test "$hints" = ""; then
19487 host=`hostname | sed 's/\..*//'`
19488 if test -r $host.hints; then
19489 hints=$host.hints
19490 else
19491 if test -r ../$host.hints; then
19492 hints=../$host.hints
19493 fi
19494 fi
19495fi
19496if test "$hints" = ""; then
19497 sys=`uname -s`
19498 if test -r $sys.hints; then
19499 hints=$sys.hints
19500 else
19501 if test -r ../$sys.hints; then
19502 hints=../$sys.hints
19503 fi
19504 fi
19505fi
19506if test "$hints" != ""; then
mlcreech94984912008-03-04 19:03:08 +000019507 { echo "$as_me:$LINENO: result: reading hints from $hints" >&5
19508echo "${ECHO_T}reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000019509 . $hints
19510fi
19511
19512#########
19513# Locate a compiler for the build machine. This compiler should
19514# generate command-line programs that run on the build machine.
19515#
vapier7f19c022007-02-17 14:46:31 +000019516if test x"$cross_compiling" = xno; then
19517 BUILD_CC=$CC
19518 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000019519else
vapier7f19c022007-02-17 14:46:31 +000019520 if test "${BUILD_CC+set}" != set; then
19521 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000019522do
19523 # Extract the first word of "$ac_prog", so it can be a program name with args.
19524set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +000019525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000019527if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019528 echo $ECHO_N "(cached) $ECHO_C" >&6
19529else
vapier7f19c022007-02-17 14:46:31 +000019530 if test -n "$BUILD_CC"; then
19531 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000019532else
a.rottmann84e63352003-03-24 09:42:16 +000019533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19534for as_dir in $PATH
19535do
19536 IFS=$as_save_IFS
19537 test -z "$as_dir" && as_dir=.
19538 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000019539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
vapier7f19c022007-02-17 14:46:31 +000019540 ac_cv_prog_BUILD_CC="$ac_prog"
a.rottmann84e63352003-03-24 09:42:16 +000019541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19542 break 2
19543 fi
19544done
drh71eb93e2001-09-28 01:34:43 +000019545done
mlcreech94984912008-03-04 19:03:08 +000019546IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000019547
drh71eb93e2001-09-28 01:34:43 +000019548fi
19549fi
vapier7f19c022007-02-17 14:46:31 +000019550BUILD_CC=$ac_cv_prog_BUILD_CC
19551if test -n "$BUILD_CC"; then
mlcreech94984912008-03-04 19:03:08 +000019552 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
19553echo "${ECHO_T}$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019554else
mlcreech94984912008-03-04 19:03:08 +000019555 { echo "$as_me:$LINENO: result: no" >&5
19556echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019557fi
drh75897232000-05-29 14:26:00 +000019558
mlcreech94984912008-03-04 19:03:08 +000019559
vapier7f19c022007-02-17 14:46:31 +000019560 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000019561done
drh75897232000-05-29 14:26:00 +000019562
vapier7f19c022007-02-17 14:46:31 +000019563 fi
19564 if test "${BUILD_CFLAGS+set}" != set; then
19565 BUILD_CFLAGS="-g"
19566 fi
drh71eb93e2001-09-28 01:34:43 +000019567fi
19568
a.rottmann84e63352003-03-24 09:42:16 +000019569
drh75897232000-05-29 14:26:00 +000019570
drh297ecf12001-04-05 15:57:13 +000019571##########
dougcurrie0f290bf2004-06-21 18:57:29 +000019572# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000019573#
mlcreech94984912008-03-04 19:03:08 +000019574# Check whether --enable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000019575if test "${enable_threadsafe+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019576 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000019577else
drh5a3032b2007-09-03 16:12:09 +000019578 enable_threadsafe=yes
mlcreech94984912008-03-04 19:03:08 +000019579fi
19580
19581{ echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
19582echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000019583if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000019584 SQLITE_THREADSAFE=0
mlcreech94984912008-03-04 19:03:08 +000019585 { echo "$as_me:$LINENO: result: no" >&5
19586echo "${ECHO_T}no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019587else
drh5a3032b2007-09-03 16:12:09 +000019588 SQLITE_THREADSAFE=1
mlcreech94984912008-03-04 19:03:08 +000019589 { echo "$as_me:$LINENO: result: yes" >&5
19590echo "${ECHO_T}yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019591fi
19592
a.rottmann964dbb12004-02-26 19:47:42 +000019593
drh5a3032b2007-09-03 16:12:09 +000019594if test "$SQLITE_THREADSAFE" = "1"; then
dougcurrie65623c72004-09-20 14:57:23 +000019595 LIBS=""
19596
mlcreech94984912008-03-04 19:03:08 +000019597{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19598echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
dougcurrie65623c72004-09-20 14:57:23 +000019599if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19601else
19602 ac_check_lib_save_LIBS=$LIBS
19603LIBS="-lpthread $LIBS"
19604cat >conftest.$ac_ext <<_ACEOF
19605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
19609/* end confdefs.h. */
19610
mlcreech94984912008-03-04 19:03:08 +000019611/* Override any GCC internal prototype to avoid an error.
19612 Use char because int might match the return type of a GCC
19613 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000019614#ifdef __cplusplus
19615extern "C"
19616#endif
dougcurrie65623c72004-09-20 14:57:23 +000019617char pthread_create ();
19618int
19619main ()
19620{
mlcreech94984912008-03-04 19:03:08 +000019621return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000019622 ;
19623 return 0;
19624}
19625_ACEOF
19626rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000019627if { (ac_try="$ac_link"
19628case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631esac
19632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_link") 2>conftest.er1
dougcurrie65623c72004-09-20 14:57:23 +000019634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019639 (exit $ac_status); } && {
19640 test -z "$ac_c_werror_flag" ||
19641 test ! -s conftest.err
19642 } && test -s conftest$ac_exeext &&
19643 $as_test_x conftest$ac_exeext; then
dougcurrie65623c72004-09-20 14:57:23 +000019644 ac_cv_lib_pthread_pthread_create=yes
19645else
19646 echo "$as_me: failed program was:" >&5
19647sed 's/^/| /' conftest.$ac_ext >&5
19648
mlcreech94984912008-03-04 19:03:08 +000019649 ac_cv_lib_pthread_pthread_create=no
dougcurrie65623c72004-09-20 14:57:23 +000019650fi
mlcreech94984912008-03-04 19:03:08 +000019651
19652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
dougcurrie65623c72004-09-20 14:57:23 +000019653 conftest$ac_exeext conftest.$ac_ext
19654LIBS=$ac_check_lib_save_LIBS
19655fi
mlcreech94984912008-03-04 19:03:08 +000019656{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19657echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
dougcurrie65623c72004-09-20 14:57:23 +000019658if test $ac_cv_lib_pthread_pthread_create = yes; then
19659 cat >>confdefs.h <<_ACEOF
19660#define HAVE_LIBPTHREAD 1
19661_ACEOF
19662
19663 LIBS="-lpthread $LIBS"
19664
19665fi
19666
19667 TARGET_THREAD_LIB="$LIBS"
19668 LIBS=""
19669else
19670 TARGET_THREAD_LIB=""
19671fi
19672
19673
xdong28f79f72003-09-23 00:35:21 +000019674##########
drh91636d52005-11-24 23:14:00 +000019675# Do we want to allow a connection created in one thread to be used
19676# in another thread. This does not work on many Linux systems (ex: RedHat 9)
19677# due to bugs in the threading implementations. This is thus off by default.
19678#
mlcreech94984912008-03-04 19:03:08 +000019679# Check whether --enable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000019680if test "${enable_cross_thread_connections+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019681 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000019682else
19683 enable_xthreadconnect=no
mlcreech94984912008-03-04 19:03:08 +000019684fi
19685
19686{ echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
19687echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6; }
drh91636d52005-11-24 23:14:00 +000019688if test "$enable_xthreadconnect" = "no"; then
19689 XTHREADCONNECT=''
mlcreech94984912008-03-04 19:03:08 +000019690 { echo "$as_me:$LINENO: result: no" >&5
19691echo "${ECHO_T}no" >&6; }
drh91636d52005-11-24 23:14:00 +000019692else
19693 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
mlcreech94984912008-03-04 19:03:08 +000019694 { echo "$as_me:$LINENO: result: yes" >&5
19695echo "${ECHO_T}yes" >&6; }
drh91636d52005-11-24 23:14:00 +000019696fi
19697
19698
19699##########
drh8e2e2a12006-02-01 01:55:17 +000019700# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
19701# default. Normally, a test at runtime is performed to determine the
19702# appropriate value of this variable. Use this option only if you're sure that
19703# threads can safely override each others locks in all runtime situations.
19704#
mlcreech94984912008-03-04 19:03:08 +000019705# Check whether --enable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000019706if test "${enable_threads_override_locks+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019707 enableval=$enable_threads_override_locks;
drh8e2e2a12006-02-01 01:55:17 +000019708else
19709 enable_threads_override_locks=no
mlcreech94984912008-03-04 19:03:08 +000019710fi
19711
19712{ echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
19713echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019714if test "$enable_threads_override_locks" = "no"; then
19715 THREADSOVERRIDELOCKS='-1'
mlcreech94984912008-03-04 19:03:08 +000019716 { echo "$as_me:$LINENO: result: no" >&5
19717echo "${ECHO_T}no" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019718else
19719 THREADSOVERRIDELOCKS='1'
mlcreech94984912008-03-04 19:03:08 +000019720 { echo "$as_me:$LINENO: result: yes" >&5
19721echo "${ECHO_T}yes" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019722fi
19723
19724
19725##########
xdong28f79f72003-09-23 00:35:21 +000019726# Do we want to support release
19727#
mlcreech94984912008-03-04 19:03:08 +000019728# Check whether --enable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000019729if test "${enable_releasemode+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019730 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000019731else
19732 enable_releasemode=no
mlcreech94984912008-03-04 19:03:08 +000019733fi
19734
19735{ echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19736echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019737if test "$enable_releasemode" = "no"; then
19738 ALLOWRELEASE=""
mlcreech94984912008-03-04 19:03:08 +000019739 { echo "$as_me:$LINENO: result: no" >&5
19740echo "${ECHO_T}no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019741else
drh0b47d342007-11-27 14:50:06 +000019742 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
mlcreech94984912008-03-04 19:03:08 +000019743 { echo "$as_me:$LINENO: result: yes" >&5
19744echo "${ECHO_T}yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019745fi
paulb0208cc2003-04-13 18:26:49 +000019746
a.rottmann964dbb12004-02-26 19:47:42 +000019747
paulb0208cc2003-04-13 18:26:49 +000019748##########
19749# Do we want temporary databases in memory
19750#
mlcreech94984912008-03-04 19:03:08 +000019751# Check whether --enable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000019752if test "${enable_tempstore+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019753 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000019754else
drh54414bb2005-10-10 00:05:50 +000019755 enable_tempstore=no
mlcreech94984912008-03-04 19:03:08 +000019756fi
19757
19758{ echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19759echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000019760case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000019761 never )
paul2dc96f92003-04-20 11:46:34 +000019762 TEMP_STORE=0
mlcreech94984912008-03-04 19:03:08 +000019763 { echo "$as_me:$LINENO: result: never" >&5
19764echo "${ECHO_T}never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019765 ;;
19766 no )
paul2dc96f92003-04-20 11:46:34 +000019767 TEMP_STORE=1
mlcreech94984912008-03-04 19:03:08 +000019768 { echo "$as_me:$LINENO: result: no" >&5
19769echo "${ECHO_T}no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019770 ;;
19771 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000019772 TEMP_STORE=3
mlcreech94984912008-03-04 19:03:08 +000019773 { echo "$as_me:$LINENO: result: always" >&5
19774echo "${ECHO_T}always" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019775 ;;
drh54414bb2005-10-10 00:05:50 +000019776 yes )
19777 TEMP_STORE=3
mlcreech94984912008-03-04 19:03:08 +000019778 { echo "$as_me:$LINENO: result: always" >&5
19779echo "${ECHO_T}always" >&6; }
drh54414bb2005-10-10 00:05:50 +000019780 ;;
paulb0208cc2003-04-13 18:26:49 +000019781 * )
drh54414bb2005-10-10 00:05:50 +000019782 TEMP_STORE=1
mlcreech94984912008-03-04 19:03:08 +000019783 { echo "$as_me:$LINENO: result: yes" >&5
19784echo "${ECHO_T}yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019785 ;;
19786esac
19787
19788
19789
drh75897232000-05-29 14:26:00 +000019790###########
19791# Lots of things are different if we are compiling for Windows using
19792# the CYGWIN environment. So check for that special case and handle
19793# things accordingly.
19794#
mlcreech94984912008-03-04 19:03:08 +000019795{ echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
19796echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6; }
drh75897232000-05-29 14:26:00 +000019797if test "$config_BUILD_EXEEXT" = ".exe"; then
19798 CYGWIN=yes
mlcreech94984912008-03-04 19:03:08 +000019799 { echo "$as_me:$LINENO: result: yes" >&5
19800echo "${ECHO_T}yes" >&6; }
drh75897232000-05-29 14:26:00 +000019801else
mlcreech94984912008-03-04 19:03:08 +000019802 { echo "$as_me:$LINENO: result: unknown" >&5
19803echo "${ECHO_T}unknown" >&6; }
drh75897232000-05-29 14:26:00 +000019804fi
19805if test "$CYGWIN" != "yes"; then
mlcreech94984912008-03-04 19:03:08 +000019806 { echo "$as_me:$LINENO: checking host system type" >&5
19807echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19808if test "${ac_cv_host+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810else
19811 if test "x$host_alias" = x; then
19812 ac_cv_host=$ac_cv_build
19813else
19814 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19816echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19817 { (exit 1); exit 1; }; }
19818fi
19819
19820fi
19821{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19822echo "${ECHO_T}$ac_cv_host" >&6; }
19823case $ac_cv_host in
19824*-*-*) ;;
19825*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19826echo "$as_me: error: invalid value of canonical host" >&2;}
19827 { (exit 1); exit 1; }; };;
19828esac
19829host=$ac_cv_host
19830ac_save_IFS=$IFS; IFS='-'
19831set x $ac_cv_host
19832shift
19833host_cpu=$1
19834host_vendor=$2
19835shift; shift
19836# Remember, the first character of IFS is used to create $*,
19837# except with old shells:
19838host_os=$*
19839IFS=$ac_save_IFS
19840case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19841
a.rottmann84e63352003-03-24 09:42:16 +000019842
19843case $host_os in
drh71eb93e2001-09-28 01:34:43 +000019844 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000019845 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000019846esac
drh75897232000-05-29 14:26:00 +000019847
drh75897232000-05-29 14:26:00 +000019848fi
19849if test "$CYGWIN" = "yes"; then
19850 BUILD_EXEEXT=.exe
19851else
dougcurrie6194a5f2003-12-19 20:09:51 +000019852 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000019853fi
vapier7f19c022007-02-17 14:46:31 +000019854if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000019855 TARGET_EXEEXT=$BUILD_EXEEXT
19856else
19857 TARGET_EXEEXT=$config_TARGET_EXEEXT
19858fi
19859if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000019860 if test $OS2_SHELL ; then
19861 OS_UNIX=0
19862 OS_WIN=0
19863 OS_OS2=1
19864 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
19865 if test "$ac_compiler_gnu" == "yes" ; then
19866 TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
19867 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
19868 fi
19869 else
19870 OS_UNIX=0
19871 OS_WIN=1
19872 OS_OS2=0
19873 tclsubdir=win
19874 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
19875 fi
drh75897232000-05-29 14:26:00 +000019876else
19877 OS_UNIX=1
19878 OS_WIN=0
drh60a1e4b2006-06-03 18:02:15 +000019879 OS_OS2=0
drh75897232000-05-29 14:26:00 +000019880 tclsubdir=unix
dougcurrie0f290bf2004-06-21 18:57:29 +000019881 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000019882fi
drh75897232000-05-29 14:26:00 +000019883
a.rottmann84e63352003-03-24 09:42:16 +000019884
19885
19886
19887
19888
drh75897232000-05-29 14:26:00 +000019889
drh75897232000-05-29 14:26:00 +000019890##########
drh7b5717e2004-11-25 13:50:01 +000019891# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000019892#
drh7b5717e2004-11-25 13:50:01 +000019893# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
19894# macros in the in the tcl.m4 file of the standard TCL distribution.
19895# Those macros could not be used directly since we have to make some
19896# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000019897#
mlcreech94984912008-03-04 19:03:08 +000019898# Check whether --enable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000019899if test "${enable_tcl+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019900 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000019901else
drh7b5717e2004-11-25 13:50:01 +000019902 use_tcl=yes
mlcreech94984912008-03-04 19:03:08 +000019903fi
19904
drh7b5717e2004-11-25 13:50:01 +000019905if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000019906
mlcreech94984912008-03-04 19:03:08 +000019907# Check whether --with-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000019908if test "${with_tcl+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019909 withval=$with_tcl; with_tclconfig=${withval}
19910fi
19911
19912 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19913echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019914 if test "${ac_cv_c_tclconfig+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +000019915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916else
a.rottmann84e63352003-03-24 09:42:16 +000019917
drh7b5717e2004-11-25 13:50:01 +000019918 # First check to see if --with-tcl was specified.
19919 if test x"${with_tclconfig}" != x ; then
19920 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19921 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19922 else
19923 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19924echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000019925 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000019926 fi
19927 fi
19928 # then check for a private Tcl installation
19929 if test x"${ac_cv_c_tclconfig}" = x ; then
19930 for i in \
19931 ../tcl \
19932 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19933 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19934 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19935 ../../tcl \
19936 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19937 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19938 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19939 ../../../tcl \
19940 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19941 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19942 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
19943 do
19944 if test -f "$i/unix/tclConfig.sh" ; then
19945 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19946 break
19947 fi
19948 done
19949 fi
19950
19951 # check in a few common install locations
19952 if test x"${ac_cv_c_tclconfig}" = x ; then
19953 for i in \
19954 `ls -d ${libdir} 2>/dev/null` \
19955 `ls -d /usr/local/lib 2>/dev/null` \
19956 `ls -d /usr/contrib/lib 2>/dev/null` \
19957 `ls -d /usr/lib 2>/dev/null`
19958 do
19959 if test -f "$i/tclConfig.sh" ; then
19960 ac_cv_c_tclconfig=`(cd $i; pwd)`
19961 break
19962 fi
19963 done
19964 fi
19965
19966 # check in a few other private locations
19967 if test x"${ac_cv_c_tclconfig}" = x ; then
19968 for i in \
19969 ${srcdir}/../tcl \
19970 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19971 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19972 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
19973 do
19974 if test -f "$i/unix/tclConfig.sh" ; then
19975 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19976 break
19977 fi
19978 done
19979 fi
19980
drh75897232000-05-29 14:26:00 +000019981fi
19982
drh7b5717e2004-11-25 13:50:01 +000019983
19984 if test x"${ac_cv_c_tclconfig}" = x ; then
19985 use_tcl=no
19986 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19987echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19988 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
19989echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
19991echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
19992 else
19993 TCL_BIN_DIR=${ac_cv_c_tclconfig}
mlcreech94984912008-03-04 19:03:08 +000019994 { echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
19995echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019996
mlcreech94984912008-03-04 19:03:08 +000019997 { echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
19998echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019999 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
mlcreech94984912008-03-04 19:03:08 +000020000 { echo "$as_me:$LINENO: result: loading" >&5
20001echo "${ECHO_T}loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000020002 . $TCL_BIN_DIR/tclConfig.sh
20003 else
mlcreech94984912008-03-04 19:03:08 +000020004 { echo "$as_me:$LINENO: result: file not found" >&5
20005echo "${ECHO_T}file not found" >&6; }
drh75897232000-05-29 14:26:00 +000020006 fi
drh7b5717e2004-11-25 13:50:01 +000020007
20008 #
20009 # If the TCL_BIN_DIR is the build directory (not the install directory),
20010 # then set the common variable name to the value of the build variables.
20011 # For example, the variable TCL_LIB_SPEC will be set to the value
20012 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20013 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20014 # installed and uninstalled version of Tcl.
20015 #
20016
20017 if test -f $TCL_BIN_DIR/Makefile ; then
20018 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20019 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20020 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20021 fi
20022
20023 #
20024 # eval is required to do the TCL_DBGX substitution
20025 #
20026
20027 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20028 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20029 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20030
20031 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20032 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20033 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048 fi
drh75897232000-05-29 14:26:00 +000020049fi
drh7b5717e2004-11-25 13:50:01 +000020050if test "${use_tcl}" = "no" ; then
20051 HAVE_TCL=""
20052else
20053 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000020054fi
drh75897232000-05-29 14:26:00 +000020055
a.rottmann84e63352003-03-24 09:42:16 +000020056
drh75897232000-05-29 14:26:00 +000020057##########
20058# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000020059# that use "readline()" library.
20060#
vapier7f19c022007-02-17 14:46:31 +000020061TARGET_READLINE_LIBS=""
20062TARGET_READLINE_INC=""
20063TARGET_HAVE_READLINE=0
mlcreech94984912008-03-04 19:03:08 +000020064# Check whether --enable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000020065if test "${enable_readline+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020066 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000020067else
vapier7f19c022007-02-17 14:46:31 +000020068 with_readline=auto
mlcreech94984912008-03-04 19:03:08 +000020069fi
20070
vapier7f19c022007-02-17 14:46:31 +000020071
20072if test x"$with_readline" != xno; then
20073 found="yes"
20074
20075
mlcreech94984912008-03-04 19:03:08 +000020076# Check whether --with-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000020077if test "${with_readline_lib+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020078 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000020079else
20080 with_readline_lib="auto"
mlcreech94984912008-03-04 19:03:08 +000020081fi
20082
vapier7f19c022007-02-17 14:46:31 +000020083 if test "x$with_readline_lib" = xauto; then
20084 save_LIBS="$LIBS"
20085 LIBS=""
mlcreech94984912008-03-04 19:03:08 +000020086 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
20087echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
paul38372372003-04-22 08:04:49 +000020088if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000020089 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020090else
drh71eb93e2001-09-28 01:34:43 +000020091 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000020092cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000020093/* confdefs.h. */
20094_ACEOF
20095cat confdefs.h >>conftest.$ac_ext
20096cat >>conftest.$ac_ext <<_ACEOF
20097/* end confdefs.h. */
20098
mlcreech94984912008-03-04 19:03:08 +000020099/* Override any GCC internal prototype to avoid an error.
20100 Use char because int might match the return type of a GCC
20101 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000020102#ifdef __cplusplus
20103extern "C"
20104#endif
paul38372372003-04-22 08:04:49 +000020105char tgetent ();
20106int
20107main ()
20108{
mlcreech94984912008-03-04 19:03:08 +000020109return tgetent ();
paul38372372003-04-22 08:04:49 +000020110 ;
20111 return 0;
20112}
20113_ACEOF
mlcreech94984912008-03-04 19:03:08 +000020114for ac_lib in '' readline ncurses curses termcap; do
20115 if test -z "$ac_lib"; then
20116 ac_res="none required"
20117 else
20118 ac_res=-l$ac_lib
drh613a0fe2007-11-23 17:31:17 +000020119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
mlcreech94984912008-03-04 19:03:08 +000020120 fi
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122if { (ac_try="$ac_link"
20123case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20126esac
20127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_link") 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000020129 ac_status=$?
20130 grep -v '^ *+' conftest.er1 >conftest.err
20131 rm -f conftest.er1
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest$ac_exeext &&
20138 $as_test_x conftest$ac_exeext; then
20139 ac_cv_search_tgetent=$ac_res
vapier7f19c022007-02-17 14:46:31 +000020140else
drh613a0fe2007-11-23 17:31:17 +000020141 echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
20143
mlcreech94984912008-03-04 19:03:08 +000020144
vapier7f19c022007-02-17 14:46:31 +000020145fi
mlcreech94984912008-03-04 19:03:08 +000020146
20147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20148 conftest$ac_exeext
20149 if test "${ac_cv_search_tgetent+set}" = set; then
20150 break
drh613a0fe2007-11-23 17:31:17 +000020151fi
mlcreech94984912008-03-04 19:03:08 +000020152done
20153if test "${ac_cv_search_tgetent+set}" = set; then
20154 :
20155else
20156 ac_cv_search_tgetent=no
20157fi
20158rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020159LIBS=$ac_func_search_save_LIBS
20160fi
mlcreech94984912008-03-04 19:03:08 +000020161{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
20162echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
20163ac_res=$ac_cv_search_tgetent
20164if test "$ac_res" != no; then
20165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000020166 term_LIBS="$LIBS"
20167else
20168 term_LIBS=""
paul38372372003-04-22 08:04:49 +000020169fi
20170
mlcreech94984912008-03-04 19:03:08 +000020171 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20172echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
paul38372372003-04-22 08:04:49 +000020173if test "${ac_cv_lib_readline_readline+set}" = set; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20175else
20176 ac_check_lib_save_LIBS=$LIBS
20177LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020178cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020179/* confdefs.h. */
20180_ACEOF
20181cat confdefs.h >>conftest.$ac_ext
20182cat >>conftest.$ac_ext <<_ACEOF
20183/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000020184
mlcreech94984912008-03-04 19:03:08 +000020185/* Override any GCC internal prototype to avoid an error.
20186 Use char because int might match the return type of a GCC
20187 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000020188#ifdef __cplusplus
20189extern "C"
20190#endif
drh71eb93e2001-09-28 01:34:43 +000020191char readline ();
20192int
20193main ()
20194{
mlcreech94984912008-03-04 19:03:08 +000020195return readline ();
drh71eb93e2001-09-28 01:34:43 +000020196 ;
20197 return 0;
20198}
20199_ACEOF
20200rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000020201if { (ac_try="$ac_link"
20202case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20205esac
20206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020208 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020209 grep -v '^ *+' conftest.er1 >conftest.err
20210 rm -f conftest.er1
20211 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020213 (exit $ac_status); } && {
20214 test -z "$ac_c_werror_flag" ||
20215 test ! -s conftest.err
20216 } && test -s conftest$ac_exeext &&
20217 $as_test_x conftest$ac_exeext; then
paul38372372003-04-22 08:04:49 +000020218 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000020219else
drh71eb93e2001-09-28 01:34:43 +000020220 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020221sed 's/^/| /' conftest.$ac_ext >&5
20222
mlcreech94984912008-03-04 19:03:08 +000020223 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000020224fi
mlcreech94984912008-03-04 19:03:08 +000020225
20226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000020227 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020228LIBS=$ac_check_lib_save_LIBS
20229fi
mlcreech94984912008-03-04 19:03:08 +000020230{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20231echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
paul38372372003-04-22 08:04:49 +000020232if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000020233 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000020234else
vapier7f19c022007-02-17 14:46:31 +000020235 found="no"
20236fi
drhf1878b42006-01-23 18:06:52 +000020237
vapier7f19c022007-02-17 14:46:31 +000020238 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
20239 LIBS="$save_LIBS"
20240 else
20241 TARGET_READLINE_LIBS="$with_readline_lib"
20242 fi
20243
20244
mlcreech94984912008-03-04 19:03:08 +000020245# Check whether --with-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000020246if test "${with_readline_inc+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020247 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000020248else
vapier7f19c022007-02-17 14:46:31 +000020249 with_readline_inc="auto"
mlcreech94984912008-03-04 19:03:08 +000020250fi
20251
vapier7f19c022007-02-17 14:46:31 +000020252 if test "x$with_readline_inc" = xauto; then
20253 if test "${ac_cv_header_readline_h+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020254 { echo "$as_me:$LINENO: checking for readline.h" >&5
20255echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000020256if test "${ac_cv_header_readline_h+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020258fi
mlcreech94984912008-03-04 19:03:08 +000020259{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20260echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
drh75897232000-05-29 14:26:00 +000020261else
a.rottmann84e63352003-03-24 09:42:16 +000020262 # Is the header compilable?
mlcreech94984912008-03-04 19:03:08 +000020263{ echo "$as_me:$LINENO: checking readline.h usability" >&5
20264echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020265cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020266/* confdefs.h. */
20267_ACEOF
20268cat confdefs.h >>conftest.$ac_ext
20269cat >>conftest.$ac_ext <<_ACEOF
20270/* end confdefs.h. */
20271$ac_includes_default
drh75897232000-05-29 14:26:00 +000020272#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000020273_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020274rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +000020275if { (ac_try="$ac_compile"
20276case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279esac
20280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000020282 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +000020291 ac_header_compiler=yes
20292else
20293 echo "$as_me: failed program was:" >&5
20294sed 's/^/| /' conftest.$ac_ext >&5
20295
mlcreech94984912008-03-04 19:03:08 +000020296 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000020297fi
mlcreech94984912008-03-04 19:03:08 +000020298
20299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20300{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20301echo "${ECHO_T}$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020302
20303# Is the header present?
mlcreech94984912008-03-04 19:03:08 +000020304{ echo "$as_me:$LINENO: checking readline.h presence" >&5
20305echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020306cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312#include <readline.h>
20313_ACEOF
mlcreech94984912008-03-04 19:03:08 +000020314if { (ac_try="$ac_cpp conftest.$ac_ext"
20315case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20318esac
20319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020321 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020322 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000020323 rm -f conftest.er1
20324 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020326 (exit $ac_status); } >/dev/null && {
20327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20328 test ! -s conftest.err
20329 }; then
a.rottmann84e63352003-03-24 09:42:16 +000020330 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000020331else
20332 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020333sed 's/^/| /' conftest.$ac_ext >&5
20334
20335 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000020336fi
mlcreech94984912008-03-04 19:03:08 +000020337
drh71eb93e2001-09-28 01:34:43 +000020338rm -f conftest.err conftest.$ac_ext
mlcreech94984912008-03-04 19:03:08 +000020339{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20340echo "${ECHO_T}$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020341
20342# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000020343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20344 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000020345 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
20346echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020347 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
20348echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
20349 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000020350 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000020351 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000020352 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
20353echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020354 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
20355echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
20357echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
20359echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020360 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
20361echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020362 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
20363echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
mlcreech94984912008-03-04 19:03:08 +000020364
a.rottmann84e63352003-03-24 09:42:16 +000020365 ;;
20366esac
mlcreech94984912008-03-04 19:03:08 +000020367{ echo "$as_me:$LINENO: checking for readline.h" >&5
20368echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020369if test "${ac_cv_header_readline_h+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20371else
20372 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000020373fi
mlcreech94984912008-03-04 19:03:08 +000020374{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20375echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020376
20377fi
drh71eb93e2001-09-28 01:34:43 +000020378if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000020379 found="yes"
20380else
drh75897232000-05-29 14:26:00 +000020381
vapier7f19c022007-02-17 14:46:31 +000020382 found="no"
20383 if test "$cross_compiling" != yes; then
20384 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
20385 for subdir in include include/readline; do
20386 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +000020387{ echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
20388echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6; }
20389if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
drh71eb93e2001-09-28 01:34:43 +000020390 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020391else
20392 test "$cross_compiling" = yes &&
20393 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20394echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20395 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000020396if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000020397 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020398else
drh71eb93e2001-09-28 01:34:43 +000020399 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020400fi
20401fi
mlcreech94984912008-03-04 19:03:08 +000020402ac_res=`eval echo '${'$as_ac_File'}'`
20403 { echo "$as_me:$LINENO: result: $ac_res" >&5
20404echo "${ECHO_T}$ac_res" >&6; }
drh71eb93e2001-09-28 01:34:43 +000020405if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020406 found=yes
drh75897232000-05-29 14:26:00 +000020407fi
20408
vapier7f19c022007-02-17 14:46:31 +000020409 if test "$found" = "yes"; then
20410 TARGET_READLINE_INC="-I$dir/$subdir"
20411 break
20412 fi
20413 done
20414 test "$found" = "yes" && break
20415 done
20416 fi
20417
20418fi
20419
20420
20421 else
20422 TARGET_READLINE_INC="$with_readline_inc"
20423 fi
20424
20425 if test x"$found" = xno; then
20426 TARGET_READLINE_LIBS=""
20427 TARGET_READLINE_INC=""
20428 TARGET_HAVE_READLINE=0
20429 else
20430 TARGET_HAVE_READLINE=1
20431 fi
20432fi
20433
20434
20435
20436
20437
20438##########
20439# Figure out what C libraries are required to compile programs
20440# that use "fdatasync()" function.
20441#
mlcreech94984912008-03-04 19:03:08 +000020442{ echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
20443echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000020444if test "${ac_cv_search_fdatasync+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000020445 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020446else
vapier7f19c022007-02-17 14:46:31 +000020447 ac_func_search_save_LIBS=$LIBS
20448cat >conftest.$ac_ext <<_ACEOF
20449/* confdefs.h. */
20450_ACEOF
20451cat confdefs.h >>conftest.$ac_ext
20452cat >>conftest.$ac_ext <<_ACEOF
20453/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000020454
mlcreech94984912008-03-04 19:03:08 +000020455/* Override any GCC internal prototype to avoid an error.
20456 Use char because int might match the return type of a GCC
20457 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000020458#ifdef __cplusplus
20459extern "C"
20460#endif
20461char fdatasync ();
20462int
20463main ()
20464{
mlcreech94984912008-03-04 19:03:08 +000020465return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000020466 ;
20467 return 0;
20468}
20469_ACEOF
mlcreech94984912008-03-04 19:03:08 +000020470for ac_lib in '' rt; do
20471 if test -z "$ac_lib"; then
20472 ac_res="none required"
20473 else
20474 ac_res=-l$ac_lib
drh613a0fe2007-11-23 17:31:17 +000020475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
mlcreech94984912008-03-04 19:03:08 +000020476 fi
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478if { (ac_try="$ac_link"
20479case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482esac
20483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000020485 ac_status=$?
20486 grep -v '^ *+' conftest.er1 >conftest.err
20487 rm -f conftest.er1
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest$ac_exeext &&
20494 $as_test_x conftest$ac_exeext; then
20495 ac_cv_search_fdatasync=$ac_res
vapier7f19c022007-02-17 14:46:31 +000020496else
drh613a0fe2007-11-23 17:31:17 +000020497 echo "$as_me: failed program was:" >&5
20498sed 's/^/| /' conftest.$ac_ext >&5
20499
mlcreech94984912008-03-04 19:03:08 +000020500
vapier7f19c022007-02-17 14:46:31 +000020501fi
mlcreech94984912008-03-04 19:03:08 +000020502
20503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504 conftest$ac_exeext
20505 if test "${ac_cv_search_fdatasync+set}" = set; then
20506 break
drh613a0fe2007-11-23 17:31:17 +000020507fi
mlcreech94984912008-03-04 19:03:08 +000020508done
20509if test "${ac_cv_search_fdatasync+set}" = set; then
20510 :
20511else
20512 ac_cv_search_fdatasync=no
20513fi
20514rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000020515LIBS=$ac_func_search_save_LIBS
20516fi
mlcreech94984912008-03-04 19:03:08 +000020517{ echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
20518echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
20519ac_res=$ac_cv_search_fdatasync
20520if test "$ac_res" != no; then
20521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000020522
vapier7f19c022007-02-17 14:46:31 +000020523fi
20524
a.rottmann84e63352003-03-24 09:42:16 +000020525
drh75897232000-05-29 14:26:00 +000020526#########
tpoindex9d9f76c2005-01-03 21:28:56 +000020527# check for debug enabled
mlcreech94984912008-03-04 19:03:08 +000020528# Check whether --enable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000020529if test "${enable_debug+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020530 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000020531else
20532 use_debug=no
mlcreech94984912008-03-04 19:03:08 +000020533fi
20534
tpoindex9d9f76c2005-01-03 21:28:56 +000020535if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000020536 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000020537else
20538 TARGET_DEBUG="-DNDEBUG"
20539fi
20540
20541
20542#########
mlcreech94984912008-03-04 19:03:08 +000020543# See whether we should use the amalgamation to build
20544# Check whether --enable-amalgamation was given.
20545if test "${enable_amalgamation+set}" = set; then
20546 enableval=$enable_amalgamation; use_amalgamation=$enableval
20547else
20548 use_amalgamation=yes
20549fi
20550
20551if test "${use_amalgamation}" = "yes" ; then
20552 USE_AMALGAMATION=1
20553else
20554 USE_AMALGAMATION=0
20555fi
20556
20557
20558#########
mlcreecha4edab02008-03-06 04:14:17 +000020559# See whether we should allow loadable extensions
20560# Check whether --enable-load-extension was given.
20561if test "${enable_load_extension+set}" = set; then
20562 enableval=$enable_load_extension; use_loadextension=$enableval
20563else
20564 use_loadextension=no
20565fi
20566
20567if test "${use_loadextension}" = "yes" ; then
20568 LOADEXTENSION_FLAGS=""
20569else
20570 LOADEXTENSION_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
20571fi
20572
20573
20574#########
drh2dfbbca2000-07-28 14:32:48 +000020575# Figure out whether or not we have a "usleep()" function.
20576#
mlcreech94984912008-03-04 19:03:08 +000020577{ echo "$as_me:$LINENO: checking for usleep" >&5
20578echo $ECHO_N "checking for usleep... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000020579if test "${ac_cv_func_usleep+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000020581else
drh71eb93e2001-09-28 01:34:43 +000020582 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020583/* confdefs.h. */
20584_ACEOF
20585cat confdefs.h >>conftest.$ac_ext
20586cat >>conftest.$ac_ext <<_ACEOF
20587/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000020588/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
20589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20590#define usleep innocuous_usleep
20591
drh2dfbbca2000-07-28 14:32:48 +000020592/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000020593 which can conflict with char usleep (); below.
20594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20595 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000020596
a.rottmann84e63352003-03-24 09:42:16 +000020597#ifdef __STDC__
20598# include <limits.h>
20599#else
20600# include <assert.h>
20601#endif
a.rottmann964dbb12004-02-26 19:47:42 +000020602
20603#undef usleep
20604
mlcreech94984912008-03-04 19:03:08 +000020605/* Override any GCC internal prototype to avoid an error.
20606 Use char because int might match the return type of a GCC
20607 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000020608#ifdef __cplusplus
20609extern "C"
20610#endif
drh71eb93e2001-09-28 01:34:43 +000020611char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000020612/* The GNU C library defines this for functions which it implements
20613 to always fail with ENOSYS. Some functions are actually named
20614 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +000020615#if defined __stub_usleep || defined __stub___usleep
drh2dfbbca2000-07-28 14:32:48 +000020616choke me
drh2dfbbca2000-07-28 14:32:48 +000020617#endif
20618
a.rottmann84e63352003-03-24 09:42:16 +000020619int
20620main ()
20621{
mlcreech94984912008-03-04 19:03:08 +000020622return usleep ();
drh71eb93e2001-09-28 01:34:43 +000020623 ;
20624 return 0;
20625}
20626_ACEOF
20627rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000020628if { (ac_try="$ac_link"
20629case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20632esac
20633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020635 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020636 grep -v '^ *+' conftest.er1 >conftest.err
20637 rm -f conftest.er1
20638 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020640 (exit $ac_status); } && {
20641 test -z "$ac_c_werror_flag" ||
20642 test ! -s conftest.err
20643 } && test -s conftest$ac_exeext &&
20644 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +000020645 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000020646else
drh71eb93e2001-09-28 01:34:43 +000020647 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020648sed 's/^/| /' conftest.$ac_ext >&5
20649
mlcreech94984912008-03-04 19:03:08 +000020650 ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000020651fi
mlcreech94984912008-03-04 19:03:08 +000020652
20653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000020654 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000020655fi
mlcreech94984912008-03-04 19:03:08 +000020656{ echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
20657echo "${ECHO_T}$ac_cv_func_usleep" >&6; }
drh71eb93e2001-09-28 01:34:43 +000020658if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000020659 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000020660fi
20661
a.rottmann84e63352003-03-24 09:42:16 +000020662
drhaf6edf52005-10-04 18:38:49 +000020663#--------------------------------------------------------------------
20664# Redefine fdatasync as fsync on systems that lack fdatasync
20665#--------------------------------------------------------------------
20666
mlcreech94984912008-03-04 19:03:08 +000020667{ echo "$as_me:$LINENO: checking for fdatasync" >&5
20668echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
drhaf6edf52005-10-04 18:38:49 +000020669if test "${ac_cv_func_fdatasync+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671else
20672 cat >conftest.$ac_ext <<_ACEOF
20673/* confdefs.h. */
20674_ACEOF
20675cat confdefs.h >>conftest.$ac_ext
20676cat >>conftest.$ac_ext <<_ACEOF
20677/* end confdefs.h. */
20678/* Define fdatasync to an innocuous variant, in case <limits.h> declares fdatasync.
20679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20680#define fdatasync innocuous_fdatasync
20681
20682/* System header to define __stub macros and hopefully few prototypes,
20683 which can conflict with char fdatasync (); below.
20684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20685 <limits.h> exists even on freestanding compilers. */
20686
20687#ifdef __STDC__
20688# include <limits.h>
20689#else
20690# include <assert.h>
20691#endif
20692
20693#undef fdatasync
20694
mlcreech94984912008-03-04 19:03:08 +000020695/* Override any GCC internal prototype to avoid an error.
20696 Use char because int might match the return type of a GCC
20697 builtin and then its argument prototype would still apply. */
drhaf6edf52005-10-04 18:38:49 +000020698#ifdef __cplusplus
20699extern "C"
drhaf6edf52005-10-04 18:38:49 +000020700#endif
drhaf6edf52005-10-04 18:38:49 +000020701char fdatasync ();
20702/* The GNU C library defines this for functions which it implements
20703 to always fail with ENOSYS. Some functions are actually named
20704 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +000020705#if defined __stub_fdatasync || defined __stub___fdatasync
drhaf6edf52005-10-04 18:38:49 +000020706choke me
drhaf6edf52005-10-04 18:38:49 +000020707#endif
20708
20709int
20710main ()
20711{
mlcreech94984912008-03-04 19:03:08 +000020712return fdatasync ();
drhaf6edf52005-10-04 18:38:49 +000020713 ;
20714 return 0;
20715}
20716_ACEOF
20717rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000020718if { (ac_try="$ac_link"
20719case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20722esac
20723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724 (eval "$ac_link") 2>conftest.er1
drhaf6edf52005-10-04 18:38:49 +000020725 ac_status=$?
20726 grep -v '^ *+' conftest.er1 >conftest.err
20727 rm -f conftest.er1
20728 cat conftest.err >&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020730 (exit $ac_status); } && {
20731 test -z "$ac_c_werror_flag" ||
20732 test ! -s conftest.err
20733 } && test -s conftest$ac_exeext &&
20734 $as_test_x conftest$ac_exeext; then
drhaf6edf52005-10-04 18:38:49 +000020735 ac_cv_func_fdatasync=yes
20736else
20737 echo "$as_me: failed program was:" >&5
20738sed 's/^/| /' conftest.$ac_ext >&5
20739
mlcreech94984912008-03-04 19:03:08 +000020740 ac_cv_func_fdatasync=no
drhaf6edf52005-10-04 18:38:49 +000020741fi
mlcreech94984912008-03-04 19:03:08 +000020742
20743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
drhaf6edf52005-10-04 18:38:49 +000020744 conftest$ac_exeext conftest.$ac_ext
20745fi
mlcreech94984912008-03-04 19:03:08 +000020746{ echo "$as_me:$LINENO: result: $ac_cv_func_fdatasync" >&5
20747echo "${ECHO_T}$ac_cv_func_fdatasync" >&6; }
drhaf6edf52005-10-04 18:38:49 +000020748if test $ac_cv_func_fdatasync = yes; then
drhf2f23912005-10-05 10:29:36 +000020749 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_FDATASYNC=1"
drhaf6edf52005-10-04 18:38:49 +000020750fi
20751
20752
drh2dfbbca2000-07-28 14:32:48 +000020753#########
mlcreechb87057f2008-03-06 07:19:20 +000020754# Output the config header
20755ac_config_headers="$ac_config_headers src/config.h"
20756
20757
20758#########
drh75897232000-05-29 14:26:00 +000020759# Generate the output files.
20760#
mlcreech94984912008-03-04 19:03:08 +000020761ac_config_files="$ac_config_files Makefile sqlite3.pc"
20762
drh71eb93e2001-09-28 01:34:43 +000020763cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020764# This file is a shell script that caches the results of configure
20765# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020766# scripts and configure runs, see configure's option --config-cache.
20767# It is not useful on other systems. If it contains results you don't
20768# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020769#
drh71eb93e2001-09-28 01:34:43 +000020770# config.status only pays attention to the cache file if you give it
20771# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020772#
a.rottmann84e63352003-03-24 09:42:16 +000020773# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020774# loading this file, other *unset* `ac_cv_foo' will be assigned the
20775# following values.
20776
20777_ACEOF
20778
drh75897232000-05-29 14:26:00 +000020779# The following way of writing the cache mishandles newlines in values,
20780# but we know of no workaround that is simple, portable, and efficient.
mlcreech94984912008-03-04 19:03:08 +000020781# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000020782# Ultrix sh set writes to stderr and can't be redirected directly,
20783# and sets the high bit in the cache file unless we assign to the vars.
mlcreech94984912008-03-04 19:03:08 +000020784(
20785 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20786 eval ac_val=\$$ac_var
20787 case $ac_val in #(
20788 *${as_nl}*)
20789 case $ac_var in #(
20790 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20791echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20792 esac
20793 case $ac_var in #(
20794 _ | IFS | as_nl) ;; #(
20795 *) $as_unset $ac_var ;;
20796 esac ;;
20797 esac
20798 done
20799
drh71eb93e2001-09-28 01:34:43 +000020800 (set) 2>&1 |
mlcreech94984912008-03-04 19:03:08 +000020801 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20802 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000020803 # `set' does not quote correctly, so add quotes (double-quote
20804 # substitution turns \\\\ into \\, and sed turns \\ into \).
20805 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020806 "s/'/'\\\\''/g;
20807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mlcreech94984912008-03-04 19:03:08 +000020808 ;; #(
drh71eb93e2001-09-28 01:34:43 +000020809 *)
20810 # `set' quotes correctly as required by POSIX, so do not add quotes.
mlcreech94984912008-03-04 19:03:08 +000020811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000020812 ;;
mlcreech94984912008-03-04 19:03:08 +000020813 esac |
20814 sort
20815) |
drh71eb93e2001-09-28 01:34:43 +000020816 sed '
mlcreech94984912008-03-04 19:03:08 +000020817 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000020818 t clear
mlcreech94984912008-03-04 19:03:08 +000020819 :clear
drh71eb93e2001-09-28 01:34:43 +000020820 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20821 t end
mlcreech94984912008-03-04 19:03:08 +000020822 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20823 :end' >>confcache
20824if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20825 if test -w "$cache_file"; then
20826 test "x$cache_file" != "x/dev/null" &&
20827 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20828echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000020829 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020830 else
mlcreech94984912008-03-04 19:03:08 +000020831 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20832echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000020833 fi
20834fi
20835rm -f confcache
20836
drh75897232000-05-29 14:26:00 +000020837test "x$prefix" = xNONE && prefix=$ac_default_prefix
20838# Let make expand exec_prefix.
20839test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20840
mlcreechb87057f2008-03-06 07:19:20 +000020841DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000020842
20843ac_libobjs=
20844ac_ltlibobjs=
20845for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20846 # 1. Remove the extension, and $U if already installed.
mlcreech94984912008-03-04 19:03:08 +000020847 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20848 ac_i=`echo "$ac_i" | sed "$ac_script"`
20849 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20850 # will be set to the directory where LIBOBJS objects are built.
20851 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20852 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000020853done
20854LIBOBJS=$ac_libobjs
20855
20856LTLIBOBJS=$ac_ltlibobjs
20857
20858
20859
drh75897232000-05-29 14:26:00 +000020860: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020861ac_clean_files_save=$ac_clean_files
20862ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020863{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020864echo "$as_me: creating $CONFIG_STATUS" >&6;}
20865cat >$CONFIG_STATUS <<_ACEOF
20866#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020867# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020868# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020869# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020870# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020871
drh71eb93e2001-09-28 01:34:43 +000020872debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020873ac_cs_recheck=false
20874ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020875SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020876_ACEOF
drh75897232000-05-29 14:26:00 +000020877
drh71eb93e2001-09-28 01:34:43 +000020878cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020879## --------------------- ##
20880## M4sh Initialization. ##
20881## --------------------- ##
20882
mlcreech94984912008-03-04 19:03:08 +000020883# Be more Bourne compatible
20884DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020885if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20886 emulate sh
20887 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020888 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20889 # is contrary to our usage. Disable this feature.
20890 alias -g '${1+"$@"}'='"$@"'
mlcreech94984912008-03-04 19:03:08 +000020891 setopt NO_GLOB_SUBST
drh613a0fe2007-11-23 17:31:17 +000020892else
mlcreech94984912008-03-04 19:03:08 +000020893 case `(set -o) 2>/dev/null` in
20894 *posix*) set -o posix ;;
20895esac
20896
a.rottmann84e63352003-03-24 09:42:16 +000020897fi
20898
20899
a.rottmann84e63352003-03-24 09:42:16 +000020900
20901
mlcreech94984912008-03-04 19:03:08 +000020902# PATH needs CR
a.rottmann84e63352003-03-24 09:42:16 +000020903# Avoid depending upon Character Ranges.
20904as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20905as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20906as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20907as_cr_digits='0123456789'
20908as_cr_alnum=$as_cr_Letters$as_cr_digits
20909
20910# The user is always right.
20911if test "${PATH_SEPARATOR+set}" != set; then
20912 echo "#! /bin/sh" >conf$$.sh
20913 echo "exit 0" >>conf$$.sh
20914 chmod +x conf$$.sh
20915 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20916 PATH_SEPARATOR=';'
20917 else
20918 PATH_SEPARATOR=:
20919 fi
20920 rm -f conf$$.sh
20921fi
20922
mlcreech94984912008-03-04 19:03:08 +000020923# Support unset when possible.
20924if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20925 as_unset=unset
20926else
20927 as_unset=false
20928fi
a.rottmann84e63352003-03-24 09:42:16 +000020929
mlcreech94984912008-03-04 19:03:08 +000020930
20931# IFS
20932# We need space, tab and new line, in precisely that order. Quoting is
20933# there to prevent editors from complaining about space-tab.
20934# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20935# splitting by setting IFS to empty value.)
20936as_nl='
20937'
20938IFS=" "" $as_nl"
20939
20940# Find who we are. Look in the path if we contain no directory separator.
20941case $0 in
20942 *[\\/]* ) as_myself=$0 ;;
20943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann84e63352003-03-24 09:42:16 +000020944for as_dir in $PATH
20945do
20946 IFS=$as_save_IFS
20947 test -z "$as_dir" && as_dir=.
20948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20949done
mlcreech94984912008-03-04 19:03:08 +000020950IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000020951
mlcreech94984912008-03-04 19:03:08 +000020952 ;;
20953esac
20954# We did not find ourselves, most probably we were run as `sh COMMAND'
20955# in which case we are not to be found in the path.
20956if test "x$as_myself" = x; then
20957 as_myself=$0
20958fi
20959if test ! -f "$as_myself"; then
20960 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20961 { (exit 1); exit 1; }
20962fi
20963
20964# Work around bugs in pre-3.0 UWIN ksh.
20965for as_var in ENV MAIL MAILPATH
20966do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20967done
20968PS1='$ '
20969PS2='> '
20970PS4='+ '
20971
20972# NLS nuisances.
20973for as_var in \
20974 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20975 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20976 LC_TELEPHONE LC_TIME
drh613a0fe2007-11-23 17:31:17 +000020977do
mlcreech94984912008-03-04 19:03:08 +000020978 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20979 eval $as_var=C; export $as_var
20980 else
20981 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20982 fi
20983done
20984
20985# Required to use basename.
20986if expr a : '\(a\)' >/dev/null 2>&1 &&
20987 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20988 as_expr=expr
20989else
20990 as_expr=false
20991fi
20992
20993if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20994 as_basename=basename
20995else
20996 as_basename=false
20997fi
20998
20999
21000# Name of the executable.
21001as_me=`$as_basename -- "$0" ||
21002$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21003 X"$0" : 'X\(//\)$' \| \
21004 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21005echo X/"$0" |
21006 sed '/^.*\/\([^/][^/]*\)\/*$/{
21007 s//\1/
21008 q
21009 }
21010 /^X\/\(\/\/\)$/{
21011 s//\1/
21012 q
21013 }
21014 /^X\/\(\/\).*/{
21015 s//\1/
21016 q
21017 }
21018 s/.*/./; q'`
21019
21020# CDPATH.
21021$as_unset CDPATH
21022
21023
21024
a.rottmann84e63352003-03-24 09:42:16 +000021025 as_lineno_1=$LINENO
21026 as_lineno_2=$LINENO
a.rottmann84e63352003-03-24 09:42:16 +000021027 test "x$as_lineno_1" != "x$as_lineno_2" &&
mlcreech94984912008-03-04 19:03:08 +000021028 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +000021029
21030 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21031 # uniformly replaced by the line number. The first 'sed' inserts a
mlcreech94984912008-03-04 19:03:08 +000021032 # line-number line after each line using $LINENO; the second 'sed'
21033 # does the real work. The second script uses 'N' to pair each
21034 # line-number line with the line containing $LINENO, and appends
21035 # trailing '-' during substitution so that $LINENO is not a special
21036 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000021037 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mlcreech94984912008-03-04 19:03:08 +000021038 # scripts with optimization help from Paolo Bonzini. Blame Lee
21039 # E. McMahon (1931-1989) for sed's syntax. :-)
21040 sed -n '
21041 p
21042 /[$]LINENO/=
21043 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000021044 sed '
mlcreech94984912008-03-04 19:03:08 +000021045 s/[$]LINENO.*/&-/
21046 t lineno
21047 b
21048 :lineno
a.rottmann84e63352003-03-24 09:42:16 +000021049 N
mlcreech94984912008-03-04 19:03:08 +000021050 :loop
21051 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +000021052 t loop
mlcreech94984912008-03-04 19:03:08 +000021053 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +000021054 ' >$as_me.lineno &&
mlcreech94984912008-03-04 19:03:08 +000021055 chmod +x "$as_me.lineno" ||
21056 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +000021057 { (exit 1); exit 1; }; }
21058
21059 # Don't try to exec as it changes $[0], causing all sort of problems
21060 # (the dirname of $[0] is not the place where we might find the
mlcreech94984912008-03-04 19:03:08 +000021061 # original and so on. Autoconf is especially sensitive to this).
21062 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +000021063 # Exit status is that of the last command.
21064 exit
21065}
21066
21067
mlcreech94984912008-03-04 19:03:08 +000021068if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21069 as_dirname=dirname
21070else
21071 as_dirname=false
21072fi
21073
21074ECHO_C= ECHO_N= ECHO_T=
21075case `echo -n x` in
21076-n*)
21077 case `echo 'x\c'` in
21078 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21079 *) ECHO_C='\c';;
21080 esac;;
21081*)
21082 ECHO_N='-n';;
a.rottmann84e63352003-03-24 09:42:16 +000021083esac
drh71eb93e2001-09-28 01:34:43 +000021084
mlcreech94984912008-03-04 19:03:08 +000021085if expr a : '\(a\)' >/dev/null 2>&1 &&
21086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
drh71eb93e2001-09-28 01:34:43 +000021087 as_expr=expr
21088else
21089 as_expr=false
21090fi
21091
21092rm -f conf$$ conf$$.exe conf$$.file
mlcreech94984912008-03-04 19:03:08 +000021093if test -d conf$$.dir; then
21094 rm -f conf$$.dir/conf$$.file
21095else
21096 rm -f conf$$.dir
21097 mkdir conf$$.dir
21098fi
drh71eb93e2001-09-28 01:34:43 +000021099echo >conf$$.file
21100if ln -s conf$$.file conf$$ 2>/dev/null; then
mlcreech94984912008-03-04 19:03:08 +000021101 as_ln_s='ln -s'
21102 # ... but there are two gotchas:
21103 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21104 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21105 # In both cases, we have to default to `cp -p'.
21106 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drh71eb93e2001-09-28 01:34:43 +000021107 as_ln_s='cp -p'
drh71eb93e2001-09-28 01:34:43 +000021108elif ln conf$$.file conf$$ 2>/dev/null; then
21109 as_ln_s=ln
21110else
21111 as_ln_s='cp -p'
21112fi
mlcreech94984912008-03-04 19:03:08 +000021113rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21114rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000021115
a.rottmann84e63352003-03-24 09:42:16 +000021116if mkdir -p . 2>/dev/null; then
21117 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000021118else
a.rottmann964dbb12004-02-26 19:47:42 +000021119 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000021120 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000021121fi
21122
mlcreech94984912008-03-04 19:03:08 +000021123if test -x / >/dev/null 2>&1; then
21124 as_test_x='test -x'
21125else
21126 if ls -dL / >/dev/null 2>&1; then
21127 as_ls_L_option=L
21128 else
21129 as_ls_L_option=
21130 fi
21131 as_test_x='
21132 eval sh -c '\''
21133 if test -d "$1"; then
21134 test -d "$1/.";
21135 else
21136 case $1 in
21137 -*)set "./$1";;
21138 esac;
21139 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21140 ???[sx]*):;;*)false;;esac;fi
21141 '\'' sh
21142 '
21143fi
21144as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000021145
21146# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000021147as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000021148
21149# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000021150as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000021151
drh71eb93e2001-09-28 01:34:43 +000021152
drh71eb93e2001-09-28 01:34:43 +000021153exec 6>&1
21154
mlcreech94984912008-03-04 19:03:08 +000021155# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000021156# report actual input values of CONFIG_FILES etc. instead of their
mlcreech94984912008-03-04 19:03:08 +000021157# values after options handling.
21158ac_log="
mlcreechb87057f2008-03-06 07:19:20 +000021159This file was extended by sqlite $as_me 3.5.6, which was
mlcreech94984912008-03-04 19:03:08 +000021160generated by GNU Autoconf 2.61. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000021161
21162 CONFIG_FILES = $CONFIG_FILES
21163 CONFIG_HEADERS = $CONFIG_HEADERS
21164 CONFIG_LINKS = $CONFIG_LINKS
21165 CONFIG_COMMANDS = $CONFIG_COMMANDS
21166 $ $0 $@
21167
mlcreech94984912008-03-04 19:03:08 +000021168on `(hostname || uname -n) 2>/dev/null | sed 1q`
21169"
21170
drh71eb93e2001-09-28 01:34:43 +000021171_ACEOF
21172
mlcreech94984912008-03-04 19:03:08 +000021173cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021174# Files that config.status was made for.
mlcreech94984912008-03-04 19:03:08 +000021175config_files="$ac_config_files"
mlcreechb87057f2008-03-06 07:19:20 +000021176config_headers="$ac_config_headers"
drh71eb93e2001-09-28 01:34:43 +000021177
mlcreech94984912008-03-04 19:03:08 +000021178_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021179
a.rottmann84e63352003-03-24 09:42:16 +000021180cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021181ac_cs_usage="\
21182\`$as_me' instantiates files from templates according to the
21183current configuration.
21184
21185Usage: $0 [OPTIONS] [FILE]...
21186
21187 -h, --help print this help, then exit
mlcreech94984912008-03-04 19:03:08 +000021188 -V, --version print version number and configuration settings, then exit
a.rottmann84e63352003-03-24 09:42:16 +000021189 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000021190 -d, --debug don't remove temporary files
21191 --recheck update $as_me by reconfiguring in the same conditions
21192 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000021193 instantiate the configuration file FILE
mlcreechb87057f2008-03-06 07:19:20 +000021194 --header=FILE[:TEMPLATE]
21195 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000021196
21197Configuration files:
21198$config_files
21199
mlcreechb87057f2008-03-06 07:19:20 +000021200Configuration headers:
21201$config_headers
21202
drh71eb93e2001-09-28 01:34:43 +000021203Report bugs to <bug-autoconf@gnu.org>."
drh613a0fe2007-11-23 17:31:17 +000021204
mlcreech94984912008-03-04 19:03:08 +000021205_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021206cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021207ac_cs_version="\\
mlcreechb87057f2008-03-06 07:19:20 +000021208sqlite config.status 3.5.6
mlcreech94984912008-03-04 19:03:08 +000021209configured by $0, generated by GNU Autoconf 2.61,
21210 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000021211
mlcreech94984912008-03-04 19:03:08 +000021212Copyright (C) 2006 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000021213This config.status script is free software; the Free Software Foundation
21214gives unlimited permission to copy, distribute and modify it."
mlcreech94984912008-03-04 19:03:08 +000021215
21216ac_pwd='$ac_pwd'
21217srcdir='$srcdir'
21218INSTALL='$INSTALL'
a.rottmann84e63352003-03-24 09:42:16 +000021219_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021220
a.rottmann84e63352003-03-24 09:42:16 +000021221cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021222# If no file are specified by the user, then we need to provide default
21223# value. By we need to know if files were specified by the user.
21224ac_need_defaults=:
21225while test $# != 0
21226do
21227 case $1 in
21228 --*=*)
mlcreech94984912008-03-04 19:03:08 +000021229 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21230 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000021231 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000021232 ;;
mlcreech94984912008-03-04 19:03:08 +000021233 *)
a.rottmann84e63352003-03-24 09:42:16 +000021234 ac_option=$1
21235 ac_optarg=$2
21236 ac_shift=shift
21237 ;;
drh75897232000-05-29 14:26:00 +000021238 esac
21239
a.rottmann84e63352003-03-24 09:42:16 +000021240 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000021241 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000021242 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000021243 ac_cs_recheck=: ;;
mlcreech94984912008-03-04 19:03:08 +000021244 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21245 echo "$ac_cs_version"; exit ;;
21246 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000021247 debug=: ;;
21248 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000021249 $ac_shift
21250 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000021251 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000021252 --header | --heade | --head | --hea )
21253 $ac_shift
21254 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21255 ac_need_defaults=false;;
21256 --he | --h)
21257 # Conflict between --help and --header
21258 { echo "$as_me: error: ambiguous option: $1
21259Try \`$0 --help' for more information." >&2
21260 { (exit 1); exit 1; }; };;
21261 --help | --hel | -h )
mlcreech94984912008-03-04 19:03:08 +000021262 echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000021263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21264 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21265 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000021266
drh71eb93e2001-09-28 01:34:43 +000021267 # This is an error.
mlcreech94984912008-03-04 19:03:08 +000021268 -*) { echo "$as_me: error: unrecognized option: $1
21269Try \`$0 --help' for more information." >&2
drh71eb93e2001-09-28 01:34:43 +000021270 { (exit 1); exit 1; }; } ;;
21271
mlcreech94984912008-03-04 19:03:08 +000021272 *) ac_config_targets="$ac_config_targets $1"
21273 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000021274
21275 esac
21276 shift
21277done
21278
a.rottmann84e63352003-03-24 09:42:16 +000021279ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000021280
a.rottmann84e63352003-03-24 09:42:16 +000021281if $ac_cs_silent; then
21282 exec 6>/dev/null
21283 ac_configure_extra_args="$ac_configure_extra_args --silent"
21284fi
drh71eb93e2001-09-28 01:34:43 +000021285
21286_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021287cat >>$CONFIG_STATUS <<_ACEOF
21288if \$ac_cs_recheck; then
mlcreech94984912008-03-04 19:03:08 +000021289 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21290 CONFIG_SHELL=$SHELL
21291 export CONFIG_SHELL
21292 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a.rottmann84e63352003-03-24 09:42:16 +000021293fi
drh71eb93e2001-09-28 01:34:43 +000021294
a.rottmann84e63352003-03-24 09:42:16 +000021295_ACEOF
mlcreech94984912008-03-04 19:03:08 +000021296cat >>$CONFIG_STATUS <<\_ACEOF
21297exec 5>>config.log
21298{
21299 echo
21300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21301## Running $as_me. ##
21302_ASBOX
21303 echo "$ac_log"
21304} >&5
a.rottmann84e63352003-03-24 09:42:16 +000021305
mlcreech94984912008-03-04 19:03:08 +000021306_ACEOF
21307cat >>$CONFIG_STATUS <<_ACEOF
21308_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021309
21310cat >>$CONFIG_STATUS <<\_ACEOF
mlcreech94984912008-03-04 19:03:08 +000021311
21312# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000021313for ac_config_target in $ac_config_targets
21314do
mlcreech94984912008-03-04 19:03:08 +000021315 case $ac_config_target in
mlcreechb87057f2008-03-06 07:19:20 +000021316 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
mlcreech94984912008-03-04 19:03:08 +000021317 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21318 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
21319
a.rottmann84e63352003-03-24 09:42:16 +000021320 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000021321echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21322 { (exit 1); exit 1; }; };;
21323 esac
21324done
21325
mlcreech94984912008-03-04 19:03:08 +000021326
drh71eb93e2001-09-28 01:34:43 +000021327# If the user did not use the arguments to specify the items to instantiate,
21328# then the envvar interface is used. Set only those that are not.
21329# We use the long form for the default assignment because of an extremely
21330# bizarre bug on SunOS 4.1.3.
21331if $ac_need_defaults; then
21332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000021333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
drh71eb93e2001-09-28 01:34:43 +000021334fi
21335
a.rottmann84e63352003-03-24 09:42:16 +000021336# Have a temporary directory for convenience. Make it in the build tree
mlcreech94984912008-03-04 19:03:08 +000021337# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000021338# creating and moving files from /tmp can sometimes cause problems.
mlcreech94984912008-03-04 19:03:08 +000021339# Hook for its removal unless debugging.
21340# Note that there is a small window in which the directory will not be cleaned:
21341# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000021342$debug ||
21343{
mlcreech94984912008-03-04 19:03:08 +000021344 tmp=
21345 trap 'exit_status=$?
21346 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21347' 0
drh71eb93e2001-09-28 01:34:43 +000021348 trap '{ (exit 1); exit 1; }' 1 2 13 15
21349}
drh71eb93e2001-09-28 01:34:43 +000021350# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000021351
drh71eb93e2001-09-28 01:34:43 +000021352{
mlcreech94984912008-03-04 19:03:08 +000021353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000021354 test -n "$tmp" && test -d "$tmp"
21355} ||
21356{
mlcreech94984912008-03-04 19:03:08 +000021357 tmp=./conf$$-$RANDOM
21358 (umask 077 && mkdir "$tmp")
drh71eb93e2001-09-28 01:34:43 +000021359} ||
21360{
a.rottmann84e63352003-03-24 09:42:16 +000021361 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000021362 { (exit 1); exit 1; }
21363}
21364
drh71eb93e2001-09-28 01:34:43 +000021365#
mlcreech94984912008-03-04 19:03:08 +000021366# Set up the sed scripts for CONFIG_FILES section.
drh71eb93e2001-09-28 01:34:43 +000021367#
21368
21369# No need to generate the scripts if there are no CONFIG_FILES.
21370# This happens for instance when ./config.status config.h
mlcreech94984912008-03-04 19:03:08 +000021371if test -n "$CONFIG_FILES"; then
drh71eb93e2001-09-28 01:34:43 +000021372
a.rottmann84e63352003-03-24 09:42:16 +000021373_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021374
mlcreech94984912008-03-04 19:03:08 +000021375
21376
21377ac_delim='%!_!# '
21378for ac_last_try in false false false false false :; do
21379 cat >conf$$subs.sed <<_ACEOF
21380SHELL!$SHELL$ac_delim
21381PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21382PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21383PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21384PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21385PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21386PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21387exec_prefix!$exec_prefix$ac_delim
21388prefix!$prefix$ac_delim
21389program_transform_name!$program_transform_name$ac_delim
21390bindir!$bindir$ac_delim
21391sbindir!$sbindir$ac_delim
21392libexecdir!$libexecdir$ac_delim
21393datarootdir!$datarootdir$ac_delim
21394datadir!$datadir$ac_delim
21395sysconfdir!$sysconfdir$ac_delim
21396sharedstatedir!$sharedstatedir$ac_delim
21397localstatedir!$localstatedir$ac_delim
21398includedir!$includedir$ac_delim
21399oldincludedir!$oldincludedir$ac_delim
21400docdir!$docdir$ac_delim
21401infodir!$infodir$ac_delim
21402htmldir!$htmldir$ac_delim
21403dvidir!$dvidir$ac_delim
21404pdfdir!$pdfdir$ac_delim
21405psdir!$psdir$ac_delim
21406libdir!$libdir$ac_delim
21407localedir!$localedir$ac_delim
21408mandir!$mandir$ac_delim
21409DEFS!$DEFS$ac_delim
21410ECHO_C!$ECHO_C$ac_delim
21411ECHO_N!$ECHO_N$ac_delim
21412ECHO_T!$ECHO_T$ac_delim
21413LIBS!$LIBS$ac_delim
21414build_alias!$build_alias$ac_delim
21415host_alias!$host_alias$ac_delim
21416target_alias!$target_alias$ac_delim
21417build!$build$ac_delim
21418build_cpu!$build_cpu$ac_delim
21419build_vendor!$build_vendor$ac_delim
21420build_os!$build_os$ac_delim
21421host!$host$ac_delim
21422host_cpu!$host_cpu$ac_delim
21423host_vendor!$host_vendor$ac_delim
21424host_os!$host_os$ac_delim
21425CC!$CC$ac_delim
21426CFLAGS!$CFLAGS$ac_delim
21427LDFLAGS!$LDFLAGS$ac_delim
21428CPPFLAGS!$CPPFLAGS$ac_delim
21429ac_ct_CC!$ac_ct_CC$ac_delim
21430EXEEXT!$EXEEXT$ac_delim
21431OBJEXT!$OBJEXT$ac_delim
21432GREP!$GREP$ac_delim
21433EGREP!$EGREP$ac_delim
21434LN_S!$LN_S$ac_delim
21435ECHO!$ECHO$ac_delim
21436AR!$AR$ac_delim
21437RANLIB!$RANLIB$ac_delim
21438STRIP!$STRIP$ac_delim
21439CPP!$CPP$ac_delim
21440CXX!$CXX$ac_delim
21441CXXFLAGS!$CXXFLAGS$ac_delim
21442ac_ct_CXX!$ac_ct_CXX$ac_delim
21443CXXCPP!$CXXCPP$ac_delim
21444F77!$F77$ac_delim
21445FFLAGS!$FFLAGS$ac_delim
21446ac_ct_F77!$ac_ct_F77$ac_delim
21447LIBTOOL!$LIBTOOL$ac_delim
21448INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21449INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21450INSTALL_DATA!$INSTALL_DATA$ac_delim
21451AWK!$AWK$ac_delim
21452program_prefix!$program_prefix$ac_delim
21453VERSION!$VERSION$ac_delim
21454RELEASE!$RELEASE$ac_delim
21455VERSION_NUMBER!$VERSION_NUMBER$ac_delim
21456BUILD_CC!$BUILD_CC$ac_delim
21457BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
21458SQLITE_THREADSAFE!$SQLITE_THREADSAFE$ac_delim
21459TARGET_THREAD_LIB!$TARGET_THREAD_LIB$ac_delim
21460XTHREADCONNECT!$XTHREADCONNECT$ac_delim
21461THREADSOVERRIDELOCKS!$THREADSOVERRIDELOCKS$ac_delim
21462ALLOWRELEASE!$ALLOWRELEASE$ac_delim
21463TEMP_STORE!$TEMP_STORE$ac_delim
21464BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21465OS_UNIX!$OS_UNIX$ac_delim
21466OS_WIN!$OS_WIN$ac_delim
21467OS_OS2!$OS_OS2$ac_delim
21468TARGET_EXEEXT!$TARGET_EXEEXT$ac_delim
21469TCL_VERSION!$TCL_VERSION$ac_delim
21470TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
21471TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
21472TCL_LIBS!$TCL_LIBS$ac_delim
21473TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
21474TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
21475TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
21476TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
21477_ACEOF
21478
21479 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21480 break
21481 elif $ac_last_try; then
21482 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21483echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21484 { (exit 1); exit 1; }; }
21485 else
21486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000021487 fi
mlcreech94984912008-03-04 19:03:08 +000021488done
21489
21490ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21491if test -n "$ac_eof"; then
21492 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21493 ac_eof=`expr $ac_eof + 1`
21494fi
21495
21496cat >>$CONFIG_STATUS <<_ACEOF
21497cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21498/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21499_ACEOF
21500sed '
21501s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21502s/^/s,@/; s/!/@,|#_!!_#|/
21503:n
21504t n
21505s/'"$ac_delim"'$/,g/; t
21506s/$/\\/; p
21507N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21508' >>$CONFIG_STATUS <conf$$subs.sed
21509rm -f conf$$subs.sed
21510cat >>$CONFIG_STATUS <<_ACEOF
21511CEOF$ac_eof
21512_ACEOF
21513
21514
21515ac_delim='%!_!# '
21516for ac_last_try in false false false false false :; do
21517 cat >conf$$subs.sed <<_ACEOF
21518TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
21519TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
21520TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
21521HAVE_TCL!$HAVE_TCL$ac_delim
21522TARGET_READLINE_LIBS!$TARGET_READLINE_LIBS$ac_delim
21523TARGET_READLINE_INC!$TARGET_READLINE_INC$ac_delim
21524TARGET_HAVE_READLINE!$TARGET_HAVE_READLINE$ac_delim
21525TARGET_DEBUG!$TARGET_DEBUG$ac_delim
21526USE_AMALGAMATION!$USE_AMALGAMATION$ac_delim
mlcreecha4edab02008-03-06 04:14:17 +000021527LOADEXTENSION_FLAGS!$LOADEXTENSION_FLAGS$ac_delim
mlcreech94984912008-03-04 19:03:08 +000021528LIBOBJS!$LIBOBJS$ac_delim
21529LTLIBOBJS!$LTLIBOBJS$ac_delim
21530_ACEOF
21531
mlcreecha4edab02008-03-06 04:14:17 +000021532 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
mlcreech94984912008-03-04 19:03:08 +000021533 break
21534 elif $ac_last_try; then
21535 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21536echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21537 { (exit 1); exit 1; }; }
21538 else
21539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21540 fi
21541done
21542
21543ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21544if test -n "$ac_eof"; then
21545 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21546 ac_eof=`expr $ac_eof + 1`
21547fi
21548
21549cat >>$CONFIG_STATUS <<_ACEOF
21550cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21551/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21552_ACEOF
21553sed '
21554s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21555s/^/s,@/; s/!/@,|#_!!_#|/
21556:n
21557t n
21558s/'"$ac_delim"'$/,g/; t
21559s/$/\\/; p
21560N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21561' >>$CONFIG_STATUS <conf$$subs.sed
21562rm -f conf$$subs.sed
21563cat >>$CONFIG_STATUS <<_ACEOF
21564:end
21565s/|#_!!_#|//g
21566CEOF$ac_eof
21567_ACEOF
21568
21569
21570# VPATH may cause trouble with some makes, so we remove $(srcdir),
21571# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21572# trailing colons and then remove the whole line if VPATH becomes empty
21573# (actually we leave an empty line to preserve line numbers).
21574if test "x$srcdir" = x.; then
21575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21576s/:*\$(srcdir):*/:/
21577s/:*\${srcdir}:*/:/
21578s/:*@srcdir@:*/:/
21579s/^\([^=]*=[ ]*\):*/\1/
21580s/:*$//
21581s/^[^=]*=[ ]*$//
21582}'
21583fi
21584
21585cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021586fi # test -n "$CONFIG_FILES"
21587
mlcreech94984912008-03-04 19:03:08 +000021588
mlcreechb87057f2008-03-06 07:19:20 +000021589for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
mlcreech94984912008-03-04 19:03:08 +000021590do
21591 case $ac_tag in
21592 :[FHLC]) ac_mode=$ac_tag; continue;;
21593 esac
21594 case $ac_mode$ac_tag in
21595 :[FHL]*:*);;
21596 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21597echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21598 { (exit 1); exit 1; }; };;
21599 :[FH]-) ac_tag=-:-;;
21600 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21601 esac
21602 ac_save_IFS=$IFS
21603 IFS=:
21604 set x $ac_tag
21605 IFS=$ac_save_IFS
21606 shift
21607 ac_file=$1
21608 shift
21609
21610 case $ac_mode in
21611 :L) ac_source=$1;;
21612 :[FH])
21613 ac_file_inputs=
21614 for ac_f
21615 do
21616 case $ac_f in
21617 -) ac_f="$tmp/stdin";;
21618 *) # Look for the file first in the build tree, then in the source tree
21619 # (if the path is not absolute). The absolute path cannot be DOS-style,
21620 # because $ac_f cannot contain `:'.
21621 test -f "$ac_f" ||
21622 case $ac_f in
21623 [\\/$]*) false;;
21624 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21625 esac ||
21626 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21627echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21628 { (exit 1); exit 1; }; };;
21629 esac
21630 ac_file_inputs="$ac_file_inputs $ac_f"
21631 done
21632
21633 # Let's still pretend it is `configure' which instantiates (i.e., don't
21634 # use $as_me), people would be surprised to read:
21635 # /* config.h. Generated by config.status. */
21636 configure_input="Generated from "`IFS=:
21637 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21638 if test x"$ac_file" != x-; then
21639 configure_input="$ac_file. $configure_input"
21640 { echo "$as_me:$LINENO: creating $ac_file" >&5
21641echo "$as_me: creating $ac_file" >&6;}
21642 fi
21643
21644 case $ac_tag in
21645 *:-:* | *:-) cat >"$tmp/stdin";;
21646 esac
21647 ;;
drh71eb93e2001-09-28 01:34:43 +000021648 esac
21649
mlcreech94984912008-03-04 19:03:08 +000021650 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000021651$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021652 X"$ac_file" : 'X\(//\)[^/]' \| \
21653 X"$ac_file" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +000021654 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000021655echo X"$ac_file" |
mlcreech94984912008-03-04 19:03:08 +000021656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21657 s//\1/
21658 q
21659 }
21660 /^X\(\/\/\)[^/].*/{
21661 s//\1/
21662 q
21663 }
21664 /^X\(\/\/\)$/{
21665 s//\1/
21666 q
21667 }
21668 /^X\(\/\).*/{
21669 s//\1/
21670 q
21671 }
21672 s/.*/./; q'`
21673 { as_dir="$ac_dir"
21674 case $as_dir in #(
21675 -*) as_dir=./$as_dir;;
21676 esac
21677 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a.rottmann84e63352003-03-24 09:42:16 +000021678 as_dirs=
mlcreech94984912008-03-04 19:03:08 +000021679 while :; do
21680 case $as_dir in #(
21681 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21682 *) as_qdir=$as_dir;;
21683 esac
21684 as_dirs="'$as_qdir' $as_dirs"
21685 as_dir=`$as_dirname -- "$as_dir" ||
a.rottmann84e63352003-03-24 09:42:16 +000021686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021687 X"$as_dir" : 'X\(//\)[^/]' \| \
21688 X"$as_dir" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +000021689 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000021690echo X"$as_dir" |
mlcreech94984912008-03-04 19:03:08 +000021691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21692 s//\1/
21693 q
21694 }
21695 /^X\(\/\/\)[^/].*/{
21696 s//\1/
21697 q
21698 }
21699 /^X\(\/\/\)$/{
21700 s//\1/
21701 q
21702 }
21703 /^X\(\/\).*/{
21704 s//\1/
21705 q
21706 }
21707 s/.*/./; q'`
21708 test -d "$as_dir" && break
a.rottmann84e63352003-03-24 09:42:16 +000021709 done
mlcreech94984912008-03-04 19:03:08 +000021710 test -z "$as_dirs" || eval "mkdir $as_dirs"
21711 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21712echo "$as_me: error: cannot create directory $as_dir" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000021713 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000021714 ac_builddir=.
21715
mlcreech94984912008-03-04 19:03:08 +000021716case "$ac_dir" in
21717.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21718*)
a.rottmann84e63352003-03-24 09:42:16 +000021719 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mlcreech94984912008-03-04 19:03:08 +000021720 # A ".." for each directory in $ac_dir_suffix.
21721 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21722 case $ac_top_builddir_sub in
21723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21725 esac ;;
21726esac
21727ac_abs_top_builddir=$ac_pwd
21728ac_abs_builddir=$ac_pwd$ac_dir_suffix
21729# for backward compatibility:
21730ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000021731
21732case $srcdir in
mlcreech94984912008-03-04 19:03:08 +000021733 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000021734 ac_srcdir=.
mlcreech94984912008-03-04 19:03:08 +000021735 ac_top_srcdir=$ac_top_builddir_sub
21736 ac_abs_top_srcdir=$ac_pwd ;;
21737 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000021738 ac_srcdir=$srcdir$ac_dir_suffix;
mlcreech94984912008-03-04 19:03:08 +000021739 ac_top_srcdir=$srcdir
21740 ac_abs_top_srcdir=$srcdir ;;
21741 *) # Relative name.
21742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21743 ac_top_srcdir=$ac_top_build_prefix$srcdir
21744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000021745esac
mlcreech94984912008-03-04 19:03:08 +000021746ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000021747
a.rottmann84e63352003-03-24 09:42:16 +000021748
mlcreech94984912008-03-04 19:03:08 +000021749 case $ac_mode in
21750 :F)
21751 #
21752 # CONFIG_FILE
21753 #
drh75897232000-05-29 14:26:00 +000021754
drh71eb93e2001-09-28 01:34:43 +000021755 case $INSTALL in
21756 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mlcreech94984912008-03-04 19:03:08 +000021757 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021758 esac
vapier7f19c022007-02-17 14:46:31 +000021759_ACEOF
mlcreech94984912008-03-04 19:03:08 +000021760
21761cat >>$CONFIG_STATUS <<\_ACEOF
21762# If the template does not know about datarootdir, expand it.
21763# FIXME: This hack should be removed a few years after 2.60.
21764ac_datarootdir_hack=; ac_datarootdir_seen=
21765
21766case `sed -n '/datarootdir/ {
21767 p
21768 q
21769}
21770/@datadir@/p
21771/@docdir@/p
21772/@infodir@/p
21773/@localedir@/p
21774/@mandir@/p
21775' $ac_file_inputs` in
21776*datarootdir*) ac_datarootdir_seen=yes;;
21777*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21778 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21779echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21780_ACEOF
21781cat >>$CONFIG_STATUS <<_ACEOF
21782 ac_datarootdir_hack='
21783 s&@datadir@&$datadir&g
21784 s&@docdir@&$docdir&g
21785 s&@infodir@&$infodir&g
21786 s&@localedir@&$localedir&g
21787 s&@mandir@&$mandir&g
21788 s&\\\${datarootdir}&$datarootdir&g' ;;
21789esac
21790_ACEOF
21791
21792# Neutralize VPATH when `$srcdir' = `.'.
21793# Shell code in configure.ac might set extrasub.
21794# FIXME: do we really want to maintain this feature?
vapier7f19c022007-02-17 14:46:31 +000021795cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021796 sed "$ac_vpsub
21797$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021798_ACEOF
21799cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021800:t
21801/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mlcreech94984912008-03-04 19:03:08 +000021802s&@configure_input@&$configure_input&;t t
21803s&@top_builddir@&$ac_top_builddir_sub&;t t
21804s&@srcdir@&$ac_srcdir&;t t
21805s&@abs_srcdir@&$ac_abs_srcdir&;t t
21806s&@top_srcdir@&$ac_top_srcdir&;t t
21807s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21808s&@builddir@&$ac_builddir&;t t
21809s&@abs_builddir@&$ac_abs_builddir&;t t
21810s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21811s&@INSTALL@&$ac_INSTALL&;t t
21812$ac_datarootdir_hack
21813" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
drh75897232000-05-29 14:26:00 +000021814
mlcreech94984912008-03-04 19:03:08 +000021815test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21816 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21817 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21818 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21819which seems to be undefined. Please make sure it is defined." >&5
21820echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21821which seems to be undefined. Please make sure it is defined." >&2;}
drh71eb93e2001-09-28 01:34:43 +000021822
mlcreech94984912008-03-04 19:03:08 +000021823 rm -f "$tmp/stdin"
21824 case $ac_file in
21825 -) cat "$tmp/out"; rm -f "$tmp/out";;
21826 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21827 esac
21828 ;;
mlcreechb87057f2008-03-06 07:19:20 +000021829 :H)
21830 #
21831 # CONFIG_HEADER
21832 #
21833_ACEOF
mlcreech94984912008-03-04 19:03:08 +000021834
mlcreechb87057f2008-03-06 07:19:20 +000021835# Transform confdefs.h into a sed script `conftest.defines', that
21836# substitutes the proper values into config.h.in to produce config.h.
21837rm -f conftest.defines conftest.tail
21838# First, append a space to every undef/define line, to ease matching.
21839echo 's/$/ /' >conftest.defines
21840# Then, protect against being on the right side of a sed subst, or in
21841# an unquoted here document, in config.status. If some macros were
21842# called several times there might be several #defines for the same
21843# symbol, which is useless. But do not sort them, since the last
21844# AC_DEFINE must be honored.
21845ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21846# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21847# NAME is the cpp macro being defined, VALUE is the value it is being given.
21848# PARAMS is the parameter list in the macro definition--in most cases, it's
21849# just an empty string.
21850ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21851ac_dB='\\)[ (].*,\\1define\\2'
21852ac_dC=' '
21853ac_dD=' ,'
21854
21855uniq confdefs.h |
21856 sed -n '
21857 t rset
21858 :rset
21859 s/^[ ]*#[ ]*define[ ][ ]*//
21860 t ok
21861 d
21862 :ok
21863 s/[\\&,]/\\&/g
21864 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21865 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21866 ' >>conftest.defines
21867
21868# Remove the space that was appended to ease matching.
21869# Then replace #undef with comments. This is necessary, for
21870# example, in the case of _POSIX_SOURCE, which is predefined and required
21871# on some systems where configure will not decide to define it.
21872# (The regexp can be short, since the line contains either #define or #undef.)
21873echo 's/ $//
21874s,^[ #]*u.*,/* & */,' >>conftest.defines
21875
21876# Break up conftest.defines:
21877ac_max_sed_lines=50
21878
21879# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21880# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21881# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21882# et cetera.
21883ac_in='$ac_file_inputs'
21884ac_out='"$tmp/out1"'
21885ac_nxt='"$tmp/out2"'
21886
21887while :
21888do
21889 # Write a here document:
21890 cat >>$CONFIG_STATUS <<_ACEOF
21891 # First, check the format of the line:
21892 cat >"\$tmp/defines.sed" <<\\CEOF
21893/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21894/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21895b
21896:def
21897_ACEOF
21898 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21899 echo 'CEOF
21900 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21901 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21902 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21903 grep . conftest.tail >/dev/null || break
21904 rm -f conftest.defines
21905 mv conftest.tail conftest.defines
21906done
21907rm -f conftest.defines conftest.tail
21908
21909echo "ac_result=$ac_in" >>$CONFIG_STATUS
21910cat >>$CONFIG_STATUS <<\_ACEOF
21911 if test x"$ac_file" != x-; then
21912 echo "/* $configure_input */" >"$tmp/config.h"
21913 cat "$ac_result" >>"$tmp/config.h"
21914 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21915 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21916echo "$as_me: $ac_file is unchanged" >&6;}
21917 else
21918 rm -f $ac_file
21919 mv "$tmp/config.h" $ac_file
21920 fi
21921 else
21922 echo "/* $configure_input */"
21923 cat "$ac_result"
21924 fi
21925 rm -f "$tmp/out12"
21926 ;;
mlcreech94984912008-03-04 19:03:08 +000021927
21928
21929 esac
21930
21931done # for ac_tag
21932
drh71eb93e2001-09-28 01:34:43 +000021933
21934{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000021935_ACEOF
drh75897232000-05-29 14:26:00 +000021936chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000021937ac_clean_files=$ac_clean_files_save
21938
a.rottmann84e63352003-03-24 09:42:16 +000021939
drh71eb93e2001-09-28 01:34:43 +000021940# configure is writing to config.log, and then calls config.status.
21941# config.status does its own redirection, appending to config.log.
21942# Unfortunately, on DOS this fails, as config.log is still kept open
21943# by configure, so config.status won't be able to write to it; its
21944# output is simply discarded. So we exec the FD to /dev/null,
21945# effectively closing config.log, so it can be properly (re)opened and
21946# appended to by config.status. When coming back to configure, we
21947# need to make the FD available again.
21948if test "$no_create" != yes; then
21949 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000021950 ac_config_status_args=
21951 test "$silent" = yes &&
21952 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000021953 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000021954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000021955 exec 5>>config.log
21956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21957 # would make configure fail if this is the last instruction.
21958 $ac_cs_success || { (exit 1); exit 1; }
21959fi
drh613a0fe2007-11-23 17:31:17 +000021960