blob: c5b01d58391e0fc722cd1cfb1540e3cdf764febf [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.
drh8b727472009-01-19 18:18:40 +00003# Generated by GNU Autoconf 2.62 for sqlite 3.6.10.
drh75897232000-05-29 14:26:00 +00004#
drh8b727472009-01-19 18:18:40 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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
drh8b727472009-01-19 18:18:40 +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=:
drh8b727472009-01-19 18:18:40 +000018 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000019 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000021 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
a.rottmann84e63352003-03-24 09:42:16 +000027fi
drh8b727472009-01-19 18:18:40 +000028
29
30
31
32# PATH needs CR
33# 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
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
a.rottmann84e63352003-03-24 09:42:16 +000080
mlcreech94984912008-03-04 19:03:08 +000081# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
a.rottmann84e63352003-03-24 09:42:16 +000087
mlcreech94984912008-03-04 19:03:08 +000088
drh8b727472009-01-19 18:18:40 +000089# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
mlcreech94984912008-03-04 19:03:08 +0000120# Work around bugs in pre-3.0 UWIN ksh.
drh8b727472009-01-19 18:18:40 +0000121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
mlcreech94984912008-03-04 19:03:08 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
drh8b727472009-01-19 18:18:40 +0000129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000133
134# Required to use basename.
drh8b727472009-01-19 18:18:40 +0000135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +0000137 as_expr=expr
138else
139 as_expr=false
140fi
141
drh8b727472009-01-19 18:18:40 +0000142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +0000143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
drh8b727472009-01-19 18:18:40 +0000150as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +0000151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +0000153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
mlcreech94984912008-03-04 19:03:08 +0000171
172
drh8b727472009-01-19 18:18:40 +0000173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
mlcreech94984912008-03-04 19:03:08 +0000178fi
179
drh8b727472009-01-19 18:18:40 +0000180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
mlcreech94984912008-03-04 19:03:08 +0000196
drh8b727472009-01-19 18:18:40 +0000197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
mlcreech94984912008-03-04 19:03:08 +0000204
drh8b727472009-01-19 18:18:40 +0000205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
a.rottmann84e63352003-03-24 09:42:16 +0000240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +0000245 case $as_dir in
a.rottmann84e63352003-03-24 09:42:16 +0000246 /*)
drh8b727472009-01-19 18:18:40 +0000247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
drh866108f2008-05-13 00:57:21 +0000347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
drh866108f2008-05-13 00:57:21 +0000349 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh8b727472009-01-19 18:18:40 +0000350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +0000447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
drh8b727472009-01-19 18:18:40 +0000450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +0000455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh8b727472009-01-19 18:18:40 +0000456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000462 sed '
drh8b727472009-01-19 18:18:40 +0000463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000467 N
drh8b727472009-01-19 18:18:40 +0000468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000470 t loop
drh8b727472009-01-19 18:18:40 +0000471 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000472 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +0000473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +0000475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +0000479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000481 # Exit status is that of the last command.
482 exit
483}
484
485
drh8b727472009-01-19 18:18:40 +0000486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
drh866108f2008-05-13 00:57:21 +0000491
drh8b727472009-01-19 18:18:40 +0000492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a.rottmann84e63352003-03-24 09:42:16 +0000504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +0000510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +0000518 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +0000519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +0000529 fi
a.rottmann84e63352003-03-24 09:42:16 +0000530else
531 as_ln_s='cp -p'
532fi
drh8b727472009-01-19 18:18:40 +0000533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
a.rottmann964dbb12004-02-26 19:47:42 +0000539 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000540 as_mkdir_p=false
541fi
542
drh8b727472009-01-19 18:18:40 +0000543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +0000565
566# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000568
569# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000571
572
drh75897232000-05-29 14:26:00 +0000573
a.rottmann84e63352003-03-24 09:42:16 +0000574
drh71eb93e2001-09-28 01:34:43 +0000575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
mlcreech636a9952008-05-05 22:52:56 +0000578case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000582 ;;
583esac
584
mlcreech636a9952008-05-05 22:52:56 +0000585ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
mlcreech636a9952008-05-05 22:52:56 +0000592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
mlcreech636a9952008-05-05 22:52:56 +0000603 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000604$*
mlcreech636a9952008-05-05 22:52:56 +0000605_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000612
mlcreech636a9952008-05-05 22:52:56 +0000613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
drh71eb93e2001-09-28 01:34:43 +0000625
mlcreech636a9952008-05-05 22:52:56 +0000626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000636
mlcreech636a9952008-05-05 22:52:56 +0000637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000648 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000649
mlcreech636a9952008-05-05 22:52:56 +0000650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000665 else
mlcreech636a9952008-05-05 22:52:56 +0000666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
drh71eb93e2001-09-28 01:34:43 +0000690
mlcreech636a9952008-05-05 22:52:56 +0000691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000706 fi
mlcreech636a9952008-05-05 22:52:56 +0000707 fi
drh71eb93e2001-09-28 01:34:43 +0000708 fi
709 fi
710 fi
711fi
drh71eb93e2001-09-28 01:34:43 +0000712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000718fi
719
drh71eb93e2001-09-28 01:34:43 +0000720
drh71eb93e2001-09-28 01:34:43 +0000721
a.rottmann9bc8b932004-02-29 15:18:31 +0000722
drh8b727472009-01-19 18:18:40 +0000723exec 7<&0 </dev/null 6>&1
724
drh71eb93e2001-09-28 01:34:43 +0000725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
drh71eb93e2001-09-28 01:34:43 +0000730#
731# Initializations.
732#
drh75897232000-05-29 14:26:00 +0000733ac_default_prefix=/usr/local
drh8b727472009-01-19 18:18:40 +0000734ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000735ac_config_libobj_dir=.
drh8b727472009-01-19 18:18:40 +0000736LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000737cross_compiling=no
738subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000739MFLAGS=
740MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000741SHELL=${CONFIG_SHELL-/bin/sh}
742
a.rottmann84e63352003-03-24 09:42:16 +0000743# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000744PACKAGE_NAME='sqlite'
745PACKAGE_TARNAME='sqlite'
drh8b727472009-01-19 18:18:40 +0000746PACKAGE_VERSION='3.6.10'
747PACKAGE_STRING='sqlite 3.6.10'
mlcreechb87057f2008-03-06 07:19:20 +0000748PACKAGE_BUGREPORT=''
a.rottmann84e63352003-03-24 09:42:16 +0000749
a.rottmann84e63352003-03-24 09:42:16 +0000750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
drh8b727472009-01-19 18:18:40 +0000753#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000754# include <sys/types.h>
755#endif
drh8b727472009-01-19 18:18:40 +0000756#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000757# include <sys/stat.h>
758#endif
drh8b727472009-01-19 18:18:40 +0000759#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000760# include <stdlib.h>
761# include <stddef.h>
762#else
drh8b727472009-01-19 18:18:40 +0000763# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000764# include <stdlib.h>
765# endif
a.rottmann84e63352003-03-24 09:42:16 +0000766#endif
drh8b727472009-01-19 18:18:40 +0000767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000769# include <memory.h>
770# endif
771# include <string.h>
772#endif
drh8b727472009-01-19 18:18:40 +0000773#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000774# include <strings.h>
775#endif
drh8b727472009-01-19 18:18:40 +0000776#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000777# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000778#endif
drh8b727472009-01-19 18:18:40 +0000779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000783# include <unistd.h>
784#endif"
785
drh8b727472009-01-19 18:18:40 +0000786ac_subst_vars='SHELL
787PATH_SEPARATOR
788PACKAGE_NAME
789PACKAGE_TARNAME
790PACKAGE_VERSION
791PACKAGE_STRING
792PACKAGE_BUGREPORT
793exec_prefix
794prefix
795program_transform_name
796bindir
797sbindir
798libexecdir
799datarootdir
800datadir
801sysconfdir
802sharedstatedir
803localstatedir
804includedir
805oldincludedir
806docdir
807infodir
808htmldir
809dvidir
810pdfdir
811psdir
812libdir
813localedir
814mandir
815DEFS
816ECHO_C
817ECHO_N
818ECHO_T
819LIBS
820build_alias
821host_alias
822target_alias
823LIBTOOL
824build
825build_cpu
826build_vendor
827build_os
828host
829host_cpu
830host_vendor
831host_os
832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839SED
840GREP
841EGREP
842FGREP
843LD
844DUMPBIN
845ac_ct_DUMPBIN
846NM
847LN_S
848AR
849STRIP
850RANLIB
851lt_ECHO
852DSYMUTIL
853NMEDIT
854LIPO
855OTOOL
856OTOOL64
857CPP
858INSTALL_PROGRAM
859INSTALL_SCRIPT
860INSTALL_DATA
861AWK
862TCLSH_CMD
863program_prefix
864VERSION
865RELEASE
866VERSION_NUMBER
867BUILD_CC
868SQLITE_THREADSAFE
869XTHREADCONNECT
870THREADSOVERRIDELOCKS
871ALLOWRELEASE
872TEMP_STORE
873BUILD_EXEEXT
874SQLITE_OS_UNIX
875SQLITE_OS_WIN
876SQLITE_OS_OS2
877TARGET_EXEEXT
878TCL_VERSION
879TCL_BIN_DIR
880TCL_SRC_DIR
881TCL_LIBS
882TCL_INCLUDE_SPEC
883TCL_LIB_FILE
884TCL_LIB_FLAG
885TCL_LIB_SPEC
886TCL_STUB_LIB_FILE
887TCL_STUB_LIB_FLAG
888TCL_STUB_LIB_SPEC
889HAVE_TCL
890TARGET_READLINE_LIBS
891TARGET_READLINE_INC
892TARGET_HAVE_READLINE
893TARGET_DEBUG
894USE_AMALGAMATION
895OPT_FEATURE_FLAGS
896USE_GCOV
897BUILD_CFLAGS
898LIBOBJS
899LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000900ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000901ac_user_opts='
902enable_option_checking
903enable_shared
904enable_static
905with_pic
906enable_fast_install
907with_gnu_ld
908enable_libtool_lock
909enable_largefile
910with_hints
911enable_threadsafe
912enable_cross_thread_connections
913enable_threads_override_locks
914enable_releasemode
915enable_tempstore
916enable_tcl
917with_tcl
918enable_readline
919with_readline_lib
920with_readline_inc
921enable_debug
922enable_amalgamation
923enable_load_extension
924enable_gcov
925'
926 ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932LIBS
933CPPFLAGS
934CPP'
935
drh75897232000-05-29 14:26:00 +0000936
937# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000938ac_init_help=
939ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000940ac_unrecognized_opts=
941ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000942# The variables have the same names as the options, with
943# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000944cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000945exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000946no_create=
drh75897232000-05-29 14:26:00 +0000947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
drh75897232000-05-29 14:26:00 +0000955verbose=
956x_includes=NONE
957x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000964# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000973includedir='${prefix}/include'
974oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000984
drh75897232000-05-29 14:26:00 +0000985ac_prev=
drh8b727472009-01-19 18:18:40 +0000986ac_dashdash=
drh75897232000-05-29 14:26:00 +0000987for ac_option
988do
drh75897232000-05-29 14:26:00 +0000989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000991 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000992 ac_prev=
993 continue
994 fi
995
drh8b727472009-01-19 18:18:40 +0000996 case $ac_option in
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
999 esac
drh75897232000-05-29 14:26:00 +00001000
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1002
drh8b727472009-01-19 18:18:40 +00001003 case $ac_dashdash$ac_option in
1004 --)
1005 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001006
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001010 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001011
1012 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001013 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001015 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001016
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001022 cache_file=$ac_optarg ;;
1023
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001026
drh8b727472009-01-19 18:18:40 +00001027 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001028 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001030 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001031
drh8b727472009-01-19 18:18:40 +00001032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1038
drh75897232000-05-29 14:26:00 +00001039 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001041 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001044 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049"enable_$ac_useropt"
1050"*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
1055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001065
1066 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001068 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001071 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076"enable_$ac_useropt"
1077"*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001080 esac
drh8b727472009-01-19 18:18:40 +00001081 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001082
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001090 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001091
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1095
drh71eb93e2001-09-28 01:34:43 +00001096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001102
1103 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001104 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001105 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001106 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001107
drh8b727472009-01-19 18:18:40 +00001108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1113
drh75897232000-05-29 14:26:00 +00001114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001119 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001120
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001124 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001125
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001129 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001130
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001136 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001137
drh8b727472009-01-19 18:18:40 +00001138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1142
drh75897232000-05-29 14:26:00 +00001143 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001144 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001148 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001149
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001153 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001154
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1158
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001160 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001161 no_create=yes ;;
1162
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1166
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001174 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001175
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001179 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001180
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001186 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001187
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001193 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001194
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001210 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001211
drh8b727472009-01-19 18:18:40 +00001212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1216
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1221
drh75897232000-05-29 14:26:00 +00001222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1225
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001230 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001231
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001241 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001242
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001246 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001247
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001251 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001252
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001258 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001259
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001261 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001263 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001264
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1267
drh71eb93e2001-09-28 01:34:43 +00001268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001270
1271 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001273 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001276 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281"with_$ac_useropt"
1282"*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001285 esac
drh8b727472009-01-19 18:18:40 +00001286 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001287
1288 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001290 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001293 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298"with_$ac_useropt"
1299"*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001314 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001321 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001322
drh8b727472009-01-19 18:18:40 +00001323 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
drh71eb93e2001-09-28 01:34:43 +00001324Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001326 ;;
1327
drh71eb93e2001-09-28 01:34:43 +00001328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001332 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
drh71eb93e2001-09-28 01:34:43 +00001333 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001334 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001335 export $ac_envvar ;;
1336
drh75897232000-05-29 14:26:00 +00001337 *)
drh71eb93e2001-09-28 01:34:43 +00001338 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001343 ;;
1344
1345 esac
1346done
1347
1348if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh8b727472009-01-19 18:18:40 +00001350 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001351 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001352fi
1353
drh8b727472009-01-19 18:18:40 +00001354if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1358 { (exit 1); exit 1; }; } ;;
1359 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001360 esac
drh8b727472009-01-19 18:18:40 +00001361fi
drh866108f2008-05-13 00:57:21 +00001362
drh8b727472009-01-19 18:18:40 +00001363# Check all directory arguments for consistency.
1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001368do
drh8b727472009-01-19 18:18:40 +00001369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001371 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001375 esac
drh8b727472009-01-19 18:18:40 +00001376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1382 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001383done
drh75897232000-05-29 14:26:00 +00001384
drh71eb93e2001-09-28 01:34:43 +00001385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001387# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001388build=$build_alias
1389host=$host_alias
1390target=$target_alias
drh75897232000-05-29 14:26:00 +00001391
a.rottmann84e63352003-03-24 09:42:16 +00001392# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001393if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
drh8b727472009-01-19 18:18:40 +00001396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
drh71eb93e2001-09-28 01:34:43 +00001397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401fi
1402
1403ac_tool_prefix=
1404test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001407
a.rottmann84e63352003-03-24 09:42:16 +00001408
drh8b727472009-01-19 18:18:40 +00001409ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410ac_ls_di=`ls -di .` &&
1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1413 { (exit 1); exit 1; }; }
1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1416 { (exit 1); exit 1; }; }
1417
1418
drh75897232000-05-29 14:26:00 +00001419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\).*/{
1442 s//\1/
1443 q
1444 }
1445 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001446 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001447 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001448 srcdir=..
1449 fi
1450else
1451 ac_srcdir_defaulted=no
1452fi
drh8b727472009-01-19 18:18:40 +00001453if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +00001456 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001457fi
drh8b727472009-01-19 18:18:40 +00001458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
drh866108f2008-05-13 00:57:21 +00001461 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001462 pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
drh75897232000-05-29 14:26:00 +00001479
drh71eb93e2001-09-28 01:34:43 +00001480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001486 cat <<_ACEOF
drh8b727472009-01-19 18:18:40 +00001487\`configure' configures sqlite 3.6.10 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506
drh71eb93e2001-09-28 01:34:43 +00001507Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001509 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001511 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001540_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001541
a.rottmann84e63352003-03-24 09:42:16 +00001542 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001543
1544System types:
1545 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001548fi
1549
1550if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001551 case $ac_init_help in
drh8b727472009-01-19 18:18:40 +00001552 short | recursive ) echo "Configuration of sqlite 3.6.10:";;
mlcreechb87057f2008-03-06 07:19:20 +00001553 esac
a.rottmann84e63352003-03-24 09:42:16 +00001554 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001555
1556Optional Features:
drh8b727472009-01-19 18:18:40 +00001557 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001560 --enable-shared[=PKGS] build shared libraries [default=yes]
1561 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001562 --enable-fast-install[=PKGS]
1563 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001564 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001565 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001566 --enable-threadsafe Support threadsafe operation
1567 --enable-cross-thread-connections
1568 Allow connection sharing across threads
1569 --enable-threads-override-locks
1570 Threads can override each others locks
1571 --enable-releasemode Support libtool link to release mode
1572 --enable-tempstore Use an in-ram database for temporary tables
1573 (never,no,yes,always)
1574 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001575 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001576 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001577 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001578 separately
mlcreecha4edab02008-03-06 04:14:17 +00001579 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001580 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001581
1582Optional Packages:
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001585 --with-pic try to use only PIC/non-PIC objects [default=use
1586 both]
mlcreech636a9952008-05-05 22:52:56 +00001587 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001588 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001589 --with-tcl=DIR directory containing tcl configuration
1590 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001591 --with-readline-lib specify readline library
1592 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001593
1594Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001602 CPP C preprocessor
drh71eb93e2001-09-28 01:34:43 +00001603
1604Use these variables to override the choices made by `configure' or to help
1605it to find libraries and programs with nonstandard names/locations.
1606
a.rottmann84e63352003-03-24 09:42:16 +00001607_ACEOF
drh8b727472009-01-19 18:18:40 +00001608ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001609fi
1610
1611if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 continue
a.rottmann84e63352003-03-24 09:42:16 +00001617 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001618
drh8b727472009-01-19 18:18:40 +00001619case "$ac_dir" in
1620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621*)
1622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 esac ;;
1629esac
1630ac_abs_top_builddir=$ac_pwd
1631ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632# for backward compatibility:
1633ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001634
a.rottmann84e63352003-03-24 09:42:16 +00001635case $srcdir in
drh8b727472009-01-19 18:18:40 +00001636 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001637 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001641 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1644 *) # Relative name.
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001648esac
drh8b727472009-01-19 18:18:40 +00001649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001650
drh8b727472009-01-19 18:18:40 +00001651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for guested configure.
1653 if test -f "$ac_srcdir/configure.gnu"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656 elif test -f "$ac_srcdir/configure"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001659 else
drh8b727472009-01-19 18:18:40 +00001660 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 fi || ac_status=$?
1662 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001663 done
1664fi
1665
drh8b727472009-01-19 18:18:40 +00001666test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001667if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001668 cat <<\_ACEOF
drh8b727472009-01-19 18:18:40 +00001669sqlite configure 3.6.10
1670generated by GNU Autoconf 2.62
drh71eb93e2001-09-28 01:34:43 +00001671
drh8b727472009-01-19 18:18:40 +00001672Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16732002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001674This configure script is free software; the Free Software Foundation
1675gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001676_ACEOF
drh8b727472009-01-19 18:18:40 +00001677 exit
drh71eb93e2001-09-28 01:34:43 +00001678fi
drh8b727472009-01-19 18:18:40 +00001679cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001680This file contains any messages produced by compilers while
1681running configure, to aid debugging if configure makes a mistake.
1682
drh8b727472009-01-19 18:18:40 +00001683It was created by sqlite $as_me 3.6.10, which was
1684generated by GNU Autoconf 2.62. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001685
1686 $ $0 $@
1687
a.rottmann84e63352003-03-24 09:42:16 +00001688_ACEOF
drh8b727472009-01-19 18:18:40 +00001689exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001690{
1691cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001692## --------- ##
1693## Platform. ##
1694## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001695
1696hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701
1702/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1704
1705/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1706/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1707/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00001708/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001709/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1710/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1711/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1712
drh71eb93e2001-09-28 01:34:43 +00001713_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001714
1715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716for as_dir in $PATH
1717do
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +00001720 $as_echo "PATH: $as_dir"
a.rottmann84e63352003-03-24 09:42:16 +00001721done
drh8b727472009-01-19 18:18:40 +00001722IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001723
drh71eb93e2001-09-28 01:34:43 +00001724} >&5
1725
a.rottmann84e63352003-03-24 09:42:16 +00001726cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001727
a.rottmann84e63352003-03-24 09:42:16 +00001728
1729## ----------- ##
1730## Core tests. ##
1731## ----------- ##
1732
1733_ACEOF
1734
drh71eb93e2001-09-28 01:34:43 +00001735
1736# Keep a trace of the command line.
1737# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001738# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001739# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001740# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001741ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001742ac_configure_args0=
1743ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001744ac_must_keep_next=false
1745for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001746do
a.rottmann84e63352003-03-24 09:42:16 +00001747 for ac_arg
1748 do
1749 case $ac_arg in
1750 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752 | -silent | --silent | --silen | --sile | --sil)
1753 continue ;;
drh8b727472009-01-19 18:18:40 +00001754 *\'*)
1755 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001756 esac
1757 case $ac_pass in
1758 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759 2)
1760 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001762 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001763 else
a.rottmann964dbb12004-02-26 19:47:42 +00001764 case $ac_arg in
1765 *=* | --config-cache | -C | -disable-* | --disable-* \
1766 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768 | -with-* | --with-* | -without-* | --without-* | --x)
1769 case "$ac_configure_args0 " in
1770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771 esac
1772 ;;
1773 -* ) ac_must_keep_next=true ;;
1774 esac
a.rottmann84e63352003-03-24 09:42:16 +00001775 fi
drh8b727472009-01-19 18:18:40 +00001776 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001777 ;;
1778 esac
1779 done
drh71eb93e2001-09-28 01:34:43 +00001780done
a.rottmann84e63352003-03-24 09:42:16 +00001781$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001783
1784# When interrupted or exit'd, cleanup temporary files, and complete
1785# config.log. We remove comments because anyway the quotes in there
1786# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00001787# WARNING: Use '\'' to represent an apostrophe within the trap.
1788# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001789trap 'exit_status=$?
1790 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001791 {
1792 echo
1793
1794 cat <<\_ASBOX
1795## ---------------- ##
1796## Cache variables. ##
1797## ---------------- ##
1798_ASBOX
1799 echo
1800 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00001801(
1802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in #(
1805 *${as_nl}*)
1806 case $ac_var in #(
1807 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1809 esac
1810 case $ac_var in #(
1811 _ | IFS | as_nl) ;; #(
1812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1813 *) $as_unset $ac_var ;;
1814 esac ;;
1815 esac
1816 done
drh71eb93e2001-09-28 01:34:43 +00001817 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00001818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001820 sed -n \
drh8b727472009-01-19 18:18:40 +00001821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 ;; #(
drh866108f2008-05-13 00:57:21 +00001824 *)
drh8b727472009-01-19 18:18:40 +00001825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00001826 ;;
drh8b727472009-01-19 18:18:40 +00001827 esac |
1828 sort
1829)
a.rottmann84e63352003-03-24 09:42:16 +00001830 echo
1831
1832 cat <<\_ASBOX
1833## ----------------- ##
1834## Output variables. ##
1835## ----------------- ##
1836_ASBOX
1837 echo
1838 for ac_var in $ac_subst_vars
1839 do
drh8b727472009-01-19 18:18:40 +00001840 eval ac_val=\$$ac_var
1841 case $ac_val in
1842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 esac
1844 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001845 done | sort
1846 echo
1847
1848 if test -n "$ac_subst_files"; then
1849 cat <<\_ASBOX
drh8b727472009-01-19 18:18:40 +00001850## ------------------- ##
1851## File substitutions. ##
1852## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001853_ASBOX
1854 echo
1855 for ac_var in $ac_subst_files
1856 do
drh8b727472009-01-19 18:18:40 +00001857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001862 done | sort
1863 echo
1864 fi
1865
1866 if test -s confdefs.h; then
1867 cat <<\_ASBOX
1868## ----------- ##
1869## confdefs.h. ##
1870## ----------- ##
1871_ASBOX
1872 echo
drh8b727472009-01-19 18:18:40 +00001873 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001874 echo
1875 fi
1876 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00001877 $as_echo "$as_me: caught signal $ac_signal"
1878 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001879 } >&5
drh8b727472009-01-19 18:18:40 +00001880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001882 exit $exit_status
drh8b727472009-01-19 18:18:40 +00001883' 0
drh71eb93e2001-09-28 01:34:43 +00001884for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886done
1887ac_signal=0
1888
1889# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00001890rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001891
a.rottmann84e63352003-03-24 09:42:16 +00001892# Predefined preprocessor variables.
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_NAME "$PACKAGE_NAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_VERSION "$PACKAGE_VERSION"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_STRING "$PACKAGE_STRING"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916_ACEOF
1917
1918
drh71eb93e2001-09-28 01:34:43 +00001919# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00001920# Prefer an explicitly selected file to automatically selected ones.
1921ac_site_file1=NONE
1922ac_site_file2=NONE
1923if test -n "$CONFIG_SITE"; then
1924 ac_site_file1=$CONFIG_SITE
1925elif test "x$prefix" != xNONE; then
1926 ac_site_file1=$prefix/share/config.site
1927 ac_site_file2=$prefix/etc/config.site
1928else
1929 ac_site_file1=$ac_default_prefix/share/config.site
1930 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00001931fi
drh8b727472009-01-19 18:18:40 +00001932for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1933do
1934 test "x$ac_site_file" = xNONE && continue
drh75897232000-05-29 14:26:00 +00001935 if test -r "$ac_site_file"; then
drh8b727472009-01-19 18:18:40 +00001936 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1937$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001938 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001939 . "$ac_site_file"
1940 fi
1941done
1942
1943if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001944 # Some versions of bash will fail to source /dev/null (special
1945 # files actually), so we avoid doing that.
1946 if test -f "$cache_file"; then
drh8b727472009-01-19 18:18:40 +00001947 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1948$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001949 case $cache_file in
drh8b727472009-01-19 18:18:40 +00001950 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1951 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001952 esac
1953 fi
drh75897232000-05-29 14:26:00 +00001954else
drh8b727472009-01-19 18:18:40 +00001955 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1956$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001957 >$cache_file
1958fi
1959
1960# Check that the precious variables saved in the cache have kept the same
1961# value.
1962ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00001963for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001964 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1965 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00001966 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1967 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001968 case $ac_old_set,$ac_new_set in
1969 set,)
drh8b727472009-01-19 18:18:40 +00001970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1971$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001972 ac_cache_corrupted=: ;;
1973 ,set)
drh8b727472009-01-19 18:18:40 +00001974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1975$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001976 ac_cache_corrupted=: ;;
1977 ,);;
1978 *)
1979 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00001980 # differences in whitespace do not lead to failure.
1981 ac_old_val_w=`echo x $ac_old_val`
1982 ac_new_val_w=`echo x $ac_new_val`
1983 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1984 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1985$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1986 ac_cache_corrupted=:
1987 else
1988 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1989$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1990 eval $ac_var=\$ac_old_val
1991 fi
1992 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1993$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1994 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1995$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001996 fi;;
1997 esac
a.rottmann84e63352003-03-24 09:42:16 +00001998 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001999 if test "$ac_new_set" = set; then
2000 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002001 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002002 *) ac_arg=$ac_var=$ac_new_val ;;
2003 esac
2004 case " $ac_configure_args " in
2005 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2006 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002007 esac
2008 fi
2009done
2010if $ac_cache_corrupted; then
drh8b727472009-01-19 18:18:40 +00002011 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2012$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2013 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2014$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002015 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00002016fi
2017
drh8b727472009-01-19 18:18:40 +00002018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
drh75897232000-05-29 14:26:00 +00002042ac_ext=c
drh75897232000-05-29 14:26:00 +00002043ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002047
a.rottmann84e63352003-03-24 09:42:16 +00002048
2049
drh75897232000-05-29 14:26:00 +00002050# The following RCS revision string applies to configure.in
drh8b727472009-01-19 18:18:40 +00002051# $Revision: 1.66 $
drh75897232000-05-29 14:26:00 +00002052
2053#########
drh71eb93e2001-09-28 01:34:43 +00002054# Programs needed
drh75897232000-05-29 14:26:00 +00002055#
mlcreech636a9952008-05-05 22:52:56 +00002056case `pwd` in
2057 *\ * | *\ *)
drh8b727472009-01-19 18:18:40 +00002058 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2059$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002060esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002061
mlcreech94984912008-03-04 19:03:08 +00002062
mlcreech636a9952008-05-05 22:52:56 +00002063
2064macro_version='2.2.4'
2065macro_revision='1.2976'
a.rottmann9bc8b932004-02-29 15:18:31 +00002066
mlcreech94984912008-03-04 19:03:08 +00002067
mlcreech94984912008-03-04 19:03:08 +00002068
a.rottmann9bc8b932004-02-29 15:18:31 +00002069
mlcreech636a9952008-05-05 22:52:56 +00002070
2071
2072
2073
2074
2075
2076
2077
2078
2079ltmain="$ac_aux_dir/ltmain.sh"
2080
drh71eb93e2001-09-28 01:34:43 +00002081ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002082for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2083 if test -f "$ac_dir/install-sh"; then
drh71eb93e2001-09-28 01:34:43 +00002084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/install-sh -c"
2086 break
drh8b727472009-01-19 18:18:40 +00002087 elif test -f "$ac_dir/install.sh"; then
drh71eb93e2001-09-28 01:34:43 +00002088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/install.sh -c"
2090 break
drh8b727472009-01-19 18:18:40 +00002091 elif test -f "$ac_dir/shtool"; then
drh71eb93e2001-09-28 01:34:43 +00002092 ac_aux_dir=$ac_dir
2093 ac_install_sh="$ac_aux_dir/shtool install -c"
2094 break
2095 fi
2096done
2097if test -z "$ac_aux_dir"; then
drh8b727472009-01-19 18:18:40 +00002098 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2099$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002100 { (exit 1); exit 1; }; }
2101fi
drh8b727472009-01-19 18:18:40 +00002102
2103# These three variables are undocumented and unsupported,
2104# and are intended to be withdrawn in a future Autoconf release.
2105# They can cause serious problems if a builder's source tree is in a directory
2106# whose full name contains unusual characters.
2107ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2108ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2109ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2110
drh71eb93e2001-09-28 01:34:43 +00002111
2112# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002113$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2114 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2115$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002116 { (exit 1); exit 1; }; }
2117
drh8b727472009-01-19 18:18:40 +00002118{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2119$as_echo_n "checking build system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002120if test "${ac_cv_build+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002121 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002122else
drh8b727472009-01-19 18:18:40 +00002123 ac_build_alias=$build_alias
2124test "x$ac_build_alias" = x &&
2125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2126test "x$ac_build_alias" = x &&
2127 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2128$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002129 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002130ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2131 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2132$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002133 { (exit 1); exit 1; }; }
2134
2135fi
drh8b727472009-01-19 18:18:40 +00002136{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2137$as_echo "$ac_cv_build" >&6; }
2138case $ac_cv_build in
2139*-*-*) ;;
2140*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2141$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2142 { (exit 1); exit 1; }; };;
2143esac
drh71eb93e2001-09-28 01:34:43 +00002144build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002145ac_save_IFS=$IFS; IFS='-'
2146set x $ac_cv_build
2147shift
2148build_cpu=$1
2149build_vendor=$2
2150shift; shift
2151# Remember, the first character of IFS is used to create $*,
2152# except with old shells:
2153build_os=$*
2154IFS=$ac_save_IFS
2155case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002156
a.rottmann84e63352003-03-24 09:42:16 +00002157
drh8b727472009-01-19 18:18:40 +00002158{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2159$as_echo_n "checking host system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002160if test "${ac_cv_host+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002161 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002162else
drh8b727472009-01-19 18:18:40 +00002163 if test "x$host_alias" = x; then
2164 ac_cv_host=$ac_cv_build
2165else
2166 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2167 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2168$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002169 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002170fi
drh71eb93e2001-09-28 01:34:43 +00002171
2172fi
drh8b727472009-01-19 18:18:40 +00002173{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174$as_echo "$ac_cv_host" >&6; }
2175case $ac_cv_host in
2176*-*-*) ;;
2177*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2178$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2179 { (exit 1); exit 1; }; };;
2180esac
drh71eb93e2001-09-28 01:34:43 +00002181host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002182ac_save_IFS=$IFS; IFS='-'
2183set x $ac_cv_host
2184shift
2185host_cpu=$1
2186host_vendor=$2
2187shift; shift
2188# Remember, the first character of IFS is used to create $*,
2189# except with old shells:
2190host_os=$*
2191IFS=$ac_save_IFS
2192case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002193
a.rottmann84e63352003-03-24 09:42:16 +00002194
drh71eb93e2001-09-28 01:34:43 +00002195ac_ext=c
2196ac_cpp='$CPP $CPPFLAGS'
2197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200if test -n "$ac_tool_prefix"; then
2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2202set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002203{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2204$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002205if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002206 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002207else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210else
a.rottmann84e63352003-03-24 09:42:16 +00002211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212for as_dir in $PATH
2213do
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002217 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 +00002218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh8b727472009-01-19 18:18:40 +00002219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002220 break 2
2221 fi
2222done
drh71eb93e2001-09-28 01:34:43 +00002223done
drh8b727472009-01-19 18:18:40 +00002224IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002225
2226fi
2227fi
2228CC=$ac_cv_prog_CC
2229if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2231$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002232else
drh8b727472009-01-19 18:18:40 +00002233 { $as_echo "$as_me:$LINENO: result: no" >&5
2234$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002235fi
2236
drh8b727472009-01-19 18:18:40 +00002237
drh71eb93e2001-09-28 01:34:43 +00002238fi
2239if test -z "$ac_cv_prog_CC"; then
2240 ac_ct_CC=$CC
2241 # Extract the first word of "gcc", so it can be a program name with args.
2242set dummy gcc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2244$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002245if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002246 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002247else
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250else
a.rottmann84e63352003-03-24 09:42:16 +00002251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002257 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 +00002258 ac_cv_prog_ac_ct_CC="gcc"
drh8b727472009-01-19 18:18:40 +00002259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002260 break 2
2261 fi
2262done
drh71eb93e2001-09-28 01:34:43 +00002263done
drh8b727472009-01-19 18:18:40 +00002264IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002265
2266fi
2267fi
2268ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269if test -n "$ac_ct_CC"; then
drh8b727472009-01-19 18:18:40 +00002270 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2271$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002272else
drh8b727472009-01-19 18:18:40 +00002273 { $as_echo "$as_me:$LINENO: result: no" >&5
2274$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002275fi
2276
drh8b727472009-01-19 18:18:40 +00002277 if test "x$ac_ct_CC" = x; then
2278 CC=""
2279 else
2280 case $cross_compiling:$ac_tool_warned in
2281yes:)
2282{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2283whose name does not start with the host triplet. If you think this
2284configuration is useful to you, please write to autoconf@gnu.org." >&5
2285$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2286whose name does not start with the host triplet. If you think this
2287configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2288ac_tool_warned=yes ;;
2289esac
2290 CC=$ac_ct_CC
2291 fi
drh71eb93e2001-09-28 01:34:43 +00002292else
2293 CC="$ac_cv_prog_CC"
2294fi
2295
2296if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002299set dummy ${ac_tool_prefix}cc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2301$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002302if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002303 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002304else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307else
a.rottmann84e63352003-03-24 09:42:16 +00002308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002314 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 +00002315 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh8b727472009-01-19 18:18:40 +00002316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002317 break 2
2318 fi
2319done
drh71eb93e2001-09-28 01:34:43 +00002320done
drh8b727472009-01-19 18:18:40 +00002321IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002322
2323fi
2324fi
2325CC=$ac_cv_prog_CC
2326if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002327 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2328$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002329else
drh8b727472009-01-19 18:18:40 +00002330 { $as_echo "$as_me:$LINENO: result: no" >&5
2331$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002332fi
2333
drh8b727472009-01-19 18:18:40 +00002334
a.rottmann84e63352003-03-24 09:42:16 +00002335 fi
drh71eb93e2001-09-28 01:34:43 +00002336fi
2337if test -z "$CC"; then
2338 # Extract the first word of "cc", so it can be a program name with args.
2339set dummy cc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002340{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2341$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002342if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002343 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002344else
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2347else
2348 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002355 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 +00002356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2357 ac_prog_rejected=yes
2358 continue
2359 fi
2360 ac_cv_prog_CC="cc"
drh8b727472009-01-19 18:18:40 +00002361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002362 break 2
2363 fi
2364done
drh71eb93e2001-09-28 01:34:43 +00002365done
drh8b727472009-01-19 18:18:40 +00002366IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002367
2368if test $ac_prog_rejected = yes; then
2369 # We found a bogon in the path, so make sure we never use it.
2370 set dummy $ac_cv_prog_CC
2371 shift
2372 if test $# != 0; then
2373 # We chose a different compiler from the bogus one.
2374 # However, it has the same basename, so the bogon will be chosen
2375 # first if we set CC to just the basename; use the full file name.
2376 shift
a.rottmann84e63352003-03-24 09:42:16 +00002377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002378 fi
2379fi
2380fi
2381fi
2382CC=$ac_cv_prog_CC
2383if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002384 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2385$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002386else
drh8b727472009-01-19 18:18:40 +00002387 { $as_echo "$as_me:$LINENO: result: no" >&5
2388$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002389fi
2390
drh8b727472009-01-19 18:18:40 +00002391
drh71eb93e2001-09-28 01:34:43 +00002392fi
2393if test -z "$CC"; then
2394 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002395 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002396 do
2397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2398set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002399{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2400$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002401if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002402 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002403else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406else
a.rottmann84e63352003-03-24 09:42:16 +00002407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002413 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 +00002414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh8b727472009-01-19 18:18:40 +00002415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002416 break 2
2417 fi
2418done
drh71eb93e2001-09-28 01:34:43 +00002419done
drh8b727472009-01-19 18:18:40 +00002420IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002421
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002426 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2427$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002428else
drh8b727472009-01-19 18:18:40 +00002429 { $as_echo "$as_me:$LINENO: result: no" >&5
2430$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002431fi
2432
drh8b727472009-01-19 18:18:40 +00002433
drh71eb93e2001-09-28 01:34:43 +00002434 test -n "$CC" && break
2435 done
2436fi
2437if test -z "$CC"; then
2438 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002439 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002440do
2441 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002443{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2444$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002445if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002446 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002447else
2448 if test -n "$ac_ct_CC"; then
2449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2450else
a.rottmann84e63352003-03-24 09:42:16 +00002451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002457 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 +00002458 ac_cv_prog_ac_ct_CC="$ac_prog"
drh8b727472009-01-19 18:18:40 +00002459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002460 break 2
2461 fi
2462done
drh71eb93e2001-09-28 01:34:43 +00002463done
drh8b727472009-01-19 18:18:40 +00002464IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002465
2466fi
2467fi
2468ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469if test -n "$ac_ct_CC"; then
drh8b727472009-01-19 18:18:40 +00002470 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002472else
drh8b727472009-01-19 18:18:40 +00002473 { $as_echo "$as_me:$LINENO: result: no" >&5
2474$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002475fi
2476
drh8b727472009-01-19 18:18:40 +00002477
drh71eb93e2001-09-28 01:34:43 +00002478 test -n "$ac_ct_CC" && break
2479done
2480
drh8b727472009-01-19 18:18:40 +00002481 if test "x$ac_ct_CC" = x; then
2482 CC=""
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485yes:)
2486{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2487whose name does not start with the host triplet. If you think this
2488configuration is useful to you, please write to autoconf@gnu.org." >&5
2489$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2490whose name does not start with the host triplet. If you think this
2491configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2492ac_tool_warned=yes ;;
2493esac
2494 CC=$ac_ct_CC
2495 fi
drh71eb93e2001-09-28 01:34:43 +00002496fi
2497
2498fi
2499
a.rottmann84e63352003-03-24 09:42:16 +00002500
drh8b727472009-01-19 18:18:40 +00002501test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00002502See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002503$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00002504See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002505 { (exit 1); exit 1; }; }
2506
2507# Provide some information about the compiler.
drh8b727472009-01-19 18:18:40 +00002508$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2509set X $ac_compile
2510ac_compiler=$2
2511{ (ac_try="$ac_compiler --version >&5"
2512case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515esac
2516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2517$as_echo "$ac_try_echo") >&5
2518 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002519 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002521 (exit $ac_status); }
drh8b727472009-01-19 18:18:40 +00002522{ (ac_try="$ac_compiler -v >&5"
2523case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
2527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2528$as_echo "$ac_try_echo") >&5
2529 (eval "$ac_compiler -v >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002530 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002532 (exit $ac_status); }
drh8b727472009-01-19 18:18:40 +00002533{ (ac_try="$ac_compiler -V >&5"
2534case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2539$as_echo "$ac_try_echo") >&5
2540 (eval "$ac_compiler -V >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002541 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002543 (exit $ac_status); }
2544
2545cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002546/* confdefs.h. */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
2550/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002551
2552int
2553main ()
2554{
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
2560ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002561ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002562# Try to create an executable without -o first, disregard a.out.
2563# It will help us diagnose broken compilers, and finding out an intuition
2564# of exeext.
drh8b727472009-01-19 18:18:40 +00002565{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2566$as_echo_n "checking for C compiler default output file name... " >&6; }
2567ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002568
drh8b727472009-01-19 18:18:40 +00002569# The possible output files:
2570ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2571
2572ac_rmfiles=
2573for ac_file in $ac_files
2574do
2575 case $ac_file in
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2578 esac
2579done
2580rm -f $ac_rmfiles
2581
2582if { (ac_try="$ac_link_default"
2583case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
2587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2588$as_echo "$ac_try_echo") >&5
2589 (eval "$ac_link_default") 2>&5
2590 ac_status=$?
2591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
2593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2594# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2595# in a Makefile. We should not override ac_cv_exeext if it was cached,
2596# so that the user can short-circuit this test for compilers unknown to
2597# Autoconf.
2598for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002599do
2600 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002601 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002603 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002604 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002605 # We found the default executable, but exeext='' is most
2606 # certainly right.
2607 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002608 *.* )
drh8b727472009-01-19 18:18:40 +00002609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2610 then :; else
2611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612 fi
2613 # We set ac_cv_exeext here because the later test for it is not
2614 # safe: cross compilers may not add the suffix if given an `-o'
2615 # argument, so we may need to know it at that point already.
2616 # Even if this section looks crufty: it has the advantage of
2617 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002618 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002619 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002620 break;;
drh71eb93e2001-09-28 01:34:43 +00002621 esac
2622done
drh8b727472009-01-19 18:18:40 +00002623test "$ac_cv_exeext" = no && ac_cv_exeext=
2624
drh71eb93e2001-09-28 01:34:43 +00002625else
drh8b727472009-01-19 18:18:40 +00002626 ac_file=''
2627fi
2628
2629{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2630$as_echo "$ac_file" >&6; }
2631if test -z "$ac_file"; then
2632 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002633sed 's/^/| /' conftest.$ac_ext >&5
2634
drh8b727472009-01-19 18:18:40 +00002635{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002636See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002637$as_echo "$as_me: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002638See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002639 { (exit 77); exit 77; }; }
2640fi
2641
2642ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002643
drh8b727472009-01-19 18:18:40 +00002644# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002645# the compiler is broken, or we cross compile.
drh8b727472009-01-19 18:18:40 +00002646{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2647$as_echo_n "checking whether the C compiler works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002648# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2649# If not cross compiling, check that we can run a simple program.
2650if test "$cross_compiling" != yes; then
2651 if { ac_try='./$ac_file'
drh8b727472009-01-19 18:18:40 +00002652 { (case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655esac
2656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2657$as_echo "$ac_try_echo") >&5
2658 (eval "$ac_try") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002659 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002661 (exit $ac_status); }; }; then
2662 cross_compiling=no
2663 else
2664 if test "$cross_compiling" = maybe; then
2665 cross_compiling=yes
2666 else
drh8b727472009-01-19 18:18:40 +00002667 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002668If you meant to cross compile, use \`--host'.
2669See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002670$as_echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002671If you meant to cross compile, use \`--host'.
2672See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002673 { (exit 1); exit 1; }; }
2674 fi
2675 fi
2676fi
drh8b727472009-01-19 18:18:40 +00002677{ $as_echo "$as_me:$LINENO: result: yes" >&5
2678$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002679
drh8b727472009-01-19 18:18:40 +00002680rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002681ac_clean_files=$ac_clean_files_save
drh8b727472009-01-19 18:18:40 +00002682# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002683# the compiler is broken, or we cross compile.
drh8b727472009-01-19 18:18:40 +00002684{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2685$as_echo_n "checking whether we are cross compiling... " >&6; }
2686{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2687$as_echo "$cross_compiling" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002688
drh8b727472009-01-19 18:18:40 +00002689{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2690$as_echo_n "checking for suffix of executables... " >&6; }
2691if { (ac_try="$ac_link"
2692case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695esac
2696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2697$as_echo "$ac_try_echo") >&5
2698 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002699 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002701 (exit $ac_status); }; then
2702 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2703# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2704# work properly (i.e., refer to `conftest.exe'), while it won't with
2705# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002706for ac_file in conftest.exe conftest conftest.*; do
2707 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002708 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002710 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002711 break;;
drh71eb93e2001-09-28 01:34:43 +00002712 * ) break;;
2713 esac
2714done
2715else
drh8b727472009-01-19 18:18:40 +00002716 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002717See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002718$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002719See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002720 { (exit 1); exit 1; }; }
2721fi
2722
2723rm -f conftest$ac_cv_exeext
drh8b727472009-01-19 18:18:40 +00002724{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2725$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002726
2727rm -f conftest.$ac_ext
2728EXEEXT=$ac_cv_exeext
2729ac_exeext=$EXEEXT
drh8b727472009-01-19 18:18:40 +00002730{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2731$as_echo_n "checking for suffix of object files... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002732if test "${ac_cv_objext+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002733 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002734else
2735 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002736/* confdefs.h. */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
2740/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002741
2742int
2743main ()
2744{
2745
2746 ;
2747 return 0;
2748}
2749_ACEOF
2750rm -f conftest.o conftest.obj
drh8b727472009-01-19 18:18:40 +00002751if { (ac_try="$ac_compile"
2752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2757$as_echo "$ac_try_echo") >&5
2758 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002759 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002761 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002762 for ac_file in conftest.o conftest.obj conftest.*; do
2763 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002764 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00002766 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2767 break;;
2768 esac
2769done
2770else
drh8b727472009-01-19 18:18:40 +00002771 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002772sed 's/^/| /' conftest.$ac_ext >&5
2773
drh8b727472009-01-19 18:18:40 +00002774{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002775See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002776$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002777See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002778 { (exit 1); exit 1; }; }
2779fi
2780
2781rm -f conftest.$ac_cv_objext conftest.$ac_ext
2782fi
drh8b727472009-01-19 18:18:40 +00002783{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2784$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002785OBJEXT=$ac_cv_objext
2786ac_objext=$OBJEXT
drh8b727472009-01-19 18:18:40 +00002787{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2788$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002789if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002790 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002791else
2792 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002793/* confdefs.h. */
2794_ACEOF
2795cat confdefs.h >>conftest.$ac_ext
2796cat >>conftest.$ac_ext <<_ACEOF
2797/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002798
2799int
2800main ()
2801{
2802#ifndef __GNUC__
2803 choke me
2804#endif
2805
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00002811if { (ac_try="$ac_compile"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
2816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2817$as_echo "$ac_try_echo") >&5
2818 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002819 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00002823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002828 ac_compiler_gnu=yes
2829else
drh8b727472009-01-19 18:18:40 +00002830 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002831sed 's/^/| /' conftest.$ac_ext >&5
2832
drh8b727472009-01-19 18:18:40 +00002833 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002834fi
drh8b727472009-01-19 18:18:40 +00002835
2836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002837ac_cv_c_compiler_gnu=$ac_compiler_gnu
2838
2839fi
drh8b727472009-01-19 18:18:40 +00002840{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2841$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2842if test $ac_compiler_gnu = yes; then
2843 GCC=yes
2844else
2845 GCC=
2846fi
drh71eb93e2001-09-28 01:34:43 +00002847ac_test_CFLAGS=${CFLAGS+set}
2848ac_save_CFLAGS=$CFLAGS
drh8b727472009-01-19 18:18:40 +00002849{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2850$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002851if test "${ac_cv_prog_cc_g+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002852 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002853else
drh8b727472009-01-19 18:18:40 +00002854 ac_save_c_werror_flag=$ac_c_werror_flag
2855 ac_c_werror_flag=yes
2856 ac_cv_prog_cc_g=no
2857 CFLAGS="-g"
2858 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002864
2865int
2866main ()
2867{
2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00002874if { (ac_try="$ac_compile"
2875case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878esac
2879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880$as_echo "$ac_try_echo") >&5
2881 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002882 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00002886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } && {
2888 test -z "$ac_c_werror_flag" ||
2889 test ! -s conftest.err
2890 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002891 ac_cv_prog_cc_g=yes
2892else
drh8b727472009-01-19 18:18:40 +00002893 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002894sed 's/^/| /' conftest.$ac_ext >&5
2895
drh8b727472009-01-19 18:18:40 +00002896 CFLAGS=""
2897 cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h. */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h. */
2903
2904int
2905main ()
2906{
2907
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext
2913if { (ac_try="$ac_compile"
2914case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
2918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2919$as_echo "$ac_try_echo") >&5
2920 (eval "$ac_compile") 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } && {
2927 test -z "$ac_c_werror_flag" ||
2928 test ! -s conftest.err
2929 } && test -s conftest.$ac_objext; then
2930 :
2931else
2932 $as_echo "$as_me: failed program was:" >&5
2933sed 's/^/| /' conftest.$ac_ext >&5
2934
2935 ac_c_werror_flag=$ac_save_c_werror_flag
2936 CFLAGS="-g"
2937 cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.$ac_objext
2953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2959$as_echo "$ac_try_echo") >&5
2960 (eval "$ac_compile") 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } && {
2967 test -z "$ac_c_werror_flag" ||
2968 test ! -s conftest.err
2969 } && test -s conftest.$ac_objext; then
2970 ac_cv_prog_cc_g=yes
2971else
2972 $as_echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975
drh71eb93e2001-09-28 01:34:43 +00002976fi
drh8b727472009-01-19 18:18:40 +00002977
2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002979fi
drh8b727472009-01-19 18:18:40 +00002980
2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982fi
2983
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_c_werror_flag=$ac_save_c_werror_flag
2986fi
2987{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2988$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002989if test "$ac_test_CFLAGS" = set; then
2990 CFLAGS=$ac_save_CFLAGS
2991elif test $ac_cv_prog_cc_g = yes; then
2992 if test "$GCC" = yes; then
2993 CFLAGS="-g -O2"
2994 else
2995 CFLAGS="-g"
2996 fi
2997else
2998 if test "$GCC" = yes; then
2999 CFLAGS="-O2"
3000 else
3001 CFLAGS=
3002 fi
3003fi
drh8b727472009-01-19 18:18:40 +00003004{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3005$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3006if test "${ac_cv_prog_cc_c89+set}" = set; then
3007 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003008else
drh8b727472009-01-19 18:18:40 +00003009 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003010ac_save_CC=$CC
3011cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
3017#include <stdarg.h>
3018#include <stdio.h>
3019#include <sys/types.h>
3020#include <sys/stat.h>
3021/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3022struct buf { int x; };
3023FILE * (*rcsopen) (struct buf *, struct stat *, int);
3024static char *e (p, i)
3025 char **p;
3026 int i;
3027{
3028 return p[i];
3029}
3030static char *f (char * (*g) (char **, int), char **p, ...)
3031{
3032 char *s;
3033 va_list v;
3034 va_start (v,p);
3035 s = g (p, va_arg (v,int));
3036 va_end (v);
3037 return s;
3038}
a.rottmann964dbb12004-02-26 19:47:42 +00003039
3040/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3041 function prototypes and stuff, but not '\xHH' hex character constants.
3042 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003043 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3045 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003046 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003047int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3048
drh8b727472009-01-19 18:18:40 +00003049/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3050 inside strings and character constants. */
3051#define FOO(x) 'x'
3052int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3053
a.rottmann84e63352003-03-24 09:42:16 +00003054int test (int i, double x);
3055struct s1 {int (*f) (int a);};
3056struct s2 {int (*f) (double a);};
3057int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3058int argc;
3059char **argv;
3060int
3061main ()
3062{
3063return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3064 ;
3065 return 0;
3066}
3067_ACEOF
drh8b727472009-01-19 18:18:40 +00003068for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003070do
3071 CC="$ac_save_CC $ac_arg"
3072 rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00003073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3079$as_echo "$ac_try_echo") >&5
3080 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003081 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00003085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } && {
3087 test -z "$ac_c_werror_flag" ||
3088 test ! -s conftest.err
3089 } && test -s conftest.$ac_objext; then
3090 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003091else
drh8b727472009-01-19 18:18:40 +00003092 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003093sed 's/^/| /' conftest.$ac_ext >&5
3094
drh8b727472009-01-19 18:18:40 +00003095
a.rottmann84e63352003-03-24 09:42:16 +00003096fi
drh8b727472009-01-19 18:18:40 +00003097
3098rm -f core conftest.err conftest.$ac_objext
3099 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003100done
drh8b727472009-01-19 18:18:40 +00003101rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003102CC=$ac_save_CC
3103
3104fi
drh8b727472009-01-19 18:18:40 +00003105# AC_CACHE_VAL
3106case "x$ac_cv_prog_cc_c89" in
3107 x)
3108 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3109$as_echo "none needed" >&6; } ;;
3110 xno)
3111 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3112$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003113 *)
drh8b727472009-01-19 18:18:40 +00003114 CC="$CC $ac_cv_prog_cc_c89"
3115 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3116$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003117esac
3118
a.rottmann84e63352003-03-24 09:42:16 +00003119
drh71eb93e2001-09-28 01:34:43 +00003120ac_ext=c
3121ac_cpp='$CPP $CPPFLAGS'
3122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125
drh8b727472009-01-19 18:18:40 +00003126{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3127$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3128if test "${ac_cv_path_SED+set}" = set; then
3129 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003130else
drh8b727472009-01-19 18:18:40 +00003131 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3132 for ac_i in 1 2 3 4 5 6 7; do
3133 ac_script="$ac_script$as_nl$ac_script"
3134 done
3135 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3136 $as_unset ac_script || ac_script=
3137 if test -z "$SED"; then
3138 ac_path_SED_found=false
3139 # Loop through the user's path and test for each of PROGNAME-LIST
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003141for as_dir in $PATH
3142do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +00003145 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003146 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003147 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3148 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3149# Check for GNU ac_path_SED and select it if it is found.
3150 # Check for GNU $ac_path_SED
3151case `"$ac_path_SED" --version 2>&1` in
3152*GNU*)
3153 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3154*)
3155 ac_count=0
3156 $as_echo_n 0123456789 >"conftest.in"
3157 while :
3158 do
3159 cat "conftest.in" "conftest.in" >"conftest.tmp"
3160 mv "conftest.tmp" "conftest.in"
3161 cp "conftest.in" "conftest.nl"
3162 $as_echo '' >> "conftest.nl"
3163 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3165 ac_count=`expr $ac_count + 1`
3166 if test $ac_count -gt ${ac_path_SED_max-0}; then
3167 # Best one so far, save it but keep looking for a better one
3168 ac_cv_path_SED="$ac_path_SED"
3169 ac_path_SED_max=$ac_count
3170 fi
3171 # 10*(2^10) chars as input seems more than enough
3172 test $ac_count -gt 10 && break
3173 done
3174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3175esac
3176
3177 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003178 done
3179 done
3180done
mlcreech636a9952008-05-05 22:52:56 +00003181IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003182 if test -z "$ac_cv_path_SED"; then
3183 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3184$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3185 { (exit 1); exit 1; }; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003186 fi
drh8b727472009-01-19 18:18:40 +00003187else
3188 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003189fi
drh866108f2008-05-13 00:57:21 +00003190
drh8b727472009-01-19 18:18:40 +00003191fi
3192{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3193$as_echo "$ac_cv_path_SED" >&6; }
3194 SED="$ac_cv_path_SED"
3195 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003196
mlcreech636a9952008-05-05 22:52:56 +00003197test -z "$SED" && SED=sed
3198Xsed="$SED -e 1s/^X//"
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
drh8b727472009-01-19 18:18:40 +00003210{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3211$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3212if test "${ac_cv_path_GREP+set}" = set; then
3213 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003214else
drh8b727472009-01-19 18:18:40 +00003215 if test -z "$GREP"; then
3216 ac_path_GREP_found=false
3217 # Loop through the user's path and test for each of PROGNAME-LIST
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3220do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_prog in grep ggrep; do
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3226 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3227# Check for GNU ac_path_GREP and select it if it is found.
3228 # Check for GNU $ac_path_GREP
3229case `"$ac_path_GREP" --version 2>&1` in
3230*GNU*)
3231 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3232*)
3233 ac_count=0
3234 $as_echo_n 0123456789 >"conftest.in"
3235 while :
3236 do
3237 cat "conftest.in" "conftest.in" >"conftest.tmp"
3238 mv "conftest.tmp" "conftest.in"
3239 cp "conftest.in" "conftest.nl"
3240 $as_echo 'GREP' >> "conftest.nl"
3241 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3243 ac_count=`expr $ac_count + 1`
3244 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3245 # Best one so far, save it but keep looking for a better one
3246 ac_cv_path_GREP="$ac_path_GREP"
3247 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003248 fi
drh8b727472009-01-19 18:18:40 +00003249 # 10*(2^10) chars as input seems more than enough
3250 test $ac_count -gt 10 && break
3251 done
3252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3253esac
3254
3255 $ac_path_GREP_found && break 3
3256 done
3257 done
3258done
3259IFS=$as_save_IFS
3260 if test -z "$ac_cv_path_GREP"; then
3261 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3263 { (exit 1); exit 1; }; }
3264 fi
3265else
3266 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003267fi
drh8b727472009-01-19 18:18:40 +00003268
3269fi
3270{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3271$as_echo "$ac_cv_path_GREP" >&6; }
3272 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003273
3274
drh8b727472009-01-19 18:18:40 +00003275{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3276$as_echo_n "checking for egrep... " >&6; }
3277if test "${ac_cv_path_EGREP+set}" = set; then
3278 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003279else
drh8b727472009-01-19 18:18:40 +00003280 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3281 then ac_cv_path_EGREP="$GREP -E"
3282 else
3283 if test -z "$EGREP"; then
3284 ac_path_EGREP_found=false
3285 # Loop through the user's path and test for each of PROGNAME-LIST
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_prog in egrep; do
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3294 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3295# Check for GNU ac_path_EGREP and select it if it is found.
3296 # Check for GNU $ac_path_EGREP
3297case `"$ac_path_EGREP" --version 2>&1` in
3298*GNU*)
3299 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3300*)
3301 ac_count=0
3302 $as_echo_n 0123456789 >"conftest.in"
3303 while :
3304 do
3305 cat "conftest.in" "conftest.in" >"conftest.tmp"
3306 mv "conftest.tmp" "conftest.in"
3307 cp "conftest.in" "conftest.nl"
3308 $as_echo 'EGREP' >> "conftest.nl"
3309 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3311 ac_count=`expr $ac_count + 1`
3312 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3313 # Best one so far, save it but keep looking for a better one
3314 ac_cv_path_EGREP="$ac_path_EGREP"
3315 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003316 fi
drh8b727472009-01-19 18:18:40 +00003317 # 10*(2^10) chars as input seems more than enough
3318 test $ac_count -gt 10 && break
3319 done
3320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3321esac
3322
3323 $ac_path_EGREP_found && break 3
3324 done
3325 done
3326done
3327IFS=$as_save_IFS
3328 if test -z "$ac_cv_path_EGREP"; then
3329 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3330$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3331 { (exit 1); exit 1; }; }
3332 fi
3333else
3334 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003335fi
drh8b727472009-01-19 18:18:40 +00003336
3337 fi
3338fi
3339{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3340$as_echo "$ac_cv_path_EGREP" >&6; }
3341 EGREP="$ac_cv_path_EGREP"
3342
3343
3344{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3345$as_echo_n "checking for fgrep... " >&6; }
3346if test "${ac_cv_path_FGREP+set}" = set; then
3347 $as_echo_n "(cached) " >&6
3348else
3349 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3350 then ac_cv_path_FGREP="$GREP -F"
3351 else
3352 if test -z "$FGREP"; then
3353 ac_path_FGREP_found=false
3354 # Loop through the user's path and test for each of PROGNAME-LIST
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3357do
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_prog in fgrep; do
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3363 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3364# Check for GNU ac_path_FGREP and select it if it is found.
3365 # Check for GNU $ac_path_FGREP
3366case `"$ac_path_FGREP" --version 2>&1` in
3367*GNU*)
3368 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3369*)
3370 ac_count=0
3371 $as_echo_n 0123456789 >"conftest.in"
3372 while :
3373 do
3374 cat "conftest.in" "conftest.in" >"conftest.tmp"
3375 mv "conftest.tmp" "conftest.in"
3376 cp "conftest.in" "conftest.nl"
3377 $as_echo 'FGREP' >> "conftest.nl"
3378 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3380 ac_count=`expr $ac_count + 1`
3381 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3382 # Best one so far, save it but keep looking for a better one
3383 ac_cv_path_FGREP="$ac_path_FGREP"
3384 ac_path_FGREP_max=$ac_count
3385 fi
3386 # 10*(2^10) chars as input seems more than enough
3387 test $ac_count -gt 10 && break
3388 done
3389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3390esac
3391
3392 $ac_path_FGREP_found && break 3
3393 done
3394 done
3395done
3396IFS=$as_save_IFS
3397 if test -z "$ac_cv_path_FGREP"; then
3398 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3399$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3400 { (exit 1); exit 1; }; }
3401 fi
3402else
3403 ac_cv_path_FGREP=$FGREP
3404fi
3405
3406 fi
3407fi
3408{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3409$as_echo "$ac_cv_path_FGREP" >&6; }
3410 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003411
3412
3413test -z "$GREP" && GREP=grep
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
a.rottmann9bc8b932004-02-29 15:18:31 +00003430
3431
a.rottmann84e63352003-03-24 09:42:16 +00003432
drh8b727472009-01-19 18:18:40 +00003433# Check whether --with-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00003434if test "${with_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003435 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003436else
3437 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003438fi
3439
drh71eb93e2001-09-28 01:34:43 +00003440ac_prog=ld
3441if test "$GCC" = yes; then
3442 # Check if gcc -print-prog-name=ld gives a path.
drh8b727472009-01-19 18:18:40 +00003443 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3444$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003445 case $host in
3446 *-*-mingw*)
3447 # gcc leaves a trailing carriage return which upsets mingw
3448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3449 *)
3450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3451 esac
3452 case $ac_prog in
3453 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003454 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003455 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003456 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003457 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3458 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3459 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003460 done
3461 test -z "$LD" && LD="$ac_prog"
3462 ;;
3463 "")
3464 # If it fails, then pretend we aren't using GCC.
3465 ac_prog=ld
3466 ;;
3467 *)
3468 # If it is relative, then search for the first ld in PATH.
3469 with_gnu_ld=unknown
3470 ;;
3471 esac
3472elif test "$with_gnu_ld" = yes; then
drh8b727472009-01-19 18:18:40 +00003473 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3474$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003475else
drh8b727472009-01-19 18:18:40 +00003476 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3477$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003478fi
3479if test "${lt_cv_path_LD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003480 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003481else
3482 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003484 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003485 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003486 test -z "$ac_dir" && ac_dir=.
3487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3488 lt_cv_path_LD="$ac_dir/$ac_prog"
3489 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003490 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003491 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003492 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3493 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003494 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003495 ;;
3496 *)
drh71eb93e2001-09-28 01:34:43 +00003497 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003498 ;;
3499 esac
drh71eb93e2001-09-28 01:34:43 +00003500 fi
3501 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003502 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003503else
3504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3505fi
3506fi
3507
3508LD="$lt_cv_path_LD"
3509if test -n "$LD"; then
drh8b727472009-01-19 18:18:40 +00003510 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3511$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003512else
drh8b727472009-01-19 18:18:40 +00003513 { $as_echo "$as_me:$LINENO: result: no" >&5
3514$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003515fi
drh8b727472009-01-19 18:18:40 +00003516test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3517$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
drh71eb93e2001-09-28 01:34:43 +00003518 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003519{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3520$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003521if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003522 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003523else
vapier7f19c022007-02-17 14:46:31 +00003524 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003525case `$LD -v 2>&1 </dev/null` in
3526*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003527 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003528 ;;
3529*)
drh71eb93e2001-09-28 01:34:43 +00003530 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003531 ;;
3532esac
drh71eb93e2001-09-28 01:34:43 +00003533fi
drh8b727472009-01-19 18:18:40 +00003534{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3535$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003536with_gnu_ld=$lt_cv_prog_gnu_ld
3537
a.rottmann84e63352003-03-24 09:42:16 +00003538
drh71eb93e2001-09-28 01:34:43 +00003539
mlcreech636a9952008-05-05 22:52:56 +00003540
3541
3542
3543
3544
3545
drh8b727472009-01-19 18:18:40 +00003546{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3547$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003548if test "${lt_cv_path_NM+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003549 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003550else
3551 if test -n "$NM"; then
3552 # Let the user override the test.
3553 lt_cv_path_NM="$NM"
3554else
vapier7f19c022007-02-17 14:46:31 +00003555 lt_nm_to_check="${ac_tool_prefix}nm"
3556 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3557 lt_nm_to_check="$lt_nm_to_check nm"
3558 fi
3559 for lt_tmp_nm in $lt_nm_to_check; do
3560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3561 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3562 IFS="$lt_save_ifs"
3563 test -z "$ac_dir" && ac_dir=.
3564 tmp_nm="$ac_dir/$lt_tmp_nm"
3565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3566 # Check to see if the nm accepts a BSD-compat flag.
3567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3568 # nm: unknown option "B" ignored
3569 # Tru64's nm complains that /dev/null is an invalid object file
3570 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3571 */dev/null* | *'Invalid file or object type'*)
3572 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003573 break
3574 ;;
3575 *)
vapier7f19c022007-02-17 14:46:31 +00003576 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3577 */dev/null*)
3578 lt_cv_path_NM="$tmp_nm -p"
3579 break
3580 ;;
3581 *)
3582 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3583 continue # so that we can try to find one that supports BSD flags
3584 ;;
3585 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003586 ;;
3587 esac
vapier7f19c022007-02-17 14:46:31 +00003588 fi
3589 done
3590 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003591 done
mlcreech636a9952008-05-05 22:52:56 +00003592 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003593fi
3594fi
drh8b727472009-01-19 18:18:40 +00003595{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3596$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003597if test "$lt_cv_path_NM" != "no"; then
3598 NM="$lt_cv_path_NM"
3599else
3600 # Didn't find any BSD compatible name lister, look for dumpbin.
3601 if test -n "$ac_tool_prefix"; then
3602 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3603 do
3604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00003606{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3607$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003608if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003609 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003610else
3611 if test -n "$DUMPBIN"; then
3612 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3613else
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00003621 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh8b727472009-01-19 18:18:40 +00003622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003623 break 2
3624 fi
3625done
3626done
drh8b727472009-01-19 18:18:40 +00003627IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003628
mlcreech636a9952008-05-05 22:52:56 +00003629fi
3630fi
3631DUMPBIN=$ac_cv_prog_DUMPBIN
3632if test -n "$DUMPBIN"; then
drh8b727472009-01-19 18:18:40 +00003633 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3634$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003635else
drh8b727472009-01-19 18:18:40 +00003636 { $as_echo "$as_me:$LINENO: result: no" >&5
3637$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003638fi
3639
drh8b727472009-01-19 18:18:40 +00003640
mlcreech636a9952008-05-05 22:52:56 +00003641 test -n "$DUMPBIN" && break
3642 done
3643fi
3644if test -z "$DUMPBIN"; then
3645 ac_ct_DUMPBIN=$DUMPBIN
3646 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3647do
3648 # Extract the first word of "$ac_prog", so it can be a program name with args.
3649set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00003650{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3651$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003652if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003653 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003654else
3655 if test -n "$ac_ct_DUMPBIN"; then
3656 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3657else
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00003665 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh8b727472009-01-19 18:18:40 +00003666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003667 break 2
3668 fi
3669done
3670done
drh8b727472009-01-19 18:18:40 +00003671IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003672
3673fi
3674fi
3675ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3676if test -n "$ac_ct_DUMPBIN"; then
drh8b727472009-01-19 18:18:40 +00003677 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3678$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003679else
drh8b727472009-01-19 18:18:40 +00003680 { $as_echo "$as_me:$LINENO: result: no" >&5
3681$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003682fi
3683
drh8b727472009-01-19 18:18:40 +00003684
mlcreech636a9952008-05-05 22:52:56 +00003685 test -n "$ac_ct_DUMPBIN" && break
3686done
3687
drh8b727472009-01-19 18:18:40 +00003688 if test "x$ac_ct_DUMPBIN" = x; then
3689 DUMPBIN=":"
3690 else
3691 case $cross_compiling:$ac_tool_warned in
3692yes:)
3693{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3694whose name does not start with the host triplet. If you think this
3695configuration is useful to you, please write to autoconf@gnu.org." >&5
3696$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3697whose name does not start with the host triplet. If you think this
3698configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3699ac_tool_warned=yes ;;
3700esac
3701 DUMPBIN=$ac_ct_DUMPBIN
3702 fi
mlcreech636a9952008-05-05 22:52:56 +00003703fi
3704
3705
3706 if test "$DUMPBIN" != ":"; then
3707 NM="$DUMPBIN"
3708 fi
3709fi
3710test -z "$NM" && NM=nm
3711
3712
3713
3714
3715
3716
drh8b727472009-01-19 18:18:40 +00003717{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3718$as_echo_n "checking the name lister ($NM) interface... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003719if test "${lt_cv_nm_interface+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003720 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003721else
3722 lt_cv_nm_interface="BSD nm"
3723 echo "int some_variable = 0;" > conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003724 (eval echo "\"\$as_me:3724: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003725 (eval "$ac_compile" 2>conftest.err)
3726 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00003727 (eval echo "\"\$as_me:3727: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003728 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3729 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00003730 (eval echo "\"\$as_me:3730: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003731 cat conftest.out >&5
3732 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3733 lt_cv_nm_interface="MS dumpbin"
3734 fi
3735 rm -f conftest*
3736fi
drh8b727472009-01-19 18:18:40 +00003737{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3738$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003739
drh8b727472009-01-19 18:18:40 +00003740{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3741$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003742LN_S=$as_ln_s
3743if test "$LN_S" = "ln -s"; then
drh8b727472009-01-19 18:18:40 +00003744 { $as_echo "$as_me:$LINENO: result: yes" >&5
3745$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003746else
drh8b727472009-01-19 18:18:40 +00003747 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3748$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003749fi
3750
mlcreech636a9952008-05-05 22:52:56 +00003751# find the maximum length of command line arguments
drh8b727472009-01-19 18:18:40 +00003752{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3753$as_echo_n "checking the maximum length of command line arguments... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003754if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003755 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003756else
3757 i=0
3758 teststring="ABCD"
3759
3760 case $build_os in
3761 msdosdjgpp*)
3762 # On DJGPP, this test can blow up pretty badly due to problems in libc
3763 # (any single argument exceeding 2000 bytes causes a buffer overrun
3764 # during glob expansion). Even if it were fixed, the result of this
3765 # check would be larger than it should be.
3766 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3767 ;;
3768
3769 gnu*)
3770 # Under GNU Hurd, this test is not required because there is
3771 # no limit to the length of command line arguments.
3772 # Libtool will interpret -1 as no limit whatsoever
3773 lt_cv_sys_max_cmd_len=-1;
3774 ;;
3775
3776 cygwin* | mingw*)
3777 # On Win9x/ME, this test blows up -- it succeeds, but takes
3778 # about 5 minutes as the teststring grows exponentially.
3779 # Worse, since 9x/ME are not pre-emptively multitasking,
3780 # you end up with a "frozen" computer, even though with patience
3781 # the test eventually succeeds (with a max line length of 256k).
3782 # Instead, let's just punt: use the minimum linelength reported by
3783 # all of the supported platforms: 8192 (on NT/2K/XP).
3784 lt_cv_sys_max_cmd_len=8192;
3785 ;;
3786
3787 amigaos*)
3788 # On AmigaOS with pdksh, this test takes hours, literally.
3789 # So we just punt and use a minimum line length of 8192.
3790 lt_cv_sys_max_cmd_len=8192;
3791 ;;
3792
3793 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3794 # This has been around since 386BSD, at least. Likely further.
3795 if test -x /sbin/sysctl; then
3796 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3797 elif test -x /usr/sbin/sysctl; then
3798 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3799 else
3800 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3801 fi
3802 # And add a safety zone
3803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3805 ;;
3806
3807 interix*)
3808 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3809 lt_cv_sys_max_cmd_len=196608
3810 ;;
3811
3812 osf*)
3813 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3814 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3815 # nice to cause kernel panics so lets avoid the loop below.
3816 # First set a reasonable default.
3817 lt_cv_sys_max_cmd_len=16384
3818 #
3819 if test -x /sbin/sysconfig; then
3820 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3821 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3822 esac
3823 fi
3824 ;;
3825 sco3.2v5*)
3826 lt_cv_sys_max_cmd_len=102400
3827 ;;
3828 sysv5* | sco5v6* | sysv4.2uw2*)
3829 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3830 if test -n "$kargmax"; then
3831 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3832 else
3833 lt_cv_sys_max_cmd_len=32768
3834 fi
3835 ;;
3836 *)
3837 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3838 if test -n "$lt_cv_sys_max_cmd_len"; then
3839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3841 else
3842 # Make teststring a little bigger before we do anything with it.
3843 # a 1K string should be a reasonable start.
3844 for i in 1 2 3 4 5 6 7 8 ; do
3845 teststring=$teststring$teststring
3846 done
3847 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3848 # If test is not a shell built-in, we'll probably end up computing a
3849 # maximum length that is only half of the actual maximum length, but
3850 # we can't tell.
3851 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3852 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3853 test $i != 17 # 1/2 MB should be enough
3854 do
3855 i=`expr $i + 1`
3856 teststring=$teststring$teststring
3857 done
3858 # Only check the string length outside the loop.
3859 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3860 teststring=
3861 # Add a significant safety factor because C++ compilers can tack on
3862 # massive amounts of additional arguments before passing them to the
3863 # linker. It appears as though 1/2 is a usable value.
3864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3865 fi
3866 ;;
3867 esac
3868
3869fi
3870
3871if test -n $lt_cv_sys_max_cmd_len ; then
drh8b727472009-01-19 18:18:40 +00003872 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3873$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003874else
drh8b727472009-01-19 18:18:40 +00003875 { $as_echo "$as_me:$LINENO: result: none" >&5
3876$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003877fi
3878max_cmd_len=$lt_cv_sys_max_cmd_len
3879
3880
3881
3882
3883
3884
3885: ${CP="cp -f"}
3886: ${MV="mv -f"}
3887: ${RM="rm -f"}
3888
drh8b727472009-01-19 18:18:40 +00003889{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3890$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003891# Try some XSI features
3892xsi_shell=no
3893( _lt_dummy="a/b/c"
3894 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3895 = c,a/b,, \
3896 && eval 'test $(( 1 + 1 )) -eq 2 \
3897 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3898 && xsi_shell=yes
drh8b727472009-01-19 18:18:40 +00003899{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3900$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003901
3902
drh8b727472009-01-19 18:18:40 +00003903{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3904$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003905lt_shell_append=no
3906( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3907 >/dev/null 2>&1 \
3908 && lt_shell_append=yes
drh8b727472009-01-19 18:18:40 +00003909{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3910$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003911
3912
3913if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3914 lt_unset=unset
3915else
3916 lt_unset=false
3917fi
3918
3919
3920
3921
3922
3923# test EBCDIC or ASCII
3924case `echo X|tr X '\101'` in
3925 A) # ASCII based system
3926 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3927 lt_SP2NL='tr \040 \012'
3928 lt_NL2SP='tr \015\012 \040\040'
3929 ;;
3930 *) # EBCDIC based system
3931 lt_SP2NL='tr \100 \n'
3932 lt_NL2SP='tr \r\n \100\100'
3933 ;;
3934esac
3935
3936
3937
3938
3939
3940
3941
3942
3943
drh8b727472009-01-19 18:18:40 +00003944{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3945$as_echo_n "checking for $LD option to reload object files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003946if test "${lt_cv_ld_reload_flag+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003947 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003948else
3949 lt_cv_ld_reload_flag='-r'
3950fi
drh8b727472009-01-19 18:18:40 +00003951{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3952$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003953reload_flag=$lt_cv_ld_reload_flag
3954case $reload_flag in
3955"" | " "*) ;;
3956*) reload_flag=" $reload_flag" ;;
3957esac
3958reload_cmds='$LD$reload_flag -o $output$reload_objs'
3959case $host_os in
3960 darwin*)
3961 if test "$GCC" = yes; then
3962 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3963 else
3964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3965 fi
3966 ;;
3967esac
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
drh8b727472009-01-19 18:18:40 +00003978{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3979$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003980if test "${lt_cv_deplibs_check_method+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003981 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003982else
3983 lt_cv_file_magic_cmd='$MAGIC_CMD'
3984lt_cv_file_magic_test_file=
3985lt_cv_deplibs_check_method='unknown'
3986# Need to set the preceding variable on all platforms that support
3987# interlibrary dependencies.
3988# 'none' -- dependencies not supported.
3989# `unknown' -- same as none, but documents that we really don't know.
3990# 'pass_all' -- all dependencies passed with no checks.
3991# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00003992# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00003993# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00003994# If you have `file' or equivalent on your system and you're not sure
3995# whether `pass_all' will *always* work, you probably want this one.
3996
3997case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00003998aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00003999 lt_cv_deplibs_check_method=pass_all
4000 ;;
4001
4002beos*)
4003 lt_cv_deplibs_check_method=pass_all
4004 ;;
4005
vapier7f19c022007-02-17 14:46:31 +00004006bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4008 lt_cv_file_magic_cmd='/usr/bin/file -L'
4009 lt_cv_file_magic_test_file=/shlib/libc.so
4010 ;;
4011
a.rottmann9bc8b932004-02-29 15:18:31 +00004012cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004013 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004015 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004016 ;;
4017
4018mingw* | pw32*)
4019 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4021 # unless we find 'file', for example because we are cross-compiling.
4022 if ( file / ) >/dev/null 2>&1; then
4023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4024 lt_cv_file_magic_cmd='func_win32_libid'
4025 else
4026 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4027 lt_cv_file_magic_cmd='$OBJDUMP -f'
4028 fi
drh71eb93e2001-09-28 01:34:43 +00004029 ;;
4030
4031darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004032 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004033 ;;
4034
mlcreech636a9952008-05-05 22:52:56 +00004035freebsd* | dragonfly*)
4036 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004037 case $host_cpu in
4038 i*86 )
4039 # Not sure whether the presence of OpenBSD here was a mistake.
4040 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004041 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 +00004042 lt_cv_file_magic_cmd=/usr/bin/file
4043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4044 ;;
4045 esac
4046 else
4047 lt_cv_deplibs_check_method=pass_all
4048 fi
4049 ;;
4050
4051gnu*)
4052 lt_cv_deplibs_check_method=pass_all
4053 ;;
4054
a.rottmann9bc8b932004-02-29 15:18:31 +00004055hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004056 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004057 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004058 ia64*)
4059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4060 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4061 ;;
4062 hppa*64*)
4063 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]'
4064 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4065 ;;
4066 *)
4067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4068 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4069 ;;
4070 esac
drh71eb93e2001-09-28 01:34:43 +00004071 ;;
4072
mlcreech636a9952008-05-05 22:52:56 +00004073interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004074 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4076 ;;
4077
a.rottmann84e63352003-03-24 09:42:16 +00004078irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004079 case $LD in
4080 *-32|*"-32 ") libmagic=32-bit;;
4081 *-n32|*"-n32 ") libmagic=N32;;
4082 *-64|*"-64 ") libmagic=64-bit;;
4083 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004084 esac
drh71eb93e2001-09-28 01:34:43 +00004085 lt_cv_deplibs_check_method=pass_all
4086 ;;
4087
4088# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004089linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004090 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004091 ;;
4092
vapier7f19c022007-02-17 14:46:31 +00004093netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004094 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004096 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004098 fi
4099 ;;
4100
4101newos6*)
4102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4103 lt_cv_file_magic_cmd=/usr/bin/file
4104 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4105 ;;
4106
mlcreech636a9952008-05-05 22:52:56 +00004107*nto* | *qnx*)
4108 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004109 ;;
4110
a.rottmann84e63352003-03-24 09:42:16 +00004111openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004112 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004114 else
vapier7f19c022007-02-17 14:46:31 +00004115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004116 fi
drh71eb93e2001-09-28 01:34:43 +00004117 ;;
4118
4119osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004120 lt_cv_deplibs_check_method=pass_all
4121 ;;
4122
mlcreech636a9952008-05-05 22:52:56 +00004123rdos*)
4124 lt_cv_deplibs_check_method=pass_all
4125 ;;
4126
drh71eb93e2001-09-28 01:34:43 +00004127solaris*)
4128 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004129 ;;
4130
mlcreech636a9952008-05-05 22:52:56 +00004131sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4132 lt_cv_deplibs_check_method=pass_all
4133 ;;
4134
vapier7f19c022007-02-17 14:46:31 +00004135sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004136 case $host_vendor in
4137 motorola)
4138 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]'
4139 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4140 ;;
4141 ncr)
4142 lt_cv_deplibs_check_method=pass_all
4143 ;;
4144 sequent)
4145 lt_cv_file_magic_cmd='/bin/file'
4146 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4147 ;;
4148 sni)
4149 lt_cv_file_magic_cmd='/bin/file'
4150 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4151 lt_cv_file_magic_test_file=/lib/libc.so
4152 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004153 siemens)
4154 lt_cv_deplibs_check_method=pass_all
4155 ;;
vapier7f19c022007-02-17 14:46:31 +00004156 pc)
4157 lt_cv_deplibs_check_method=pass_all
4158 ;;
drh71eb93e2001-09-28 01:34:43 +00004159 esac
4160 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004161
mlcreech636a9952008-05-05 22:52:56 +00004162tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004163 lt_cv_deplibs_check_method=pass_all
4164 ;;
drh71eb93e2001-09-28 01:34:43 +00004165esac
4166
4167fi
drh8b727472009-01-19 18:18:40 +00004168{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4169$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004170file_magic_cmd=$lt_cv_file_magic_cmd
4171deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004172test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004173
drh71eb93e2001-09-28 01:34:43 +00004174
drh71eb93e2001-09-28 01:34:43 +00004175
drh71eb93e2001-09-28 01:34:43 +00004176
mlcreech636a9952008-05-05 22:52:56 +00004177
4178
4179
4180
4181
4182
4183
4184
4185if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4187set dummy ${ac_tool_prefix}ar; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004188{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4189$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004190if test "${ac_cv_prog_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004191 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004192else
4193 if test -n "$AR"; then
4194 ac_cv_prog_AR="$AR" # Let the user override the test.
4195else
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004203 ac_cv_prog_AR="${ac_tool_prefix}ar"
drh8b727472009-01-19 18:18:40 +00004204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004205 break 2
4206 fi
4207done
4208done
drh8b727472009-01-19 18:18:40 +00004209IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004210
4211fi
4212fi
4213AR=$ac_cv_prog_AR
4214if test -n "$AR"; then
drh8b727472009-01-19 18:18:40 +00004215 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4216$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004217else
drh8b727472009-01-19 18:18:40 +00004218 { $as_echo "$as_me:$LINENO: result: no" >&5
4219$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004220fi
4221
drh8b727472009-01-19 18:18:40 +00004222
mlcreech636a9952008-05-05 22:52:56 +00004223fi
4224if test -z "$ac_cv_prog_AR"; then
4225 ac_ct_AR=$AR
4226 # Extract the first word of "ar", so it can be a program name with args.
4227set dummy ar; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004228{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4229$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004230if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004231 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004232else
4233 if test -n "$ac_ct_AR"; then
4234 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4235else
4236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004243 ac_cv_prog_ac_ct_AR="ar"
drh8b727472009-01-19 18:18:40 +00004244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004245 break 2
4246 fi
4247done
4248done
drh8b727472009-01-19 18:18:40 +00004249IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004250
4251fi
4252fi
4253ac_ct_AR=$ac_cv_prog_ac_ct_AR
4254if test -n "$ac_ct_AR"; then
drh8b727472009-01-19 18:18:40 +00004255 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4256$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004257else
drh8b727472009-01-19 18:18:40 +00004258 { $as_echo "$as_me:$LINENO: result: no" >&5
4259$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004260fi
4261
drh8b727472009-01-19 18:18:40 +00004262 if test "x$ac_ct_AR" = x; then
4263 AR="false"
4264 else
4265 case $cross_compiling:$ac_tool_warned in
4266yes:)
4267{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4268whose name does not start with the host triplet. If you think this
4269configuration is useful to you, please write to autoconf@gnu.org." >&5
4270$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4271whose name does not start with the host triplet. If you think this
4272configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4273ac_tool_warned=yes ;;
4274esac
4275 AR=$ac_ct_AR
4276 fi
mlcreech636a9952008-05-05 22:52:56 +00004277else
4278 AR="$ac_cv_prog_AR"
4279fi
4280
4281test -z "$AR" && AR=ar
4282test -z "$AR_FLAGS" && AR_FLAGS=cru
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294if test -n "$ac_tool_prefix"; then
4295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4296set dummy ${ac_tool_prefix}strip; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004297{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4298$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004299if test "${ac_cv_prog_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004300 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004301else
4302 if test -n "$STRIP"; then
4303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4304else
4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004312 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh8b727472009-01-19 18:18:40 +00004313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004314 break 2
4315 fi
4316done
4317done
drh8b727472009-01-19 18:18:40 +00004318IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004319
4320fi
4321fi
4322STRIP=$ac_cv_prog_STRIP
4323if test -n "$STRIP"; then
drh8b727472009-01-19 18:18:40 +00004324 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4325$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004326else
drh8b727472009-01-19 18:18:40 +00004327 { $as_echo "$as_me:$LINENO: result: no" >&5
4328$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004329fi
4330
drh8b727472009-01-19 18:18:40 +00004331
mlcreech636a9952008-05-05 22:52:56 +00004332fi
4333if test -z "$ac_cv_prog_STRIP"; then
4334 ac_ct_STRIP=$STRIP
4335 # Extract the first word of "strip", so it can be a program name with args.
4336set dummy strip; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4338$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004339if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004340 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004341else
4342 if test -n "$ac_ct_STRIP"; then
4343 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004352 ac_cv_prog_ac_ct_STRIP="strip"
drh8b727472009-01-19 18:18:40 +00004353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004354 break 2
4355 fi
4356done
4357done
drh8b727472009-01-19 18:18:40 +00004358IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004359
4360fi
4361fi
4362ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4363if test -n "$ac_ct_STRIP"; then
drh8b727472009-01-19 18:18:40 +00004364 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4365$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004366else
drh8b727472009-01-19 18:18:40 +00004367 { $as_echo "$as_me:$LINENO: result: no" >&5
4368$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004369fi
4370
drh8b727472009-01-19 18:18:40 +00004371 if test "x$ac_ct_STRIP" = x; then
4372 STRIP=":"
4373 else
4374 case $cross_compiling:$ac_tool_warned in
4375yes:)
4376{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4377whose name does not start with the host triplet. If you think this
4378configuration is useful to you, please write to autoconf@gnu.org." >&5
4379$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4380whose name does not start with the host triplet. If you think this
4381configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4382ac_tool_warned=yes ;;
4383esac
4384 STRIP=$ac_ct_STRIP
4385 fi
mlcreech636a9952008-05-05 22:52:56 +00004386else
4387 STRIP="$ac_cv_prog_STRIP"
4388fi
4389
4390test -z "$STRIP" && STRIP=:
4391
4392
4393
4394
4395
4396
4397if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4399set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004400{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4401$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004402if test "${ac_cv_prog_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004403 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004404else
4405 if test -n "$RANLIB"; then
4406 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4407else
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004415 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh8b727472009-01-19 18:18:40 +00004416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004417 break 2
4418 fi
4419done
4420done
drh8b727472009-01-19 18:18:40 +00004421IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004422
4423fi
4424fi
4425RANLIB=$ac_cv_prog_RANLIB
4426if test -n "$RANLIB"; then
drh8b727472009-01-19 18:18:40 +00004427 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4428$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004429else
drh8b727472009-01-19 18:18:40 +00004430 { $as_echo "$as_me:$LINENO: result: no" >&5
4431$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004432fi
4433
drh8b727472009-01-19 18:18:40 +00004434
mlcreech636a9952008-05-05 22:52:56 +00004435fi
4436if test -z "$ac_cv_prog_RANLIB"; then
4437 ac_ct_RANLIB=$RANLIB
4438 # Extract the first word of "ranlib", so it can be a program name with args.
4439set dummy ranlib; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4441$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004442if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004443 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004444else
4445 if test -n "$ac_ct_RANLIB"; then
4446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4447else
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004455 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh8b727472009-01-19 18:18:40 +00004456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004457 break 2
4458 fi
4459done
4460done
drh8b727472009-01-19 18:18:40 +00004461IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004462
4463fi
4464fi
4465ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4466if test -n "$ac_ct_RANLIB"; then
drh8b727472009-01-19 18:18:40 +00004467 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4468$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004469else
drh8b727472009-01-19 18:18:40 +00004470 { $as_echo "$as_me:$LINENO: result: no" >&5
4471$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004472fi
4473
drh8b727472009-01-19 18:18:40 +00004474 if test "x$ac_ct_RANLIB" = x; then
4475 RANLIB=":"
4476 else
4477 case $cross_compiling:$ac_tool_warned in
4478yes:)
4479{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4480whose name does not start with the host triplet. If you think this
4481configuration is useful to you, please write to autoconf@gnu.org." >&5
4482$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4483whose name does not start with the host triplet. If you think this
4484configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4485ac_tool_warned=yes ;;
4486esac
4487 RANLIB=$ac_ct_RANLIB
4488 fi
mlcreech636a9952008-05-05 22:52:56 +00004489else
4490 RANLIB="$ac_cv_prog_RANLIB"
4491fi
4492
4493test -z "$RANLIB" && RANLIB=:
4494
4495
4496
4497
4498
4499
4500# Determine commands to create old-style static archives.
4501old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4502old_postinstall_cmds='chmod 644 $oldlib'
4503old_postuninstall_cmds=
4504
4505if test -n "$RANLIB"; then
4506 case $host_os in
4507 openbsd*)
4508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4509 ;;
4510 *)
4511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4512 ;;
4513 esac
4514 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4515fi
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
a.rottmann9bc8b932004-02-29 15:18:31 +00004550# If no C compiler was specified, use CC.
4551LTCC=${LTCC-"$CC"}
4552
vapier7f19c022007-02-17 14:46:31 +00004553# If no C compiler flags were specified, use CFLAGS.
4554LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4555
a.rottmann9bc8b932004-02-29 15:18:31 +00004556# Allow CC to be a program name with arguments.
4557compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004558
drh71eb93e2001-09-28 01:34:43 +00004559
mlcreech636a9952008-05-05 22:52:56 +00004560# Check for command to grab the raw symbol name followed by C symbol from nm.
drh8b727472009-01-19 18:18:40 +00004561{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4562$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004563if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004564 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004565else
4566
4567# These are sane defaults that work on at least a few old systems.
4568# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4569
4570# Character class describing NM global symbol codes.
4571symcode='[BCDEGRST]'
4572
4573# Regexp to match symbols that can be accessed directly from C.
4574sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4575
4576# Define system-specific variables.
4577case $host_os in
4578aix*)
4579 symcode='[BCDT]'
4580 ;;
4581cygwin* | mingw* | pw32*)
4582 symcode='[ABCDGISTW]'
4583 ;;
4584hpux*)
4585 if test "$host_cpu" = ia64; then
4586 symcode='[ABCDEGRST]'
4587 fi
4588 ;;
4589irix* | nonstopux*)
4590 symcode='[BCDEGRST]'
4591 ;;
4592osf*)
4593 symcode='[BCDEGQRST]'
4594 ;;
4595solaris*)
4596 symcode='[BDRT]'
4597 ;;
4598sco3.2v5*)
4599 symcode='[DT]'
4600 ;;
4601sysv4.2uw2*)
4602 symcode='[DT]'
4603 ;;
4604sysv5* | sco5v6* | unixware* | OpenUNIX*)
4605 symcode='[ABDT]'
4606 ;;
4607sysv4)
4608 symcode='[DFNSTU]'
4609 ;;
4610esac
4611
4612# If we're using GNU nm, then use its standard symbol codes.
4613case `$NM -V 2>&1` in
4614*GNU* | *'with BFD'*)
4615 symcode='[ABCDGIRSTW]' ;;
4616esac
4617
4618# Transform an extracted symbol line into a proper C declaration.
4619# Some systems (esp. on ia64) link data and code symbols differently,
4620# so use this general approach.
4621lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4622
4623# Transform an extracted symbol line into symbol name and symbol address
4624lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4625lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4626
4627# Handle CRLF in mingw tool chain
4628opt_cr=
4629case $build_os in
4630mingw*)
4631 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4632 ;;
4633esac
4634
4635# Try without a prefix underscore, then with it.
4636for ac_symprfx in "" "_"; do
4637
4638 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4639 symxfrm="\\1 $ac_symprfx\\2 \\2"
4640
4641 # Write the raw and C identifiers.
4642 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4643 # Fake it for dumpbin and say T for any non-static function
4644 # and D for any global variable.
4645 # Also find C++ and __fastcall symbols from MSVC++,
4646 # which start with @ or ?.
4647 lt_cv_sys_global_symbol_pipe="$AWK '"\
4648" {last_section=section; section=\$ 3};"\
4649" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4650" \$ 0!~/External *\|/{next};"\
4651" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4652" {if(hide[section]) next};"\
4653" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4654" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4655" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4656" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4657" ' prfx=^$ac_symprfx"
4658 else
4659 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4660 fi
4661
4662 # Check to see that the pipe works correctly.
4663 pipe_works=no
4664
4665 rm -f conftest*
4666 cat > conftest.$ac_ext <<_LT_EOF
4667#ifdef __cplusplus
4668extern "C" {
4669#endif
4670char nm_test_var;
4671void nm_test_func(void);
4672void nm_test_func(void){}
4673#ifdef __cplusplus
4674}
4675#endif
4676int main(){nm_test_var='a';nm_test_func();return(0);}
4677_LT_EOF
4678
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>&5
4681 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004683 (exit $ac_status); }; then
4684 # Now try to grab the symbols.
4685 nlist=conftest.nm
4686 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4687 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4688 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004690 (exit $ac_status); } && test -s "$nlist"; then
4691 # Try sorting and uniquifying the output.
4692 if sort "$nlist" | uniq > "$nlist"T; then
4693 mv -f "$nlist"T "$nlist"
4694 else
4695 rm -f "$nlist"T
4696 fi
4697
4698 # Make sure that we snagged all the symbols we need.
4699 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4700 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4701 cat <<_LT_EOF > conftest.$ac_ext
4702#ifdef __cplusplus
4703extern "C" {
4704#endif
4705
4706_LT_EOF
4707 # Now generate the symbol file.
4708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4709
4710 cat <<_LT_EOF >> conftest.$ac_ext
4711
4712/* The mapping between symbol names and symbols. */
4713const struct {
4714 const char *name;
4715 void *address;
4716}
4717lt__PROGRAM__LTX_preloaded_symbols[] =
4718{
4719 { "@PROGRAM@", (void *) 0 },
4720_LT_EOF
4721 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4722 cat <<\_LT_EOF >> conftest.$ac_ext
4723 {0, (void *) 0}
4724};
4725
4726/* This works around a problem in FreeBSD linker */
4727#ifdef FREEBSD_WORKAROUND
4728static const void *lt_preloaded_setup() {
4729 return lt__PROGRAM__LTX_preloaded_symbols;
4730}
4731#endif
4732
4733#ifdef __cplusplus
4734}
4735#endif
4736_LT_EOF
4737 # Now try linking the two files.
4738 mv conftest.$ac_objext conftstm.$ac_objext
4739 lt_save_LIBS="$LIBS"
4740 lt_save_CFLAGS="$CFLAGS"
4741 LIBS="conftstm.$ac_objext"
4742 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4745 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004747 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4748 pipe_works=yes
4749 fi
4750 LIBS="$lt_save_LIBS"
4751 CFLAGS="$lt_save_CFLAGS"
4752 else
4753 echo "cannot find nm_test_func in $nlist" >&5
4754 fi
4755 else
4756 echo "cannot find nm_test_var in $nlist" >&5
4757 fi
4758 else
4759 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4760 fi
4761 else
4762 echo "$progname: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4764 fi
4765 rm -rf conftest* conftst*
4766
4767 # Do not use the global_symbol_pipe unless it works.
4768 if test "$pipe_works" = yes; then
4769 break
4770 else
4771 lt_cv_sys_global_symbol_pipe=
4772 fi
4773done
4774
4775fi
4776
4777if test -z "$lt_cv_sys_global_symbol_pipe"; then
4778 lt_cv_sys_global_symbol_to_cdecl=
4779fi
4780if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh8b727472009-01-19 18:18:40 +00004781 { $as_echo "$as_me:$LINENO: result: failed" >&5
4782$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004783else
drh8b727472009-01-19 18:18:40 +00004784 { $as_echo "$as_me:$LINENO: result: ok" >&5
4785$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004786fi
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
drh8b727472009-01-19 18:18:40 +00004810# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00004811if test "${enable_libtool_lock+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004812 enableval=$enable_libtool_lock;
4813fi
drh71eb93e2001-09-28 01:34:43 +00004814
a.rottmann9bc8b932004-02-29 15:18:31 +00004815test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00004816
a.rottmann9bc8b932004-02-29 15:18:31 +00004817# Some flags need to be propagated to the compiler or linker for good
4818# libtool support.
4819case $host in
4820ia64-*-hpux*)
4821 # Find out which ABI we are using.
4822 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00004824 (eval $ac_compile) 2>&5
4825 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00004827 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004828 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00004829 *ELF-32*)
4830 HPUX_IA64_MODE="32"
4831 ;;
4832 *ELF-64*)
4833 HPUX_IA64_MODE="64"
4834 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004835 esac
4836 fi
4837 rm -rf conftest*
4838 ;;
4839*-*-irix6*)
4840 # Find out which ABI we are using.
drh8b727472009-01-19 18:18:40 +00004841 echo '#line 4841 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00004844 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004846 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004847 if test "$lt_cv_prog_gnu_ld" = yes; then
4848 case `/usr/bin/file conftest.$ac_objext` in
4849 *32-bit*)
4850 LD="${LD-ld} -melf32bsmip"
4851 ;;
4852 *N32*)
4853 LD="${LD-ld} -melf32bmipn32"
4854 ;;
4855 *64-bit*)
4856 LD="${LD-ld} -melf64bmip"
4857 ;;
4858 esac
4859 else
4860 case `/usr/bin/file conftest.$ac_objext` in
4861 *32-bit*)
4862 LD="${LD-ld} -32"
4863 ;;
4864 *N32*)
4865 LD="${LD-ld} -n32"
4866 ;;
4867 *64-bit*)
4868 LD="${LD-ld} -64"
4869 ;;
4870 esac
4871 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004872 fi
4873 rm -rf conftest*
4874 ;;
drh71eb93e2001-09-28 01:34:43 +00004875
mlcreech636a9952008-05-05 22:52:56 +00004876x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4877s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004878 # Find out which ABI we are using.
4879 echo 'int i;' > conftest.$ac_ext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>&5
4882 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004884 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00004885 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00004886 *32-bit*)
4887 case $host in
4888 x86_64-*kfreebsd*-gnu)
4889 LD="${LD-ld} -m elf_i386_fbsd"
4890 ;;
4891 x86_64-*linux*)
4892 LD="${LD-ld} -m elf_i386"
4893 ;;
4894 ppc64-*linux*|powerpc64-*linux*)
4895 LD="${LD-ld} -m elf32ppclinux"
4896 ;;
4897 s390x-*linux*)
4898 LD="${LD-ld} -m elf_s390"
4899 ;;
4900 sparc64-*linux*)
4901 LD="${LD-ld} -m elf32_sparc"
4902 ;;
4903 esac
4904 ;;
4905 *64-bit*)
4906 case $host in
4907 x86_64-*kfreebsd*-gnu)
4908 LD="${LD-ld} -m elf_x86_64_fbsd"
4909 ;;
4910 x86_64-*linux*)
4911 LD="${LD-ld} -m elf_x86_64"
4912 ;;
4913 ppc*-*linux*|powerpc*-*linux*)
4914 LD="${LD-ld} -m elf64ppc"
4915 ;;
4916 s390*-*linux*|s390*-*tpf*)
4917 LD="${LD-ld} -m elf64_s390"
4918 ;;
4919 sparc*-*linux*)
4920 LD="${LD-ld} -m elf64_sparc"
4921 ;;
4922 esac
4923 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004924 esac
4925 fi
4926 rm -rf conftest*
4927 ;;
drh71eb93e2001-09-28 01:34:43 +00004928
a.rottmann9bc8b932004-02-29 15:18:31 +00004929*-*-sco3.2v5*)
4930 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4931 SAVE_CFLAGS="$CFLAGS"
4932 CFLAGS="$CFLAGS -belf"
drh8b727472009-01-19 18:18:40 +00004933 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4934$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004935if test "${lt_cv_cc_needs_belf+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004936 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004937else
4938 ac_ext=c
4939ac_cpp='$CPP $CPPFLAGS'
4940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00004943
a.rottmann9bc8b932004-02-29 15:18:31 +00004944 cat >conftest.$ac_ext <<_ACEOF
4945/* confdefs.h. */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004950
a.rottmann9bc8b932004-02-29 15:18:31 +00004951int
4952main ()
drh71eb93e2001-09-28 01:34:43 +00004953{
drh71eb93e2001-09-28 01:34:43 +00004954
a.rottmann9bc8b932004-02-29 15:18:31 +00004955 ;
4956 return 0;
drh71eb93e2001-09-28 01:34:43 +00004957}
a.rottmann9bc8b932004-02-29 15:18:31 +00004958_ACEOF
4959rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00004960if { (ac_try="$ac_link"
4961case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964esac
4965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4966$as_echo "$ac_try_echo") >&5
4967 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00004972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && {
4974 test -z "$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 } && test -s conftest$ac_exeext && {
4977 test "$cross_compiling" = yes ||
4978 $as_test_x conftest$ac_exeext
4979 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004980 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00004981else
drh8b727472009-01-19 18:18:40 +00004982 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004983sed 's/^/| /' conftest.$ac_ext >&5
4984
drh8b727472009-01-19 18:18:40 +00004985 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00004986fi
drh8b727472009-01-19 18:18:40 +00004987
4988rm -rf conftest.dSYM
4989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00004990 conftest$ac_exeext conftest.$ac_ext
4991 ac_ext=c
4992ac_cpp='$CPP $CPPFLAGS'
4993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
drh71eb93e2001-09-28 01:34:43 +00004997fi
drh8b727472009-01-19 18:18:40 +00004998{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4999$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005000 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5001 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5002 CFLAGS="$SAVE_CFLAGS"
5003 fi
5004 ;;
vapier7f19c022007-02-17 14:46:31 +00005005sparc*-*solaris*)
5006 # Find out which ABI we are using.
5007 echo 'int i;' > conftest.$ac_ext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>&5
5010 ac_status=$?
drh8b727472009-01-19 18:18:40 +00005011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
vapier7f19c022007-02-17 14:46:31 +00005012 (exit $ac_status); }; then
5013 case `/usr/bin/file conftest.o` in
5014 *64-bit*)
5015 case $lt_cv_prog_gnu_ld in
5016 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005017 *)
5018 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5019 LD="${LD-ld} -64"
5020 fi
5021 ;;
vapier7f19c022007-02-17 14:46:31 +00005022 esac
5023 ;;
5024 esac
5025 fi
5026 rm -rf conftest*
5027 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005028esac
5029
5030need_locks="$enable_libtool_lock"
5031
drh71eb93e2001-09-28 01:34:43 +00005032
mlcreech636a9952008-05-05 22:52:56 +00005033 case $host_os in
5034 rhapsody* | darwin*)
5035 if test -n "$ac_tool_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5037set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005038{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5039$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005040if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005041 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005042else
5043 if test -n "$DSYMUTIL"; then
5044 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5045else
5046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005053 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh8b727472009-01-19 18:18:40 +00005054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005055 break 2
5056 fi
5057done
5058done
drh8b727472009-01-19 18:18:40 +00005059IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005060
5061fi
5062fi
5063DSYMUTIL=$ac_cv_prog_DSYMUTIL
5064if test -n "$DSYMUTIL"; then
drh8b727472009-01-19 18:18:40 +00005065 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5066$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005067else
drh8b727472009-01-19 18:18:40 +00005068 { $as_echo "$as_me:$LINENO: result: no" >&5
5069$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005070fi
5071
drh8b727472009-01-19 18:18:40 +00005072
mlcreech636a9952008-05-05 22:52:56 +00005073fi
5074if test -z "$ac_cv_prog_DSYMUTIL"; then
5075 ac_ct_DSYMUTIL=$DSYMUTIL
5076 # Extract the first word of "dsymutil", so it can be a program name with args.
5077set dummy dsymutil; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005078{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005080if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005081 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005082else
5083 if test -n "$ac_ct_DSYMUTIL"; then
5084 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5085else
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005093 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh8b727472009-01-19 18:18:40 +00005094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005095 break 2
5096 fi
5097done
5098done
drh8b727472009-01-19 18:18:40 +00005099IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005100
5101fi
5102fi
5103ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5104if test -n "$ac_ct_DSYMUTIL"; then
drh8b727472009-01-19 18:18:40 +00005105 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5106$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005107else
drh8b727472009-01-19 18:18:40 +00005108 { $as_echo "$as_me:$LINENO: result: no" >&5
5109$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005110fi
5111
drh8b727472009-01-19 18:18:40 +00005112 if test "x$ac_ct_DSYMUTIL" = x; then
5113 DSYMUTIL=":"
5114 else
5115 case $cross_compiling:$ac_tool_warned in
5116yes:)
5117{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5118whose name does not start with the host triplet. If you think this
5119configuration is useful to you, please write to autoconf@gnu.org." >&5
5120$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5121whose name does not start with the host triplet. If you think this
5122configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5123ac_tool_warned=yes ;;
5124esac
5125 DSYMUTIL=$ac_ct_DSYMUTIL
5126 fi
mlcreech636a9952008-05-05 22:52:56 +00005127else
5128 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5129fi
5130
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5133set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005136if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005137 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005138else
5139 if test -n "$NMEDIT"; then
5140 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005149 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh8b727472009-01-19 18:18:40 +00005150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005151 break 2
5152 fi
5153done
5154done
drh8b727472009-01-19 18:18:40 +00005155IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005156
5157fi
5158fi
5159NMEDIT=$ac_cv_prog_NMEDIT
5160if test -n "$NMEDIT"; then
drh8b727472009-01-19 18:18:40 +00005161 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5162$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005163else
drh8b727472009-01-19 18:18:40 +00005164 { $as_echo "$as_me:$LINENO: result: no" >&5
5165$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005166fi
5167
drh8b727472009-01-19 18:18:40 +00005168
mlcreech636a9952008-05-05 22:52:56 +00005169fi
5170if test -z "$ac_cv_prog_NMEDIT"; then
5171 ac_ct_NMEDIT=$NMEDIT
5172 # Extract the first word of "nmedit", so it can be a program name with args.
5173set dummy nmedit; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005174{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005176if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005177 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005178else
5179 if test -n "$ac_ct_NMEDIT"; then
5180 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005189 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh8b727472009-01-19 18:18:40 +00005190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005191 break 2
5192 fi
5193done
5194done
drh8b727472009-01-19 18:18:40 +00005195IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005196
5197fi
5198fi
5199ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5200if test -n "$ac_ct_NMEDIT"; then
drh8b727472009-01-19 18:18:40 +00005201 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5202$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005203else
drh8b727472009-01-19 18:18:40 +00005204 { $as_echo "$as_me:$LINENO: result: no" >&5
5205$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005206fi
5207
drh8b727472009-01-19 18:18:40 +00005208 if test "x$ac_ct_NMEDIT" = x; then
5209 NMEDIT=":"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212yes:)
5213{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5214whose name does not start with the host triplet. If you think this
5215configuration is useful to you, please write to autoconf@gnu.org." >&5
5216$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5217whose name does not start with the host triplet. If you think this
5218configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5219ac_tool_warned=yes ;;
5220esac
5221 NMEDIT=$ac_ct_NMEDIT
5222 fi
mlcreech636a9952008-05-05 22:52:56 +00005223else
5224 NMEDIT="$ac_cv_prog_NMEDIT"
5225fi
5226
5227 if test -n "$ac_tool_prefix"; then
5228 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5229set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5231$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005232if test "${ac_cv_prog_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005233 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005234else
5235 if test -n "$LIPO"; then
5236 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5237else
5238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005245 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh8b727472009-01-19 18:18:40 +00005246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005247 break 2
5248 fi
5249done
5250done
drh8b727472009-01-19 18:18:40 +00005251IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005252
5253fi
5254fi
5255LIPO=$ac_cv_prog_LIPO
5256if test -n "$LIPO"; then
drh8b727472009-01-19 18:18:40 +00005257 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5258$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005259else
drh8b727472009-01-19 18:18:40 +00005260 { $as_echo "$as_me:$LINENO: result: no" >&5
5261$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005262fi
5263
drh8b727472009-01-19 18:18:40 +00005264
mlcreech636a9952008-05-05 22:52:56 +00005265fi
5266if test -z "$ac_cv_prog_LIPO"; then
5267 ac_ct_LIPO=$LIPO
5268 # Extract the first word of "lipo", so it can be a program name with args.
5269set dummy lipo; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5271$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005272if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005273 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005274else
5275 if test -n "$ac_ct_LIPO"; then
5276 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005285 ac_cv_prog_ac_ct_LIPO="lipo"
drh8b727472009-01-19 18:18:40 +00005286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005287 break 2
5288 fi
5289done
5290done
drh8b727472009-01-19 18:18:40 +00005291IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005292
5293fi
5294fi
5295ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5296if test -n "$ac_ct_LIPO"; then
drh8b727472009-01-19 18:18:40 +00005297 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5298$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005299else
drh8b727472009-01-19 18:18:40 +00005300 { $as_echo "$as_me:$LINENO: result: no" >&5
5301$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005302fi
5303
drh8b727472009-01-19 18:18:40 +00005304 if test "x$ac_ct_LIPO" = x; then
5305 LIPO=":"
5306 else
5307 case $cross_compiling:$ac_tool_warned in
5308yes:)
5309{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5310whose name does not start with the host triplet. If you think this
5311configuration is useful to you, please write to autoconf@gnu.org." >&5
5312$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5313whose name does not start with the host triplet. If you think this
5314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5315ac_tool_warned=yes ;;
5316esac
5317 LIPO=$ac_ct_LIPO
5318 fi
mlcreech636a9952008-05-05 22:52:56 +00005319else
5320 LIPO="$ac_cv_prog_LIPO"
5321fi
5322
5323 if test -n "$ac_tool_prefix"; then
5324 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5325set dummy ${ac_tool_prefix}otool; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5327$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005328if test "${ac_cv_prog_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005329 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005330else
5331 if test -n "$OTOOL"; then
5332 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5333else
5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335for as_dir in $PATH
5336do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005341 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh8b727472009-01-19 18:18:40 +00005342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005343 break 2
5344 fi
5345done
5346done
drh8b727472009-01-19 18:18:40 +00005347IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005348
5349fi
5350fi
5351OTOOL=$ac_cv_prog_OTOOL
5352if test -n "$OTOOL"; then
drh8b727472009-01-19 18:18:40 +00005353 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5354$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005355else
drh8b727472009-01-19 18:18:40 +00005356 { $as_echo "$as_me:$LINENO: result: no" >&5
5357$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005358fi
5359
drh8b727472009-01-19 18:18:40 +00005360
mlcreech636a9952008-05-05 22:52:56 +00005361fi
5362if test -z "$ac_cv_prog_OTOOL"; then
5363 ac_ct_OTOOL=$OTOOL
5364 # Extract the first word of "otool", so it can be a program name with args.
5365set dummy otool; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5367$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005368if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005369 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005370else
5371 if test -n "$ac_ct_OTOOL"; then
5372 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005381 ac_cv_prog_ac_ct_OTOOL="otool"
drh8b727472009-01-19 18:18:40 +00005382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005383 break 2
5384 fi
5385done
5386done
drh8b727472009-01-19 18:18:40 +00005387IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005388
5389fi
5390fi
5391ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5392if test -n "$ac_ct_OTOOL"; then
drh8b727472009-01-19 18:18:40 +00005393 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5394$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005395else
drh8b727472009-01-19 18:18:40 +00005396 { $as_echo "$as_me:$LINENO: result: no" >&5
5397$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005398fi
5399
drh8b727472009-01-19 18:18:40 +00005400 if test "x$ac_ct_OTOOL" = x; then
5401 OTOOL=":"
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404yes:)
5405{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5406whose name does not start with the host triplet. If you think this
5407configuration is useful to you, please write to autoconf@gnu.org." >&5
5408$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5409whose name does not start with the host triplet. If you think this
5410configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5411ac_tool_warned=yes ;;
5412esac
5413 OTOOL=$ac_ct_OTOOL
5414 fi
mlcreech636a9952008-05-05 22:52:56 +00005415else
5416 OTOOL="$ac_cv_prog_OTOOL"
5417fi
5418
5419 if test -n "$ac_tool_prefix"; then
5420 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5421set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005422{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005424if test "${ac_cv_prog_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005425 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005426else
5427 if test -n "$OTOOL64"; then
5428 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005437 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drh8b727472009-01-19 18:18:40 +00005438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005439 break 2
5440 fi
5441done
5442done
drh8b727472009-01-19 18:18:40 +00005443IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005444
5445fi
5446fi
5447OTOOL64=$ac_cv_prog_OTOOL64
5448if test -n "$OTOOL64"; then
drh8b727472009-01-19 18:18:40 +00005449 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5450$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005451else
drh8b727472009-01-19 18:18:40 +00005452 { $as_echo "$as_me:$LINENO: result: no" >&5
5453$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005454fi
5455
drh8b727472009-01-19 18:18:40 +00005456
mlcreech636a9952008-05-05 22:52:56 +00005457fi
5458if test -z "$ac_cv_prog_OTOOL64"; then
5459 ac_ct_OTOOL64=$OTOOL64
5460 # Extract the first word of "otool64", so it can be a program name with args.
5461set dummy otool64; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005464if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005465 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005466else
5467 if test -n "$ac_ct_OTOOL64"; then
5468 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005477 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh8b727472009-01-19 18:18:40 +00005478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005479 break 2
5480 fi
5481done
5482done
drh8b727472009-01-19 18:18:40 +00005483IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005484
5485fi
5486fi
5487ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5488if test -n "$ac_ct_OTOOL64"; then
drh8b727472009-01-19 18:18:40 +00005489 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5490$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005491else
drh8b727472009-01-19 18:18:40 +00005492 { $as_echo "$as_me:$LINENO: result: no" >&5
5493$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005494fi
5495
drh8b727472009-01-19 18:18:40 +00005496 if test "x$ac_ct_OTOOL64" = x; then
5497 OTOOL64=":"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500yes:)
5501{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5502whose name does not start with the host triplet. If you think this
5503configuration is useful to you, please write to autoconf@gnu.org." >&5
5504$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5505whose name does not start with the host triplet. If you think this
5506configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5507ac_tool_warned=yes ;;
5508esac
5509 OTOOL64=$ac_ct_OTOOL64
5510 fi
mlcreech636a9952008-05-05 22:52:56 +00005511else
5512 OTOOL64="$ac_cv_prog_OTOOL64"
5513fi
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
drh8b727472009-01-19 18:18:40 +00005541 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5542$as_echo_n "checking for -single_module linker flag... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005543if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005544 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005545else
5546 lt_cv_apple_cc_single_mod=no
5547 if test -z "${LT_MULTI_MODULE}"; then
5548 # By default we will add the -single_module flag. You can override
5549 # by either setting the environment variable LT_MULTI_MODULE
5550 # non-empty at configure time, or by adding -multi_module to the
5551 # link flags.
5552 rm -rf libconftest.dylib*
5553 echo "int foo(void){return 1;}" > conftest.c
5554 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5555-dynamiclib -Wl,-single_module conftest.c" >&5
5556 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5557 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5558 _lt_result=$?
5559 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5560 lt_cv_apple_cc_single_mod=yes
5561 else
5562 cat conftest.err >&5
5563 fi
5564 rm -rf libconftest.dylib*
5565 rm -f conftest.*
5566 fi
5567fi
drh8b727472009-01-19 18:18:40 +00005568{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5569$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5570 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5571$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005572if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005573 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005574else
5575 lt_cv_ld_exported_symbols_list=no
5576 save_LDFLAGS=$LDFLAGS
5577 echo "_main" > conftest.sym
5578 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5579 cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h. */
5585
5586int
5587main ()
5588{
5589
5590 ;
5591 return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00005595if { (ac_try="$ac_link"
5596case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599esac
5600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5601$as_echo "$ac_try_echo") >&5
5602 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00005603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } && {
5609 test -z "$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5611 } && test -s conftest$ac_exeext && {
5612 test "$cross_compiling" = yes ||
5613 $as_test_x conftest$ac_exeext
5614 }; then
mlcreech636a9952008-05-05 22:52:56 +00005615 lt_cv_ld_exported_symbols_list=yes
5616else
drh8b727472009-01-19 18:18:40 +00005617 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00005618sed 's/^/| /' conftest.$ac_ext >&5
5619
drh8b727472009-01-19 18:18:40 +00005620 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005621fi
drh8b727472009-01-19 18:18:40 +00005622
5623rm -rf conftest.dSYM
5624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00005625 conftest$ac_exeext conftest.$ac_ext
5626 LDFLAGS="$save_LDFLAGS"
5627
5628fi
drh8b727472009-01-19 18:18:40 +00005629{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5630$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005631 case $host_os in
5632 rhapsody* | darwin1.[012])
5633 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5634 darwin1.*)
5635 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5636 darwin*) # darwin 5.x on
5637 # if running on 10.5 or later, the deployment target defaults
5638 # to the OS version, if on x86, and 10.4, the deployment
5639 # target defaults to 10.4. Don't you love it?
5640 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5641 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5642 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5643 10.[012]*)
5644 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5645 10.*)
5646 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5647 esac
5648 ;;
5649 esac
5650 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5651 _lt_dar_single_mod='$single_module'
5652 fi
5653 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5654 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5655 else
5656 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5657 fi
5658 if test "$DSYMUTIL" != ":"; then
5659 _lt_dsymutil='~$DSYMUTIL $lib || :'
5660 else
5661 _lt_dsymutil=
5662 fi
5663 ;;
5664 esac
5665
a.rottmann84e63352003-03-24 09:42:16 +00005666ac_ext=c
5667ac_cpp='$CPP $CPPFLAGS'
5668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5670ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh8b727472009-01-19 18:18:40 +00005671{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5672$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005673# On Suns, sometimes $CPP names a directory.
5674if test -n "$CPP" && test -d "$CPP"; then
5675 CPP=
5676fi
5677if test -z "$CPP"; then
5678 if test "${ac_cv_prog_CPP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005679 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005680else
a.rottmann84e63352003-03-24 09:42:16 +00005681 # Double quotes because CPP needs to be expanded
5682 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5683 do
5684 ac_preproc_ok=false
5685for ac_c_preproc_warn_flag in '' yes
5686do
5687 # Use a header file that comes with gcc, so configuring glibc
5688 # with a fresh cross-compiler works.
5689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5690 # <limits.h> exists even on freestanding compilers.
5691 # On the NeXT, cc -E runs the code through the compiler's parser,
5692 # not just through cpp. "Syntax error" is here to catch this case.
5693 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005694/* confdefs.h. */
5695_ACEOF
5696cat confdefs.h >>conftest.$ac_ext
5697cat >>conftest.$ac_ext <<_ACEOF
5698/* end confdefs.h. */
5699#ifdef __STDC__
5700# include <limits.h>
5701#else
5702# include <assert.h>
5703#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005704 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005705_ACEOF
drh8b727472009-01-19 18:18:40 +00005706if { (ac_try="$ac_cpp conftest.$ac_ext"
5707case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710esac
5711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5712$as_echo "$ac_try_echo") >&5
5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev/null && {
5720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5721 test ! -s conftest.err
5722 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005723 :
5724else
drh8b727472009-01-19 18:18:40 +00005725 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 # Broken: fails on valid input.
5729continue
5730fi
drh8b727472009-01-19 18:18:40 +00005731
a.rottmann84e63352003-03-24 09:42:16 +00005732rm -f conftest.err conftest.$ac_ext
5733
drh8b727472009-01-19 18:18:40 +00005734 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005735 # can be detected and how.
5736 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005737/* confdefs.h. */
5738_ACEOF
5739cat confdefs.h >>conftest.$ac_ext
5740cat >>conftest.$ac_ext <<_ACEOF
5741/* end confdefs.h. */
5742#include <ac_nonexistent.h>
5743_ACEOF
drh8b727472009-01-19 18:18:40 +00005744if { (ac_try="$ac_cpp conftest.$ac_ext"
5745case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748esac
5749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5750$as_echo "$ac_try_echo") >&5
5751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } >/dev/null && {
5758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005761 # Broken: success on invalid input.
5762continue
5763else
drh8b727472009-01-19 18:18:40 +00005764 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005765sed 's/^/| /' conftest.$ac_ext >&5
5766
5767 # Passes both tests.
5768ac_preproc_ok=:
5769break
5770fi
drh8b727472009-01-19 18:18:40 +00005771
a.rottmann84e63352003-03-24 09:42:16 +00005772rm -f conftest.err conftest.$ac_ext
5773
5774done
5775# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5776rm -f conftest.err conftest.$ac_ext
5777if $ac_preproc_ok; then
5778 break
5779fi
5780
5781 done
5782 ac_cv_prog_CPP=$CPP
5783
5784fi
5785 CPP=$ac_cv_prog_CPP
5786else
5787 ac_cv_prog_CPP=$CPP
5788fi
drh8b727472009-01-19 18:18:40 +00005789{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5790$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005791ac_preproc_ok=false
5792for ac_c_preproc_warn_flag in '' yes
5793do
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h. */
5806#ifdef __STDC__
5807# include <limits.h>
5808#else
5809# include <assert.h>
5810#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005811 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005812_ACEOF
drh8b727472009-01-19 18:18:40 +00005813if { (ac_try="$ac_cpp conftest.$ac_ext"
5814case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817esac
5818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5819$as_echo "$ac_try_echo") >&5
5820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } >/dev/null && {
5827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5828 test ! -s conftest.err
5829 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005830 :
5831else
drh8b727472009-01-19 18:18:40 +00005832 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005833sed 's/^/| /' conftest.$ac_ext >&5
5834
5835 # Broken: fails on valid input.
5836continue
5837fi
drh8b727472009-01-19 18:18:40 +00005838
a.rottmann84e63352003-03-24 09:42:16 +00005839rm -f conftest.err conftest.$ac_ext
5840
drh8b727472009-01-19 18:18:40 +00005841 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005842 # can be detected and how.
5843 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005844/* confdefs.h. */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
5848/* end confdefs.h. */
5849#include <ac_nonexistent.h>
5850_ACEOF
drh8b727472009-01-19 18:18:40 +00005851if { (ac_try="$ac_cpp conftest.$ac_ext"
5852case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855esac
5856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5857$as_echo "$ac_try_echo") >&5
5858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } >/dev/null && {
5865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005868 # Broken: success on invalid input.
5869continue
5870else
drh8b727472009-01-19 18:18:40 +00005871 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 # Passes both tests.
5875ac_preproc_ok=:
5876break
5877fi
drh8b727472009-01-19 18:18:40 +00005878
a.rottmann84e63352003-03-24 09:42:16 +00005879rm -f conftest.err conftest.$ac_ext
5880
5881done
5882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5883rm -f conftest.err conftest.$ac_ext
5884if $ac_preproc_ok; then
5885 :
5886else
drh8b727472009-01-19 18:18:40 +00005887 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00005888See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00005889$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00005890See \`config.log' for more details." >&2;}
5891 { (exit 1); exit 1; }; }
5892fi
5893
5894ac_ext=c
5895ac_cpp='$CPP $CPPFLAGS'
5896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5898ac_compiler_gnu=$ac_cv_c_compiler_gnu
5899
5900
drh8b727472009-01-19 18:18:40 +00005901{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5902$as_echo_n "checking for ANSI C header files... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005903if test "${ac_cv_header_stdc+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005904 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00005905else
5906 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912#include <stdlib.h>
5913#include <stdarg.h>
5914#include <string.h>
5915#include <float.h>
5916
5917int
5918main ()
5919{
5920
5921 ;
5922 return 0;
5923}
5924_ACEOF
5925rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00005926if { (ac_try="$ac_compile"
5927case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930esac
5931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5932$as_echo "$ac_try_echo") >&5
5933 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005934 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00005935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && {
5940 test -z "$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00005943 ac_cv_header_stdc=yes
5944else
drh8b727472009-01-19 18:18:40 +00005945 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005946sed 's/^/| /' conftest.$ac_ext >&5
5947
drh8b727472009-01-19 18:18:40 +00005948 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00005949fi
drh8b727472009-01-19 18:18:40 +00005950
5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005952
5953if test $ac_cv_header_stdc = yes; then
5954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5955 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h. */
5961#include <string.h>
5962
5963_ACEOF
5964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5965 $EGREP "memchr" >/dev/null 2>&1; then
5966 :
5967else
5968 ac_cv_header_stdc=no
5969fi
5970rm -f conftest*
5971
5972fi
5973
5974if test $ac_cv_header_stdc = yes; then
5975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5976 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005977/* confdefs.h. */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h. */
5982#include <stdlib.h>
5983
5984_ACEOF
5985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5986 $EGREP "free" >/dev/null 2>&1; then
5987 :
5988else
5989 ac_cv_header_stdc=no
5990fi
5991rm -f conftest*
5992
5993fi
5994
5995if test $ac_cv_header_stdc = yes; then
5996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5997 if test "$cross_compiling" = yes; then
5998 :
5999else
6000 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006001/* confdefs.h. */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
6005/* end confdefs.h. */
6006#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006007#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006008#if ((' ' & 0x0FF) == 0x020)
6009# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6010# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6011#else
6012# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006013 (('a' <= (c) && (c) <= 'i') \
6014 || ('j' <= (c) && (c) <= 'r') \
6015 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006016# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6017#endif
6018
6019#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6020int
6021main ()
6022{
6023 int i;
6024 for (i = 0; i < 256; i++)
6025 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006026 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006027 return 2;
6028 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006029}
6030_ACEOF
6031rm -f conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00006032if { (ac_try="$ac_link"
6033case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
6037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6038$as_echo "$ac_try_echo") >&5
6039 (eval "$ac_link") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006040 ac_status=$?
drh8b727472009-01-19 18:18:40 +00006041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
drh8b727472009-01-19 18:18:40 +00006043 { (case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046esac
6047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6048$as_echo "$ac_try_echo") >&5
6049 (eval "$ac_try") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006050 ac_status=$?
drh8b727472009-01-19 18:18:40 +00006051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006052 (exit $ac_status); }; }; then
6053 :
6054else
drh8b727472009-01-19 18:18:40 +00006055 $as_echo "$as_me: program exited with status $ac_status" >&5
6056$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006057sed 's/^/| /' conftest.$ac_ext >&5
6058
6059( exit $ac_status )
6060ac_cv_header_stdc=no
6061fi
drh8b727472009-01-19 18:18:40 +00006062rm -rf conftest.dSYM
6063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6064fi
6065
6066
a.rottmann84e63352003-03-24 09:42:16 +00006067fi
6068fi
drh8b727472009-01-19 18:18:40 +00006069{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6070$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006071if test $ac_cv_header_stdc = yes; then
6072
6073cat >>confdefs.h <<\_ACEOF
6074#define STDC_HEADERS 1
6075_ACEOF
6076
6077fi
6078
6079# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006090 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00006091do
drh8b727472009-01-19 18:18:40 +00006092as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6093{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6094$as_echo_n "checking for $ac_header... " >&6; }
6095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6096 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006097else
6098 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006099/* confdefs.h. */
6100_ACEOF
6101cat confdefs.h >>conftest.$ac_ext
6102cat >>conftest.$ac_ext <<_ACEOF
6103/* end confdefs.h. */
6104$ac_includes_default
6105
6106#include <$ac_header>
6107_ACEOF
6108rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006109if { (ac_try="$ac_compile"
6110case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113esac
6114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6115$as_echo "$ac_try_echo") >&5
6116 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006117 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006126 eval "$as_ac_Header=yes"
6127else
drh8b727472009-01-19 18:18:40 +00006128 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006129sed 's/^/| /' conftest.$ac_ext >&5
6130
drh8b727472009-01-19 18:18:40 +00006131 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006132fi
drh8b727472009-01-19 18:18:40 +00006133
6134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006135fi
drh8b727472009-01-19 18:18:40 +00006136ac_res=`eval 'as_val=${'$as_ac_Header'}
6137 $as_echo "$as_val"'`
6138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6139$as_echo "$ac_res" >&6; }
6140if test `eval 'as_val=${'$as_ac_Header'}
6141 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006142 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006144_ACEOF
6145
6146fi
6147
6148done
6149
6150
6151
6152for ac_header in dlfcn.h
6153do
drh8b727472009-01-19 18:18:40 +00006154as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6156$as_echo_n "checking for $ac_header... " >&6; }
6157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6158 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006159else
mlcreech636a9952008-05-05 22:52:56 +00006160 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006161/* confdefs.h. */
6162_ACEOF
6163cat confdefs.h >>conftest.$ac_ext
6164cat >>conftest.$ac_ext <<_ACEOF
6165/* end confdefs.h. */
6166$ac_includes_default
mlcreech636a9952008-05-05 22:52:56 +00006167
a.rottmann84e63352003-03-24 09:42:16 +00006168#include <$ac_header>
6169_ACEOF
6170rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006171if { (ac_try="$ac_compile"
6172case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
6176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177$as_echo "$ac_try_echo") >&5
6178 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006179 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +00006188 eval "$as_ac_Header=yes"
a.rottmann84e63352003-03-24 09:42:16 +00006189else
drh8b727472009-01-19 18:18:40 +00006190 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006191sed 's/^/| /' conftest.$ac_ext >&5
6192
drh8b727472009-01-19 18:18:40 +00006193 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006194fi
drh8b727472009-01-19 18:18:40 +00006195
6196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006197fi
drh8b727472009-01-19 18:18:40 +00006198ac_res=`eval 'as_val=${'$as_ac_Header'}
6199 $as_echo "$as_val"'`
6200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6201$as_echo "$ac_res" >&6; }
6202if test `eval 'as_val=${'$as_ac_Header'}
6203 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006204 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006206_ACEOF
6207
6208fi
6209
drh71eb93e2001-09-28 01:34:43 +00006210done
6211
drh71eb93e2001-09-28 01:34:43 +00006212
drh71eb93e2001-09-28 01:34:43 +00006213
mlcreech636a9952008-05-05 22:52:56 +00006214# Set options
mlcreech94984912008-03-04 19:03:08 +00006215
drh71eb93e2001-09-28 01:34:43 +00006216
drh71eb93e2001-09-28 01:34:43 +00006217
mlcreech636a9952008-05-05 22:52:56 +00006218 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006219
a.rottmann9bc8b932004-02-29 15:18:31 +00006220
mlcreech636a9952008-05-05 22:52:56 +00006221 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006222
a.rottmann9bc8b932004-02-29 15:18:31 +00006223
drh8b727472009-01-19 18:18:40 +00006224 # Check whether --enable-shared was given.
mlcreech636a9952008-05-05 22:52:56 +00006225if test "${enable_shared+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006226 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006227 case $enableval in
6228 yes) enable_shared=yes ;;
6229 no) enable_shared=no ;;
6230 *)
6231 enable_shared=no
6232 # Look at the argument we got. We use all the common list separators.
6233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6234 for pkg in $enableval; do
6235 IFS="$lt_save_ifs"
6236 if test "X$pkg" = "X$p"; then
6237 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006238 fi
mlcreech636a9952008-05-05 22:52:56 +00006239 done
6240 IFS="$lt_save_ifs"
6241 ;;
6242 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006243else
mlcreech636a9952008-05-05 22:52:56 +00006244 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006245fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006246
mlcreech636a9952008-05-05 22:52:56 +00006247
6248
6249
6250
6251
6252
6253
drh8b727472009-01-19 18:18:40 +00006254
6255 # Check whether --enable-static was given.
mlcreech636a9952008-05-05 22:52:56 +00006256if test "${enable_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006257 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006258 case $enableval in
6259 yes) enable_static=yes ;;
6260 no) enable_static=no ;;
6261 *)
6262 enable_static=no
6263 # Look at the argument we got. We use all the common list separators.
6264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6265 for pkg in $enableval; do
6266 IFS="$lt_save_ifs"
6267 if test "X$pkg" = "X$p"; then
6268 enable_static=yes
6269 fi
6270 done
6271 IFS="$lt_save_ifs"
6272 ;;
6273 esac
6274else
6275 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006276fi
mlcreech636a9952008-05-05 22:52:56 +00006277
6278
6279
6280
6281
6282
6283
6284
6285
drh8b727472009-01-19 18:18:40 +00006286
6287# Check whether --with-pic was given.
mlcreech636a9952008-05-05 22:52:56 +00006288if test "${with_pic+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006289 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006290else
6291 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006292fi
6293
mlcreech636a9952008-05-05 22:52:56 +00006294
6295test -z "$pic_mode" && pic_mode=default
6296
6297
6298
6299
6300
6301
6302
drh8b727472009-01-19 18:18:40 +00006303 # Check whether --enable-fast-install was given.
mlcreech636a9952008-05-05 22:52:56 +00006304if test "${enable_fast_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006305 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006306 case $enableval in
6307 yes) enable_fast_install=yes ;;
6308 no) enable_fast_install=no ;;
6309 *)
6310 enable_fast_install=no
6311 # Look at the argument we got. We use all the common list separators.
6312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6313 for pkg in $enableval; do
6314 IFS="$lt_save_ifs"
6315 if test "X$pkg" = "X$p"; then
6316 enable_fast_install=yes
6317 fi
6318 done
6319 IFS="$lt_save_ifs"
6320 ;;
6321 esac
6322else
6323 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006324fi
6325
mlcreech636a9952008-05-05 22:52:56 +00006326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336# This can be used to rebuild libtool when needed
6337LIBTOOL_DEPS="$ltmain"
6338
6339# Always use our own libtool.
6340LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366test -z "$LN_S" && LN_S="ln -s"
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381if test -n "${ZSH_VERSION+set}" ; then
6382 setopt NO_GLOB_SUBST
6383fi
6384
drh8b727472009-01-19 18:18:40 +00006385{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6386$as_echo_n "checking for objdir... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006387if test "${lt_cv_objdir+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006388 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006389else
6390 rm -f .libs 2>/dev/null
6391mkdir .libs 2>/dev/null
6392if test -d .libs; then
6393 lt_cv_objdir=.libs
6394else
6395 # MS-DOS does not allow filenames that begin with a dot.
6396 lt_cv_objdir=_libs
6397fi
6398rmdir .libs 2>/dev/null
6399fi
drh8b727472009-01-19 18:18:40 +00006400{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6401$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006402objdir=$lt_cv_objdir
6403
6404
6405
6406
6407
mlcreech636a9952008-05-05 22:52:56 +00006408cat >>confdefs.h <<_ACEOF
6409#define LT_OBJDIR "$lt_cv_objdir/"
6410_ACEOF
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
a.rottmann9bc8b932004-02-29 15:18:31 +00006428case $host_os in
6429aix3*)
6430 # AIX sometimes has problems with the GCC collect2 program. For some
6431 # reason, if we set the COLLECT_NAMES environment variable, the problems
6432 # vanish in a puff of smoke.
6433 if test "X${COLLECT_NAMES+set}" != Xset; then
6434 COLLECT_NAMES=
6435 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006436 fi
6437 ;;
6438esac
6439
a.rottmann9bc8b932004-02-29 15:18:31 +00006440# Sed substitution that helps us do robust quoting. It backslashifies
6441# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006442sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006443
6444# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006445double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006446
6447# Sed substitution to delay expansion of an escaped shell variable in a
6448# double_quote_subst'ed string.
6449delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6450
mlcreech636a9952008-05-05 22:52:56 +00006451# Sed substitution to delay expansion of an escaped single quote.
6452delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6453
a.rottmann9bc8b932004-02-29 15:18:31 +00006454# Sed substitution to avoid accidental globbing in evaled expressions
6455no_glob_subst='s/\*/\\\*/g'
6456
a.rottmann9bc8b932004-02-29 15:18:31 +00006457# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006458ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006459can_build_shared=yes
6460
vapier7f19c022007-02-17 14:46:31 +00006461# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006462# which needs '.lib').
6463libext=a
mlcreech636a9952008-05-05 22:52:56 +00006464
a.rottmann9bc8b932004-02-29 15:18:31 +00006465with_gnu_ld="$lt_cv_prog_gnu_ld"
6466
a.rottmann84e63352003-03-24 09:42:16 +00006467old_CC="$CC"
6468old_CFLAGS="$CFLAGS"
6469
6470# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006471test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006472test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006473test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006474test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006475test -z "$ac_objext" && ac_objext=o
6476
vapier7f19c022007-02-17 14:46:31 +00006477for cc_temp in $compiler""; do
6478 case $cc_temp in
6479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6481 \-*) ;;
6482 *) break;;
6483 esac
6484done
mlcreech636a9952008-05-05 22:52:56 +00006485cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006486
6487
a.rottmann9bc8b932004-02-29 15:18:31 +00006488# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006489test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006490case $deplibs_check_method in
6491file_magic*)
6492 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh8b727472009-01-19 18:18:40 +00006493 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6494$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006495if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006496 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006497else
a.rottmann9bc8b932004-02-29 15:18:31 +00006498 case $MAGIC_CMD in
6499[\\/*] | ?:[\\/]*)
6500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6501 ;;
6502*)
6503 lt_save_MAGIC_CMD="$MAGIC_CMD"
6504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6505 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6506 for ac_dir in $ac_dummy; do
6507 IFS="$lt_save_ifs"
6508 test -z "$ac_dir" && ac_dir=.
6509 if test -f $ac_dir/${ac_tool_prefix}file; then
6510 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6511 if test -n "$file_magic_test_file"; then
6512 case $deplibs_check_method in
6513 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006514 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6516 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6517 $EGREP "$file_magic_regex" > /dev/null; then
6518 :
6519 else
mlcreech636a9952008-05-05 22:52:56 +00006520 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006521
a.rottmann9bc8b932004-02-29 15:18:31 +00006522*** Warning: the command libtool uses to detect shared libraries,
6523*** $file_magic_cmd, produces output that libtool cannot recognize.
6524*** The result is that libtool may fail to recognize shared libraries
6525*** as such. This will affect the creation of libtool libraries that
6526*** depend on shared libraries, but programs linked with such libtool
6527*** libraries will work regardless of this problem. Nevertheless, you
6528*** may want to report the problem to your system manager and/or to
6529*** bug-libtool@gnu.org
6530
mlcreech636a9952008-05-05 22:52:56 +00006531_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006532 fi ;;
6533 esac
6534 fi
6535 break
6536 fi
6537 done
6538 IFS="$lt_save_ifs"
6539 MAGIC_CMD="$lt_save_MAGIC_CMD"
6540 ;;
6541esac
6542fi
6543
6544MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6545if test -n "$MAGIC_CMD"; then
drh8b727472009-01-19 18:18:40 +00006546 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6547$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006548else
drh8b727472009-01-19 18:18:40 +00006549 { $as_echo "$as_me:$LINENO: result: no" >&5
6550$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006551fi
6552
mlcreech636a9952008-05-05 22:52:56 +00006553
6554
6555
6556
a.rottmann9bc8b932004-02-29 15:18:31 +00006557if test -z "$lt_cv_path_MAGIC_CMD"; then
6558 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00006559 { $as_echo "$as_me:$LINENO: checking for file" >&5
6560$as_echo_n "checking for file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006561if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006562 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006563else
6564 case $MAGIC_CMD in
6565[\\/*] | ?:[\\/]*)
6566 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6567 ;;
6568*)
6569 lt_save_MAGIC_CMD="$MAGIC_CMD"
6570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6571 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6572 for ac_dir in $ac_dummy; do
6573 IFS="$lt_save_ifs"
6574 test -z "$ac_dir" && ac_dir=.
6575 if test -f $ac_dir/file; then
6576 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6577 if test -n "$file_magic_test_file"; then
6578 case $deplibs_check_method in
6579 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006580 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6582 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6583 $EGREP "$file_magic_regex" > /dev/null; then
6584 :
6585 else
mlcreech636a9952008-05-05 22:52:56 +00006586 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006587
6588*** Warning: the command libtool uses to detect shared libraries,
6589*** $file_magic_cmd, produces output that libtool cannot recognize.
6590*** The result is that libtool may fail to recognize shared libraries
6591*** as such. This will affect the creation of libtool libraries that
6592*** depend on shared libraries, but programs linked with such libtool
6593*** libraries will work regardless of this problem. Nevertheless, you
6594*** may want to report the problem to your system manager and/or to
6595*** bug-libtool@gnu.org
6596
mlcreech636a9952008-05-05 22:52:56 +00006597_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006598 fi ;;
6599 esac
6600 fi
6601 break
6602 fi
6603 done
6604 IFS="$lt_save_ifs"
6605 MAGIC_CMD="$lt_save_MAGIC_CMD"
6606 ;;
6607esac
6608fi
6609
6610MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6611if test -n "$MAGIC_CMD"; then
drh8b727472009-01-19 18:18:40 +00006612 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6613$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006614else
drh8b727472009-01-19 18:18:40 +00006615 { $as_echo "$as_me:$LINENO: result: no" >&5
6616$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006617fi
6618
mlcreech636a9952008-05-05 22:52:56 +00006619
a.rottmann9bc8b932004-02-29 15:18:31 +00006620 else
6621 MAGIC_CMD=:
6622 fi
6623fi
6624
6625 fi
6626 ;;
6627esac
6628
a.rottmann9bc8b932004-02-29 15:18:31 +00006629# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006630
a.rottmann9bc8b932004-02-29 15:18:31 +00006631lt_save_CC="$CC"
6632ac_ext=c
6633ac_cpp='$CPP $CPPFLAGS'
6634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636ac_compiler_gnu=$ac_cv_c_compiler_gnu
6637
6638
6639# Source file extension for C test sources.
6640ac_ext=c
6641
6642# Object file extension for compiled C test sources.
6643objext=o
6644objext=$objext
6645
6646# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006647lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006648
6649# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006650lt_simple_link_test_code='int main(){return(0);}'
6651
6652
6653
6654
6655
a.rottmann9bc8b932004-02-29 15:18:31 +00006656
6657
6658# If no C compiler was specified, use CC.
6659LTCC=${LTCC-"$CC"}
6660
vapier7f19c022007-02-17 14:46:31 +00006661# If no C compiler flags were specified, use CFLAGS.
6662LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6663
a.rottmann9bc8b932004-02-29 15:18:31 +00006664# Allow CC to be a program name with arguments.
6665compiler=$CC
6666
mlcreech636a9952008-05-05 22:52:56 +00006667# Save the default compiler, since it gets overwritten when the other
6668# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6669compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006670
vapier7f19c022007-02-17 14:46:31 +00006671# save warnings/boilerplate of simple test code
6672ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006673echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006674eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6675_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006676$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006677
vapier7f19c022007-02-17 14:46:31 +00006678ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006679echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006680eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6681_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006682$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006683
6684
mlcreech636a9952008-05-05 22:52:56 +00006685if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006686
6687lt_prog_compiler_no_builtin_flag=
6688
6689if test "$GCC" = yes; then
6690 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6691
drh8b727472009-01-19 18:18:40 +00006692 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6693$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006694if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006695 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006696else
6697 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006698 ac_outfile=conftest.$ac_objext
6699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006700 lt_compiler_flag="-fno-rtti -fno-exceptions"
6701 # Insert the option either (1) after the last *FLAGS variable, or
6702 # (2) before a word containing "conftest.", or (3) at the end.
6703 # Note that $ac_compile itself does not contain backslashes and begins
6704 # with a dollar sign (not a hyphen), so the echo should work correctly.
6705 # The option is referenced via a variable to avoid confusing sed.
6706 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6709 -e 's:$: $lt_compiler_flag:'`
drh8b727472009-01-19 18:18:40 +00006710 (eval echo "\"\$as_me:6710: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006711 (eval "$lt_compile" 2>conftest.err)
6712 ac_status=$?
6713 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006714 echo "$as_me:6714: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006715 if (exit $ac_status) && test -s "$ac_outfile"; then
6716 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006717 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006718 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006721 lt_cv_prog_compiler_rtti_exceptions=yes
6722 fi
6723 fi
mlcreech636a9952008-05-05 22:52:56 +00006724 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006725
6726fi
drh8b727472009-01-19 18:18:40 +00006727{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6728$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006729
6730if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6731 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6732else
6733 :
6734fi
6735
6736fi
6737
mlcreech636a9952008-05-05 22:52:56 +00006738
6739
6740
6741
6742
6743 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006744lt_prog_compiler_pic=
6745lt_prog_compiler_static=
6746
drh8b727472009-01-19 18:18:40 +00006747{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6748$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006749
drh71eb93e2001-09-28 01:34:43 +00006750 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006751 lt_prog_compiler_wl='-Wl,'
6752 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006753
6754 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006755 aix*)
6756 # All AIX code is PIC.
6757 if test "$host_cpu" = ia64; then
6758 # AIX 5 now supports IA64 processor
6759 lt_prog_compiler_static='-Bstatic'
6760 fi
drh71eb93e2001-09-28 01:34:43 +00006761 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006762
drh71eb93e2001-09-28 01:34:43 +00006763 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006764 case $host_cpu in
6765 powerpc)
6766 # see comment about AmigaOS4 .so support
6767 lt_prog_compiler_pic='-fPIC'
6768 ;;
6769 m68k)
6770 # FIXME: we need at least 68020 code to build shared libraries, but
6771 # adding the `-m68020' flag to GCC prevents building anything better,
6772 # like `-m68040'.
6773 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6774 ;;
6775 esac
drh71eb93e2001-09-28 01:34:43 +00006776 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006777
mlcreech636a9952008-05-05 22:52:56 +00006778 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006779 # PIC is the default for these OSes.
6780 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006781
mlcreech636a9952008-05-05 22:52:56 +00006782 mingw* | cygwin* | pw32* | os2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006783 # This hack is so that the source file can tell whether it is being
6784 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006785 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6786 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006787 lt_prog_compiler_pic='-DDLL_EXPORT'
6788 ;;
6789
drh71eb93e2001-09-28 01:34:43 +00006790 darwin* | rhapsody*)
6791 # PIC is the default on this platform
6792 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006793 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006794 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006795
a.rottmann9bc8b932004-02-29 15:18:31 +00006796 hpux*)
6797 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6798 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006799 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006800 hppa*64*|ia64*)
6801 # +Z the default
6802 ;;
6803 *)
6804 lt_prog_compiler_pic='-fPIC'
6805 ;;
6806 esac
6807 ;;
6808
mlcreech636a9952008-05-05 22:52:56 +00006809 interix[3-9]*)
6810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6811 # Instead, we relocate shared libraries at runtime.
6812 ;;
6813
6814 msdosdjgpp*)
6815 # Just because we use GCC doesn't mean we suddenly get shared libraries
6816 # on systems that don't support them.
6817 lt_prog_compiler_can_build_shared=no
6818 enable_shared=no
6819 ;;
6820
6821 *nto* | *qnx*)
6822 # QNX uses GNU C++, but need to define -shared option too, otherwise
6823 # it will coredump.
6824 lt_prog_compiler_pic='-fPIC -shared'
6825 ;;
6826
6827 sysv4*MP*)
6828 if test -d /usr/nec; then
6829 lt_prog_compiler_pic=-Kconform_pic
6830 fi
6831 ;;
6832
drh71eb93e2001-09-28 01:34:43 +00006833 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006834 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006835 ;;
6836 esac
6837 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006838 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006839 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006840 aix*)
6841 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006842 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006843 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006844 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006845 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006846 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006847 fi
6848 ;;
6849
mlcreech636a9952008-05-05 22:52:56 +00006850 mingw* | cygwin* | pw32* | os2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006851 # This hack is so that the source file can tell whether it is being
6852 # built for inclusion in a dll (and should export symbols for example).
6853 lt_prog_compiler_pic='-DDLL_EXPORT'
6854 ;;
6855
a.rottmann84e63352003-03-24 09:42:16 +00006856 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006857 lt_prog_compiler_wl='-Wl,'
6858 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6859 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006860 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006861 hppa*64*|ia64*)
6862 # +Z the default
6863 ;;
6864 *)
6865 lt_prog_compiler_pic='+Z'
6866 ;;
6867 esac
6868 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6869 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006870 ;;
6871
6872 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006873 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006874 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006875 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006876 ;;
6877
mlcreech636a9952008-05-05 22:52:56 +00006878 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006879 case $cc_basename in
mlcreech636a9952008-05-05 22:52:56 +00006880 icc* | ecc* | ifort*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006881 lt_prog_compiler_wl='-Wl,'
6882 lt_prog_compiler_pic='-KPIC'
6883 lt_prog_compiler_static='-static'
6884 ;;
vapier7f19c022007-02-17 14:46:31 +00006885 pgcc* | pgf77* | pgf90* | pgf95*)
6886 # Portland Group compilers (*not* the Pentium gcc compiler,
6887 # which looks to be a dead project)
6888 lt_prog_compiler_wl='-Wl,'
6889 lt_prog_compiler_pic='-fpic'
6890 lt_prog_compiler_static='-Bstatic'
6891 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006892 ccc*)
6893 lt_prog_compiler_wl='-Wl,'
6894 # All Alpha code is PIC.
6895 lt_prog_compiler_static='-non_shared'
6896 ;;
mlcreech636a9952008-05-05 22:52:56 +00006897 xl*)
6898 # IBM XL C 8.0/Fortran 10.1 on PPC
6899 lt_prog_compiler_wl='-Wl,'
6900 lt_prog_compiler_pic='-qpic'
6901 lt_prog_compiler_static='-qstaticlink'
6902 ;;
6903 *)
6904 case `$CC -V 2>&1 | sed 5q` in
6905 *Sun\ C*)
6906 # Sun C 5.9
6907 lt_prog_compiler_pic='-KPIC'
6908 lt_prog_compiler_static='-Bstatic'
6909 lt_prog_compiler_wl='-Wl,'
6910 ;;
6911 *Sun\ F*)
6912 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6913 lt_prog_compiler_pic='-KPIC'
6914 lt_prog_compiler_static='-Bstatic'
6915 lt_prog_compiler_wl=''
6916 ;;
6917 esac
6918 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006919 esac
drh71eb93e2001-09-28 01:34:43 +00006920 ;;
6921
mlcreech636a9952008-05-05 22:52:56 +00006922 newsos6)
6923 lt_prog_compiler_pic='-KPIC'
6924 lt_prog_compiler_static='-Bstatic'
6925 ;;
6926
6927 *nto* | *qnx*)
6928 # QNX uses GNU C++, but need to define -shared option too, otherwise
6929 # it will coredump.
6930 lt_prog_compiler_pic='-fPIC -shared'
6931 ;;
6932
drh71eb93e2001-09-28 01:34:43 +00006933 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006934 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006935 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006936 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006937 ;;
6938
mlcreech636a9952008-05-05 22:52:56 +00006939 rdos*)
6940 lt_prog_compiler_static='-non_shared'
6941 ;;
6942
drh71eb93e2001-09-28 01:34:43 +00006943 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006944 lt_prog_compiler_pic='-KPIC'
6945 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006946 case $cc_basename in
6947 f77* | f90* | f95*)
6948 lt_prog_compiler_wl='-Qoption ld ';;
6949 *)
6950 lt_prog_compiler_wl='-Wl,';;
6951 esac
drh71eb93e2001-09-28 01:34:43 +00006952 ;;
6953
6954 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006955 lt_prog_compiler_wl='-Qoption ld '
6956 lt_prog_compiler_pic='-PIC'
6957 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006958 ;;
6959
vapier7f19c022007-02-17 14:46:31 +00006960 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006961 lt_prog_compiler_wl='-Wl,'
6962 lt_prog_compiler_pic='-KPIC'
6963 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006964 ;;
6965
6966 sysv4*MP*)
6967 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006968 lt_prog_compiler_pic='-Kconform_pic'
6969 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006970 fi
6971 ;;
6972
vapier7f19c022007-02-17 14:46:31 +00006973 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6974 lt_prog_compiler_wl='-Wl,'
6975 lt_prog_compiler_pic='-KPIC'
6976 lt_prog_compiler_static='-Bstatic'
6977 ;;
6978
6979 unicos*)
6980 lt_prog_compiler_wl='-Wl,'
6981 lt_prog_compiler_can_build_shared=no
6982 ;;
6983
a.rottmann9bc8b932004-02-29 15:18:31 +00006984 uts4*)
6985 lt_prog_compiler_pic='-pic'
6986 lt_prog_compiler_static='-Bstatic'
6987 ;;
6988
drh71eb93e2001-09-28 01:34:43 +00006989 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006990 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006991 ;;
6992 esac
6993 fi
6994
mlcreech636a9952008-05-05 22:52:56 +00006995case $host_os in
6996 # For platforms which do not support PIC, -DPIC is meaningless:
6997 *djgpp*)
6998 lt_prog_compiler_pic=
6999 ;;
7000 *)
7001 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7002 ;;
7003esac
drh8b727472009-01-19 18:18:40 +00007004{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7005$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007006
7007
7008
7009
7010
drh71eb93e2001-09-28 01:34:43 +00007011
a.rottmann9bc8b932004-02-29 15:18:31 +00007012#
7013# Check to make sure the PIC flag actually works.
7014#
7015if test -n "$lt_prog_compiler_pic"; then
drh8b727472009-01-19 18:18:40 +00007016 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7017$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007018if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007019 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007020else
mlcreech636a9952008-05-05 22:52:56 +00007021 lt_cv_prog_compiler_pic_works=no
7022 ac_outfile=conftest.$ac_objext
7023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007024 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7025 # Insert the option either (1) after the last *FLAGS variable, or
7026 # (2) before a word containing "conftest.", or (3) at the end.
7027 # Note that $ac_compile itself does not contain backslashes and begins
7028 # with a dollar sign (not a hyphen), so the echo should work correctly.
7029 # The option is referenced via a variable to avoid confusing sed.
7030 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7033 -e 's:$: $lt_compiler_flag:'`
drh8b727472009-01-19 18:18:40 +00007034 (eval echo "\"\$as_me:7034: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007035 (eval "$lt_compile" 2>conftest.err)
7036 ac_status=$?
7037 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007038 echo "$as_me:7038: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007039 if (exit $ac_status) && test -s "$ac_outfile"; then
7040 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007041 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007042 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007045 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007046 fi
7047 fi
mlcreech636a9952008-05-05 22:52:56 +00007048 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007049
a.rottmann9bc8b932004-02-29 15:18:31 +00007050fi
drh8b727472009-01-19 18:18:40 +00007051{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7052$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007053
mlcreech636a9952008-05-05 22:52:56 +00007054if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007055 case $lt_prog_compiler_pic in
7056 "" | " "*) ;;
7057 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7058 esac
drh71eb93e2001-09-28 01:34:43 +00007059else
a.rottmann9bc8b932004-02-29 15:18:31 +00007060 lt_prog_compiler_pic=
7061 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007062fi
7063
a.rottmann84e63352003-03-24 09:42:16 +00007064fi
mlcreech636a9952008-05-05 22:52:56 +00007065
7066
7067
7068
7069
a.rottmann84e63352003-03-24 09:42:16 +00007070
vapier7f19c022007-02-17 14:46:31 +00007071#
7072# Check to make sure the static flag actually works.
7073#
7074wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh8b727472009-01-19 18:18:40 +00007075{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7076$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007077if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007078 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007079else
mlcreech636a9952008-05-05 22:52:56 +00007080 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007081 save_LDFLAGS="$LDFLAGS"
7082 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007083 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007084 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7085 # The linker can only warn and ignore the option if not recognized
7086 # So say no if there are warnings
7087 if test -s conftest.err; then
7088 # Append any errors to the config.log.
7089 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007090 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7092 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007093 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007094 fi
7095 else
mlcreech636a9952008-05-05 22:52:56 +00007096 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007097 fi
7098 fi
mlcreech636a9952008-05-05 22:52:56 +00007099 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007100 LDFLAGS="$save_LDFLAGS"
7101
7102fi
drh8b727472009-01-19 18:18:40 +00007103{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7104$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007105
mlcreech636a9952008-05-05 22:52:56 +00007106if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007107 :
7108else
7109 lt_prog_compiler_static=
7110fi
7111
7112
mlcreech636a9952008-05-05 22:52:56 +00007113
7114
7115
7116
7117
drh8b727472009-01-19 18:18:40 +00007118 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7119$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007120if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007121 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007122else
a.rottmann9bc8b932004-02-29 15:18:31 +00007123 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007124 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007125 mkdir conftest
7126 cd conftest
7127 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007129
a.rottmann9bc8b932004-02-29 15:18:31 +00007130 lt_compiler_flag="-o out/conftest2.$ac_objext"
7131 # Insert the option either (1) after the last *FLAGS variable, or
7132 # (2) before a word containing "conftest.", or (3) at the end.
7133 # Note that $ac_compile itself does not contain backslashes and begins
7134 # with a dollar sign (not a hyphen), so the echo should work correctly.
7135 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7138 -e 's:$: $lt_compiler_flag:'`
drh8b727472009-01-19 18:18:40 +00007139 (eval echo "\"\$as_me:7139: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007140 (eval "$lt_compile" 2>out/conftest.err)
7141 ac_status=$?
7142 cat out/conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007143 echo "$as_me:7143: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7145 then
7146 # The compiler can only warn and ignore the option if not recognized
7147 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007148 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007151 lt_cv_prog_compiler_c_o=yes
7152 fi
7153 fi
vapier7f19c022007-02-17 14:46:31 +00007154 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007155 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007156 # SGI C++ compiler will create directory out/ii_files/ for
7157 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007158 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7159 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007160 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007161 $RM -r conftest
7162 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007163
7164fi
drh8b727472009-01-19 18:18:40 +00007165{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7166$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007167
7168
7169
7170
7171
7172
drh8b727472009-01-19 18:18:40 +00007173 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7174$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007175if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007176 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007177else
7178 lt_cv_prog_compiler_c_o=no
7179 $RM -r conftest 2>/dev/null
7180 mkdir conftest
7181 cd conftest
7182 mkdir out
7183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7184
7185 lt_compiler_flag="-o out/conftest2.$ac_objext"
7186 # Insert the option either (1) after the last *FLAGS variable, or
7187 # (2) before a word containing "conftest.", or (3) at the end.
7188 # Note that $ac_compile itself does not contain backslashes and begins
7189 # with a dollar sign (not a hyphen), so the echo should work correctly.
7190 lt_compile=`echo "$ac_compile" | $SED \
7191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7193 -e 's:$: $lt_compiler_flag:'`
drh8b727472009-01-19 18:18:40 +00007194 (eval echo "\"\$as_me:7194: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007195 (eval "$lt_compile" 2>out/conftest.err)
7196 ac_status=$?
7197 cat out/conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007198 echo "$as_me:7198: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7200 then
7201 # The compiler can only warn and ignore the option if not recognized
7202 # So say no if there are warnings
7203 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7206 lt_cv_prog_compiler_c_o=yes
7207 fi
7208 fi
7209 chmod u+w . 2>&5
7210 $RM conftest*
7211 # SGI C++ compiler will create directory out/ii_files/ for
7212 # template instantiation
7213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7214 $RM out/* && rmdir out
7215 cd ..
7216 $RM -r conftest
7217 $RM conftest*
7218
7219fi
drh8b727472009-01-19 18:18:40 +00007220{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7221$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007222
7223
drh71eb93e2001-09-28 01:34:43 +00007224
a.rottmann84e63352003-03-24 09:42:16 +00007225
drh71eb93e2001-09-28 01:34:43 +00007226hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007227if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007228 # do not overwrite the value of need_locks provided by the user
drh8b727472009-01-19 18:18:40 +00007229 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7230$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007231 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007232 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7234 touch conftest.a
7235 ln conftest.a conftest.b 2>&5 || hard_links=no
7236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh8b727472009-01-19 18:18:40 +00007237 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7238$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007239 if test "$hard_links" = no; then
drh8b727472009-01-19 18:18:40 +00007240 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7241$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007242 need_locks=warn
7243 fi
7244else
7245 need_locks=no
7246fi
7247
mlcreech636a9952008-05-05 22:52:56 +00007248
7249
7250
7251
7252
drh8b727472009-01-19 18:18:40 +00007253 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7254$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007255
7256 runpath_var=
7257 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007258 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007259 archive_cmds=
7260 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007261 compiler_needs_object=no
7262 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007263 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7265 hardcode_automatic=no
7266 hardcode_direct=no
7267 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007268 hardcode_libdir_flag_spec=
7269 hardcode_libdir_flag_spec_ld=
7270 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007271 hardcode_minus_L=no
7272 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007273 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007274 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007275 module_cmds=
7276 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007277 old_archive_from_new_cmds=
7278 old_archive_from_expsyms_cmds=
7279 thread_safe_flag_spec=
7280 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007281 # include_expsyms should be a list of space-separated symbols to be *always*
7282 # included in the symbol list
7283 include_expsyms=
7284 # exclude_expsyms can be an extended regexp of symbols to exclude
7285 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7286 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7287 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007288 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007289 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7290 # platforms (ab)use it in PIC code, but their linkers get confused if
7291 # the symbol is explicitly referenced. Since portable code cannot
7292 # rely on this symbol name, it's probably fine to never include it in
7293 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007294 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007295 extract_expsyms_cmds=
7296
7297 case $host_os in
7298 cygwin* | mingw* | pw32*)
7299 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7300 # When not using gcc, we currently assume that we are using
7301 # Microsoft Visual C++.
7302 if test "$GCC" != yes; then
7303 with_gnu_ld=no
7304 fi
7305 ;;
vapier7f19c022007-02-17 14:46:31 +00007306 interix*)
7307 # we just hope/assume this is gcc and not c89 (= MSVC++)
7308 with_gnu_ld=yes
7309 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007310 openbsd*)
7311 with_gnu_ld=no
7312 ;;
7313 esac
7314
7315 ld_shlibs=yes
7316 if test "$with_gnu_ld" = yes; then
7317 # If archive_cmds runs LD, not CC, wlarc should be empty
7318 wlarc='${wl}'
7319
vapier7f19c022007-02-17 14:46:31 +00007320 # Set some defaults for GNU ld with shared library support. These
7321 # are reset later if shared libraries are not supported. Putting them
7322 # here allows them to be overridden if necessary.
7323 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007325 export_dynamic_flag_spec='${wl}--export-dynamic'
7326 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007327 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7328 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7329 else
7330 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007331 fi
7332 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007333 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007334 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7335 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7336 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7337 *\ 2.11.*) ;; # other 2.11 versions
7338 *) supports_anon_versioning=yes ;;
7339 esac
7340
a.rottmann9bc8b932004-02-29 15:18:31 +00007341 # See if GNU ld supports shared libraries.
7342 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007343 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007344 # On AIX/PPC, the GNU linker is very broken
7345 if test "$host_cpu" != ia64; then
7346 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007347 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007348
7349*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7350*** to be unable to reliably create shared libraries on AIX.
7351*** Therefore, libtool is disabling shared libraries support. If you
7352*** really care for shared libraries, you may want to modify your PATH
7353*** so that a non-GNU linker is found, and then restart.
7354
mlcreech636a9952008-05-05 22:52:56 +00007355_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007356 fi
7357 ;;
7358
7359 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007360 case $host_cpu in
7361 powerpc)
7362 # see comment about AmigaOS4 .so support
7363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7364 archive_expsym_cmds=''
7365 ;;
7366 m68k)
7367 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)'
7368 hardcode_libdir_flag_spec='-L$libdir'
7369 hardcode_minus_L=yes
7370 ;;
7371 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007372 ;;
7373
7374 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007376 allow_undefined_flag=unsupported
7377 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7378 # support --undefined. This deserves some investigation. FIXME
7379 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7380 else
7381 ld_shlibs=no
7382 fi
7383 ;;
7384
7385 cygwin* | mingw* | pw32*)
mlcreech636a9952008-05-05 22:52:56 +00007386 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007387 # as there is no search path for DLLs.
7388 hardcode_libdir_flag_spec='-L$libdir'
7389 allow_undefined_flag=unsupported
7390 always_export_symbols=no
7391 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007392 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 +00007393
mlcreech636a9952008-05-05 22:52:56 +00007394 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007395 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 +00007396 # If the export-symbols file already is a .def file (1st line
7397 # is EXPORTS), use it as is; otherwise, prepend...
7398 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7399 cp $export_symbols $output_objdir/$soname.def;
7400 else
7401 echo EXPORTS > $output_objdir/$soname.def;
7402 cat $export_symbols >> $output_objdir/$soname.def;
7403 fi~
vapier7f19c022007-02-17 14:46:31 +00007404 $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 +00007405 else
7406 ld_shlibs=no
7407 fi
7408 ;;
7409
mlcreech636a9952008-05-05 22:52:56 +00007410 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007411 hardcode_direct=no
7412 hardcode_shlibpath_var=no
7413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7414 export_dynamic_flag_spec='${wl}-E'
7415 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7416 # Instead, shared libraries are loaded at an image base (0x10000000 by
7417 # default) and relocated if they conflict, which is a slow very memory
7418 # consuming and fragmenting process. To avoid this, we pick a random,
7419 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7420 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7421 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7422 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'
7423 ;;
7424
mlcreech636a9952008-05-05 22:52:56 +00007425 gnu* | linux* | tpf* | k*bsd*-gnu)
7426 tmp_diet=no
7427 if test "$host_os" = linux-dietlibc; then
7428 case $cc_basename in
7429 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7430 esac
7431 fi
7432 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7433 && test "$tmp_diet" = no
7434 then
vapier7f19c022007-02-17 14:46:31 +00007435 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007436 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007437 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007438 pgcc*) # Portland Group C compiler
7439 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'
vapier7f19c022007-02-17 14:46:31 +00007440 tmp_addflag=' $pic_flag'
7441 ;;
7442 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007443 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'
vapier7f19c022007-02-17 14:46:31 +00007444 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007445 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007446 tmp_addflag=' -i_dynamic' ;;
7447 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7448 tmp_addflag=' -i_dynamic -nofor_main' ;;
7449 ifc* | ifort*) # Intel Fortran compiler
7450 tmp_addflag=' -nofor_main' ;;
mlcreech636a9952008-05-05 22:52:56 +00007451 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7452 tmp_sharedflag='-qmkshrobj'
7453 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007454 esac
mlcreech636a9952008-05-05 22:52:56 +00007455 case `$CC -V 2>&1 | sed 5q` in
7456 *Sun\ C*) # Sun C 5.9
7457 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7458 compiler_needs_object=yes
7459 tmp_sharedflag='-G' ;;
7460 *Sun\ F*) # Sun Fortran 8.3
7461 tmp_sharedflag='-G' ;;
7462 esac
7463 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007464
mlcreech636a9952008-05-05 22:52:56 +00007465 if test "x$supports_anon_versioning" = xyes; then
7466 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7468 echo "local: *; };" >> $output_objdir/$libname.ver~
7469 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7470 fi
7471
7472 case $cc_basename in
7473 xlf*)
7474 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7475 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7476 hardcode_libdir_flag_spec=
7477 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7478 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7479 if test "x$supports_anon_versioning" = xyes; then
7480 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7482 echo "local: *; };" >> $output_objdir/$libname.ver~
7483 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7484 fi
7485 ;;
7486 esac
vapier7f19c022007-02-17 14:46:31 +00007487 else
mlcreech636a9952008-05-05 22:52:56 +00007488 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007489 fi
7490 ;;
7491
7492 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007494 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7495 wlarc=
7496 else
7497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7498 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7499 fi
7500 ;;
7501
vapier7f19c022007-02-17 14:46:31 +00007502 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007503 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007504 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007505 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007506
7507*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7508*** create shared libraries on Solaris systems. Therefore, libtool
7509*** is disabling shared libraries support. We urge you to upgrade GNU
7510*** binutils to release 2.9.1 or newer. Another option is to modify
7511*** your PATH or compiler configuration so that the native linker is
7512*** used, and then restart.
7513
mlcreech636a9952008-05-05 22:52:56 +00007514_LT_EOF
7515 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518 else
7519 ld_shlibs=no
7520 fi
7521 ;;
7522
vapier7f19c022007-02-17 14:46:31 +00007523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7524 case `$LD -v 2>&1` in
7525 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7526 ld_shlibs=no
7527 cat <<_LT_EOF 1>&2
7528
7529*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7530*** reliably create shared libraries on SCO systems. Therefore, libtool
7531*** is disabling shared libraries support. We urge you to upgrade GNU
7532*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7533*** your PATH or compiler configuration so that the native linker is
7534*** used, and then restart.
7535
7536_LT_EOF
7537 ;;
7538 *)
mlcreech636a9952008-05-05 22:52:56 +00007539 # For security reasons, it is highly recommended that you always
7540 # use absolute paths for naming shared libraries, and exclude the
7541 # DT_RUNPATH tag from executables and libraries. But doing so
7542 # requires that you compile everything twice, which is a pain.
7543 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7546 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007547 else
7548 ld_shlibs=no
7549 fi
7550 ;;
7551 esac
7552 ;;
7553
a.rottmann9bc8b932004-02-29 15:18:31 +00007554 sunos4*)
7555 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7556 wlarc=
7557 hardcode_direct=yes
7558 hardcode_shlibpath_var=no
7559 ;;
7560
a.rottmann9bc8b932004-02-29 15:18:31 +00007561 *)
mlcreech636a9952008-05-05 22:52:56 +00007562 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7565 else
7566 ld_shlibs=no
7567 fi
7568 ;;
7569 esac
7570
vapier7f19c022007-02-17 14:46:31 +00007571 if test "$ld_shlibs" = no; then
7572 runpath_var=
7573 hardcode_libdir_flag_spec=
7574 export_dynamic_flag_spec=
7575 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007576 fi
7577 else
7578 # PORTME fill in a description of your system's linker (not GNU ld)
7579 case $host_os in
7580 aix3*)
7581 allow_undefined_flag=unsupported
7582 always_export_symbols=yes
7583 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'
7584 # Note: this linker hardcodes the directories in LIBPATH if there
7585 # are no directories specified by -L.
7586 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007588 # Neither direct hardcoding nor static linking is supported with a
7589 # broken collect2.
7590 hardcode_direct=unsupported
7591 fi
7592 ;;
7593
mlcreech636a9952008-05-05 22:52:56 +00007594 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007595 if test "$host_cpu" = ia64; then
7596 # On IA64, the linker does run time linking by default, so we don't
7597 # have to do anything special.
7598 aix_use_runtimelinking=no
7599 exp_sym_flag='-Bexport'
7600 no_entry_flag=""
7601 else
7602 # If we're using GNU nm, then we don't want the "-C" option.
7603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007604 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7605 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00007606 else
mlcreech636a9952008-05-05 22:52:56 +00007607 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00007608 fi
7609 aix_use_runtimelinking=no
7610
7611 # Test if we are trying to use run time linking or normal
7612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7613 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007615 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7617 aix_use_runtimelinking=yes
7618 break
7619 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007620 done
vapier7f19c022007-02-17 14:46:31 +00007621 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007622 esac
7623
7624 exp_sym_flag='-bexport'
7625 no_entry_flag='-bnoentry'
7626 fi
7627
7628 # When large executables or shared objects are built, AIX ld can
7629 # have problems creating the table of contents. If linking a library
7630 # or program results in "error TOC overflow" add -mminimal-toc to
7631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7633
7634 archive_cmds=''
7635 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007636 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007637 hardcode_libdir_separator=':'
7638 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007639 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007640
7641 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007642 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007643 # We only want to do this on AIX 4.2 and lower, the check
7644 # below for broken collect2 doesn't work under 4.3+
7645 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007646 if test -f "$collect2name" &&
7647 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007648 then
mlcreech636a9952008-05-05 22:52:56 +00007649 # We have reworked collect2
7650 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007651 else
mlcreech636a9952008-05-05 22:52:56 +00007652 # We have old collect2
7653 hardcode_direct=unsupported
7654 # It fails to find uninstalled libraries when the uninstalled
7655 # path is not listed in the libpath. Setting hardcode_minus_L
7656 # to unsupported forces relinking
7657 hardcode_minus_L=yes
7658 hardcode_libdir_flag_spec='-L$libdir'
7659 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007660 fi
vapier7f19c022007-02-17 14:46:31 +00007661 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007662 esac
7663 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007664 if test "$aix_use_runtimelinking" = yes; then
7665 shared_flag="$shared_flag "'${wl}-G'
7666 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007667 else
7668 # not using gcc
7669 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7671 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007672 shared_flag='-G'
7673 else
vapier7f19c022007-02-17 14:46:31 +00007674 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007675 shared_flag='${wl}-G'
7676 else
7677 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007678 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007679 fi
7680 fi
7681
7682 # It seems that -bexpall does not export symbols beginning with
7683 # underscore (_), so it is better to generate a list of symbols to export.
7684 always_export_symbols=yes
7685 if test "$aix_use_runtimelinking" = yes; then
7686 # Warning - without using the other runtime loading flags (-brtl),
7687 # -berok will link without error, but may produce a broken library.
7688 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007689 # Determine the default libpath from the value encoded in an
7690 # empty executable.
7691 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007692/* confdefs.h. */
7693_ACEOF
7694cat confdefs.h >>conftest.$ac_ext
7695cat >>conftest.$ac_ext <<_ACEOF
7696/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007697
a.rottmann84e63352003-03-24 09:42:16 +00007698int
7699main ()
7700{
a.rottmann9bc8b932004-02-29 15:18:31 +00007701
a.rottmann84e63352003-03-24 09:42:16 +00007702 ;
7703 return 0;
7704}
7705_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007706rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00007707if { (ac_try="$ac_link"
7708case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711esac
7712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7713$as_echo "$ac_try_echo") >&5
7714 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007715 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest$ac_exeext && {
7724 test "$cross_compiling" = yes ||
7725 $as_test_x conftest$ac_exeext
7726 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007727
mlcreech636a9952008-05-05 22:52:56 +00007728lt_aix_libpath_sed='
7729 /Import File Strings/,/^$/ {
7730 /^0/ {
7731 s/^0 *\(.*\)$/\1/
7732 p
7733 }
7734 }'
7735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007736# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007737if test -z "$aix_libpath"; then
7738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7739fi
a.rottmann84e63352003-03-24 09:42:16 +00007740else
drh8b727472009-01-19 18:18:40 +00007741 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007742sed 's/^/| /' conftest.$ac_ext >&5
7743
drh8b727472009-01-19 18:18:40 +00007744
a.rottmann84e63352003-03-24 09:42:16 +00007745fi
drh8b727472009-01-19 18:18:40 +00007746
7747rm -rf conftest.dSYM
7748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007749 conftest$ac_exeext conftest.$ac_ext
7750if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007751
mlcreech636a9952008-05-05 22:52:56 +00007752 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7753 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7754 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007755 if test "$host_cpu" = ia64; then
7756 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7757 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007758 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 +00007759 else
mlcreech636a9952008-05-05 22:52:56 +00007760 # Determine the default libpath from the value encoded in an
7761 # empty executable.
a.rottmann9bc8b932004-02-29 15:18:31 +00007762 cat >conftest.$ac_ext <<_ACEOF
7763/* confdefs.h. */
7764_ACEOF
7765cat confdefs.h >>conftest.$ac_ext
7766cat >>conftest.$ac_ext <<_ACEOF
7767/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007768
a.rottmann9bc8b932004-02-29 15:18:31 +00007769int
7770main ()
7771{
a.rottmann84e63352003-03-24 09:42:16 +00007772
a.rottmann9bc8b932004-02-29 15:18:31 +00007773 ;
7774 return 0;
7775}
7776_ACEOF
7777rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00007778if { (ac_try="$ac_link"
7779case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7782esac
7783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7784$as_echo "$ac_try_echo") >&5
7785 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } && {
7792 test -z "$ac_c_werror_flag" ||
7793 test ! -s conftest.err
7794 } && test -s conftest$ac_exeext && {
7795 test "$cross_compiling" = yes ||
7796 $as_test_x conftest$ac_exeext
7797 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007798
mlcreech636a9952008-05-05 22:52:56 +00007799lt_aix_libpath_sed='
7800 /Import File Strings/,/^$/ {
7801 /^0/ {
7802 s/^0 *\(.*\)$/\1/
7803 p
7804 }
7805 }'
7806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007807# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007808if test -z "$aix_libpath"; then
7809 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7810fi
a.rottmann84e63352003-03-24 09:42:16 +00007811else
drh8b727472009-01-19 18:18:40 +00007812 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007813sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00007814
drh8b727472009-01-19 18:18:40 +00007815
a.rottmann9bc8b932004-02-29 15:18:31 +00007816fi
drh8b727472009-01-19 18:18:40 +00007817
7818rm -rf conftest.dSYM
7819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007820 conftest$ac_exeext conftest.$ac_ext
7821if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007822
a.rottmann9bc8b932004-02-29 15:18:31 +00007823 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7824 # Warning - without using the other run time loading flags,
7825 # -berok will link without error, but may produce a broken library.
7826 no_undefined_flag=' ${wl}-bernotok'
7827 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007828 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007829 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007830 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007831 # This is similar to how AIX traditionally builds its shared libraries.
7832 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 +00007833 fi
7834 fi
a.rottmann84e63352003-03-24 09:42:16 +00007835 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007836
7837 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007838 case $host_cpu in
7839 powerpc)
7840 # see comment about AmigaOS4 .so support
7841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7842 archive_expsym_cmds=''
7843 ;;
7844 m68k)
7845 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)'
7846 hardcode_libdir_flag_spec='-L$libdir'
7847 hardcode_minus_L=yes
7848 ;;
7849 esac
a.rottmann84e63352003-03-24 09:42:16 +00007850 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007851
vapier7f19c022007-02-17 14:46:31 +00007852 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007853 export_dynamic_flag_spec=-rdynamic
7854 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007855
a.rottmann9bc8b932004-02-29 15:18:31 +00007856 cygwin* | mingw* | pw32*)
7857 # When not using gcc, we currently assume that we are using
7858 # Microsoft Visual C++.
7859 # hardcode_libdir_flag_spec is actually meaningless, as there is
7860 # no search path for DLLs.
7861 hardcode_libdir_flag_spec=' '
7862 allow_undefined_flag=unsupported
7863 # Tell ltmain to make .lib files, not .a files.
7864 libext=lib
7865 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007866 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007867 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007868 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
a.rottmann9bc8b932004-02-29 15:18:31 +00007869 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007870 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007871 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007872 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007873 fix_srcfile_path='`cygpath -w "$srcfile"`'
7874 enable_shared_with_static_runtimes=yes
7875 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007876
a.rottmann9bc8b932004-02-29 15:18:31 +00007877 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007878
7879
7880 archive_cmds_need_lc=no
7881 hardcode_direct=no
7882 hardcode_automatic=yes
7883 hardcode_shlibpath_var=unsupported
7884 whole_archive_flag_spec=''
7885 link_all_deplibs=yes
7886 allow_undefined_flag="$_lt_dar_allow_undefined"
7887 if test "$GCC" = "yes"; then
7888 output_verbose_link_cmd=echo
7889 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7890 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7891 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7892 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7893
7894 else
7895 ld_shlibs=no
7896 fi
7897
a.rottmann9bc8b932004-02-29 15:18:31 +00007898 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007899
a.rottmann9bc8b932004-02-29 15:18:31 +00007900 dgux*)
7901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7902 hardcode_libdir_flag_spec='-L$libdir'
7903 hardcode_shlibpath_var=no
7904 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007905
a.rottmann9bc8b932004-02-29 15:18:31 +00007906 freebsd1*)
7907 ld_shlibs=no
7908 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007909
a.rottmann9bc8b932004-02-29 15:18:31 +00007910 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7911 # support. Future versions do this automatically, but an explicit c++rt0.o
7912 # does not break anything, and helps significantly (at the cost of a little
7913 # extra space).
7914 freebsd2.2*)
7915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7916 hardcode_libdir_flag_spec='-R$libdir'
7917 hardcode_direct=yes
7918 hardcode_shlibpath_var=no
7919 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007920
a.rottmann9bc8b932004-02-29 15:18:31 +00007921 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7922 freebsd2*)
7923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7924 hardcode_direct=yes
7925 hardcode_minus_L=yes
7926 hardcode_shlibpath_var=no
7927 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007928
a.rottmann9bc8b932004-02-29 15:18:31 +00007929 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007930 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007931 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7932 hardcode_libdir_flag_spec='-R$libdir'
7933 hardcode_direct=yes
7934 hardcode_shlibpath_var=no
7935 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007936
a.rottmann9bc8b932004-02-29 15:18:31 +00007937 hpux9*)
7938 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007939 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00007940 else
mlcreech636a9952008-05-05 22:52:56 +00007941 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00007942 fi
7943 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7944 hardcode_libdir_separator=:
7945 hardcode_direct=yes
7946
7947 # hardcode_minus_L: Not really in the search PATH,
7948 # but as the default location of the library.
7949 hardcode_minus_L=yes
7950 export_dynamic_flag_spec='${wl}-E'
7951 ;;
7952
vapier7f19c022007-02-17 14:46:31 +00007953 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007955 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7956 else
7957 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7958 fi
7959 if test "$with_gnu_ld" = no; then
7960 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007961 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007962 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007963 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007964 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007965 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007966 # hardcode_minus_L: Not really in the search PATH,
7967 # but as the default location of the library.
7968 hardcode_minus_L=yes
7969 fi
7970 ;;
7971
7972 hpux11*)
7973 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7974 case $host_cpu in
7975 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007976 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7977 ;;
vapier7f19c022007-02-17 14:46:31 +00007978 ia64*)
7979 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7980 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007981 *)
7982 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7983 ;;
7984 esac
7985 else
vapier7f19c022007-02-17 14:46:31 +00007986 case $host_cpu in
7987 hppa*64*)
7988 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7989 ;;
7990 ia64*)
7991 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007992 ;;
7993 *)
vapier7f19c022007-02-17 14:46:31 +00007994 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 +00007995 ;;
7996 esac
7997 fi
7998 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007999 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8000 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00008001
vapier7f19c022007-02-17 14:46:31 +00008002 case $host_cpu in
8003 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00008004 hardcode_direct=no
8005 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008006 ;;
8007 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008008 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008009 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008010 export_dynamic_flag_spec='${wl}-E'
8011
8012 # hardcode_minus_L: Not really in the search PATH,
8013 # but as the default location of the library.
8014 hardcode_minus_L=yes
8015 ;;
8016 esac
8017 fi
8018 ;;
8019
8020 irix5* | irix6* | nonstopux*)
8021 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8023 # Try to use the -exported_symbol ld option, if it does not
8024 # work, assume that -exports_file does not work either and
8025 # implicitly export all symbols.
8026 save_LDFLAGS="$LDFLAGS"
8027 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8028 cat >conftest.$ac_ext <<_ACEOF
8029int foo(void) {}
8030_ACEOF
8031rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00008032if { (ac_try="$ac_link"
8033case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036esac
8037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038$as_echo "$ac_try_echo") >&5
8039 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00008040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00008044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest$ac_exeext && {
8049 test "$cross_compiling" = yes ||
8050 $as_test_x conftest$ac_exeext
8051 }; then
mlcreech636a9952008-05-05 22:52:56 +00008052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8053
8054else
drh8b727472009-01-19 18:18:40 +00008055 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00008056sed 's/^/| /' conftest.$ac_ext >&5
8057
drh8b727472009-01-19 18:18:40 +00008058
mlcreech636a9952008-05-05 22:52:56 +00008059fi
drh8b727472009-01-19 18:18:40 +00008060
8061rm -rf conftest.dSYM
8062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00008063 conftest$ac_exeext conftest.$ac_ext
8064 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008065 else
mlcreech636a9952008-05-05 22:52:56 +00008066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00008068 fi
mlcreech636a9952008-05-05 22:52:56 +00008069 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8071 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00008072 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008073 link_all_deplibs=yes
8074 ;;
8075
vapier7f19c022007-02-17 14:46:31 +00008076 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8079 else
8080 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8081 fi
8082 hardcode_libdir_flag_spec='-R$libdir'
8083 hardcode_direct=yes
8084 hardcode_shlibpath_var=no
8085 ;;
8086
8087 newsos6)
8088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8089 hardcode_direct=yes
8090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8091 hardcode_libdir_separator=:
8092 hardcode_shlibpath_var=no
8093 ;;
8094
mlcreech636a9952008-05-05 22:52:56 +00008095 *nto* | *qnx*)
8096 ;;
8097
a.rottmann9bc8b932004-02-29 15:18:31 +00008098 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008099 if test -f /usr/libexec/ld.so; then
8100 hardcode_direct=yes
8101 hardcode_shlibpath_var=no
8102 hardcode_direct_absolute=yes
8103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8105 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8107 export_dynamic_flag_spec='${wl}-E'
8108 else
8109 case $host_os in
8110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_libdir_flag_spec='-R$libdir'
8113 ;;
8114 *)
8115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8117 ;;
8118 esac
8119 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008120 else
mlcreech636a9952008-05-05 22:52:56 +00008121 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008122 fi
8123 ;;
8124
8125 os2*)
8126 hardcode_libdir_flag_spec='-L$libdir'
8127 hardcode_minus_L=yes
8128 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008129 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'
8130 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008131 ;;
8132
8133 osf3*)
8134 if test "$GCC" = yes; then
8135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008136 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00008137 else
8138 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008139 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00008140 fi
mlcreech636a9952008-05-05 22:52:56 +00008141 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8143 hardcode_libdir_separator=:
8144 ;;
8145
8146 osf4* | osf5*) # as osf3* with the addition of -msym flag
8147 if test "$GCC" = yes; then
8148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008149 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00008150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8151 else
8152 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008153 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8154 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8155 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00008156
8157 # Both c and cxx compiler support -rpath directly
8158 hardcode_libdir_flag_spec='-rpath $libdir'
8159 fi
mlcreech636a9952008-05-05 22:52:56 +00008160 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008161 hardcode_libdir_separator=:
8162 ;;
8163
a.rottmann9bc8b932004-02-29 15:18:31 +00008164 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008165 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008166 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008167 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008168 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8170 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00008171 else
mlcreech636a9952008-05-05 22:52:56 +00008172 case `$CC -V 2>&1` in
8173 *"Compilers 5.0"*)
8174 wlarc=''
8175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8178 ;;
8179 *)
8180 wlarc='${wl}'
8181 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8183 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8184 ;;
8185 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008186 fi
8187 hardcode_libdir_flag_spec='-R$libdir'
8188 hardcode_shlibpath_var=no
8189 case $host_os in
8190 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008191 *)
mlcreech636a9952008-05-05 22:52:56 +00008192 # The compiler driver will combine and reorder linker options,
8193 # but understands `-z linker_flag'. GCC discards it without `$wl',
8194 # but is careful enough not to reorder.
8195 # Supported since Solaris 2.6 (maybe 2.5.1?)
8196 if test "$GCC" = yes; then
8197 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8198 else
8199 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8200 fi
8201 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008202 esac
8203 link_all_deplibs=yes
8204 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008205
a.rottmann9bc8b932004-02-29 15:18:31 +00008206 sunos4*)
8207 if test "x$host_vendor" = xsequent; then
8208 # Use $CC to link under sequent, because it throws in some extra .o
8209 # files that make .init and .fini sections work.
8210 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8211 else
8212 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8213 fi
8214 hardcode_libdir_flag_spec='-L$libdir'
8215 hardcode_direct=yes
8216 hardcode_minus_L=yes
8217 hardcode_shlibpath_var=no
8218 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008219
a.rottmann9bc8b932004-02-29 15:18:31 +00008220 sysv4)
8221 case $host_vendor in
8222 sni)
8223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8224 hardcode_direct=yes # is this really true???
8225 ;;
8226 siemens)
8227 ## LD is ld it makes a PLAMLIB
8228 ## CC just makes a GrossModule.
8229 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8230 reload_cmds='$CC -r -o $output$reload_objs'
8231 hardcode_direct=no
8232 ;;
8233 motorola)
8234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8235 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8236 ;;
8237 esac
8238 runpath_var='LD_RUN_PATH'
8239 hardcode_shlibpath_var=no
8240 ;;
8241
8242 sysv4.3*)
8243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8244 hardcode_shlibpath_var=no
8245 export_dynamic_flag_spec='-Bexport'
8246 ;;
8247
8248 sysv4*MP*)
8249 if test -d /usr/nec; then
8250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8251 hardcode_shlibpath_var=no
8252 runpath_var=LD_RUN_PATH
8253 hardcode_runpath_var=yes
8254 ld_shlibs=yes
8255 fi
8256 ;;
8257
mlcreech636a9952008-05-05 22:52:56 +00008258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008259 no_undefined_flag='${wl}-z,text'
8260 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008261 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008262 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008263
a.rottmann9bc8b932004-02-29 15:18:31 +00008264 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8266 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 +00008267 else
vapier7f19c022007-02-17 14:46:31 +00008268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8269 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 +00008270 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008271 ;;
8272
vapier7f19c022007-02-17 14:46:31 +00008273 sysv5* | sco3.2v5* | sco5v6*)
8274 # Note: We can NOT use -z defs as we might desire, because we do not
8275 # link with -lc, and that would cause any symbols used from libc to
8276 # always be unresolved, which means just about no library would
8277 # ever link correctly. If we're not using GNU ld we use -z text
8278 # though, which does catch some bad symbols but isn't as heavy-handed
8279 # as -z defs.
8280 no_undefined_flag='${wl}-z,text'
8281 allow_undefined_flag='${wl}-z,nodefs'
8282 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008283 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008284 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008285 hardcode_libdir_separator=':'
8286 link_all_deplibs=yes
8287 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008288 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008289
8290 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008291 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008293 else
mlcreech636a9952008-05-05 22:52:56 +00008294 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008296 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008297 ;;
8298
8299 uts4*)
8300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8301 hardcode_libdir_flag_spec='-L$libdir'
8302 hardcode_shlibpath_var=no
8303 ;;
8304
8305 *)
8306 ld_shlibs=no
8307 ;;
8308 esac
mlcreech636a9952008-05-05 22:52:56 +00008309
8310 if test x$host_vendor = xsni; then
8311 case $host in
8312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8313 export_dynamic_flag_spec='${wl}-Blargedynsym'
8314 ;;
8315 esac
8316 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008317 fi
8318
drh8b727472009-01-19 18:18:40 +00008319{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8320$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008321test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008322
mlcreech636a9952008-05-05 22:52:56 +00008323with_gnu_ld=$with_gnu_ld
8324
8325
danielk197733a14782008-08-04 14:50:05 +00008326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
a.rottmann9bc8b932004-02-29 15:18:31 +00008339#
8340# Do we need to explicitly link libc?
8341#
8342case "x$archive_cmds_need_lc" in
8343x|xyes)
8344 # Assume -lc should be added
8345 archive_cmds_need_lc=yes
8346
8347 if test "$enable_shared" = yes && test "$GCC" = yes; then
8348 case $archive_cmds in
8349 *'~'*)
8350 # FIXME: we may have to deal with multi-command sequences.
8351 ;;
8352 '$CC '*)
8353 # Test whether the compiler implicitly links with -lc since on some
8354 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8355 # to ld, don't add -lc before -lgcc.
drh8b727472009-01-19 18:18:40 +00008356 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8357$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008358 $RM conftest*
8359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008360
8361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8362 (eval $ac_compile) 2>&5
8363 ac_status=$?
drh8b727472009-01-19 18:18:40 +00008364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008365 (exit $ac_status); } 2>conftest.err; then
8366 soname=conftest
8367 lib=conftest
8368 libobjs=conftest.$ac_objext
8369 deplibs=
8370 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008371 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008372 compiler_flags=-v
8373 linker_flags=-v
8374 verstring=
8375 output_objdir=.
8376 libname=conftest
8377 lt_save_allow_undefined_flag=$allow_undefined_flag
8378 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00008379 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8380 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008381 ac_status=$?
drh8b727472009-01-19 18:18:40 +00008382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008383 (exit $ac_status); }
8384 then
8385 archive_cmds_need_lc=no
8386 else
8387 archive_cmds_need_lc=yes
8388 fi
8389 allow_undefined_flag=$lt_save_allow_undefined_flag
8390 else
8391 cat conftest.err 1>&5
8392 fi
mlcreech636a9952008-05-05 22:52:56 +00008393 $RM conftest*
drh8b727472009-01-19 18:18:40 +00008394 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8395$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008396 ;;
8397 esac
drh71eb93e2001-09-28 01:34:43 +00008398 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008399 ;;
8400esac
drh71eb93e2001-09-28 01:34:43 +00008401
mlcreech636a9952008-05-05 22:52:56 +00008402
danielk197733a14782008-08-04 14:50:05 +00008403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
drh8b727472009-01-19 18:18:40 +00008558 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8559$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008560
8561if test "$GCC" = yes; then
8562 case $host_os in
8563 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8564 *) lt_awk_arg="/^libraries:/" ;;
8565 esac
8566 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8567 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8568 # if the path contains ";" then we assume it to be the separator
8569 # otherwise default to the standard path separator (i.e. ":") - it is
8570 # assumed that no part of a normal pathname contains ";" but that should
8571 # okay in the real world where ";" in dirpaths is itself problematic.
8572 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8573 else
8574 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8575 fi
8576 # Ok, now we have the path, separated by spaces, we can step through it
8577 # and add multilib dir if necessary.
8578 lt_tmp_lt_search_path_spec=
8579 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8580 for lt_sys_path in $lt_search_path_spec; do
8581 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8583 else
8584 test -d "$lt_sys_path" && \
8585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8586 fi
8587 done
8588 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8589BEGIN {RS=" "; FS="/|\n";} {
8590 lt_foo="";
8591 lt_count=0;
8592 for (lt_i = NF; lt_i > 0; lt_i--) {
8593 if ($lt_i != "" && $lt_i != ".") {
8594 if ($lt_i == "..") {
8595 lt_count++;
8596 } else {
8597 if (lt_count == 0) {
8598 lt_foo="/" $lt_i lt_foo;
8599 } else {
8600 lt_count--;
8601 }
8602 }
8603 }
8604 }
8605 if (lt_foo != "") { lt_freq[lt_foo]++; }
8606 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8607}'`
8608 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8609else
8610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8611fi
drh71eb93e2001-09-28 01:34:43 +00008612library_names_spec=
8613libname_spec='lib$name'
8614soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008615shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008616postinstall_cmds=
8617postuninstall_cmds=
8618finish_cmds=
8619finish_eval=
8620shlibpath_var=
8621shlibpath_overrides_runpath=unknown
8622version_type=none
8623dynamic_linker="$host_os ld.so"
8624sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008625need_lib_prefix=unknown
8626hardcode_into_libs=no
8627
8628# when you set need_version to no, make sure it does not cause -set_version
8629# flags to be left without arguments
8630need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008631
8632case $host_os in
8633aix3*)
8634 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008636 shlibpath_var=LIBPATH
8637
a.rottmann9bc8b932004-02-29 15:18:31 +00008638 # AIX 3 has no versioning support, so we append a major version to the name.
8639 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008640 ;;
8641
mlcreech636a9952008-05-05 22:52:56 +00008642aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008643 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008644 need_lib_prefix=no
8645 need_version=no
8646 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008647 if test "$host_cpu" = ia64; then
8648 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008649 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008650 shlibpath_var=LD_LIBRARY_PATH
8651 else
8652 # With GCC up to 2.95.x, collect2 would create an import file
8653 # for dependence libraries. The import file would start with
8654 # the line `#! .'. This would cause the generated library to
8655 # depend on `.', always an invalid library. This was fixed in
8656 # development snapshots of GCC prior to 3.0.
8657 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008658 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8660 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008661 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008662 :
8663 else
8664 can_build_shared=no
8665 fi
8666 ;;
drh71eb93e2001-09-28 01:34:43 +00008667 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008668 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8669 # soname into executable. Probably we can add versioning support to
8670 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008671 if test "$aix_use_runtimelinking" = yes; then
8672 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8673 # instead of lib<name>.a to let people know that these are not
8674 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008676 else
8677 # We preserve .a as extension for shared libraries through AIX4.2
8678 # and later when we are not doing run time linking.
8679 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008680 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008681 fi
8682 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008683 fi
8684 ;;
8685
8686amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008687 case $host_cpu in
8688 powerpc)
8689 # Since July 2007 AmigaOS4 officially supports .so libraries.
8690 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692 ;;
8693 m68k)
8694 library_names_spec='$libname.ixlibrary $libname.a'
8695 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8696 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'
8697 ;;
8698 esac
drh71eb93e2001-09-28 01:34:43 +00008699 ;;
8700
8701beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008702 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008703 dynamic_linker="$host_os ld.so"
8704 shlibpath_var=LIBRARY_PATH
8705 ;;
8706
vapier7f19c022007-02-17 14:46:31 +00008707bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008708 version_type=linux
8709 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8711 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008712 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8713 shlibpath_var=LD_LIBRARY_PATH
8714 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8715 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8716 # the default ld.so.conf also contains /usr/contrib/lib and
8717 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8718 # libtool to hard-code these into programs
8719 ;;
8720
8721cygwin* | mingw* | pw32*)
8722 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008723 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008724 need_version=no
8725 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008726
drh71eb93e2001-09-28 01:34:43 +00008727 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00008728 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00008729 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008730 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8731 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008732 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008733 dldir=$destdir/`dirname \$dlpath`~
8734 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008735 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008736 chmod a+x \$dldir/$dlname~
8737 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8738 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8739 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008740 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008741 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008742 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008743 shlibpath_overrides_runpath=yes
8744
8745 case $host_os in
8746 cygwin*)
8747 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8748 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8750 ;;
8751 mingw*)
8752 # MinGW DLLs use traditional 'lib' prefix
8753 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008754 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8755 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008756 # It is most probably a Windows format PATH printed by
8757 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8758 # path with ; separators, and with drive letters. We can handle the
8759 # drive letters (cygwin fileutils understands them), so leave them,
8760 # especially as we might pass files found there to a mingw objdump,
8761 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008762 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008763 else
mlcreech636a9952008-05-05 22:52:56 +00008764 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008765 fi
8766 ;;
8767 pw32*)
8768 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008769 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 +00008770 ;;
8771 esac
drh71eb93e2001-09-28 01:34:43 +00008772 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008773
drh71eb93e2001-09-28 01:34:43 +00008774 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008775 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008776 ;;
8777 esac
8778 dynamic_linker='Win32 ld.exe'
8779 # FIXME: first we should search . and the directory the executable is in
8780 shlibpath_var=PATH
8781 ;;
8782
8783darwin* | rhapsody*)
8784 dynamic_linker="$host_os dyld"
8785 version_type=darwin
8786 need_lib_prefix=no
8787 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008788 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008789 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008790 shlibpath_overrides_runpath=yes
8791 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008792 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008793
8794 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008795 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8796 ;;
8797
8798dgux*)
8799 version_type=linux
8800 need_lib_prefix=no
8801 need_version=no
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008805 ;;
8806
a.rottmann84e63352003-03-24 09:42:16 +00008807freebsd1*)
8808 dynamic_linker=no
8809 ;;
8810
vapier7f19c022007-02-17 14:46:31 +00008811freebsd* | dragonfly*)
8812 # DragonFly does not have aout. When/if they implement a new
8813 # versioning mechanism, adjust this.
8814 if test -x /usr/bin/objformat; then
8815 objformat=`/usr/bin/objformat`
8816 else
8817 case $host_os in
8818 freebsd[123]*) objformat=aout ;;
8819 *) objformat=elf ;;
8820 esac
8821 fi
8822 # Handle Gentoo/FreeBSD as it was Linux
8823 case $host_vendor in
8824 gentoo)
8825 version_type=linux ;;
8826 *)
8827 version_type=freebsd-$objformat ;;
8828 esac
8829
drh71eb93e2001-09-28 01:34:43 +00008830 case $version_type in
8831 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008833 need_version=no
8834 need_lib_prefix=no
8835 ;;
8836 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008838 need_version=yes
8839 ;;
vapier7f19c022007-02-17 14:46:31 +00008840 linux)
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8842 soname_spec='${libname}${release}${shared_ext}$major'
8843 need_lib_prefix=no
8844 need_version=no
8845 ;;
drh71eb93e2001-09-28 01:34:43 +00008846 esac
8847 shlibpath_var=LD_LIBRARY_PATH
8848 case $host_os in
8849 freebsd2*)
8850 shlibpath_overrides_runpath=yes
8851 ;;
vapier7f19c022007-02-17 14:46:31 +00008852 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008853 shlibpath_overrides_runpath=yes
8854 hardcode_into_libs=yes
8855 ;;
vapier7f19c022007-02-17 14:46:31 +00008856 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8857 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008858 shlibpath_overrides_runpath=no
8859 hardcode_into_libs=yes
8860 ;;
mlcreech636a9952008-05-05 22:52:56 +00008861 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008862 shlibpath_overrides_runpath=yes
8863 hardcode_into_libs=yes
8864 ;;
drh71eb93e2001-09-28 01:34:43 +00008865 esac
8866 ;;
8867
8868gnu*)
8869 version_type=linux
8870 need_lib_prefix=no
8871 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008874 shlibpath_var=LD_LIBRARY_PATH
8875 hardcode_into_libs=yes
8876 ;;
8877
8878hpux9* | hpux10* | hpux11*)
8879 # Give a soname corresponding to the major version so that dld.sl refuses to
8880 # link against other versions.
8881 version_type=sunos
8882 need_lib_prefix=no
8883 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008884 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008885 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008886 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008887 hardcode_into_libs=yes
8888 dynamic_linker="$host_os dld.so"
8889 shlibpath_var=LD_LIBRARY_PATH
8890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 if test "X$HPUX_IA64_MODE" = X32; then
8894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8895 else
8896 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8897 fi
8898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8899 ;;
mlcreech636a9952008-05-05 22:52:56 +00008900 hppa*64*)
8901 shrext_cmds='.sl'
8902 hardcode_into_libs=yes
8903 dynamic_linker="$host_os dld.sl"
8904 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8910 ;;
8911 *)
vapier7f19c022007-02-17 14:46:31 +00008912 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008913 dynamic_linker="$host_os dld.sl"
8914 shlibpath_var=SHLIB_PATH
8915 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 ;;
8919 esac
drh71eb93e2001-09-28 01:34:43 +00008920 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8921 postinstall_cmds='chmod 555 $lib'
8922 ;;
8923
mlcreech636a9952008-05-05 22:52:56 +00008924interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008925 version_type=linux
8926 need_lib_prefix=no
8927 need_version=no
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 shlibpath_overrides_runpath=no
8933 hardcode_into_libs=yes
8934 ;;
8935
a.rottmann84e63352003-03-24 09:42:16 +00008936irix5* | irix6* | nonstopux*)
8937 case $host_os in
8938 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008939 *)
8940 if test "$lt_cv_prog_gnu_ld" = yes; then
8941 version_type=linux
8942 else
8943 version_type=irix
8944 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008945 esac
drh71eb93e2001-09-28 01:34:43 +00008946 need_lib_prefix=no
8947 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008948 soname_spec='${libname}${release}${shared_ext}$major'
8949 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 +00008950 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008951 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008952 libsuff= shlibsuff=
8953 ;;
8954 *)
8955 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008956 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8957 libsuff= shlibsuff= libmagic=32-bit;;
8958 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8959 libsuff=32 shlibsuff=N32 libmagic=N32;;
8960 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8961 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008962 *) libsuff= shlibsuff= libmagic=never-match;;
8963 esac
8964 ;;
8965 esac
8966 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8967 shlibpath_overrides_runpath=no
8968 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8969 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008970 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008971 ;;
8972
8973# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008974linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008975 dynamic_linker=no
8976 ;;
8977
8978# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008979linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008980 version_type=linux
8981 need_lib_prefix=no
8982 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008988 # Some binutils ld are patched to set DT_RUNPATH
8989 save_LDFLAGS=$LDFLAGS
8990 save_libdir=$libdir
8991 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8992 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8993 cat >conftest.$ac_ext <<_ACEOF
8994/* confdefs.h. */
8995_ACEOF
8996cat confdefs.h >>conftest.$ac_ext
8997cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h. */
8999
9000int
9001main ()
9002{
9003
9004 ;
9005 return 0;
9006}
9007_ACEOF
9008rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009009if { (ac_try="$ac_link"
9010case "(($ac_try" in
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9013esac
9014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9015$as_echo "$ac_try_echo") >&5
9016 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest$ac_exeext && {
9026 test "$cross_compiling" = yes ||
9027 $as_test_x conftest$ac_exeext
9028 }; then
mlcreech636a9952008-05-05 22:52:56 +00009029 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9030 shlibpath_overrides_runpath=yes
9031fi
9032
9033else
drh8b727472009-01-19 18:18:40 +00009034 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009035sed 's/^/| /' conftest.$ac_ext >&5
9036
drh8b727472009-01-19 18:18:40 +00009037
mlcreech636a9952008-05-05 22:52:56 +00009038fi
drh8b727472009-01-19 18:18:40 +00009039
9040rm -rf conftest.dSYM
9041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00009042 conftest$ac_exeext conftest.$ac_ext
9043 LDFLAGS=$save_LDFLAGS
9044 libdir=$save_libdir
9045
drh71eb93e2001-09-28 01:34:43 +00009046 # This implies no fast_install, which is unacceptable.
9047 # Some rework will be needed to allow for fast_install
9048 # before this can be enabled.
9049 hardcode_into_libs=yes
9050
a.rottmann9bc8b932004-02-29 15:18:31 +00009051 # Append ld.so.conf contents to the search path
9052 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00009053 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
vapier7f19c022007-02-17 14:46:31 +00009054 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00009055 fi
9056
drh71eb93e2001-09-28 01:34:43 +00009057 # We used to test for /lib/ld.so.1 and disable shared libraries on
9058 # powerpc, because MkLinux only supported shared libraries with the
9059 # GNU dynamic linker. Since this was broken with cross compilers,
9060 # most powerpc-linux boxes support dynamic linking these days and
9061 # people can always --disable-shared, the test was removed, and we
9062 # assume the GNU/Linux dynamic linker is in use.
9063 dynamic_linker='GNU/Linux ld.so'
9064 ;;
9065
9066netbsd*)
9067 version_type=sunos
9068 need_lib_prefix=no
9069 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00009070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9073 dynamic_linker='NetBSD (a.out) ld.so'
9074 else
a.rottmann9bc8b932004-02-29 15:18:31 +00009075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009077 dynamic_linker='NetBSD ld.elf_so'
9078 fi
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes
9081 hardcode_into_libs=yes
9082 ;;
9083
9084newsos6)
9085 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9089 ;;
9090
mlcreech636a9952008-05-05 22:52:56 +00009091*nto* | *qnx*)
9092 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00009093 need_lib_prefix=no
9094 need_version=no
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009097 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9100 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00009101 ;;
9102
drh71eb93e2001-09-28 01:34:43 +00009103openbsd*)
9104 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00009105 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00009106 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00009107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9108 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00009109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9110 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00009111 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00009112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9114 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009115 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 +00009116 case $host_os in
9117 openbsd2.[89] | openbsd2.[89].*)
9118 shlibpath_overrides_runpath=no
9119 ;;
9120 *)
9121 shlibpath_overrides_runpath=yes
9122 ;;
9123 esac
a.rottmann84e63352003-03-24 09:42:16 +00009124 else
9125 shlibpath_overrides_runpath=yes
9126 fi
drh71eb93e2001-09-28 01:34:43 +00009127 ;;
9128
9129os2*)
9130 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009131 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009132 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009133 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009134 dynamic_linker='OS/2 ld.exe'
9135 shlibpath_var=LIBPATH
9136 ;;
9137
9138osf3* | osf4* | osf5*)
9139 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009140 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009141 need_version=no
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009144 shlibpath_var=LD_LIBRARY_PATH
9145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9147 ;;
9148
mlcreech636a9952008-05-05 22:52:56 +00009149rdos*)
9150 dynamic_linker=no
9151 ;;
9152
drh71eb93e2001-09-28 01:34:43 +00009153solaris*)
9154 version_type=linux
9155 need_lib_prefix=no
9156 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009159 shlibpath_var=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath=yes
9161 hardcode_into_libs=yes
9162 # ldd complains unless libraries are executable
9163 postinstall_cmds='chmod +x $lib'
9164 ;;
9165
9166sunos4*)
9167 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 if test "$with_gnu_ld" = yes; then
9173 need_lib_prefix=no
9174 fi
9175 need_version=yes
9176 ;;
9177
vapier7f19c022007-02-17 14:46:31 +00009178sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009179 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009182 shlibpath_var=LD_LIBRARY_PATH
9183 case $host_vendor in
9184 sni)
9185 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009186 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009187 runpath_var=LD_RUN_PATH
9188 ;;
9189 siemens)
9190 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009191 ;;
9192 motorola)
9193 need_lib_prefix=no
9194 need_version=no
9195 shlibpath_overrides_runpath=no
9196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9197 ;;
9198 esac
9199 ;;
9200
9201sysv4*MP*)
9202 if test -d /usr/nec ;then
9203 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9205 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009206 shlibpath_var=LD_LIBRARY_PATH
9207 fi
9208 ;;
9209
vapier7f19c022007-02-17 14:46:31 +00009210sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9211 version_type=freebsd-elf
9212 need_lib_prefix=no
9213 need_version=no
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009217 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009218 hardcode_into_libs=yes
9219 if test "$with_gnu_ld" = yes; then
9220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009221 else
9222 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009223 case $host_os in
9224 sco3.2v5*)
9225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9226 ;;
9227 esac
9228 fi
9229 sys_lib_dlsearch_path_spec='/usr/lib'
9230 ;;
9231
mlcreech636a9952008-05-05 22:52:56 +00009232tpf*)
9233 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9234 version_type=linux
9235 need_lib_prefix=no
9236 need_version=no
9237 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=no
9240 hardcode_into_libs=yes
9241 ;;
9242
a.rottmann9bc8b932004-02-29 15:18:31 +00009243uts4*)
9244 version_type=linux
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 ;;
9249
drh71eb93e2001-09-28 01:34:43 +00009250*)
9251 dynamic_linker=no
9252 ;;
9253esac
drh8b727472009-01-19 18:18:40 +00009254{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9255$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009256test "$dynamic_linker" = no && can_build_shared=no
9257
vapier7f19c022007-02-17 14:46:31 +00009258variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9259if test "$GCC" = yes; then
9260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9261fi
9262
mlcreech636a9952008-05-05 22:52:56 +00009263if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9264 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9265fi
9266if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9267 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9268fi
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
drh8b727472009-01-19 18:18:40 +00009356 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9357$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009358hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009359if test -n "$hardcode_libdir_flag_spec" ||
9360 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009361 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009362
mlcreech636a9952008-05-05 22:52:56 +00009363 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009364 if test "$hardcode_direct" != no &&
9365 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9366 # have to relink, otherwise we might link with an installed library
9367 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009368 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009369 test "$hardcode_minus_L" != no; then
9370 # Linking always hardcodes the temporary library directory.
9371 hardcode_action=relink
9372 else
9373 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9374 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009375 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009376else
9377 # We cannot hardcode anything, or else we can only hardcode existing
9378 # directories.
9379 hardcode_action=unsupported
9380fi
drh8b727472009-01-19 18:18:40 +00009381{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9382$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009383
mlcreech636a9952008-05-05 22:52:56 +00009384if test "$hardcode_action" = relink ||
9385 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009386 # Fast installation is not supported
9387 enable_fast_install=no
9388elif test "$shlibpath_overrides_runpath" = yes ||
9389 test "$enable_shared" = no; then
9390 # Fast installation is not necessary
9391 enable_fast_install=needless
9392fi
9393
a.rottmann84e63352003-03-24 09:42:16 +00009394
mlcreech636a9952008-05-05 22:52:56 +00009395
9396
9397
9398
9399 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009400 enable_dlopen=unknown
9401 enable_dlopen_self=unknown
9402 enable_dlopen_self_static=unknown
9403else
9404 lt_cv_dlopen=no
9405 lt_cv_dlopen_libs=
9406
9407 case $host_os in
9408 beos*)
9409 lt_cv_dlopen="load_add_on"
9410 lt_cv_dlopen_libs=
9411 lt_cv_dlopen_self=yes
9412 ;;
9413
a.rottmann9bc8b932004-02-29 15:18:31 +00009414 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00009415 lt_cv_dlopen="LoadLibrary"
9416 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009417 ;;
drh71eb93e2001-09-28 01:34:43 +00009418
a.rottmann9bc8b932004-02-29 15:18:31 +00009419 cygwin*)
9420 lt_cv_dlopen="dlopen"
9421 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009422 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009423
9424 darwin*)
9425 # if libdl is installed we need to link against it
drh8b727472009-01-19 18:18:40 +00009426 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9427$as_echo_n "checking for dlopen in -ldl... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009428if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009429 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009430else
9431 ac_check_lib_save_LIBS=$LIBS
9432LIBS="-ldl $LIBS"
9433cat >conftest.$ac_ext <<_ACEOF
9434/* confdefs.h. */
9435_ACEOF
9436cat confdefs.h >>conftest.$ac_ext
9437cat >>conftest.$ac_ext <<_ACEOF
9438/* end confdefs.h. */
9439
drh8b727472009-01-19 18:18:40 +00009440/* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009443#ifdef __cplusplus
9444extern "C"
9445#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009446char dlopen ();
9447int
9448main ()
9449{
drh8b727472009-01-19 18:18:40 +00009450return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009451 ;
9452 return 0;
9453}
9454_ACEOF
9455rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009456if { (ac_try="$ac_link"
9457case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9460esac
9461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9462$as_echo "$ac_try_echo") >&5
9463 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00009464 ac_status=$?
9465 grep -v '^ *+' conftest.er1 >conftest.err
9466 rm -f conftest.er1
9467 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } && {
9470 test -z "$ac_c_werror_flag" ||
9471 test ! -s conftest.err
9472 } && test -s conftest$ac_exeext && {
9473 test "$cross_compiling" = yes ||
9474 $as_test_x conftest$ac_exeext
9475 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009476 ac_cv_lib_dl_dlopen=yes
9477else
drh8b727472009-01-19 18:18:40 +00009478 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00009479sed 's/^/| /' conftest.$ac_ext >&5
9480
drh8b727472009-01-19 18:18:40 +00009481 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009482fi
drh8b727472009-01-19 18:18:40 +00009483
9484rm -rf conftest.dSYM
9485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00009486 conftest$ac_exeext conftest.$ac_ext
9487LIBS=$ac_check_lib_save_LIBS
9488fi
drh8b727472009-01-19 18:18:40 +00009489{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9490$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009491if test $ac_cv_lib_dl_dlopen = yes; then
9492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9493else
9494
9495 lt_cv_dlopen="dyld"
9496 lt_cv_dlopen_libs=
9497 lt_cv_dlopen_self=yes
9498
9499fi
9500
mlcreech636a9952008-05-05 22:52:56 +00009501 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009502
drh71eb93e2001-09-28 01:34:43 +00009503 *)
drh8b727472009-01-19 18:18:40 +00009504 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9505$as_echo_n "checking for shl_load... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009506if test "${ac_cv_func_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009507 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009508else
9509 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009515/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9517#define shl_load innocuous_shl_load
9518
drh71eb93e2001-09-28 01:34:43 +00009519/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00009520 which can conflict with char shl_load (); below.
9521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9522 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009523
a.rottmann84e63352003-03-24 09:42:16 +00009524#ifdef __STDC__
9525# include <limits.h>
9526#else
9527# include <assert.h>
9528#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009529
9530#undef shl_load
9531
drh8b727472009-01-19 18:18:40 +00009532/* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009535#ifdef __cplusplus
9536extern "C"
9537#endif
drh71eb93e2001-09-28 01:34:43 +00009538char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009539/* The GNU C library defines this for functions which it implements
9540 to always fail with ENOSYS. Some functions are actually named
9541 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +00009542#if defined __stub_shl_load || defined __stub___shl_load
drh71eb93e2001-09-28 01:34:43 +00009543choke me
drh71eb93e2001-09-28 01:34:43 +00009544#endif
9545
a.rottmann84e63352003-03-24 09:42:16 +00009546int
9547main ()
9548{
drh8b727472009-01-19 18:18:40 +00009549return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009550 ;
9551 return 0;
9552}
9553_ACEOF
9554rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009555if { (ac_try="$ac_link"
9556case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559esac
9560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9561$as_echo "$ac_try_echo") >&5
9562 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009563 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } && {
9569 test -z "$ac_c_werror_flag" ||
9570 test ! -s conftest.err
9571 } && test -s conftest$ac_exeext && {
9572 test "$cross_compiling" = yes ||
9573 $as_test_x conftest$ac_exeext
9574 }; then
drh71eb93e2001-09-28 01:34:43 +00009575 ac_cv_func_shl_load=yes
9576else
drh8b727472009-01-19 18:18:40 +00009577 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009578sed 's/^/| /' conftest.$ac_ext >&5
9579
drh8b727472009-01-19 18:18:40 +00009580 ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009581fi
drh8b727472009-01-19 18:18:40 +00009582
9583rm -rf conftest.dSYM
9584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009585 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009586fi
drh8b727472009-01-19 18:18:40 +00009587{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9588$as_echo "$ac_cv_func_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009589if test $ac_cv_func_shl_load = yes; then
9590 lt_cv_dlopen="shl_load"
9591else
drh8b727472009-01-19 18:18:40 +00009592 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9593$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009594if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009595 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009596else
9597 ac_check_lib_save_LIBS=$LIBS
9598LIBS="-ldld $LIBS"
9599cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009605
drh8b727472009-01-19 18:18:40 +00009606/* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009609#ifdef __cplusplus
9610extern "C"
9611#endif
drh71eb93e2001-09-28 01:34:43 +00009612char shl_load ();
9613int
9614main ()
9615{
drh8b727472009-01-19 18:18:40 +00009616return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009617 ;
9618 return 0;
9619}
9620_ACEOF
9621rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009622if { (ac_try="$ac_link"
9623case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626esac
9627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628$as_echo "$ac_try_echo") >&5
9629 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009630 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest$ac_exeext && {
9639 test "$cross_compiling" = yes ||
9640 $as_test_x conftest$ac_exeext
9641 }; then
drh71eb93e2001-09-28 01:34:43 +00009642 ac_cv_lib_dld_shl_load=yes
9643else
drh8b727472009-01-19 18:18:40 +00009644 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009645sed 's/^/| /' conftest.$ac_ext >&5
9646
drh8b727472009-01-19 18:18:40 +00009647 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009648fi
drh8b727472009-01-19 18:18:40 +00009649
9650rm -rf conftest.dSYM
9651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009652 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009653LIBS=$ac_check_lib_save_LIBS
9654fi
drh8b727472009-01-19 18:18:40 +00009655{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9656$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009657if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009658 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009659else
drh8b727472009-01-19 18:18:40 +00009660 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9661$as_echo_n "checking for dlopen... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009662if test "${ac_cv_func_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009663 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009664else
9665 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009666/* confdefs.h. */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009671/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9673#define dlopen innocuous_dlopen
9674
a.rottmann84e63352003-03-24 09:42:16 +00009675/* System header to define __stub macros and hopefully few prototypes,
9676 which can conflict with char dlopen (); below.
9677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9678 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009679
a.rottmann84e63352003-03-24 09:42:16 +00009680#ifdef __STDC__
9681# include <limits.h>
9682#else
9683# include <assert.h>
9684#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009685
9686#undef dlopen
9687
drh8b727472009-01-19 18:18:40 +00009688/* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009691#ifdef __cplusplus
9692extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00009693#endif
a.rottmann84e63352003-03-24 09:42:16 +00009694char dlopen ();
9695/* The GNU C library defines this for functions which it implements
9696 to always fail with ENOSYS. Some functions are actually named
9697 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +00009698#if defined __stub_dlopen || defined __stub___dlopen
a.rottmann84e63352003-03-24 09:42:16 +00009699choke me
a.rottmann84e63352003-03-24 09:42:16 +00009700#endif
9701
9702int
9703main ()
9704{
drh8b727472009-01-19 18:18:40 +00009705return dlopen ();
a.rottmann84e63352003-03-24 09:42:16 +00009706 ;
9707 return 0;
9708}
9709_ACEOF
9710rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009711if { (ac_try="$ac_link"
9712case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715esac
9716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9717$as_echo "$ac_try_echo") >&5
9718 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009719 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest$ac_exeext && {
9728 test "$cross_compiling" = yes ||
9729 $as_test_x conftest$ac_exeext
9730 }; then
a.rottmann84e63352003-03-24 09:42:16 +00009731 ac_cv_func_dlopen=yes
9732else
drh8b727472009-01-19 18:18:40 +00009733 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009734sed 's/^/| /' conftest.$ac_ext >&5
9735
drh8b727472009-01-19 18:18:40 +00009736 ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00009737fi
drh8b727472009-01-19 18:18:40 +00009738
9739rm -rf conftest.dSYM
9740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009741 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009742fi
drh8b727472009-01-19 18:18:40 +00009743{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9744$as_echo "$ac_cv_func_dlopen" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009745if test $ac_cv_func_dlopen = yes; then
9746 lt_cv_dlopen="dlopen"
9747else
drh8b727472009-01-19 18:18:40 +00009748 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9749$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009750if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009751 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009752else
9753 ac_check_lib_save_LIBS=$LIBS
9754LIBS="-ldl $LIBS"
9755cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009761
drh8b727472009-01-19 18:18:40 +00009762/* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009765#ifdef __cplusplus
9766extern "C"
9767#endif
drh71eb93e2001-09-28 01:34:43 +00009768char dlopen ();
9769int
9770main ()
9771{
drh8b727472009-01-19 18:18:40 +00009772return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009773 ;
9774 return 0;
9775}
9776_ACEOF
9777rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009778if { (ac_try="$ac_link"
9779case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782esac
9783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9784$as_echo "$ac_try_echo") >&5
9785 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009786 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } && {
9792 test -z "$ac_c_werror_flag" ||
9793 test ! -s conftest.err
9794 } && test -s conftest$ac_exeext && {
9795 test "$cross_compiling" = yes ||
9796 $as_test_x conftest$ac_exeext
9797 }; then
drh71eb93e2001-09-28 01:34:43 +00009798 ac_cv_lib_dl_dlopen=yes
9799else
drh8b727472009-01-19 18:18:40 +00009800 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009801sed 's/^/| /' conftest.$ac_ext >&5
9802
drh8b727472009-01-19 18:18:40 +00009803 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009804fi
drh8b727472009-01-19 18:18:40 +00009805
9806rm -rf conftest.dSYM
9807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009808 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009809LIBS=$ac_check_lib_save_LIBS
9810fi
drh8b727472009-01-19 18:18:40 +00009811{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9812$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009813if test $ac_cv_lib_dl_dlopen = yes; then
9814 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9815else
drh8b727472009-01-19 18:18:40 +00009816 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9817$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009818if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009819 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009820else
9821 ac_check_lib_save_LIBS=$LIBS
9822LIBS="-lsvld $LIBS"
9823cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009824/* confdefs.h. */
9825_ACEOF
9826cat confdefs.h >>conftest.$ac_ext
9827cat >>conftest.$ac_ext <<_ACEOF
9828/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009829
drh8b727472009-01-19 18:18:40 +00009830/* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009833#ifdef __cplusplus
9834extern "C"
9835#endif
drh71eb93e2001-09-28 01:34:43 +00009836char dlopen ();
9837int
9838main ()
9839{
drh8b727472009-01-19 18:18:40 +00009840return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009841 ;
9842 return 0;
9843}
9844_ACEOF
9845rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009846if { (ac_try="$ac_link"
9847case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9850esac
9851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9852$as_echo "$ac_try_echo") >&5
9853 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009854 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } && {
9860 test -z "$ac_c_werror_flag" ||
9861 test ! -s conftest.err
9862 } && test -s conftest$ac_exeext && {
9863 test "$cross_compiling" = yes ||
9864 $as_test_x conftest$ac_exeext
9865 }; then
drh71eb93e2001-09-28 01:34:43 +00009866 ac_cv_lib_svld_dlopen=yes
9867else
drh8b727472009-01-19 18:18:40 +00009868 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009869sed 's/^/| /' conftest.$ac_ext >&5
9870
drh8b727472009-01-19 18:18:40 +00009871 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009872fi
drh8b727472009-01-19 18:18:40 +00009873
9874rm -rf conftest.dSYM
9875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009876 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009877LIBS=$ac_check_lib_save_LIBS
9878fi
drh8b727472009-01-19 18:18:40 +00009879{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9880$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009881if test $ac_cv_lib_svld_dlopen = yes; then
9882 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009883else
drh8b727472009-01-19 18:18:40 +00009884 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9885$as_echo_n "checking for dld_link in -ldld... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009886if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009887 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009888else
9889 ac_check_lib_save_LIBS=$LIBS
9890LIBS="-ldld $LIBS"
9891cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009892/* confdefs.h. */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
9896/* end confdefs.h. */
9897
drh8b727472009-01-19 18:18:40 +00009898/* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009901#ifdef __cplusplus
9902extern "C"
9903#endif
a.rottmann84e63352003-03-24 09:42:16 +00009904char dld_link ();
9905int
9906main ()
9907{
drh8b727472009-01-19 18:18:40 +00009908return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009909 ;
9910 return 0;
9911}
9912_ACEOF
9913rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009914if { (ac_try="$ac_link"
9915case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918esac
9919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9920$as_echo "$ac_try_echo") >&5
9921 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009922 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } && {
9928 test -z "$ac_c_werror_flag" ||
9929 test ! -s conftest.err
9930 } && test -s conftest$ac_exeext && {
9931 test "$cross_compiling" = yes ||
9932 $as_test_x conftest$ac_exeext
9933 }; then
a.rottmann84e63352003-03-24 09:42:16 +00009934 ac_cv_lib_dld_dld_link=yes
9935else
drh8b727472009-01-19 18:18:40 +00009936 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009937sed 's/^/| /' conftest.$ac_ext >&5
9938
drh8b727472009-01-19 18:18:40 +00009939 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009940fi
drh8b727472009-01-19 18:18:40 +00009941
9942rm -rf conftest.dSYM
9943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009944 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009945LIBS=$ac_check_lib_save_LIBS
9946fi
drh8b727472009-01-19 18:18:40 +00009947{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9948$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009949if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009950 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009951fi
9952
drh71eb93e2001-09-28 01:34:43 +00009953
9954fi
9955
drh71eb93e2001-09-28 01:34:43 +00009956
9957fi
9958
a.rottmann84e63352003-03-24 09:42:16 +00009959
9960fi
9961
9962
9963fi
9964
9965
drh71eb93e2001-09-28 01:34:43 +00009966fi
9967
9968 ;;
9969 esac
9970
9971 if test "x$lt_cv_dlopen" != xno; then
9972 enable_dlopen=yes
9973 else
9974 enable_dlopen=no
9975 fi
9976
9977 case $lt_cv_dlopen in
9978 dlopen)
9979 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009980 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009981
9982 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009983 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009984
9985 save_LIBS="$LIBS"
9986 LIBS="$lt_cv_dlopen_libs $LIBS"
9987
drh8b727472009-01-19 18:18:40 +00009988 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9989$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009990if test "${lt_cv_dlopen_self+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009991 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009992else
9993 if test "$cross_compiling" = yes; then :
9994 lt_cv_dlopen_self=cross
9995else
a.rottmann9bc8b932004-02-29 15:18:31 +00009996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009997 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009998 cat > conftest.$ac_ext <<_LT_EOF
drh8b727472009-01-19 18:18:40 +00009999#line 9999 "configure"
drh71eb93e2001-09-28 01:34:43 +000010000#include "confdefs.h"
10001
10002#if HAVE_DLFCN_H
10003#include <dlfcn.h>
10004#endif
10005
10006#include <stdio.h>
10007
10008#ifdef RTLD_GLOBAL
10009# define LT_DLGLOBAL RTLD_GLOBAL
10010#else
10011# ifdef DL_GLOBAL
10012# define LT_DLGLOBAL DL_GLOBAL
10013# else
10014# define LT_DLGLOBAL 0
10015# endif
10016#endif
10017
10018/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10019 find out it does not work in some platform. */
10020#ifndef LT_DLLAZY_OR_NOW
10021# ifdef RTLD_LAZY
10022# define LT_DLLAZY_OR_NOW RTLD_LAZY
10023# else
10024# ifdef DL_LAZY
10025# define LT_DLLAZY_OR_NOW DL_LAZY
10026# else
10027# ifdef RTLD_NOW
10028# define LT_DLLAZY_OR_NOW RTLD_NOW
10029# else
10030# ifdef DL_NOW
10031# define LT_DLLAZY_OR_NOW DL_NOW
10032# else
10033# define LT_DLLAZY_OR_NOW 0
10034# endif
10035# endif
10036# endif
10037# endif
10038#endif
10039
10040#ifdef __cplusplus
10041extern "C" void exit (int);
10042#endif
10043
10044void fnord() { int i=42;}
10045int main ()
10046{
10047 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10048 int status = $lt_dlunknown;
10049
10050 if (self)
10051 {
10052 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10053 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10054 /* dlclose (self); */
10055 }
vapier7f19c022007-02-17 14:46:31 +000010056 else
10057 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010058
10059 exit (status);
10060}
mlcreech636a9952008-05-05 22:52:56 +000010061_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010063 (eval $ac_link) 2>&5
10064 ac_status=$?
drh8b727472009-01-19 18:18:40 +000010065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010066 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010067 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010068 lt_status=$?
10069 case x$lt_status in
10070 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10071 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010072 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +000010073 esac
10074 else :
10075 # compilation failed
10076 lt_cv_dlopen_self=no
10077 fi
10078fi
10079rm -fr conftest*
10080
a.rottmann84e63352003-03-24 09:42:16 +000010081
drh71eb93e2001-09-28 01:34:43 +000010082fi
drh8b727472009-01-19 18:18:40 +000010083{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10084$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010085
10086 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +000010087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh8b727472009-01-19 18:18:40 +000010088 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10089$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010090if test "${lt_cv_dlopen_self_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010091 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010092else
10093 if test "$cross_compiling" = yes; then :
10094 lt_cv_dlopen_self_static=cross
10095else
a.rottmann9bc8b932004-02-29 15:18:31 +000010096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010097 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010098 cat > conftest.$ac_ext <<_LT_EOF
drh8b727472009-01-19 18:18:40 +000010099#line 10099 "configure"
drh71eb93e2001-09-28 01:34:43 +000010100#include "confdefs.h"
10101
10102#if HAVE_DLFCN_H
10103#include <dlfcn.h>
10104#endif
10105
10106#include <stdio.h>
10107
10108#ifdef RTLD_GLOBAL
10109# define LT_DLGLOBAL RTLD_GLOBAL
10110#else
10111# ifdef DL_GLOBAL
10112# define LT_DLGLOBAL DL_GLOBAL
10113# else
10114# define LT_DLGLOBAL 0
10115# endif
10116#endif
10117
10118/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10119 find out it does not work in some platform. */
10120#ifndef LT_DLLAZY_OR_NOW
10121# ifdef RTLD_LAZY
10122# define LT_DLLAZY_OR_NOW RTLD_LAZY
10123# else
10124# ifdef DL_LAZY
10125# define LT_DLLAZY_OR_NOW DL_LAZY
10126# else
10127# ifdef RTLD_NOW
10128# define LT_DLLAZY_OR_NOW RTLD_NOW
10129# else
10130# ifdef DL_NOW
10131# define LT_DLLAZY_OR_NOW DL_NOW
10132# else
10133# define LT_DLLAZY_OR_NOW 0
10134# endif
10135# endif
10136# endif
10137# endif
10138#endif
10139
10140#ifdef __cplusplus
10141extern "C" void exit (int);
10142#endif
10143
10144void fnord() { int i=42;}
10145int main ()
10146{
10147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10148 int status = $lt_dlunknown;
10149
10150 if (self)
10151 {
10152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10153 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10154 /* dlclose (self); */
10155 }
vapier7f19c022007-02-17 14:46:31 +000010156 else
10157 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010158
10159 exit (status);
10160}
mlcreech636a9952008-05-05 22:52:56 +000010161_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010163 (eval $ac_link) 2>&5
10164 ac_status=$?
drh8b727472009-01-19 18:18:40 +000010165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010166 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010167 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010168 lt_status=$?
10169 case x$lt_status in
10170 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10171 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010172 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +000010173 esac
10174 else :
10175 # compilation failed
10176 lt_cv_dlopen_self_static=no
10177 fi
10178fi
10179rm -fr conftest*
10180
a.rottmann84e63352003-03-24 09:42:16 +000010181
drh71eb93e2001-09-28 01:34:43 +000010182fi
drh8b727472009-01-19 18:18:40 +000010183{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10184$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010185 fi
10186
10187 CPPFLAGS="$save_CPPFLAGS"
10188 LDFLAGS="$save_LDFLAGS"
10189 LIBS="$save_LIBS"
10190 ;;
10191 esac
10192
10193 case $lt_cv_dlopen_self in
10194 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10195 *) enable_dlopen_self=unknown ;;
10196 esac
10197
10198 case $lt_cv_dlopen_self_static in
10199 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10200 *) enable_dlopen_self_static=unknown ;;
10201 esac
10202fi
10203
drh71eb93e2001-09-28 01:34:43 +000010204
drh71eb93e2001-09-28 01:34:43 +000010205
a.rottmann9bc8b932004-02-29 15:18:31 +000010206
a.rottmann9bc8b932004-02-29 15:18:31 +000010207
mlcreech636a9952008-05-05 22:52:56 +000010208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220striplib=
10221old_striplib=
drh8b727472009-01-19 18:18:40 +000010222{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10223$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010224if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10225 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10226 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh8b727472009-01-19 18:18:40 +000010227 { $as_echo "$as_me:$LINENO: result: yes" >&5
10228$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010229else
10230# FIXME - insert some real tests, host_os isn't really good enough
10231 case $host_os in
10232 darwin*)
10233 if test -n "$STRIP" ; then
10234 striplib="$STRIP -x"
10235 old_striplib="$STRIP -S"
drh8b727472009-01-19 18:18:40 +000010236 { $as_echo "$as_me:$LINENO: result: yes" >&5
10237$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010238 else
drh8b727472009-01-19 18:18:40 +000010239 { $as_echo "$as_me:$LINENO: result: no" >&5
10240$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010241 fi
a.rottmann84e63352003-03-24 09:42:16 +000010242 ;;
mlcreech636a9952008-05-05 22:52:56 +000010243 *)
drh8b727472009-01-19 18:18:40 +000010244 { $as_echo "$as_me:$LINENO: result: no" >&5
10245$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010246 ;;
10247 esac
mlcreech636a9952008-05-05 22:52:56 +000010248fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010249
a.rottmann9bc8b932004-02-29 15:18:31 +000010250
drh71eb93e2001-09-28 01:34:43 +000010251
drh71eb93e2001-09-28 01:34:43 +000010252
a.rottmann84e63352003-03-24 09:42:16 +000010253
drh71eb93e2001-09-28 01:34:43 +000010254
drh71eb93e2001-09-28 01:34:43 +000010255
a.rottmann9bc8b932004-02-29 15:18:31 +000010256
drh71eb93e2001-09-28 01:34:43 +000010257
drh71eb93e2001-09-28 01:34:43 +000010258
drh71eb93e2001-09-28 01:34:43 +000010259
drh71eb93e2001-09-28 01:34:43 +000010260
mlcreech636a9952008-05-05 22:52:56 +000010261 # Report which library types will actually be built
drh8b727472009-01-19 18:18:40 +000010262 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10263$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10264 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10265$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010266
drh8b727472009-01-19 18:18:40 +000010267 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10268$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010269 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010270
mlcreech636a9952008-05-05 22:52:56 +000010271 # On AIX, shared libraries and static libraries use the same namespace, and
10272 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +000010273 case $host_os in
10274 aix3*)
vapier7f19c022007-02-17 14:46:31 +000010275 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +000010276 if test -n "$RANLIB"; then
10277 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10278 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +000010279 fi
10280 ;;
10281
mlcreech636a9952008-05-05 22:52:56 +000010282 aix[4-9]*)
10283 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10284 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010285 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010286 ;;
10287 esac
drh8b727472009-01-19 18:18:40 +000010288 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10289$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010290
drh8b727472009-01-19 18:18:40 +000010291 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10292$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010293 # Make sure either enable_shared or enable_static is yes.
10294 test "$enable_shared" = yes || enable_static=yes
drh8b727472009-01-19 18:18:40 +000010295 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10296$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +000010297
a.rottmann9bc8b932004-02-29 15:18:31 +000010298
a.rottmann9bc8b932004-02-29 15:18:31 +000010299
a.rottmann9bc8b932004-02-29 15:18:31 +000010300
vapier7f19c022007-02-17 14:46:31 +000010301fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010302ac_ext=c
10303ac_cpp='$CPP $CPPFLAGS'
10304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10306ac_compiler_gnu=$ac_cv_c_compiler_gnu
10307
10308CC="$lt_save_CC"
10309
a.rottmann9bc8b932004-02-29 15:18:31 +000010310
a.rottmann9bc8b932004-02-29 15:18:31 +000010311
10312
a.rottmann9bc8b932004-02-29 15:18:31 +000010313
a.rottmann9bc8b932004-02-29 15:18:31 +000010314
a.rottmann9bc8b932004-02-29 15:18:31 +000010315
a.rottmann9bc8b932004-02-29 15:18:31 +000010316
a.rottmann9bc8b932004-02-29 15:18:31 +000010317
a.rottmann9bc8b932004-02-29 15:18:31 +000010318
vapier7f19c022007-02-17 14:46:31 +000010319
a.rottmann9bc8b932004-02-29 15:18:31 +000010320
10321
drh8b727472009-01-19 18:18:40 +000010322 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +000010323
vapier7f19c022007-02-17 14:46:31 +000010324
10325
vapier7f19c022007-02-17 14:46:31 +000010326
mlcreech636a9952008-05-05 22:52:56 +000010327# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +000010328
10329
drh71eb93e2001-09-28 01:34:43 +000010330# Find a good install program. We prefer a C program (faster),
10331# so one script is as good as another. But avoid the broken or
10332# incompatible versions:
10333# SysV /etc/install, /usr/sbin/install
10334# SunOS /usr/etc/install
10335# IRIX /sbin/install
10336# AIX /bin/install
10337# AmigaOS /C/install, which installs bootblocks on floppy discs
10338# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10339# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10340# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000010341# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000010342# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +000010343# Reject install programs that cannot install multiple files.
10344{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10345$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010346if test -z "$INSTALL"; then
10347if test "${ac_cv_path_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010348 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010349else
a.rottmann84e63352003-03-24 09:42:16 +000010350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351for as_dir in $PATH
10352do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 # Account for people who put trailing slashes in PATH elements.
10356case $as_dir/ in
10357 ./ | .// | /cC/* | \
10358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000010359 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010360 /usr/ucb/* ) ;;
10361 *)
10362 # OSF1 and SCO ODT 3.0 have their own names for install.
10363 # Don't use installbsd from OSF since it installs stuff as root
10364 # by default.
10365 for ac_prog in ginstall scoinst install; do
10366 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010367 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 +000010368 if test $ac_prog = install &&
10369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10370 # AIX install. It has an incompatible calling convention.
10371 :
10372 elif test $ac_prog = install &&
10373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10374 # program-specific install script used by HP pwplus--don't use.
10375 :
10376 else
drh8b727472009-01-19 18:18:40 +000010377 rm -rf conftest.one conftest.two conftest.dir
10378 echo one > conftest.one
10379 echo two > conftest.two
10380 mkdir conftest.dir
10381 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10382 test -s conftest.one && test -s conftest.two &&
10383 test -s conftest.dir/conftest.one &&
10384 test -s conftest.dir/conftest.two
10385 then
10386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10387 break 3
10388 fi
a.rottmann964dbb12004-02-26 19:47:42 +000010389 fi
10390 fi
drh71eb93e2001-09-28 01:34:43 +000010391 done
a.rottmann84e63352003-03-24 09:42:16 +000010392 done
10393 ;;
10394esac
a.rottmann84e63352003-03-24 09:42:16 +000010395
drh8b727472009-01-19 18:18:40 +000010396done
10397IFS=$as_save_IFS
10398
10399rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +000010400
10401fi
10402 if test "${ac_cv_path_install+set}" = set; then
10403 INSTALL=$ac_cv_path_install
10404 else
drh8b727472009-01-19 18:18:40 +000010405 # As a last resort, use the slow shell script. Don't cache a
10406 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000010407 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +000010408 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000010409 INSTALL=$ac_install_sh
10410 fi
10411fi
drh8b727472009-01-19 18:18:40 +000010412{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10413$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010414
10415# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10416# It thinks the first close brace ends the variable substitution.
10417test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10418
10419test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10420
10421test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10422
drhf1878b42006-01-23 18:06:52 +000010423for ac_prog in gawk mawk nawk awk
10424do
10425 # Extract the first word of "$ac_prog", so it can be a program name with args.
10426set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000010427{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10428$as_echo_n "checking for $ac_word... " >&6; }
drhf1878b42006-01-23 18:06:52 +000010429if test "${ac_cv_prog_AWK+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010430 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +000010431else
10432 if test -n "$AWK"; then
10433 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10434else
10435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436for as_dir in $PATH
10437do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010441 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 +000010442 ac_cv_prog_AWK="$ac_prog"
drh8b727472009-01-19 18:18:40 +000010443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +000010444 break 2
10445 fi
10446done
10447done
drh8b727472009-01-19 18:18:40 +000010448IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000010449
10450fi
10451fi
10452AWK=$ac_cv_prog_AWK
10453if test -n "$AWK"; then
drh8b727472009-01-19 18:18:40 +000010454 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10455$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000010456else
drh8b727472009-01-19 18:18:40 +000010457 { $as_echo "$as_me:$LINENO: result: no" >&5
10458$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +000010459fi
10460
drh8b727472009-01-19 18:18:40 +000010461
drhf1878b42006-01-23 18:06:52 +000010462 test -n "$AWK" && break
10463done
10464
a.rottmann84e63352003-03-24 09:42:16 +000010465
drh75897232000-05-29 14:26:00 +000010466#########
mlcreech636a9952008-05-05 22:52:56 +000010467# Enable large file support (if special flags are necessary)
10468#
drh8b727472009-01-19 18:18:40 +000010469# Check whether --enable-largefile was given.
mlcreech636a9952008-05-05 22:52:56 +000010470if test "${enable_largefile+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010471 enableval=$enable_largefile;
10472fi
mlcreech636a9952008-05-05 22:52:56 +000010473
10474if test "$enable_largefile" != no; then
10475
drh8b727472009-01-19 18:18:40 +000010476 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10477$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010478if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010479 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010480else
mlcreech636a9952008-05-05 22:52:56 +000010481 ac_cv_sys_largefile_CC=no
10482 if test "$GCC" != yes; then
10483 ac_save_CC=$CC
10484 while :; do
drh8b727472009-01-19 18:18:40 +000010485 # IRIX 6.2 and later do not support large files by default,
10486 # so use the C compiler's -n32 option if that helps.
mlcreech636a9952008-05-05 22:52:56 +000010487 cat >conftest.$ac_ext <<_ACEOF
10488/* confdefs.h. */
10489_ACEOF
10490cat confdefs.h >>conftest.$ac_ext
10491cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h. */
10493#include <sys/types.h>
10494 /* Check that off_t can represent 2**63 - 1 correctly.
10495 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10496 since some C++ compilers masquerading as C compilers
10497 incorrectly reject 9223372036854775807. */
10498#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10499 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10500 && LARGE_OFF_T % 2147483647 == 1)
10501 ? 1 : -1];
10502int
10503main ()
10504{
10505
10506 ;
10507 return 0;
10508}
10509_ACEOF
drh8b727472009-01-19 18:18:40 +000010510 rm -f conftest.$ac_objext
10511if { (ac_try="$ac_compile"
10512case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515esac
10516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10517$as_echo "$ac_try_echo") >&5
10518 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010528 break
10529else
drh8b727472009-01-19 18:18:40 +000010530 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010531sed 's/^/| /' conftest.$ac_ext >&5
10532
drh8b727472009-01-19 18:18:40 +000010533
mlcreech636a9952008-05-05 22:52:56 +000010534fi
drh8b727472009-01-19 18:18:40 +000010535
10536rm -f core conftest.err conftest.$ac_objext
10537 CC="$CC -n32"
10538 rm -f conftest.$ac_objext
10539if { (ac_try="$ac_compile"
10540case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543esac
10544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10545$as_echo "$ac_try_echo") >&5
10546 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010556 ac_cv_sys_largefile_CC=' -n32'; break
10557else
drh8b727472009-01-19 18:18:40 +000010558 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010559sed 's/^/| /' conftest.$ac_ext >&5
10560
drh8b727472009-01-19 18:18:40 +000010561
mlcreech636a9952008-05-05 22:52:56 +000010562fi
drh8b727472009-01-19 18:18:40 +000010563
10564rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010565 break
10566 done
10567 CC=$ac_save_CC
10568 rm -f conftest.$ac_ext
10569 fi
10570fi
drh8b727472009-01-19 18:18:40 +000010571{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10572$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010573 if test "$ac_cv_sys_largefile_CC" != no; then
10574 CC=$CC$ac_cv_sys_largefile_CC
10575 fi
10576
drh8b727472009-01-19 18:18:40 +000010577 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10578$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010579if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010580 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010581else
10582 while :; do
mlcreechb87057f2008-03-06 07:19:20 +000010583 cat >conftest.$ac_ext <<_ACEOF
10584/* confdefs.h. */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010589#include <sys/types.h>
10590 /* Check that off_t can represent 2**63 - 1 correctly.
10591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10592 since some C++ compilers masquerading as C compilers
10593 incorrectly reject 9223372036854775807. */
10594#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10596 && LARGE_OFF_T % 2147483647 == 1)
10597 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010598int
10599main ()
10600{
mlcreech636a9952008-05-05 22:52:56 +000010601
mlcreechb87057f2008-03-06 07:19:20 +000010602 ;
10603 return 0;
10604}
10605_ACEOF
10606rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010607if { (ac_try="$ac_compile"
10608case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10613$as_echo "$ac_try_echo") >&5
10614 (eval "$ac_compile") 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000010615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest.$ac_objext; then
10624 ac_cv_sys_file_offset_bits=no; break
mlcreechb87057f2008-03-06 07:19:20 +000010625else
drh8b727472009-01-19 18:18:40 +000010626 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010627sed 's/^/| /' conftest.$ac_ext >&5
10628
drh8b727472009-01-19 18:18:40 +000010629
mlcreech636a9952008-05-05 22:52:56 +000010630fi
drh8b727472009-01-19 18:18:40 +000010631
10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010633 cat >conftest.$ac_ext <<_ACEOF
10634/* confdefs.h. */
10635_ACEOF
10636cat confdefs.h >>conftest.$ac_ext
10637cat >>conftest.$ac_ext <<_ACEOF
10638/* end confdefs.h. */
10639#define _FILE_OFFSET_BITS 64
10640#include <sys/types.h>
10641 /* Check that off_t can represent 2**63 - 1 correctly.
10642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10643 since some C++ compilers masquerading as C compilers
10644 incorrectly reject 9223372036854775807. */
10645#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10647 && LARGE_OFF_T % 2147483647 == 1)
10648 ? 1 : -1];
10649int
10650main ()
10651{
10652
10653 ;
10654 return 0;
10655}
10656_ACEOF
10657rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010658if { (ac_try="$ac_compile"
10659case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10662esac
10663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10664$as_echo "$ac_try_echo") >&5
10665 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && {
10672 test -z "$ac_c_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010675 ac_cv_sys_file_offset_bits=64; break
10676else
drh8b727472009-01-19 18:18:40 +000010677 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010678sed 's/^/| /' conftest.$ac_ext >&5
10679
drh8b727472009-01-19 18:18:40 +000010680
mlcreech636a9952008-05-05 22:52:56 +000010681fi
drh8b727472009-01-19 18:18:40 +000010682
10683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010685 break
10686done
10687fi
drh8b727472009-01-19 18:18:40 +000010688{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10689$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10690case $ac_cv_sys_file_offset_bits in #(
10691 no | unknown) ;;
10692 *)
mlcreech636a9952008-05-05 22:52:56 +000010693cat >>confdefs.h <<_ACEOF
10694#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10695_ACEOF
drh8b727472009-01-19 18:18:40 +000010696;;
10697esac
10698rm -rf conftest*
10699 if test $ac_cv_sys_file_offset_bits = unknown; then
10700 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10701$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010702if test "${ac_cv_sys_large_files+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010703 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010704else
10705 while :; do
10706 cat >conftest.$ac_ext <<_ACEOF
10707/* confdefs.h. */
10708_ACEOF
10709cat confdefs.h >>conftest.$ac_ext
10710cat >>conftest.$ac_ext <<_ACEOF
10711/* end confdefs.h. */
10712#include <sys/types.h>
10713 /* Check that off_t can represent 2**63 - 1 correctly.
10714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10715 since some C++ compilers masquerading as C compilers
10716 incorrectly reject 9223372036854775807. */
10717#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10719 && LARGE_OFF_T % 2147483647 == 1)
10720 ? 1 : -1];
10721int
10722main ()
10723{
10724
10725 ;
10726 return 0;
10727}
10728_ACEOF
10729rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010730if { (ac_try="$ac_compile"
10731case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10736$as_echo "$ac_try_echo") >&5
10737 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest.$ac_objext; then
10747 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010748else
drh8b727472009-01-19 18:18:40 +000010749 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010750sed 's/^/| /' conftest.$ac_ext >&5
10751
drh8b727472009-01-19 18:18:40 +000010752
mlcreech636a9952008-05-05 22:52:56 +000010753fi
drh8b727472009-01-19 18:18:40 +000010754
10755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010756 cat >conftest.$ac_ext <<_ACEOF
10757/* confdefs.h. */
10758_ACEOF
10759cat confdefs.h >>conftest.$ac_ext
10760cat >>conftest.$ac_ext <<_ACEOF
10761/* end confdefs.h. */
10762#define _LARGE_FILES 1
10763#include <sys/types.h>
10764 /* Check that off_t can represent 2**63 - 1 correctly.
10765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10766 since some C++ compilers masquerading as C compilers
10767 incorrectly reject 9223372036854775807. */
10768#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10770 && LARGE_OFF_T % 2147483647 == 1)
10771 ? 1 : -1];
10772int
10773main ()
10774{
10775
10776 ;
10777 return 0;
10778}
10779_ACEOF
10780rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010781if { (ac_try="$ac_compile"
10782case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10785esac
10786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10787$as_echo "$ac_try_echo") >&5
10788 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } && {
10795 test -z "$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010798 ac_cv_sys_large_files=1; break
10799else
drh8b727472009-01-19 18:18:40 +000010800 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010801sed 's/^/| /' conftest.$ac_ext >&5
10802
drh8b727472009-01-19 18:18:40 +000010803
mlcreech636a9952008-05-05 22:52:56 +000010804fi
drh8b727472009-01-19 18:18:40 +000010805
10806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010808 break
10809done
10810fi
drh8b727472009-01-19 18:18:40 +000010811{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10812$as_echo "$ac_cv_sys_large_files" >&6; }
10813case $ac_cv_sys_large_files in #(
10814 no | unknown) ;;
10815 *)
mlcreech636a9952008-05-05 22:52:56 +000010816cat >>confdefs.h <<_ACEOF
10817#define _LARGE_FILES $ac_cv_sys_large_files
10818_ACEOF
drh8b727472009-01-19 18:18:40 +000010819;;
10820esac
10821rm -rf conftest*
10822 fi
mlcreech636a9952008-05-05 22:52:56 +000010823fi
10824
10825
10826#########
10827# Check for needed/wanted data types
drh8b727472009-01-19 18:18:40 +000010828{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10829$as_echo_n "checking for int8_t... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010830if test "${ac_cv_type_int8_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010831 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010832else
drh8b727472009-01-19 18:18:40 +000010833 ac_cv_type_int8_t=no
10834cat >conftest.$ac_ext <<_ACEOF
10835/* confdefs.h. */
10836_ACEOF
10837cat confdefs.h >>conftest.$ac_ext
10838cat >>conftest.$ac_ext <<_ACEOF
10839/* end confdefs.h. */
10840$ac_includes_default
10841int
10842main ()
10843{
10844if (sizeof (int8_t))
10845 return 0;
10846 ;
10847 return 0;
10848}
10849_ACEOF
10850rm -f conftest.$ac_objext
10851if { (ac_try="$ac_compile"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10857$as_echo "$ac_try_echo") >&5
10858 (eval "$ac_compile") 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010868 cat >conftest.$ac_ext <<_ACEOF
10869/* confdefs.h. */
10870_ACEOF
10871cat confdefs.h >>conftest.$ac_ext
10872cat >>conftest.$ac_ext <<_ACEOF
10873/* end confdefs.h. */
10874$ac_includes_default
10875int
10876main ()
10877{
drh8b727472009-01-19 18:18:40 +000010878if (sizeof ((int8_t)))
10879 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010880 ;
10881 return 0;
10882}
10883_ACEOF
10884rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010885if { (ac_try="$ac_compile"
10886case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889esac
10890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10891$as_echo "$ac_try_echo") >&5
10892 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } && {
10899 test -z "$ac_c_werror_flag" ||
10900 test ! -s conftest.err
10901 } && test -s conftest.$ac_objext; then
10902 :
mlcreech636a9952008-05-05 22:52:56 +000010903else
drh8b727472009-01-19 18:18:40 +000010904 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010905sed 's/^/| /' conftest.$ac_ext >&5
10906
drh8b727472009-01-19 18:18:40 +000010907 ac_cv_type_int8_t=yes
mlcreech636a9952008-05-05 22:52:56 +000010908fi
drh8b727472009-01-19 18:18:40 +000010909
10910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10911else
10912 $as_echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915
mlcreechb87057f2008-03-06 07:19:20 +000010916fi
drh8b727472009-01-19 18:18:40 +000010917
10918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919fi
10920{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10921$as_echo "$ac_cv_type_int8_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000010922if test $ac_cv_type_int8_t = yes; then
10923
10924cat >>confdefs.h <<_ACEOF
10925#define HAVE_INT8_T 1
10926_ACEOF
10927
10928
10929fi
drh8b727472009-01-19 18:18:40 +000010930{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
10931$as_echo_n "checking for int16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000010932if test "${ac_cv_type_int16_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010933 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010934else
drh8b727472009-01-19 18:18:40 +000010935 ac_cv_type_int16_t=no
10936cat >conftest.$ac_ext <<_ACEOF
10937/* confdefs.h. */
10938_ACEOF
10939cat confdefs.h >>conftest.$ac_ext
10940cat >>conftest.$ac_ext <<_ACEOF
10941/* end confdefs.h. */
10942$ac_includes_default
10943int
10944main ()
10945{
10946if (sizeof (int16_t))
10947 return 0;
10948 ;
10949 return 0;
10950}
10951_ACEOF
10952rm -f conftest.$ac_objext
10953if { (ac_try="$ac_compile"
10954case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10957esac
10958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10959$as_echo "$ac_try_echo") >&5
10960 (eval "$ac_compile") 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010970 cat >conftest.$ac_ext <<_ACEOF
10971/* confdefs.h. */
10972_ACEOF
10973cat confdefs.h >>conftest.$ac_ext
10974cat >>conftest.$ac_ext <<_ACEOF
10975/* end confdefs.h. */
10976$ac_includes_default
10977int
10978main ()
10979{
drh8b727472009-01-19 18:18:40 +000010980if (sizeof ((int16_t)))
10981 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010982 ;
10983 return 0;
10984}
10985_ACEOF
10986rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010987if { (ac_try="$ac_compile"
10988case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10991esac
10992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10993$as_echo "$ac_try_echo") >&5
10994 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest.$ac_objext; then
11004 :
mlcreechb87057f2008-03-06 07:19:20 +000011005else
drh8b727472009-01-19 18:18:40 +000011006 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011007sed 's/^/| /' conftest.$ac_ext >&5
11008
drh8b727472009-01-19 18:18:40 +000011009 ac_cv_type_int16_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011010fi
drh8b727472009-01-19 18:18:40 +000011011
11012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013else
11014 $as_echo "$as_me: failed program was:" >&5
11015sed 's/^/| /' conftest.$ac_ext >&5
11016
11017
mlcreechb87057f2008-03-06 07:19:20 +000011018fi
drh8b727472009-01-19 18:18:40 +000011019
11020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021fi
11022{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11023$as_echo "$ac_cv_type_int16_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011024if test $ac_cv_type_int16_t = yes; then
11025
11026cat >>confdefs.h <<_ACEOF
11027#define HAVE_INT16_T 1
11028_ACEOF
11029
11030
11031fi
drh8b727472009-01-19 18:18:40 +000011032{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11033$as_echo_n "checking for int32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011034if test "${ac_cv_type_int32_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011035 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011036else
drh8b727472009-01-19 18:18:40 +000011037 ac_cv_type_int32_t=no
11038cat >conftest.$ac_ext <<_ACEOF
11039/* confdefs.h. */
11040_ACEOF
11041cat confdefs.h >>conftest.$ac_ext
11042cat >>conftest.$ac_ext <<_ACEOF
11043/* end confdefs.h. */
11044$ac_includes_default
11045int
11046main ()
11047{
11048if (sizeof (int32_t))
11049 return 0;
11050 ;
11051 return 0;
11052}
11053_ACEOF
11054rm -f conftest.$ac_objext
11055if { (ac_try="$ac_compile"
11056case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059esac
11060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11061$as_echo "$ac_try_echo") >&5
11062 (eval "$ac_compile") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } && {
11069 test -z "$ac_c_werror_flag" ||
11070 test ! -s conftest.err
11071 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011072 cat >conftest.$ac_ext <<_ACEOF
11073/* confdefs.h. */
11074_ACEOF
11075cat confdefs.h >>conftest.$ac_ext
11076cat >>conftest.$ac_ext <<_ACEOF
11077/* end confdefs.h. */
11078$ac_includes_default
11079int
11080main ()
11081{
drh8b727472009-01-19 18:18:40 +000011082if (sizeof ((int32_t)))
11083 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011084 ;
11085 return 0;
11086}
11087_ACEOF
11088rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011089if { (ac_try="$ac_compile"
11090case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11093esac
11094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11095$as_echo "$ac_try_echo") >&5
11096 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } && {
11103 test -z "$ac_c_werror_flag" ||
11104 test ! -s conftest.err
11105 } && test -s conftest.$ac_objext; then
11106 :
mlcreechb87057f2008-03-06 07:19:20 +000011107else
drh8b727472009-01-19 18:18:40 +000011108 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011109sed 's/^/| /' conftest.$ac_ext >&5
11110
drh8b727472009-01-19 18:18:40 +000011111 ac_cv_type_int32_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011112fi
drh8b727472009-01-19 18:18:40 +000011113
11114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115else
11116 $as_echo "$as_me: failed program was:" >&5
11117sed 's/^/| /' conftest.$ac_ext >&5
11118
11119
mlcreechb87057f2008-03-06 07:19:20 +000011120fi
drh8b727472009-01-19 18:18:40 +000011121
11122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123fi
11124{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11125$as_echo "$ac_cv_type_int32_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011126if test $ac_cv_type_int32_t = yes; then
11127
11128cat >>confdefs.h <<_ACEOF
11129#define HAVE_INT32_T 1
11130_ACEOF
11131
11132
11133fi
drh8b727472009-01-19 18:18:40 +000011134{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11135$as_echo_n "checking for int64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011136if test "${ac_cv_type_int64_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011137 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011138else
drh8b727472009-01-19 18:18:40 +000011139 ac_cv_type_int64_t=no
11140cat >conftest.$ac_ext <<_ACEOF
11141/* confdefs.h. */
11142_ACEOF
11143cat confdefs.h >>conftest.$ac_ext
11144cat >>conftest.$ac_ext <<_ACEOF
11145/* end confdefs.h. */
11146$ac_includes_default
11147int
11148main ()
11149{
11150if (sizeof (int64_t))
11151 return 0;
11152 ;
11153 return 0;
11154}
11155_ACEOF
11156rm -f conftest.$ac_objext
11157if { (ac_try="$ac_compile"
11158case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161esac
11162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163$as_echo "$ac_try_echo") >&5
11164 (eval "$ac_compile") 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } && {
11171 test -z "$ac_c_werror_flag" ||
11172 test ! -s conftest.err
11173 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011174 cat >conftest.$ac_ext <<_ACEOF
11175/* confdefs.h. */
11176_ACEOF
11177cat confdefs.h >>conftest.$ac_ext
11178cat >>conftest.$ac_ext <<_ACEOF
11179/* end confdefs.h. */
11180$ac_includes_default
11181int
11182main ()
11183{
drh8b727472009-01-19 18:18:40 +000011184if (sizeof ((int64_t)))
11185 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011186 ;
11187 return 0;
11188}
11189_ACEOF
11190rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011191if { (ac_try="$ac_compile"
11192case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195esac
11196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11197$as_echo "$ac_try_echo") >&5
11198 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11208 :
mlcreechb87057f2008-03-06 07:19:20 +000011209else
drh8b727472009-01-19 18:18:40 +000011210 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011211sed 's/^/| /' conftest.$ac_ext >&5
11212
drh8b727472009-01-19 18:18:40 +000011213 ac_cv_type_int64_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011214fi
drh8b727472009-01-19 18:18:40 +000011215
11216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217else
11218 $as_echo "$as_me: failed program was:" >&5
11219sed 's/^/| /' conftest.$ac_ext >&5
11220
11221
mlcreechb87057f2008-03-06 07:19:20 +000011222fi
drh8b727472009-01-19 18:18:40 +000011223
11224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225fi
11226{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11227$as_echo "$ac_cv_type_int64_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011228if test $ac_cv_type_int64_t = yes; then
11229
11230cat >>confdefs.h <<_ACEOF
11231#define HAVE_INT64_T 1
11232_ACEOF
11233
11234
11235fi
drh8b727472009-01-19 18:18:40 +000011236{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11237$as_echo_n "checking for intptr_t... " >&6; }
danielk197733a14782008-08-04 14:50:05 +000011238if test "${ac_cv_type_intptr_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011239 $as_echo_n "(cached) " >&6
danielk197733a14782008-08-04 14:50:05 +000011240else
drh8b727472009-01-19 18:18:40 +000011241 ac_cv_type_intptr_t=no
11242cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248$ac_includes_default
11249int
11250main ()
11251{
11252if (sizeof (intptr_t))
11253 return 0;
11254 ;
11255 return 0;
11256}
11257_ACEOF
11258rm -f conftest.$ac_objext
11259if { (ac_try="$ac_compile"
11260case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263esac
11264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11265$as_echo "$ac_try_echo") >&5
11266 (eval "$ac_compile") 2>conftest.er1
11267 ac_status=$?
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
11271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } && {
11273 test -z "$ac_c_werror_flag" ||
11274 test ! -s conftest.err
11275 } && test -s conftest.$ac_objext; then
danielk197733a14782008-08-04 14:50:05 +000011276 cat >conftest.$ac_ext <<_ACEOF
11277/* confdefs.h. */
11278_ACEOF
11279cat confdefs.h >>conftest.$ac_ext
11280cat >>conftest.$ac_ext <<_ACEOF
11281/* end confdefs.h. */
11282$ac_includes_default
11283int
11284main ()
11285{
drh8b727472009-01-19 18:18:40 +000011286if (sizeof ((intptr_t)))
11287 return 0;
danielk197733a14782008-08-04 14:50:05 +000011288 ;
11289 return 0;
11290}
11291_ACEOF
11292rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011293if { (ac_try="$ac_compile"
11294case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297esac
11298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11299$as_echo "$ac_try_echo") >&5
11300 (eval "$ac_compile") 2>conftest.er1
danielk197733a14782008-08-04 14:50:05 +000011301 ac_status=$?
11302 grep -v '^ *+' conftest.er1 >conftest.err
11303 rm -f conftest.er1
11304 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } && {
11307 test -z "$ac_c_werror_flag" ||
11308 test ! -s conftest.err
11309 } && test -s conftest.$ac_objext; then
11310 :
danielk197733a14782008-08-04 14:50:05 +000011311else
drh8b727472009-01-19 18:18:40 +000011312 $as_echo "$as_me: failed program was:" >&5
danielk197733a14782008-08-04 14:50:05 +000011313sed 's/^/| /' conftest.$ac_ext >&5
mlcreechb87057f2008-03-06 07:19:20 +000011314
drh8b727472009-01-19 18:18:40 +000011315 ac_cv_type_intptr_t=yes
danielk197733a14782008-08-04 14:50:05 +000011316fi
drh8b727472009-01-19 18:18:40 +000011317
11318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319else
11320 $as_echo "$as_me: failed program was:" >&5
11321sed 's/^/| /' conftest.$ac_ext >&5
11322
11323
danielk197733a14782008-08-04 14:50:05 +000011324fi
drh8b727472009-01-19 18:18:40 +000011325
11326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11327fi
11328{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11329$as_echo "$ac_cv_type_intptr_t" >&6; }
danielk197733a14782008-08-04 14:50:05 +000011330if test $ac_cv_type_intptr_t = yes; then
11331
11332cat >>confdefs.h <<_ACEOF
11333#define HAVE_INTPTR_T 1
11334_ACEOF
11335
11336
11337fi
drh8b727472009-01-19 18:18:40 +000011338{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11339$as_echo_n "checking for uint8_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011340if test "${ac_cv_type_uint8_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011341 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011342else
drh8b727472009-01-19 18:18:40 +000011343 ac_cv_type_uint8_t=no
11344cat >conftest.$ac_ext <<_ACEOF
11345/* confdefs.h. */
11346_ACEOF
11347cat confdefs.h >>conftest.$ac_ext
11348cat >>conftest.$ac_ext <<_ACEOF
11349/* end confdefs.h. */
11350$ac_includes_default
11351int
11352main ()
11353{
11354if (sizeof (uint8_t))
11355 return 0;
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (ac_try="$ac_compile"
11362case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365esac
11366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11367$as_echo "$ac_try_echo") >&5
11368 (eval "$ac_compile") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } && {
11375 test -z "$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011378 cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h. */
11384$ac_includes_default
11385int
11386main ()
11387{
drh8b727472009-01-19 18:18:40 +000011388if (sizeof ((uint8_t)))
11389 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011390 ;
11391 return 0;
11392}
11393_ACEOF
11394rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011395if { (ac_try="$ac_compile"
11396case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399esac
11400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11401$as_echo "$ac_try_echo") >&5
11402 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && {
11409 test -z "$ac_c_werror_flag" ||
11410 test ! -s conftest.err
11411 } && test -s conftest.$ac_objext; then
11412 :
mlcreechb87057f2008-03-06 07:19:20 +000011413else
drh8b727472009-01-19 18:18:40 +000011414 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011415sed 's/^/| /' conftest.$ac_ext >&5
11416
drh8b727472009-01-19 18:18:40 +000011417 ac_cv_type_uint8_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011418fi
drh8b727472009-01-19 18:18:40 +000011419
11420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421else
11422 $as_echo "$as_me: failed program was:" >&5
11423sed 's/^/| /' conftest.$ac_ext >&5
11424
11425
mlcreechb87057f2008-03-06 07:19:20 +000011426fi
drh8b727472009-01-19 18:18:40 +000011427
11428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429fi
11430{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11431$as_echo "$ac_cv_type_uint8_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011432if test $ac_cv_type_uint8_t = yes; then
11433
11434cat >>confdefs.h <<_ACEOF
11435#define HAVE_UINT8_T 1
11436_ACEOF
11437
11438
11439fi
drh8b727472009-01-19 18:18:40 +000011440{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11441$as_echo_n "checking for uint16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011442if test "${ac_cv_type_uint16_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011443 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011444else
drh8b727472009-01-19 18:18:40 +000011445 ac_cv_type_uint16_t=no
11446cat >conftest.$ac_ext <<_ACEOF
11447/* confdefs.h. */
11448_ACEOF
11449cat confdefs.h >>conftest.$ac_ext
11450cat >>conftest.$ac_ext <<_ACEOF
11451/* end confdefs.h. */
11452$ac_includes_default
11453int
11454main ()
11455{
11456if (sizeof (uint16_t))
11457 return 0;
11458 ;
11459 return 0;
11460}
11461_ACEOF
11462rm -f conftest.$ac_objext
11463if { (ac_try="$ac_compile"
11464case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467esac
11468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11469$as_echo "$ac_try_echo") >&5
11470 (eval "$ac_compile") 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011480 cat >conftest.$ac_ext <<_ACEOF
11481/* confdefs.h. */
11482_ACEOF
11483cat confdefs.h >>conftest.$ac_ext
11484cat >>conftest.$ac_ext <<_ACEOF
11485/* end confdefs.h. */
11486$ac_includes_default
11487int
11488main ()
11489{
drh8b727472009-01-19 18:18:40 +000011490if (sizeof ((uint16_t)))
11491 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011492 ;
11493 return 0;
11494}
11495_ACEOF
11496rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011497if { (ac_try="$ac_compile"
11498case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501esac
11502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11503$as_echo "$ac_try_echo") >&5
11504 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011505 ac_status=$?
11506 grep -v '^ *+' conftest.er1 >conftest.err
11507 rm -f conftest.er1
11508 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest.$ac_objext; then
11514 :
mlcreechb87057f2008-03-06 07:19:20 +000011515else
drh8b727472009-01-19 18:18:40 +000011516 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011517sed 's/^/| /' conftest.$ac_ext >&5
11518
drh8b727472009-01-19 18:18:40 +000011519 ac_cv_type_uint16_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011520fi
drh8b727472009-01-19 18:18:40 +000011521
11522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523else
11524 $as_echo "$as_me: failed program was:" >&5
11525sed 's/^/| /' conftest.$ac_ext >&5
11526
11527
mlcreechb87057f2008-03-06 07:19:20 +000011528fi
drh8b727472009-01-19 18:18:40 +000011529
11530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531fi
11532{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11533$as_echo "$ac_cv_type_uint16_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011534if test $ac_cv_type_uint16_t = yes; then
11535
11536cat >>confdefs.h <<_ACEOF
11537#define HAVE_UINT16_T 1
11538_ACEOF
11539
11540
11541fi
drh8b727472009-01-19 18:18:40 +000011542{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11543$as_echo_n "checking for uint32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011544if test "${ac_cv_type_uint32_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011545 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011546else
drh8b727472009-01-19 18:18:40 +000011547 ac_cv_type_uint32_t=no
11548cat >conftest.$ac_ext <<_ACEOF
11549/* confdefs.h. */
11550_ACEOF
11551cat confdefs.h >>conftest.$ac_ext
11552cat >>conftest.$ac_ext <<_ACEOF
11553/* end confdefs.h. */
11554$ac_includes_default
11555int
11556main ()
11557{
11558if (sizeof (uint32_t))
11559 return 0;
11560 ;
11561 return 0;
11562}
11563_ACEOF
11564rm -f conftest.$ac_objext
11565if { (ac_try="$ac_compile"
11566case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569esac
11570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11571$as_echo "$ac_try_echo") >&5
11572 (eval "$ac_compile") 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } && {
11579 test -z "$ac_c_werror_flag" ||
11580 test ! -s conftest.err
11581 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011582 cat >conftest.$ac_ext <<_ACEOF
11583/* confdefs.h. */
11584_ACEOF
11585cat confdefs.h >>conftest.$ac_ext
11586cat >>conftest.$ac_ext <<_ACEOF
11587/* end confdefs.h. */
11588$ac_includes_default
11589int
11590main ()
11591{
drh8b727472009-01-19 18:18:40 +000011592if (sizeof ((uint32_t)))
11593 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011594 ;
11595 return 0;
11596}
11597_ACEOF
11598rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011599if { (ac_try="$ac_compile"
11600case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11603esac
11604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11605$as_echo "$ac_try_echo") >&5
11606 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } && {
11613 test -z "$ac_c_werror_flag" ||
11614 test ! -s conftest.err
11615 } && test -s conftest.$ac_objext; then
11616 :
mlcreechb87057f2008-03-06 07:19:20 +000011617else
drh8b727472009-01-19 18:18:40 +000011618 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011619sed 's/^/| /' conftest.$ac_ext >&5
11620
drh8b727472009-01-19 18:18:40 +000011621 ac_cv_type_uint32_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011622fi
drh8b727472009-01-19 18:18:40 +000011623
11624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625else
11626 $as_echo "$as_me: failed program was:" >&5
11627sed 's/^/| /' conftest.$ac_ext >&5
11628
11629
mlcreechb87057f2008-03-06 07:19:20 +000011630fi
drh8b727472009-01-19 18:18:40 +000011631
11632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633fi
11634{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11635$as_echo "$ac_cv_type_uint32_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011636if test $ac_cv_type_uint32_t = yes; then
11637
11638cat >>confdefs.h <<_ACEOF
11639#define HAVE_UINT32_T 1
11640_ACEOF
11641
11642
11643fi
drh8b727472009-01-19 18:18:40 +000011644{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11645$as_echo_n "checking for uint64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011646if test "${ac_cv_type_uint64_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011647 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011648else
drh8b727472009-01-19 18:18:40 +000011649 ac_cv_type_uint64_t=no
11650cat >conftest.$ac_ext <<_ACEOF
11651/* confdefs.h. */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h. */
11656$ac_includes_default
11657int
11658main ()
11659{
11660if (sizeof (uint64_t))
11661 return 0;
11662 ;
11663 return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext
11667if { (ac_try="$ac_compile"
11668case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671esac
11672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11673$as_echo "$ac_try_echo") >&5
11674 (eval "$ac_compile") 2>conftest.er1
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
11679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } && {
11681 test -z "$ac_c_werror_flag" ||
11682 test ! -s conftest.err
11683 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011684 cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
11690$ac_includes_default
11691int
11692main ()
11693{
drh8b727472009-01-19 18:18:40 +000011694if (sizeof ((uint64_t)))
11695 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011696 ;
11697 return 0;
11698}
11699_ACEOF
11700rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011701if { (ac_try="$ac_compile"
11702case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705esac
11706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707$as_echo "$ac_try_echo") >&5
11708 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011709 ac_status=$?
11710 grep -v '^ *+' conftest.er1 >conftest.err
11711 rm -f conftest.er1
11712 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } && {
11715 test -z "$ac_c_werror_flag" ||
11716 test ! -s conftest.err
11717 } && test -s conftest.$ac_objext; then
11718 :
mlcreechb87057f2008-03-06 07:19:20 +000011719else
drh8b727472009-01-19 18:18:40 +000011720 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011721sed 's/^/| /' conftest.$ac_ext >&5
11722
drh8b727472009-01-19 18:18:40 +000011723 ac_cv_type_uint64_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011724fi
drh8b727472009-01-19 18:18:40 +000011725
11726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11727else
11728 $as_echo "$as_me: failed program was:" >&5
11729sed 's/^/| /' conftest.$ac_ext >&5
11730
11731
mlcreechb87057f2008-03-06 07:19:20 +000011732fi
drh8b727472009-01-19 18:18:40 +000011733
11734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11735fi
11736{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11737$as_echo "$ac_cv_type_uint64_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011738if test $ac_cv_type_uint64_t = yes; then
11739
11740cat >>confdefs.h <<_ACEOF
11741#define HAVE_UINT64_T 1
11742_ACEOF
11743
11744
11745fi
drh8b727472009-01-19 18:18:40 +000011746{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11747$as_echo_n "checking for uintptr_t... " >&6; }
danielk197733a14782008-08-04 14:50:05 +000011748if test "${ac_cv_type_uintptr_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011749 $as_echo_n "(cached) " >&6
danielk197733a14782008-08-04 14:50:05 +000011750else
drh8b727472009-01-19 18:18:40 +000011751 ac_cv_type_uintptr_t=no
11752cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758$ac_includes_default
11759int
11760main ()
11761{
11762if (sizeof (uintptr_t))
11763 return 0;
11764 ;
11765 return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext
11769if { (ac_try="$ac_compile"
11770case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773esac
11774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11775$as_echo "$ac_try_echo") >&5
11776 (eval "$ac_compile") 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } && {
11783 test -z "$ac_c_werror_flag" ||
11784 test ! -s conftest.err
11785 } && test -s conftest.$ac_objext; then
danielk197733a14782008-08-04 14:50:05 +000011786 cat >conftest.$ac_ext <<_ACEOF
11787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
11792$ac_includes_default
11793int
11794main ()
11795{
drh8b727472009-01-19 18:18:40 +000011796if (sizeof ((uintptr_t)))
11797 return 0;
danielk197733a14782008-08-04 14:50:05 +000011798 ;
11799 return 0;
11800}
11801_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000011802rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011803if { (ac_try="$ac_compile"
11804case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807esac
11808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11809$as_echo "$ac_try_echo") >&5
11810 (eval "$ac_compile") 2>conftest.er1
danielk197733a14782008-08-04 14:50:05 +000011811 ac_status=$?
11812 grep -v '^ *+' conftest.er1 >conftest.err
11813 rm -f conftest.er1
11814 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && {
11817 test -z "$ac_c_werror_flag" ||
11818 test ! -s conftest.err
11819 } && test -s conftest.$ac_objext; then
11820 :
danielk197733a14782008-08-04 14:50:05 +000011821else
drh8b727472009-01-19 18:18:40 +000011822 $as_echo "$as_me: failed program was:" >&5
danielk197733a14782008-08-04 14:50:05 +000011823sed 's/^/| /' conftest.$ac_ext >&5
11824
drh8b727472009-01-19 18:18:40 +000011825 ac_cv_type_uintptr_t=yes
danielk197733a14782008-08-04 14:50:05 +000011826fi
drh8b727472009-01-19 18:18:40 +000011827
11828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829else
11830 $as_echo "$as_me: failed program was:" >&5
11831sed 's/^/| /' conftest.$ac_ext >&5
11832
11833
danielk197733a14782008-08-04 14:50:05 +000011834fi
drh8b727472009-01-19 18:18:40 +000011835
11836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837fi
11838{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11839$as_echo "$ac_cv_type_uintptr_t" >&6; }
danielk197733a14782008-08-04 14:50:05 +000011840if test $ac_cv_type_uintptr_t = yes; then
11841
11842cat >>confdefs.h <<_ACEOF
11843#define HAVE_UINTPTR_T 1
11844_ACEOF
11845
11846
11847fi
mlcreechb87057f2008-03-06 07:19:20 +000011848
11849
11850#########
11851# Check for needed/wanted headers
11852
mlcreech8390bc32008-03-06 08:54:38 +000011853
11854
11855
11856for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
mlcreechb87057f2008-03-06 07:19:20 +000011857do
drh8b727472009-01-19 18:18:40 +000011858as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11861$as_echo_n "checking for $ac_header... " >&6; }
11862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11863 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000011864fi
drh8b727472009-01-19 18:18:40 +000011865ac_res=`eval 'as_val=${'$as_ac_Header'}
11866 $as_echo "$as_val"'`
11867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11868$as_echo "$ac_res" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011869else
mlcreech8390bc32008-03-06 08:54:38 +000011870 # Is the header compilable?
drh8b727472009-01-19 18:18:40 +000011871{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11872$as_echo_n "checking $ac_header usability... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011873cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
mlcreech8390bc32008-03-06 08:54:38 +000011879$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011880#include <$ac_header>
11881_ACEOF
11882rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011883if { (ac_try="$ac_compile"
11884case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887esac
11888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11889$as_echo "$ac_try_echo") >&5
11890 (eval "$ac_compile") 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000011891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } && {
11897 test -z "$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 } && test -s conftest.$ac_objext; then
mlcreech8390bc32008-03-06 08:54:38 +000011900 ac_header_compiler=yes
mlcreechb87057f2008-03-06 07:19:20 +000011901else
drh8b727472009-01-19 18:18:40 +000011902 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011903sed 's/^/| /' conftest.$ac_ext >&5
11904
drh8b727472009-01-19 18:18:40 +000011905 ac_header_compiler=no
mlcreechb87057f2008-03-06 07:19:20 +000011906fi
drh8b727472009-01-19 18:18:40 +000011907
11908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11909{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11910$as_echo "$ac_header_compiler" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011911
11912# Is the header present?
drh8b727472009-01-19 18:18:40 +000011913{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11914$as_echo_n "checking $ac_header presence... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011915cat >conftest.$ac_ext <<_ACEOF
11916/* confdefs.h. */
11917_ACEOF
11918cat confdefs.h >>conftest.$ac_ext
11919cat >>conftest.$ac_ext <<_ACEOF
11920/* end confdefs.h. */
11921#include <$ac_header>
11922_ACEOF
drh8b727472009-01-19 18:18:40 +000011923if { (ac_try="$ac_cpp conftest.$ac_ext"
11924case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927esac
11928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11929$as_echo "$ac_try_echo") >&5
11930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mlcreech8390bc32008-03-06 08:54:38 +000011931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } >/dev/null && {
11937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 }; then
mlcreech8390bc32008-03-06 08:54:38 +000011940 ac_header_preproc=yes
11941else
drh8b727472009-01-19 18:18:40 +000011942 $as_echo "$as_me: failed program was:" >&5
mlcreech8390bc32008-03-06 08:54:38 +000011943sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 ac_header_preproc=no
11946fi
drh8b727472009-01-19 18:18:40 +000011947
mlcreech8390bc32008-03-06 08:54:38 +000011948rm -f conftest.err conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +000011949{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11950$as_echo "$ac_header_preproc" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011951
11952# So? What about this header?
11953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11954 yes:no: )
drh8b727472009-01-19 18:18:40 +000011955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11956$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11958$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
mlcreech8390bc32008-03-06 08:54:38 +000011959 ac_header_preproc=yes
11960 ;;
11961 no:yes:* )
drh8b727472009-01-19 18:18:40 +000011962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11963$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11965$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11967$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11969$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11971$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11973$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11974
mlcreech8390bc32008-03-06 08:54:38 +000011975 ;;
11976esac
drh8b727472009-01-19 18:18:40 +000011977{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11978$as_echo_n "checking for $ac_header... " >&6; }
11979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000011981else
11982 eval "$as_ac_Header=\$ac_header_preproc"
mlcreechb87057f2008-03-06 07:19:20 +000011983fi
drh8b727472009-01-19 18:18:40 +000011984ac_res=`eval 'as_val=${'$as_ac_Header'}
11985 $as_echo "$as_val"'`
11986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11987$as_echo "$ac_res" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011988
11989fi
drh8b727472009-01-19 18:18:40 +000011990if test `eval 'as_val=${'$as_ac_Header'}
11991 $as_echo "$as_val"'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011992 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000011993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000011994_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000011995
mlcreechb87057f2008-03-06 07:19:20 +000011996fi
11997
11998done
11999
12000
12001#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000012002# Figure out whether or not we have these functions
12003#
12004
12005
12006
12007
danielk197733a14782008-08-04 14:50:05 +000012008
shanefbedede2008-07-22 05:05:01 +000012009for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
mlcreech5b0a9eb2008-03-09 01:38:09 +000012010do
drh8b727472009-01-19 18:18:40 +000012011as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12012{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12013$as_echo_n "checking for $ac_func... " >&6; }
12014if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12015 $as_echo_n "(cached) " >&6
mlcreech5b0a9eb2008-03-09 01:38:09 +000012016else
12017 cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h. */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h. */
12023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12025#define $ac_func innocuous_$ac_func
12026
12027/* System header to define __stub macros and hopefully few prototypes,
12028 which can conflict with char $ac_func (); below.
12029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 <limits.h> exists even on freestanding compilers. */
12031
12032#ifdef __STDC__
12033# include <limits.h>
12034#else
12035# include <assert.h>
12036#endif
12037
12038#undef $ac_func
12039
drh8b727472009-01-19 18:18:40 +000012040/* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000012043#ifdef __cplusplus
12044extern "C"
12045#endif
12046char $ac_func ();
12047/* The GNU C library defines this for functions which it implements
12048 to always fail with ENOSYS. Some functions are actually named
12049 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +000012050#if defined __stub_$ac_func || defined __stub___$ac_func
mlcreech5b0a9eb2008-03-09 01:38:09 +000012051choke me
12052#endif
12053
12054int
12055main ()
12056{
drh8b727472009-01-19 18:18:40 +000012057return $ac_func ();
mlcreech5b0a9eb2008-03-09 01:38:09 +000012058 ;
12059 return 0;
12060}
12061_ACEOF
12062rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000012063if { (ac_try="$ac_link"
12064case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067esac
12068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12069$as_echo "$ac_try_echo") >&5
12070 (eval "$ac_link") 2>conftest.er1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } && {
12077 test -z "$ac_c_werror_flag" ||
12078 test ! -s conftest.err
12079 } && test -s conftest$ac_exeext && {
12080 test "$cross_compiling" = yes ||
12081 $as_test_x conftest$ac_exeext
12082 }; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012083 eval "$as_ac_var=yes"
12084else
drh8b727472009-01-19 18:18:40 +000012085 $as_echo "$as_me: failed program was:" >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000012086sed 's/^/| /' conftest.$ac_ext >&5
12087
drh8b727472009-01-19 18:18:40 +000012088 eval "$as_ac_var=no"
mlcreech5b0a9eb2008-03-09 01:38:09 +000012089fi
drh8b727472009-01-19 18:18:40 +000012090
12091rm -rf conftest.dSYM
12092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech5b0a9eb2008-03-09 01:38:09 +000012093 conftest$ac_exeext conftest.$ac_ext
12094fi
drh8b727472009-01-19 18:18:40 +000012095ac_res=`eval 'as_val=${'$as_ac_var'}
12096 $as_echo "$as_val"'`
12097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12098$as_echo "$ac_res" >&6; }
12099if test `eval 'as_val=${'$as_ac_var'}
12100 $as_echo "$as_val"'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012101 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012102#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012103_ACEOF
12104
12105fi
12106done
12107
12108
mlcreechab1c47b2008-03-09 02:51:10 +000012109#########
mlcreechf3868112008-03-11 18:03:30 +000012110# By default, we use the amalgamation (this may be changed below...)
12111#
12112USE_AMALGAMATION=1
12113
12114#########
mlcreechab1c47b2008-03-09 02:51:10 +000012115# See whether we can run specific tclsh versions known to work well;
12116# if not, then we fall back to plain tclsh.
12117# TODO: try other versions before falling back?
12118#
12119for ac_prog in tclsh8.4 tclsh
12120do
12121 # Extract the first word of "$ac_prog", so it can be a program name with args.
12122set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000012123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12124$as_echo_n "checking for $ac_word... " >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012125if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012126 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000012127else
12128 if test -n "$TCLSH_CMD"; then
12129 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12130else
12131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132for as_dir in $PATH
12133do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreechab1c47b2008-03-09 02:51:10 +000012138 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh8b727472009-01-19 18:18:40 +000012139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000012140 break 2
12141 fi
12142done
12143done
drh8b727472009-01-19 18:18:40 +000012144IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000012145
12146fi
12147fi
12148TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12149if test -n "$TCLSH_CMD"; then
drh8b727472009-01-19 18:18:40 +000012150 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12151$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012152else
drh8b727472009-01-19 18:18:40 +000012153 { $as_echo "$as_me:$LINENO: result: no" >&5
12154$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012155fi
12156
drh8b727472009-01-19 18:18:40 +000012157
mlcreechab1c47b2008-03-09 02:51:10 +000012158 test -n "$TCLSH_CMD" && break
12159done
mlcreechf3868112008-03-11 18:03:30 +000012160test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000012161
mlcreechf3868112008-03-11 18:03:30 +000012162if test "$TCLSH_CMD" = "none"; then
12163 # If we can't find a local tclsh, then building the amalgamation will fail.
12164 # We act as though --disable-amalgamation has been used.
12165 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12166 USE_AMALGAMATION=0
12167 TCLSH_CMD="tclsh"
12168fi
mlcreechab1c47b2008-03-09 02:51:10 +000012169
12170
mlcreech5b0a9eb2008-03-09 01:38:09 +000012171
12172#########
drh75897232000-05-29 14:26:00 +000012173# Set up an appropriate program prefix
12174#
12175if test "$program_prefix" = "NONE"; then
12176 program_prefix=""
12177fi
12178
a.rottmann84e63352003-03-24 09:42:16 +000012179
drh4b2266a2004-11-27 15:52:16 +000012180VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12181echo "Version set to $VERSION"
12182
12183RELEASE=`cat $srcdir/VERSION`
12184echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000012185
danielk197799ba19e2005-02-05 07:33:34 +000012186VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000012187 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000012188 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000012189echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000012190
drh26d0e2a2005-07-06 13:51:27 +000012191
drh75897232000-05-29 14:26:00 +000012192#########
12193# Check to see if the --with-hints=FILE option is used. If there is none,
12194# then check for a files named "$host.hints" and ../$hosts.hints where
12195# $host is the hostname of the build system. If still no hints are
12196# found, try looking in $system.hints and ../$system.hints where
12197# $system is the result of uname -s.
12198#
drh71eb93e2001-09-28 01:34:43 +000012199
drh8b727472009-01-19 18:18:40 +000012200# Check whether --with-hints was given.
drh75897232000-05-29 14:26:00 +000012201if test "${with_hints+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012202 withval=$with_hints; hints=$withval
12203fi
12204
drh75897232000-05-29 14:26:00 +000012205if test "$hints" = ""; then
12206 host=`hostname | sed 's/\..*//'`
12207 if test -r $host.hints; then
12208 hints=$host.hints
12209 else
12210 if test -r ../$host.hints; then
12211 hints=../$host.hints
12212 fi
12213 fi
12214fi
12215if test "$hints" = ""; then
12216 sys=`uname -s`
12217 if test -r $sys.hints; then
12218 hints=$sys.hints
12219 else
12220 if test -r ../$sys.hints; then
12221 hints=../$sys.hints
12222 fi
12223 fi
12224fi
12225if test "$hints" != ""; then
drh8b727472009-01-19 18:18:40 +000012226 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12227$as_echo "reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000012228 . $hints
12229fi
12230
12231#########
12232# Locate a compiler for the build machine. This compiler should
12233# generate command-line programs that run on the build machine.
12234#
vapier7f19c022007-02-17 14:46:31 +000012235if test x"$cross_compiling" = xno; then
12236 BUILD_CC=$CC
12237 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000012238else
vapier7f19c022007-02-17 14:46:31 +000012239 if test "${BUILD_CC+set}" != set; then
12240 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000012241do
12242 # Extract the first word of "$ac_prog", so it can be a program name with args.
12243set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000012244{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12245$as_echo_n "checking for $ac_word... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000012246if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012247 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000012248else
vapier7f19c022007-02-17 14:46:31 +000012249 if test -n "$BUILD_CC"; then
12250 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000012251else
a.rottmann84e63352003-03-24 09:42:16 +000012252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253for as_dir in $PATH
12254do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012258 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 +000012259 ac_cv_prog_BUILD_CC="$ac_prog"
drh8b727472009-01-19 18:18:40 +000012260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012261 break 2
12262 fi
12263done
drh71eb93e2001-09-28 01:34:43 +000012264done
drh8b727472009-01-19 18:18:40 +000012265IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000012266
drh71eb93e2001-09-28 01:34:43 +000012267fi
12268fi
vapier7f19c022007-02-17 14:46:31 +000012269BUILD_CC=$ac_cv_prog_BUILD_CC
12270if test -n "$BUILD_CC"; then
drh8b727472009-01-19 18:18:40 +000012271 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12272$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012273else
drh8b727472009-01-19 18:18:40 +000012274 { $as_echo "$as_me:$LINENO: result: no" >&5
12275$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012276fi
drh75897232000-05-29 14:26:00 +000012277
drh8b727472009-01-19 18:18:40 +000012278
vapier7f19c022007-02-17 14:46:31 +000012279 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000012280done
drh75897232000-05-29 14:26:00 +000012281
vapier7f19c022007-02-17 14:46:31 +000012282 fi
12283 if test "${BUILD_CFLAGS+set}" != set; then
12284 BUILD_CFLAGS="-g"
12285 fi
drh71eb93e2001-09-28 01:34:43 +000012286fi
12287
a.rottmann84e63352003-03-24 09:42:16 +000012288
drh297ecf12001-04-05 15:57:13 +000012289##########
dougcurrie0f290bf2004-06-21 18:57:29 +000012290# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000012291#
drh8b727472009-01-19 18:18:40 +000012292# Check whether --enable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012293if test "${enable_threadsafe+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012294 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000012295else
drh5a3032b2007-09-03 16:12:09 +000012296 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000012297fi
12298
12299{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12300$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012301if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000012302 SQLITE_THREADSAFE=0
drh8b727472009-01-19 18:18:40 +000012303 { $as_echo "$as_me:$LINENO: result: no" >&5
12304$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012305else
drh5a3032b2007-09-03 16:12:09 +000012306 SQLITE_THREADSAFE=1
drh8b727472009-01-19 18:18:40 +000012307 { $as_echo "$as_me:$LINENO: result: yes" >&5
12308$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012309fi
12310
a.rottmann964dbb12004-02-26 19:47:42 +000012311
drh5a3032b2007-09-03 16:12:09 +000012312if test "$SQLITE_THREADSAFE" = "1"; then
drh8b727472009-01-19 18:18:40 +000012313 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12314$as_echo_n "checking for library containing pthread_create... " >&6; }
mlcreechc658b0f2008-03-09 02:20:11 +000012315if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012316 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000012317else
mlcreechc658b0f2008-03-09 02:20:11 +000012318 ac_func_search_save_LIBS=$LIBS
dougcurrie65623c72004-09-20 14:57:23 +000012319cat >conftest.$ac_ext <<_ACEOF
12320/* confdefs.h. */
12321_ACEOF
12322cat confdefs.h >>conftest.$ac_ext
12323cat >>conftest.$ac_ext <<_ACEOF
12324/* end confdefs.h. */
12325
drh8b727472009-01-19 18:18:40 +000012326/* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000012329#ifdef __cplusplus
12330extern "C"
12331#endif
dougcurrie65623c72004-09-20 14:57:23 +000012332char pthread_create ();
12333int
12334main ()
12335{
drh8b727472009-01-19 18:18:40 +000012336return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000012337 ;
12338 return 0;
12339}
12340_ACEOF
drh8b727472009-01-19 18:18:40 +000012341for ac_lib in '' pthread; do
12342 if test -z "$ac_lib"; then
12343 ac_res="none required"
12344 else
12345 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012347 fi
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349if { (ac_try="$ac_link"
12350case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12353esac
12354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12355$as_echo "$ac_try_echo") >&5
12356 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000012357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } && {
12363 test -z "$ac_c_werror_flag" ||
12364 test ! -s conftest.err
12365 } && test -s conftest$ac_exeext && {
12366 test "$cross_compiling" = yes ||
12367 $as_test_x conftest$ac_exeext
12368 }; then
12369 ac_cv_search_pthread_create=$ac_res
dougcurrie65623c72004-09-20 14:57:23 +000012370else
drh8b727472009-01-19 18:18:40 +000012371 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000012372sed 's/^/| /' conftest.$ac_ext >&5
12373
drh8b727472009-01-19 18:18:40 +000012374
mlcreechc658b0f2008-03-09 02:20:11 +000012375fi
drh8b727472009-01-19 18:18:40 +000012376
12377rm -rf conftest.dSYM
12378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12379 conftest$ac_exeext
12380 if test "${ac_cv_search_pthread_create+set}" = set; then
12381 break
drh866108f2008-05-13 00:57:21 +000012382fi
drh8b727472009-01-19 18:18:40 +000012383done
12384if test "${ac_cv_search_pthread_create+set}" = set; then
12385 :
12386else
12387 ac_cv_search_pthread_create=no
12388fi
12389rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000012390LIBS=$ac_func_search_save_LIBS
12391fi
drh8b727472009-01-19 18:18:40 +000012392{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12393$as_echo "$ac_cv_search_pthread_create" >&6; }
12394ac_res=$ac_cv_search_pthread_create
12395if test "$ac_res" != no; then
12396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000012397
dougcurrie65623c72004-09-20 14:57:23 +000012398fi
12399
mlcreechc658b0f2008-03-09 02:20:11 +000012400fi
dougcurrie65623c72004-09-20 14:57:23 +000012401
xdong28f79f72003-09-23 00:35:21 +000012402##########
drh91636d52005-11-24 23:14:00 +000012403# Do we want to allow a connection created in one thread to be used
12404# in another thread. This does not work on many Linux systems (ex: RedHat 9)
12405# due to bugs in the threading implementations. This is thus off by default.
12406#
drh8b727472009-01-19 18:18:40 +000012407# Check whether --enable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000012408if test "${enable_cross_thread_connections+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012409 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000012410else
12411 enable_xthreadconnect=no
drh8b727472009-01-19 18:18:40 +000012412fi
12413
12414{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12415$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
drh91636d52005-11-24 23:14:00 +000012416if test "$enable_xthreadconnect" = "no"; then
12417 XTHREADCONNECT=''
drh8b727472009-01-19 18:18:40 +000012418 { $as_echo "$as_me:$LINENO: result: no" >&5
12419$as_echo "no" >&6; }
drh91636d52005-11-24 23:14:00 +000012420else
12421 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh8b727472009-01-19 18:18:40 +000012422 { $as_echo "$as_me:$LINENO: result: yes" >&5
12423$as_echo "yes" >&6; }
drh91636d52005-11-24 23:14:00 +000012424fi
12425
12426
12427##########
drh8e2e2a12006-02-01 01:55:17 +000012428# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
12429# default. Normally, a test at runtime is performed to determine the
12430# appropriate value of this variable. Use this option only if you're sure that
12431# threads can safely override each others locks in all runtime situations.
12432#
drh8b727472009-01-19 18:18:40 +000012433# Check whether --enable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000012434if test "${enable_threads_override_locks+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012435 enableval=$enable_threads_override_locks;
drh8e2e2a12006-02-01 01:55:17 +000012436else
12437 enable_threads_override_locks=no
drh8b727472009-01-19 18:18:40 +000012438fi
12439
12440{ $as_echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
12441$as_echo_n "checking whether threads can override each others locks... " >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012442if test "$enable_threads_override_locks" = "no"; then
12443 THREADSOVERRIDELOCKS='-1'
drh8b727472009-01-19 18:18:40 +000012444 { $as_echo "$as_me:$LINENO: result: no" >&5
12445$as_echo "no" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012446else
12447 THREADSOVERRIDELOCKS='1'
drh8b727472009-01-19 18:18:40 +000012448 { $as_echo "$as_me:$LINENO: result: yes" >&5
12449$as_echo "yes" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012450fi
12451
12452
12453##########
xdong28f79f72003-09-23 00:35:21 +000012454# Do we want to support release
12455#
drh8b727472009-01-19 18:18:40 +000012456# Check whether --enable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000012457if test "${enable_releasemode+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012458 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000012459else
12460 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000012461fi
12462
12463{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12464$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000012465if test "$enable_releasemode" = "no"; then
12466 ALLOWRELEASE=""
drh8b727472009-01-19 18:18:40 +000012467 { $as_echo "$as_me:$LINENO: result: no" >&5
12468$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012469else
drh0b47d342007-11-27 14:50:06 +000012470 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh8b727472009-01-19 18:18:40 +000012471 { $as_echo "$as_me:$LINENO: result: yes" >&5
12472$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012473fi
paulb0208cc2003-04-13 18:26:49 +000012474
a.rottmann964dbb12004-02-26 19:47:42 +000012475
paulb0208cc2003-04-13 18:26:49 +000012476##########
12477# Do we want temporary databases in memory
12478#
drh8b727472009-01-19 18:18:40 +000012479# Check whether --enable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012480if test "${enable_tempstore+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012481 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000012482else
drh54414bb2005-10-10 00:05:50 +000012483 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000012484fi
12485
12486{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
12487$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012488case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000012489 never )
paul2dc96f92003-04-20 11:46:34 +000012490 TEMP_STORE=0
drh8b727472009-01-19 18:18:40 +000012491 { $as_echo "$as_me:$LINENO: result: never" >&5
12492$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012493 ;;
12494 no )
paul2dc96f92003-04-20 11:46:34 +000012495 TEMP_STORE=1
drh8b727472009-01-19 18:18:40 +000012496 { $as_echo "$as_me:$LINENO: result: no" >&5
12497$as_echo "no" >&6; }
12498 ;;
12499 yes )
12500 TEMP_STORE=2
12501 { $as_echo "$as_me:$LINENO: result: yes" >&5
12502$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012503 ;;
12504 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000012505 TEMP_STORE=3
drh8b727472009-01-19 18:18:40 +000012506 { $as_echo "$as_me:$LINENO: result: always" >&5
12507$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000012508 ;;
paulb0208cc2003-04-13 18:26:49 +000012509 * )
drh54414bb2005-10-10 00:05:50 +000012510 TEMP_STORE=1
drh8b727472009-01-19 18:18:40 +000012511 { $as_echo "$as_me:$LINENO: result: no" >&5
12512$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012513 ;;
12514esac
12515
12516
12517
drh75897232000-05-29 14:26:00 +000012518###########
12519# Lots of things are different if we are compiling for Windows using
12520# the CYGWIN environment. So check for that special case and handle
12521# things accordingly.
12522#
drh8b727472009-01-19 18:18:40 +000012523{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12524$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000012525if test "$config_BUILD_EXEEXT" = ".exe"; then
12526 CYGWIN=yes
drh8b727472009-01-19 18:18:40 +000012527 { $as_echo "$as_me:$LINENO: result: yes" >&5
12528$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000012529else
drh8b727472009-01-19 18:18:40 +000012530 { $as_echo "$as_me:$LINENO: result: unknown" >&5
12531$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000012532fi
12533if test "$CYGWIN" != "yes"; then
drh8b727472009-01-19 18:18:40 +000012534 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12535$as_echo_n "checking host system type... " >&6; }
12536if test "${ac_cv_host+set}" = set; then
12537 $as_echo_n "(cached) " >&6
12538else
12539 if test "x$host_alias" = x; then
12540 ac_cv_host=$ac_cv_build
12541else
12542 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12543 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12544$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12545 { (exit 1); exit 1; }; }
12546fi
12547
12548fi
12549{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12550$as_echo "$ac_cv_host" >&6; }
12551case $ac_cv_host in
12552*-*-*) ;;
12553*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12554$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12555 { (exit 1); exit 1; }; };;
12556esac
12557host=$ac_cv_host
12558ac_save_IFS=$IFS; IFS='-'
12559set x $ac_cv_host
12560shift
12561host_cpu=$1
12562host_vendor=$2
12563shift; shift
12564# Remember, the first character of IFS is used to create $*,
12565# except with old shells:
12566host_os=$*
12567IFS=$ac_save_IFS
12568case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12569
a.rottmann84e63352003-03-24 09:42:16 +000012570
12571case $host_os in
drh71eb93e2001-09-28 01:34:43 +000012572 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000012573 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000012574esac
drh75897232000-05-29 14:26:00 +000012575
drh75897232000-05-29 14:26:00 +000012576fi
12577if test "$CYGWIN" = "yes"; then
12578 BUILD_EXEEXT=.exe
12579else
dougcurrie6194a5f2003-12-19 20:09:51 +000012580 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000012581fi
vapier7f19c022007-02-17 14:46:31 +000012582if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000012583 TARGET_EXEEXT=$BUILD_EXEEXT
12584else
12585 TARGET_EXEEXT=$config_TARGET_EXEEXT
12586fi
12587if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000012588 if test $OS2_SHELL ; then
danielk197729bafea2008-06-26 10:41:19 +000012589 SQLITE_OS_UNIX=0
12590 SQLITE_OS_WIN=0
12591 SQLITE_OS_OS2=1
12592 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
drh60a1e4b2006-06-03 18:02:15 +000012593 else
danielk197729bafea2008-06-26 10:41:19 +000012594 SQLITE_OS_UNIX=0
12595 SQLITE_OS_WIN=1
12596 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000012597 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000012598 fi
drh75897232000-05-29 14:26:00 +000012599else
danielk197729bafea2008-06-26 10:41:19 +000012600 SQLITE_OS_UNIX=1
12601 SQLITE_OS_WIN=0
12602 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000012603 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000012604fi
drh75897232000-05-29 14:26:00 +000012605
a.rottmann84e63352003-03-24 09:42:16 +000012606
12607
12608
12609
12610
drh75897232000-05-29 14:26:00 +000012611
drh75897232000-05-29 14:26:00 +000012612##########
drh7b5717e2004-11-25 13:50:01 +000012613# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000012614#
drh7b5717e2004-11-25 13:50:01 +000012615# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12616# macros in the in the tcl.m4 file of the standard TCL distribution.
12617# Those macros could not be used directly since we have to make some
12618# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000012619#
drh8b727472009-01-19 18:18:40 +000012620# Check whether --enable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000012621if test "${enable_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012622 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000012623else
drh7b5717e2004-11-25 13:50:01 +000012624 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000012625fi
12626
drh7b5717e2004-11-25 13:50:01 +000012627if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000012628
drh8b727472009-01-19 18:18:40 +000012629# Check whether --with-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000012630if test "${with_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012631 withval=$with_tcl; with_tclconfig=${withval}
12632fi
12633
12634 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12635$as_echo_n "checking for Tcl configuration... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012636 if test "${ac_cv_c_tclconfig+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012637 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012638else
a.rottmann84e63352003-03-24 09:42:16 +000012639
drh7b5717e2004-11-25 13:50:01 +000012640 # First check to see if --with-tcl was specified.
12641 if test x"${with_tclconfig}" != x ; then
12642 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12643 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12644 else
drh8b727472009-01-19 18:18:40 +000012645 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12646$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000012647 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000012648 fi
12649 fi
12650 # then check for a private Tcl installation
12651 if test x"${ac_cv_c_tclconfig}" = x ; then
12652 for i in \
12653 ../tcl \
12654 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12655 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12656 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12657 ../../tcl \
12658 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12659 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12660 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12661 ../../../tcl \
12662 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12663 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12664 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12665 do
12666 if test -f "$i/unix/tclConfig.sh" ; then
12667 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12668 break
12669 fi
12670 done
12671 fi
12672
12673 # check in a few common install locations
12674 if test x"${ac_cv_c_tclconfig}" = x ; then
12675 for i in \
12676 `ls -d ${libdir} 2>/dev/null` \
12677 `ls -d /usr/local/lib 2>/dev/null` \
12678 `ls -d /usr/contrib/lib 2>/dev/null` \
12679 `ls -d /usr/lib 2>/dev/null`
12680 do
12681 if test -f "$i/tclConfig.sh" ; then
12682 ac_cv_c_tclconfig=`(cd $i; pwd)`
12683 break
12684 fi
12685 done
12686 fi
12687
12688 # check in a few other private locations
12689 if test x"${ac_cv_c_tclconfig}" = x ; then
12690 for i in \
12691 ${srcdir}/../tcl \
12692 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12693 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12694 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12695 do
12696 if test -f "$i/unix/tclConfig.sh" ; then
12697 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12698 break
12699 fi
12700 done
12701 fi
12702
drh75897232000-05-29 14:26:00 +000012703fi
12704
drh7b5717e2004-11-25 13:50:01 +000012705
12706 if test x"${ac_cv_c_tclconfig}" = x ; then
12707 use_tcl=no
drh8b727472009-01-19 18:18:40 +000012708 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
12709$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12710 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12711$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12712 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12713$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000012714 else
12715 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh8b727472009-01-19 18:18:40 +000012716 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12717$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012718
drh8b727472009-01-19 18:18:40 +000012719 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12720$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012721 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh8b727472009-01-19 18:18:40 +000012722 { $as_echo "$as_me:$LINENO: result: loading" >&5
12723$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012724 . $TCL_BIN_DIR/tclConfig.sh
12725 else
drh8b727472009-01-19 18:18:40 +000012726 { $as_echo "$as_me:$LINENO: result: file not found" >&5
12727$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000012728 fi
drh7b5717e2004-11-25 13:50:01 +000012729
12730 #
12731 # If the TCL_BIN_DIR is the build directory (not the install directory),
12732 # then set the common variable name to the value of the build variables.
12733 # For example, the variable TCL_LIB_SPEC will be set to the value
12734 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12735 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12736 # installed and uninstalled version of Tcl.
12737 #
12738
mlcreechab1c47b2008-03-09 02:51:10 +000012739 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000012740 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12741 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12742 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12743 fi
12744
12745 #
12746 # eval is required to do the TCL_DBGX substitution
12747 #
12748
12749 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12750 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12751 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12752
12753 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12754 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12755 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770 fi
drh75897232000-05-29 14:26:00 +000012771fi
drh7b5717e2004-11-25 13:50:01 +000012772if test "${use_tcl}" = "no" ; then
12773 HAVE_TCL=""
12774else
12775 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000012776fi
drh75897232000-05-29 14:26:00 +000012777
a.rottmann84e63352003-03-24 09:42:16 +000012778
drh75897232000-05-29 14:26:00 +000012779##########
12780# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000012781# that use "readline()" library.
12782#
vapier7f19c022007-02-17 14:46:31 +000012783TARGET_READLINE_LIBS=""
12784TARGET_READLINE_INC=""
12785TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000012786# Check whether --enable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000012787if test "${enable_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012788 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000012789else
vapier7f19c022007-02-17 14:46:31 +000012790 with_readline=auto
drh8b727472009-01-19 18:18:40 +000012791fi
12792
vapier7f19c022007-02-17 14:46:31 +000012793
12794if test x"$with_readline" != xno; then
12795 found="yes"
12796
12797
drh8b727472009-01-19 18:18:40 +000012798# Check whether --with-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000012799if test "${with_readline_lib+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012800 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000012801else
12802 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000012803fi
12804
vapier7f19c022007-02-17 14:46:31 +000012805 if test "x$with_readline_lib" = xauto; then
12806 save_LIBS="$LIBS"
12807 LIBS=""
drh8b727472009-01-19 18:18:40 +000012808 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12809$as_echo_n "checking for library containing tgetent... " >&6; }
paul38372372003-04-22 08:04:49 +000012810if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012811 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000012812else
drh71eb93e2001-09-28 01:34:43 +000012813 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000012814cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000012815/* confdefs.h. */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
12819/* end confdefs.h. */
12820
drh8b727472009-01-19 18:18:40 +000012821/* Override any GCC internal prototype to avoid an error.
12822 Use char because int might match the return type of a GCC
12823 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000012824#ifdef __cplusplus
12825extern "C"
12826#endif
paul38372372003-04-22 08:04:49 +000012827char tgetent ();
12828int
12829main ()
12830{
drh8b727472009-01-19 18:18:40 +000012831return tgetent ();
paul38372372003-04-22 08:04:49 +000012832 ;
12833 return 0;
12834}
12835_ACEOF
drh8b727472009-01-19 18:18:40 +000012836for ac_lib in '' readline ncurses curses termcap; do
12837 if test -z "$ac_lib"; then
12838 ac_res="none required"
12839 else
12840 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012842 fi
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844if { (ac_try="$ac_link"
12845case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848esac
12849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12850$as_echo "$ac_try_echo") >&5
12851 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000012852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest$ac_exeext && {
12861 test "$cross_compiling" = yes ||
12862 $as_test_x conftest$ac_exeext
12863 }; then
12864 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000012865else
drh8b727472009-01-19 18:18:40 +000012866 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000012867sed 's/^/| /' conftest.$ac_ext >&5
12868
drh8b727472009-01-19 18:18:40 +000012869
mlcreech94984912008-03-04 19:03:08 +000012870fi
drh8b727472009-01-19 18:18:40 +000012871
12872rm -rf conftest.dSYM
12873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12874 conftest$ac_exeext
12875 if test "${ac_cv_search_tgetent+set}" = set; then
12876 break
drh866108f2008-05-13 00:57:21 +000012877fi
drh8b727472009-01-19 18:18:40 +000012878done
12879if test "${ac_cv_search_tgetent+set}" = set; then
12880 :
12881else
12882 ac_cv_search_tgetent=no
12883fi
12884rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000012885LIBS=$ac_func_search_save_LIBS
12886fi
drh8b727472009-01-19 18:18:40 +000012887{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
12888$as_echo "$ac_cv_search_tgetent" >&6; }
12889ac_res=$ac_cv_search_tgetent
12890if test "$ac_res" != no; then
12891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000012892 term_LIBS="$LIBS"
12893else
12894 term_LIBS=""
paul38372372003-04-22 08:04:49 +000012895fi
12896
drh8b727472009-01-19 18:18:40 +000012897 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
12898$as_echo_n "checking for readline in -lreadline... " >&6; }
paul38372372003-04-22 08:04:49 +000012899if test "${ac_cv_lib_readline_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012900 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000012901else
12902 ac_check_lib_save_LIBS=$LIBS
12903LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000012904cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000012910
drh8b727472009-01-19 18:18:40 +000012911/* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
12913 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000012914#ifdef __cplusplus
12915extern "C"
12916#endif
drh71eb93e2001-09-28 01:34:43 +000012917char readline ();
12918int
12919main ()
12920{
drh8b727472009-01-19 18:18:40 +000012921return readline ();
drh71eb93e2001-09-28 01:34:43 +000012922 ;
12923 return 0;
12924}
12925_ACEOF
12926rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000012927if { (ac_try="$ac_link"
12928case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12931esac
12932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12933$as_echo "$ac_try_echo") >&5
12934 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000012935 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000012936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } && {
12941 test -z "$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12943 } && test -s conftest$ac_exeext && {
12944 test "$cross_compiling" = yes ||
12945 $as_test_x conftest$ac_exeext
12946 }; then
paul38372372003-04-22 08:04:49 +000012947 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000012948else
drh8b727472009-01-19 18:18:40 +000012949 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012950sed 's/^/| /' conftest.$ac_ext >&5
12951
drh8b727472009-01-19 18:18:40 +000012952 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000012953fi
drh8b727472009-01-19 18:18:40 +000012954
12955rm -rf conftest.dSYM
12956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000012957 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000012958LIBS=$ac_check_lib_save_LIBS
12959fi
drh8b727472009-01-19 18:18:40 +000012960{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
12961$as_echo "$ac_cv_lib_readline_readline" >&6; }
paul38372372003-04-22 08:04:49 +000012962if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000012963 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000012964else
vapier7f19c022007-02-17 14:46:31 +000012965 found="no"
12966fi
drhf1878b42006-01-23 18:06:52 +000012967
vapier7f19c022007-02-17 14:46:31 +000012968 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
12969 LIBS="$save_LIBS"
12970 else
12971 TARGET_READLINE_LIBS="$with_readline_lib"
12972 fi
12973
12974
drh8b727472009-01-19 18:18:40 +000012975# Check whether --with-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000012976if test "${with_readline_inc+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012977 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000012978else
vapier7f19c022007-02-17 14:46:31 +000012979 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000012980fi
12981
vapier7f19c022007-02-17 14:46:31 +000012982 if test "x$with_readline_inc" = xauto; then
12983 if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012984 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
12985$as_echo_n "checking for readline.h... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000012986if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012987 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012988fi
drh8b727472009-01-19 18:18:40 +000012989{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
12990$as_echo "$ac_cv_header_readline_h" >&6; }
drh75897232000-05-29 14:26:00 +000012991else
a.rottmann84e63352003-03-24 09:42:16 +000012992 # Is the header compilable?
drh8b727472009-01-19 18:18:40 +000012993{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
12994$as_echo_n "checking readline.h usability... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000012995cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012996/* confdefs.h. */
12997_ACEOF
12998cat confdefs.h >>conftest.$ac_ext
12999cat >>conftest.$ac_ext <<_ACEOF
13000/* end confdefs.h. */
13001$ac_includes_default
drh75897232000-05-29 14:26:00 +000013002#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000013003_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013004rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000013005if { (ac_try="$ac_compile"
13006case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13009esac
13010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13011$as_echo "$ac_try_echo") >&5
13012 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000013013 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000013014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } && {
13019 test -z "$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +000013022 ac_header_compiler=yes
13023else
drh8b727472009-01-19 18:18:40 +000013024 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013025sed 's/^/| /' conftest.$ac_ext >&5
13026
drh8b727472009-01-19 18:18:40 +000013027 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000013028fi
drh8b727472009-01-19 18:18:40 +000013029
13030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13031{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13032$as_echo "$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013033
13034# Is the header present?
drh8b727472009-01-19 18:18:40 +000013035{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13036$as_echo_n "checking readline.h presence... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013037cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013038/* confdefs.h. */
13039_ACEOF
13040cat confdefs.h >>conftest.$ac_ext
13041cat >>conftest.$ac_ext <<_ACEOF
13042/* end confdefs.h. */
13043#include <readline.h>
13044_ACEOF
drh8b727472009-01-19 18:18:40 +000013045if { (ac_try="$ac_cpp conftest.$ac_ext"
13046case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049esac
13050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13051$as_echo "$ac_try_echo") >&5
13052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000013053 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000013054 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000013055 rm -f conftest.er1
13056 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } >/dev/null && {
13059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13061 }; then
a.rottmann84e63352003-03-24 09:42:16 +000013062 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000013063else
drh8b727472009-01-19 18:18:40 +000013064 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013065sed 's/^/| /' conftest.$ac_ext >&5
13066
13067 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000013068fi
drh8b727472009-01-19 18:18:40 +000013069
drh71eb93e2001-09-28 01:34:43 +000013070rm -f conftest.err conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +000013071{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13072$as_echo "$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013073
13074# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000013075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13076 yes:no: )
drh8b727472009-01-19 18:18:40 +000013077 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13078$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13079 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13080$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000013081 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000013082 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000013083 no:yes:* )
drh8b727472009-01-19 18:18:40 +000013084 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13085$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13086 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13087$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13088 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13089$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13090 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13091$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13092 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13093$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13094 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13095$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13096
a.rottmann84e63352003-03-24 09:42:16 +000013097 ;;
13098esac
drh8b727472009-01-19 18:18:40 +000013099{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13100$as_echo_n "checking for readline.h... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013101if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013102 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000013103else
13104 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000013105fi
drh8b727472009-01-19 18:18:40 +000013106{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13107$as_echo "$ac_cv_header_readline_h" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013108
13109fi
drh71eb93e2001-09-28 01:34:43 +000013110if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000013111 found="yes"
13112else
drh75897232000-05-29 14:26:00 +000013113
vapier7f19c022007-02-17 14:46:31 +000013114 found="no"
13115 if test "$cross_compiling" != yes; then
13116 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13117 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000013118 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13119{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13120$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
13121if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13122 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013123else
13124 test "$cross_compiling" = yes &&
drh8b727472009-01-19 18:18:40 +000013125 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13126$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
xdong28f79f72003-09-23 00:35:21 +000013127 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000013128if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000013129 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013130else
drh71eb93e2001-09-28 01:34:43 +000013131 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013132fi
13133fi
drh8b727472009-01-19 18:18:40 +000013134ac_res=`eval 'as_val=${'$as_ac_File'}
13135 $as_echo "$as_val"'`
13136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13137$as_echo "$ac_res" >&6; }
13138if test `eval 'as_val=${'$as_ac_File'}
13139 $as_echo "$as_val"'` = yes; then
drh75897232000-05-29 14:26:00 +000013140 found=yes
drh75897232000-05-29 14:26:00 +000013141fi
13142
vapier7f19c022007-02-17 14:46:31 +000013143 if test "$found" = "yes"; then
13144 TARGET_READLINE_INC="-I$dir/$subdir"
13145 break
13146 fi
13147 done
13148 test "$found" = "yes" && break
13149 done
13150 fi
13151
13152fi
13153
13154
13155 else
13156 TARGET_READLINE_INC="$with_readline_inc"
13157 fi
13158
13159 if test x"$found" = xno; then
13160 TARGET_READLINE_LIBS=""
13161 TARGET_READLINE_INC=""
13162 TARGET_HAVE_READLINE=0
13163 else
13164 TARGET_HAVE_READLINE=1
13165 fi
13166fi
13167
13168
13169
13170
13171
13172##########
13173# Figure out what C libraries are required to compile programs
13174# that use "fdatasync()" function.
13175#
drh8b727472009-01-19 18:18:40 +000013176{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13177$as_echo_n "checking for library containing fdatasync... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000013178if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013179 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013180else
vapier7f19c022007-02-17 14:46:31 +000013181 ac_func_search_save_LIBS=$LIBS
13182cat >conftest.$ac_ext <<_ACEOF
13183/* confdefs.h. */
13184_ACEOF
13185cat confdefs.h >>conftest.$ac_ext
13186cat >>conftest.$ac_ext <<_ACEOF
13187/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013188
drh8b727472009-01-19 18:18:40 +000013189/* Override any GCC internal prototype to avoid an error.
13190 Use char because int might match the return type of a GCC
13191 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000013192#ifdef __cplusplus
13193extern "C"
13194#endif
13195char fdatasync ();
13196int
13197main ()
13198{
drh8b727472009-01-19 18:18:40 +000013199return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000013200 ;
13201 return 0;
13202}
13203_ACEOF
drh8b727472009-01-19 18:18:40 +000013204for ac_lib in '' rt; do
13205 if test -z "$ac_lib"; then
13206 ac_res="none required"
13207 else
13208 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000013209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000013210 fi
13211 rm -f conftest.$ac_objext conftest$ac_exeext
13212if { (ac_try="$ac_link"
13213case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216esac
13217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13218$as_echo "$ac_try_echo") >&5
13219 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000013220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && {
13226 test -z "$ac_c_werror_flag" ||
13227 test ! -s conftest.err
13228 } && test -s conftest$ac_exeext && {
13229 test "$cross_compiling" = yes ||
13230 $as_test_x conftest$ac_exeext
13231 }; then
13232 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000013233else
drh8b727472009-01-19 18:18:40 +000013234 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000013235sed 's/^/| /' conftest.$ac_ext >&5
13236
drh8b727472009-01-19 18:18:40 +000013237
mlcreech94984912008-03-04 19:03:08 +000013238fi
drh8b727472009-01-19 18:18:40 +000013239
13240rm -rf conftest.dSYM
13241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13242 conftest$ac_exeext
13243 if test "${ac_cv_search_fdatasync+set}" = set; then
13244 break
drh866108f2008-05-13 00:57:21 +000013245fi
drh8b727472009-01-19 18:18:40 +000013246done
13247if test "${ac_cv_search_fdatasync+set}" = set; then
13248 :
13249else
13250 ac_cv_search_fdatasync=no
13251fi
13252rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000013253LIBS=$ac_func_search_save_LIBS
13254fi
drh8b727472009-01-19 18:18:40 +000013255{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13256$as_echo "$ac_cv_search_fdatasync" >&6; }
13257ac_res=$ac_cv_search_fdatasync
13258if test "$ac_res" != no; then
13259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000013260
vapier7f19c022007-02-17 14:46:31 +000013261fi
13262
a.rottmann84e63352003-03-24 09:42:16 +000013263
drh75897232000-05-29 14:26:00 +000013264#########
tpoindex9d9f76c2005-01-03 21:28:56 +000013265# check for debug enabled
drh8b727472009-01-19 18:18:40 +000013266# Check whether --enable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000013267if test "${enable_debug+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013268 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000013269else
13270 use_debug=no
drh8b727472009-01-19 18:18:40 +000013271fi
13272
tpoindex9d9f76c2005-01-03 21:28:56 +000013273if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000013274 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000013275else
13276 TARGET_DEBUG="-DNDEBUG"
13277fi
13278
13279
13280#########
mlcreech94984912008-03-04 19:03:08 +000013281# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000013282# Check whether --enable-amalgamation was given.
mlcreech94984912008-03-04 19:03:08 +000013283if test "${enable_amalgamation+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013284 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000013285else
13286 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000013287fi
13288
mlcreechf3868112008-03-11 18:03:30 +000013289if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000013290 USE_AMALGAMATION=0
13291fi
13292
13293
13294#########
mlcreecha4edab02008-03-06 04:14:17 +000013295# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000013296# Check whether --enable-load-extension was given.
mlcreecha4edab02008-03-06 04:14:17 +000013297if test "${enable_load_extension+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013298 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000013299else
13300 use_loadextension=no
drh8b727472009-01-19 18:18:40 +000013301fi
13302
mlcreecha4edab02008-03-06 04:14:17 +000013303if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000013304 OPT_FEATURE_FLAGS=""
mlcreecha4edab02008-03-06 04:14:17 +000013305else
shanefbedede2008-07-22 05:05:01 +000013306 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000013307fi
13308
mlcreechaac7b932008-04-01 02:45:22 +000013309#########
shaneb1cd7302008-10-22 18:27:31 +000013310# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013311for option in $CFLAGS $CPPFLAGS
13312do
13313 case $option in
danielk197733a14782008-08-04 14:50:05 +000013314 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000013315 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013316 esac
13317done
13318
13319
danielk197733a14782008-08-04 14:50:05 +000013320
shaneb1cd7302008-10-22 18:27:31 +000013321# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013322ac_temp_CFLAGS=""
13323for option in $CFLAGS
13324do
13325 case $option in
13326 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013327 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013328 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013329 esac
13330done
13331CFLAGS=$ac_temp_CFLAGS
13332
13333
shaneb1cd7302008-10-22 18:27:31 +000013334# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013335ac_temp_CPPFLAGS=""
13336for option in $CPPFLAGS
13337do
13338 case $option in
13339 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013340 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013341 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013342 esac
13343done
13344CPPFLAGS=$ac_temp_CPPFLAGS
13345
danielk197733a14782008-08-04 14:50:05 +000013346
drh8b727472009-01-19 18:18:40 +000013347# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013348ac_temp_BUILD_CFLAGS=""
13349for option in $BUILD_CFLAGS
13350do
13351 case $option in
13352 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013353 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013354 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013355 esac
13356done
13357BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13358
13359
13360#########
13361# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000013362# Check whether --enable-gcov was given.
mlcreechaac7b932008-04-01 02:45:22 +000013363if test "${enable_gcov+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013364 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000013365else
13366 use_gcov=no
drh8b727472009-01-19 18:18:40 +000013367fi
13368
mlcreechaac7b932008-04-01 02:45:22 +000013369if test "${use_gcov}" = "yes" ; then
13370 USE_GCOV=1
13371else
13372 USE_GCOV=0
13373fi
13374
13375
danielk197733a14782008-08-04 14:50:05 +000013376
drh2dfbbca2000-07-28 14:32:48 +000013377#########
mlcreechb87057f2008-03-06 07:19:20 +000013378# Output the config header
drh8b727472009-01-19 18:18:40 +000013379ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000013380
13381
13382#########
drh75897232000-05-29 14:26:00 +000013383# Generate the output files.
13384#
mlcreechdf59c7c2008-03-06 07:51:15 +000013385
drh8b727472009-01-19 18:18:40 +000013386ac_config_files="$ac_config_files Makefile sqlite3.pc"
13387
drh71eb93e2001-09-28 01:34:43 +000013388cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013389# This file is a shell script that caches the results of configure
13390# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013391# scripts and configure runs, see configure's option --config-cache.
13392# It is not useful on other systems. If it contains results you don't
13393# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013394#
drh71eb93e2001-09-28 01:34:43 +000013395# config.status only pays attention to the cache file if you give it
13396# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013397#
a.rottmann84e63352003-03-24 09:42:16 +000013398# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000013399# loading this file, other *unset* `ac_cv_foo' will be assigned the
13400# following values.
13401
13402_ACEOF
13403
drh75897232000-05-29 14:26:00 +000013404# The following way of writing the cache mishandles newlines in values,
13405# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000013406# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000013407# Ultrix sh set writes to stderr and can't be redirected directly,
13408# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000013409(
13410 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13411 eval ac_val=\$$ac_var
13412 case $ac_val in #(
13413 *${as_nl}*)
13414 case $ac_var in #(
13415 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13416$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13417 esac
13418 case $ac_var in #(
13419 _ | IFS | as_nl) ;; #(
13420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13421 *) $as_unset $ac_var ;;
13422 esac ;;
13423 esac
13424 done
13425
drh71eb93e2001-09-28 01:34:43 +000013426 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000013427 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13428 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000013429 # `set' does not quote correctly, so add quotes (double-quote
13430 # substitution turns \\\\ into \\, and sed turns \\ into \).
13431 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000013432 "s/'/'\\\\''/g;
13433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000013434 ;; #(
drh71eb93e2001-09-28 01:34:43 +000013435 *)
13436 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000013437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000013438 ;;
drh8b727472009-01-19 18:18:40 +000013439 esac |
13440 sort
13441) |
drh71eb93e2001-09-28 01:34:43 +000013442 sed '
drh8b727472009-01-19 18:18:40 +000013443 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000013444 t clear
drh8b727472009-01-19 18:18:40 +000013445 :clear
drh71eb93e2001-09-28 01:34:43 +000013446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13447 t end
drh8b727472009-01-19 18:18:40 +000013448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13449 :end' >>confcache
13450if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13451 if test -w "$cache_file"; then
13452 test "x$cache_file" != "x/dev/null" &&
13453 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13454$as_echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000013455 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013456 else
drh8b727472009-01-19 18:18:40 +000013457 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13458$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000013459 fi
13460fi
13461rm -f confcache
13462
drh75897232000-05-29 14:26:00 +000013463test "x$prefix" = xNONE && prefix=$ac_default_prefix
13464# Let make expand exec_prefix.
13465test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13466
mlcreechb87057f2008-03-06 07:19:20 +000013467DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000013468
13469ac_libobjs=
13470ac_ltlibobjs=
13471for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13472 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000013473 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13474 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13475 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13476 # will be set to the directory where LIBOBJS objects are built.
13477 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13478 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000013479done
13480LIBOBJS=$ac_libobjs
13481
13482LTLIBOBJS=$ac_ltlibobjs
13483
13484
13485
drh75897232000-05-29 14:26:00 +000013486: ${CONFIG_STATUS=./config.status}
drh8b727472009-01-19 18:18:40 +000013487ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000013488ac_clean_files_save=$ac_clean_files
13489ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh8b727472009-01-19 18:18:40 +000013490{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13491$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13492cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013493#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000013494# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000013495# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013496# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013497# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013498
drh71eb93e2001-09-28 01:34:43 +000013499debug=false
a.rottmann84e63352003-03-24 09:42:16 +000013500ac_cs_recheck=false
13501ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000013502SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000013503_ACEOF
drh75897232000-05-29 14:26:00 +000013504
drh8b727472009-01-19 18:18:40 +000013505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000013506## --------------------- ##
13507## M4sh Initialization. ##
13508## --------------------- ##
13509
drh8b727472009-01-19 18:18:40 +000013510# Be more Bourne compatible
13511DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000013512if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13513 emulate sh
13514 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000013515 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000013516 # is contrary to our usage. Disable this feature.
13517 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000013518 setopt NO_GLOB_SUBST
13519else
13520 case `(set -o) 2>/dev/null` in
13521 *posix*) set -o posix ;;
13522esac
13523
a.rottmann84e63352003-03-24 09:42:16 +000013524fi
drh8b727472009-01-19 18:18:40 +000013525
13526
13527
13528
13529# PATH needs CR
13530# Avoid depending upon Character Ranges.
13531as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13532as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13533as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13534as_cr_digits='0123456789'
13535as_cr_alnum=$as_cr_Letters$as_cr_digits
13536
13537as_nl='
13538'
13539export as_nl
13540# Printing a long string crashes Solaris 7 /usr/bin/printf.
13541as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13542as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13543as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13544if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13545 as_echo='printf %s\n'
13546 as_echo_n='printf %s'
13547else
13548 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13549 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13550 as_echo_n='/usr/ucb/echo -n'
13551 else
13552 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13553 as_echo_n_body='eval
13554 arg=$1;
13555 case $arg in
13556 *"$as_nl"*)
13557 expr "X$arg" : "X\\(.*\\)$as_nl";
13558 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13559 esac;
13560 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13561 '
13562 export as_echo_n_body
13563 as_echo_n='sh -c $as_echo_n_body as_echo'
13564 fi
13565 export as_echo_body
13566 as_echo='sh -c $as_echo_body as_echo'
13567fi
13568
13569# The user is always right.
13570if test "${PATH_SEPARATOR+set}" != set; then
13571 PATH_SEPARATOR=:
13572 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13573 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13574 PATH_SEPARATOR=';'
13575 }
13576fi
a.rottmann84e63352003-03-24 09:42:16 +000013577
mlcreech94984912008-03-04 19:03:08 +000013578# Support unset when possible.
13579if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13580 as_unset=unset
13581else
13582 as_unset=false
13583fi
a.rottmann84e63352003-03-24 09:42:16 +000013584
mlcreech94984912008-03-04 19:03:08 +000013585
drh8b727472009-01-19 18:18:40 +000013586# IFS
13587# We need space, tab and new line, in precisely that order. Quoting is
13588# there to prevent editors from complaining about space-tab.
13589# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13590# splitting by setting IFS to empty value.)
13591IFS=" "" $as_nl"
13592
13593# Find who we are. Look in the path if we contain no directory separator.
13594case $0 in
13595 *[\\/]* ) as_myself=$0 ;;
13596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597for as_dir in $PATH
13598do
13599 IFS=$as_save_IFS
13600 test -z "$as_dir" && as_dir=.
13601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13602done
13603IFS=$as_save_IFS
13604
13605 ;;
13606esac
13607# We did not find ourselves, most probably we were run as `sh COMMAND'
13608# in which case we are not to be found in the path.
13609if test "x$as_myself" = x; then
13610 as_myself=$0
13611fi
13612if test ! -f "$as_myself"; then
13613 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13614 { (exit 1); exit 1; }
13615fi
13616
mlcreech94984912008-03-04 19:03:08 +000013617# Work around bugs in pre-3.0 UWIN ksh.
drh8b727472009-01-19 18:18:40 +000013618for as_var in ENV MAIL MAILPATH
13619do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13620done
mlcreech94984912008-03-04 19:03:08 +000013621PS1='$ '
13622PS2='> '
13623PS4='+ '
13624
13625# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000013626LC_ALL=C
13627export LC_ALL
13628LANGUAGE=C
13629export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000013630
13631# Required to use basename.
drh8b727472009-01-19 18:18:40 +000013632if expr a : '\(a\)' >/dev/null 2>&1 &&
13633 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000013634 as_expr=expr
13635else
13636 as_expr=false
13637fi
13638
drh8b727472009-01-19 18:18:40 +000013639if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000013640 as_basename=basename
13641else
13642 as_basename=false
13643fi
13644
13645
13646# Name of the executable.
drh8b727472009-01-19 18:18:40 +000013647as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000013648$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13649 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013650 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13651$as_echo X/"$0" |
13652 sed '/^.*\/\([^/][^/]*\)\/*$/{
13653 s//\1/
13654 q
13655 }
13656 /^X\/\(\/\/\)$/{
13657 s//\1/
13658 q
13659 }
13660 /^X\/\(\/\).*/{
13661 s//\1/
13662 q
13663 }
13664 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000013665
drh8b727472009-01-19 18:18:40 +000013666# CDPATH.
13667$as_unset CDPATH
mlcreech94984912008-03-04 19:03:08 +000013668
13669
13670
a.rottmann84e63352003-03-24 09:42:16 +000013671 as_lineno_1=$LINENO
13672 as_lineno_2=$LINENO
a.rottmann84e63352003-03-24 09:42:16 +000013673 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh8b727472009-01-19 18:18:40 +000013674 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +000013675
13676 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13677 # uniformly replaced by the line number. The first 'sed' inserts a
drh8b727472009-01-19 18:18:40 +000013678 # line-number line after each line using $LINENO; the second 'sed'
13679 # does the real work. The second script uses 'N' to pair each
13680 # line-number line with the line containing $LINENO, and appends
13681 # trailing '-' during substitution so that $LINENO is not a special
13682 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000013683 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh8b727472009-01-19 18:18:40 +000013684 # scripts with optimization help from Paolo Bonzini. Blame Lee
13685 # E. McMahon (1931-1989) for sed's syntax. :-)
13686 sed -n '
13687 p
13688 /[$]LINENO/=
13689 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000013690 sed '
drh8b727472009-01-19 18:18:40 +000013691 s/[$]LINENO.*/&-/
13692 t lineno
13693 b
13694 :lineno
a.rottmann84e63352003-03-24 09:42:16 +000013695 N
drh8b727472009-01-19 18:18:40 +000013696 :loop
13697 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +000013698 t loop
drh8b727472009-01-19 18:18:40 +000013699 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +000013700 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +000013701 chmod +x "$as_me.lineno" ||
13702 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +000013703 { (exit 1); exit 1; }; }
13704
13705 # Don't try to exec as it changes $[0], causing all sort of problems
13706 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +000013707 # original and so on. Autoconf is especially sensitive to this).
13708 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +000013709 # Exit status is that of the last command.
13710 exit
13711}
13712
13713
drh8b727472009-01-19 18:18:40 +000013714if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13715 as_dirname=dirname
13716else
13717 as_dirname=false
13718fi
drh866108f2008-05-13 00:57:21 +000013719
drh8b727472009-01-19 18:18:40 +000013720ECHO_C= ECHO_N= ECHO_T=
13721case `echo -n x` in
13722-n*)
13723 case `echo 'x\c'` in
13724 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13725 *) ECHO_C='\c';;
13726 esac;;
13727*)
13728 ECHO_N='-n';;
13729esac
13730if expr a : '\(a\)' >/dev/null 2>&1 &&
13731 test "X`expr 00001 : '.*\(...\)'`" = X001; then
drh71eb93e2001-09-28 01:34:43 +000013732 as_expr=expr
13733else
13734 as_expr=false
13735fi
13736
13737rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000013738if test -d conf$$.dir; then
13739 rm -f conf$$.dir/conf$$.file
13740else
13741 rm -f conf$$.dir
13742 mkdir conf$$.dir 2>/dev/null
13743fi
13744if (echo >conf$$.file) 2>/dev/null; then
13745 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000013746 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000013747 # ... but there are two gotchas:
13748 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13749 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13750 # In both cases, we have to default to `cp -p'.
13751 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13752 as_ln_s='cp -p'
13753 elif ln conf$$.file conf$$ 2>/dev/null; then
13754 as_ln_s=ln
13755 else
13756 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000013757 fi
drh71eb93e2001-09-28 01:34:43 +000013758else
13759 as_ln_s='cp -p'
13760fi
drh8b727472009-01-19 18:18:40 +000013761rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13762rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000013763
a.rottmann84e63352003-03-24 09:42:16 +000013764if mkdir -p . 2>/dev/null; then
13765 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000013766else
a.rottmann964dbb12004-02-26 19:47:42 +000013767 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000013768 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000013769fi
13770
drh8b727472009-01-19 18:18:40 +000013771if test -x / >/dev/null 2>&1; then
13772 as_test_x='test -x'
13773else
13774 if ls -dL / >/dev/null 2>&1; then
13775 as_ls_L_option=L
13776 else
13777 as_ls_L_option=
13778 fi
13779 as_test_x='
13780 eval sh -c '\''
13781 if test -d "$1"; then
13782 test -d "$1/.";
13783 else
13784 case $1 in
13785 -*)set "./$1";;
13786 esac;
13787 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13788 ???[sx]*):;;*)false;;esac;fi
13789 '\'' sh
13790 '
13791fi
13792as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000013793
13794# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000013795as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013796
13797# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000013798as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013799
drh71eb93e2001-09-28 01:34:43 +000013800
drh71eb93e2001-09-28 01:34:43 +000013801exec 6>&1
13802
drh8b727472009-01-19 18:18:40 +000013803# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000013804# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000013805# values after options handling.
13806ac_log="
13807This file was extended by sqlite $as_me 3.6.10, which was
13808generated by GNU Autoconf 2.62. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000013809
13810 CONFIG_FILES = $CONFIG_FILES
13811 CONFIG_HEADERS = $CONFIG_HEADERS
13812 CONFIG_LINKS = $CONFIG_LINKS
13813 CONFIG_COMMANDS = $CONFIG_COMMANDS
13814 $ $0 $@
13815
drh8b727472009-01-19 18:18:40 +000013816on `(hostname || uname -n) 2>/dev/null | sed 1q`
13817"
13818
drh71eb93e2001-09-28 01:34:43 +000013819_ACEOF
13820
drh8b727472009-01-19 18:18:40 +000013821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013822# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000013823config_files="$ac_config_files"
13824config_headers="$ac_config_headers"
13825config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000013826
drh8b727472009-01-19 18:18:40 +000013827_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013828
drh8b727472009-01-19 18:18:40 +000013829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013830ac_cs_usage="\
13831\`$as_me' instantiates files from templates according to the
13832current configuration.
13833
13834Usage: $0 [OPTIONS] [FILE]...
13835
13836 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000013837 -V, --version print version number and configuration settings, then exit
a.rottmann84e63352003-03-24 09:42:16 +000013838 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000013839 -d, --debug don't remove temporary files
13840 --recheck update $as_me by reconfiguring in the same conditions
13841 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013842 instantiate the configuration file FILE
mlcreechb87057f2008-03-06 07:19:20 +000013843 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013844 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000013845
13846Configuration files:
13847$config_files
13848
mlcreechb87057f2008-03-06 07:19:20 +000013849Configuration headers:
13850$config_headers
13851
mlcreech636a9952008-05-05 22:52:56 +000013852Configuration commands:
13853$config_commands
13854
drh71eb93e2001-09-28 01:34:43 +000013855Report bugs to <bug-autoconf@gnu.org>."
drh8b727472009-01-19 18:18:40 +000013856
mlcreech94984912008-03-04 19:03:08 +000013857_ACEOF
drh8b727472009-01-19 18:18:40 +000013858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh866108f2008-05-13 00:57:21 +000013859ac_cs_version="\\
drh8b727472009-01-19 18:18:40 +000013860sqlite config.status 3.6.10
13861configured by $0, generated by GNU Autoconf 2.62,
13862 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh866108f2008-05-13 00:57:21 +000013863
drh8b727472009-01-19 18:18:40 +000013864Copyright (C) 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000013865This config.status script is free software; the Free Software Foundation
13866gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000013867
13868ac_pwd='$ac_pwd'
13869srcdir='$srcdir'
13870INSTALL='$INSTALL'
13871AWK='$AWK'
13872test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000013873_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013874
drh8b727472009-01-19 18:18:40 +000013875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13876# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000013877ac_need_defaults=:
13878while test $# != 0
13879do
13880 case $1 in
13881 --*=*)
drh8b727472009-01-19 18:18:40 +000013882 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13883 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000013884 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000013885 ;;
drh8b727472009-01-19 18:18:40 +000013886 *)
a.rottmann84e63352003-03-24 09:42:16 +000013887 ac_option=$1
13888 ac_optarg=$2
13889 ac_shift=shift
13890 ;;
drh75897232000-05-29 14:26:00 +000013891 esac
13892
a.rottmann84e63352003-03-24 09:42:16 +000013893 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000013894 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000013895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000013896 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000013897 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13898 $as_echo "$ac_cs_version"; exit ;;
13899 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000013900 debug=: ;;
13901 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000013902 $ac_shift
drh8b727472009-01-19 18:18:40 +000013903 case $ac_optarg in
13904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13905 esac
13906 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000013907 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000013908 --header | --heade | --head | --hea )
13909 $ac_shift
drh8b727472009-01-19 18:18:40 +000013910 case $ac_optarg in
13911 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13912 esac
13913 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000013914 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000013915 --he | --h)
13916 # Conflict between --help and --header
13917 { $as_echo "$as_me: error: ambiguous option: $1
13918Try \`$0 --help' for more information." >&2
13919 { (exit 1); exit 1; }; };;
13920 --help | --hel | -h )
13921 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000013922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13923 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13924 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000013925
drh71eb93e2001-09-28 01:34:43 +000013926 # This is an error.
drh8b727472009-01-19 18:18:40 +000013927 -*) { $as_echo "$as_me: error: unrecognized option: $1
13928Try \`$0 --help' for more information." >&2
drh71eb93e2001-09-28 01:34:43 +000013929 { (exit 1); exit 1; }; } ;;
13930
drh8b727472009-01-19 18:18:40 +000013931 *) ac_config_targets="$ac_config_targets $1"
13932 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000013933
13934 esac
13935 shift
13936done
13937
a.rottmann84e63352003-03-24 09:42:16 +000013938ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000013939
a.rottmann84e63352003-03-24 09:42:16 +000013940if $ac_cs_silent; then
13941 exec 6>/dev/null
13942 ac_configure_extra_args="$ac_configure_extra_args --silent"
13943fi
drh71eb93e2001-09-28 01:34:43 +000013944
13945_ACEOF
drh8b727472009-01-19 18:18:40 +000013946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000013947if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000013948 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13949 shift
13950 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13951 CONFIG_SHELL='$SHELL'
13952 export CONFIG_SHELL
13953 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000013954fi
drh71eb93e2001-09-28 01:34:43 +000013955
a.rottmann84e63352003-03-24 09:42:16 +000013956_ACEOF
drh8b727472009-01-19 18:18:40 +000013957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13958exec 5>>config.log
13959{
13960 echo
13961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13962## Running $as_me. ##
13963_ASBOX
13964 $as_echo "$ac_log"
13965} >&5
a.rottmann84e63352003-03-24 09:42:16 +000013966
drh8b727472009-01-19 18:18:40 +000013967_ACEOF
13968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000013969#
drh8b727472009-01-19 18:18:40 +000013970# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000013971#
13972
13973
13974# The HP-UX ksh and POSIX shell print the target directory to stdout
13975# if CDPATH is set.
13976(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13977
13978sed_quote_subst='$sed_quote_subst'
13979double_quote_subst='$double_quote_subst'
13980delay_variable_subst='$delay_variable_subst'
13981macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13982macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13983enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13984enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13985pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13986enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13987host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13988host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13989host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13990build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13991build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13992build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13993SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13994Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13995GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13996EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13997FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13998LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13999NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14000LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14001max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14002ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14003exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14004lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14005lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14006lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14007reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14008reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14009deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14010file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14011AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14012AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14013STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14014RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14015old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14016old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14017old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14018CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14019CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14020compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14021GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14022lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14023lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14024lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14025lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14026objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14027SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14028ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14029MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14030lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14031lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14032lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14033lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14034lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14035need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14036DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14037NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14038LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14039OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14040OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14041libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14042shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14043extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14044archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14045enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14046export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14047whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14048compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14049old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14050old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14051archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14052archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14053module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14054module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14055with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14056allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14057no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14058hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14059hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14060hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14061hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14062hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14063hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14064hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14065hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14066inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14067link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14068fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14069always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14070export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14071exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14072include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14073prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14074file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14075variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14076need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14077need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14078version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14079runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14080shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14081shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14082libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14083library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14084soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14085postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14086postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14087finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14088finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14089hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14090sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14091sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14092hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14093enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14094enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14095enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14096old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14097striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14098
14099LTCC='$LTCC'
14100LTCFLAGS='$LTCFLAGS'
14101compiler='$compiler_DEFAULT'
14102
14103# Quote evaled strings.
14104for var in SED \
14105GREP \
14106EGREP \
14107FGREP \
14108LD \
14109NM \
14110LN_S \
14111lt_SP2NL \
14112lt_NL2SP \
14113reload_flag \
14114deplibs_check_method \
14115file_magic_cmd \
14116AR \
14117AR_FLAGS \
14118STRIP \
14119RANLIB \
14120CC \
14121CFLAGS \
14122compiler \
14123lt_cv_sys_global_symbol_pipe \
14124lt_cv_sys_global_symbol_to_cdecl \
14125lt_cv_sys_global_symbol_to_c_name_address \
14126lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14127SHELL \
14128ECHO \
14129lt_prog_compiler_no_builtin_flag \
14130lt_prog_compiler_wl \
14131lt_prog_compiler_pic \
14132lt_prog_compiler_static \
14133lt_cv_prog_compiler_c_o \
14134need_locks \
14135DSYMUTIL \
14136NMEDIT \
14137LIPO \
14138OTOOL \
14139OTOOL64 \
14140shrext_cmds \
14141export_dynamic_flag_spec \
14142whole_archive_flag_spec \
14143compiler_needs_object \
14144with_gnu_ld \
14145allow_undefined_flag \
14146no_undefined_flag \
14147hardcode_libdir_flag_spec \
14148hardcode_libdir_flag_spec_ld \
14149hardcode_libdir_separator \
14150fix_srcfile_path \
14151exclude_expsyms \
14152include_expsyms \
14153file_list_spec \
14154variables_saved_for_relink \
14155libname_spec \
14156library_names_spec \
14157soname_spec \
14158finish_eval \
14159old_striplib \
14160striplib; do
14161 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14162 *[\\\\\\\`\\"\\\$]*)
14163 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14164 ;;
14165 *)
14166 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14167 ;;
14168 esac
14169done
14170
14171# Double-quote double-evaled strings.
14172for var in reload_cmds \
14173old_postinstall_cmds \
14174old_postuninstall_cmds \
14175old_archive_cmds \
14176extract_expsyms_cmds \
14177old_archive_from_new_cmds \
14178old_archive_from_expsyms_cmds \
14179archive_cmds \
14180archive_expsym_cmds \
14181module_cmds \
14182module_expsym_cmds \
14183export_symbols_cmds \
14184prelink_cmds \
14185postinstall_cmds \
14186postuninstall_cmds \
14187finish_cmds \
14188sys_lib_search_path_spec \
14189sys_lib_dlsearch_path_spec; do
14190 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14191 *[\\\\\\\`\\"\\\$]*)
14192 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14193 ;;
14194 *)
14195 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14196 ;;
14197 esac
14198done
14199
14200# Fix-up fallback echo if it was mangled by the above quoting rules.
14201case \$lt_ECHO in
14202*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14203 ;;
14204esac
14205
14206ac_aux_dir='$ac_aux_dir'
14207xsi_shell='$xsi_shell'
14208lt_shell_append='$lt_shell_append'
14209
14210# See if we are running on zsh, and set the options which allow our
14211# commands through without removal of \ escapes INIT.
14212if test -n "\${ZSH_VERSION+set}" ; then
14213 setopt NO_GLOB_SUBST
14214fi
14215
14216
14217 PACKAGE='$PACKAGE'
14218 VERSION='$VERSION'
14219 TIMESTAMP='$TIMESTAMP'
14220 RM='$RM'
14221 ofile='$ofile'
14222
14223
14224
14225
mlcreech94984912008-03-04 19:03:08 +000014226_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000014227
drh8b727472009-01-19 18:18:40 +000014228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014229
drh8b727472009-01-19 18:18:40 +000014230# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000014231for ac_config_target in $ac_config_targets
14232do
drh8b727472009-01-19 18:18:40 +000014233 case $ac_config_target in
14234 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14235 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14236 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14237 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14238
14239 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14240$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
drh71eb93e2001-09-28 01:34:43 +000014241 { (exit 1); exit 1; }; };;
14242 esac
14243done
14244
drh8b727472009-01-19 18:18:40 +000014245
drh71eb93e2001-09-28 01:34:43 +000014246# If the user did not use the arguments to specify the items to instantiate,
14247# then the envvar interface is used. Set only those that are not.
14248# We use the long form for the default assignment because of an extremely
14249# bizarre bug on SunOS 4.1.3.
14250if $ac_need_defaults; then
14251 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000014252 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000014253 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000014254fi
14255
a.rottmann84e63352003-03-24 09:42:16 +000014256# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000014257# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000014258# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000014259# Hook for its removal unless debugging.
14260# Note that there is a small window in which the directory will not be cleaned:
14261# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000014262$debug ||
14263{
drh8b727472009-01-19 18:18:40 +000014264 tmp=
14265 trap 'exit_status=$?
14266 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14267' 0
drh71eb93e2001-09-28 01:34:43 +000014268 trap '{ (exit 1); exit 1; }' 1 2 13 15
14269}
drh71eb93e2001-09-28 01:34:43 +000014270# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000014271
drh71eb93e2001-09-28 01:34:43 +000014272{
drh8b727472009-01-19 18:18:40 +000014273 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000014274 test -n "$tmp" && test -d "$tmp"
14275} ||
14276{
drh8b727472009-01-19 18:18:40 +000014277 tmp=./conf$$-$RANDOM
14278 (umask 077 && mkdir "$tmp")
drh71eb93e2001-09-28 01:34:43 +000014279} ||
14280{
drh8b727472009-01-19 18:18:40 +000014281 $as_echo "$as_me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000014282 { (exit 1); exit 1; }
14283}
14284
drh8b727472009-01-19 18:18:40 +000014285# Set up the scripts for CONFIG_FILES section.
14286# No need to generate them if there are no CONFIG_FILES.
14287# This happens for instance with `./config.status config.h'.
14288if test -n "$CONFIG_FILES"; then
14289
14290
14291ac_cr=' '
14292ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14293if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14294 ac_cs_awk_cr='\\r'
14295else
14296 ac_cs_awk_cr=$ac_cr
14297fi
14298
14299echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000014300_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014301
mlcreech94984912008-03-04 19:03:08 +000014302
drh8b727472009-01-19 18:18:40 +000014303{
14304 echo "cat >conf$$subs.awk <<_ACEOF" &&
14305 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14306 echo "_ACEOF"
14307} >conf$$subs.sh ||
14308 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14309$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14310 { (exit 1); exit 1; }; }
14311ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14312ac_delim='%!_!# '
14313for ac_last_try in false false false false false :; do
14314 . ./conf$$subs.sh ||
14315 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14316$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14317 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014318
drh8b727472009-01-19 18:18:40 +000014319 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14320 break
14321 elif $ac_last_try; then
14322 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14323$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14324 { (exit 1); exit 1; }; }
14325 else
14326 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000014327 fi
drh8b727472009-01-19 18:18:40 +000014328done
14329rm -f conf$$subs.sh
14330
14331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14332cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14333_ACEOF
14334sed -n '
14335h
14336s/^/S["/; s/!.*/"]=/
14337p
14338g
14339s/^[^!]*!//
14340:repl
14341t repl
14342s/'"$ac_delim"'$//
14343t delim
14344:nl
14345h
14346s/\(.\{148\}\).*/\1/
14347t more1
14348s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14349p
14350n
14351b repl
14352:more1
14353s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14354p
14355g
14356s/.\{148\}//
14357t nl
14358:delim
14359h
14360s/\(.\{148\}\).*/\1/
14361t more2
14362s/["\\]/\\&/g; s/^/"/; s/$/"/
14363p
14364b
14365:more2
14366s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14367p
14368g
14369s/.\{148\}//
14370t delim
14371' <conf$$subs.awk | sed '
14372/^[^""]/{
14373 N
14374 s/\n//
14375}
14376' >>$CONFIG_STATUS || ac_write_fail=1
14377rm -f conf$$subs.awk
14378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14379_ACAWK
14380cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14381 for (key in S) S_is_set[key] = 1
14382 FS = ""
14383
14384}
14385{
14386 line = $ 0
14387 nfields = split(line, field, "@")
14388 substed = 0
14389 len = length(field[1])
14390 for (i = 2; i < nfields; i++) {
14391 key = field[i]
14392 keylen = length(key)
14393 if (S_is_set[key]) {
14394 value = S[key]
14395 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14396 len += length(value) + length(field[++i])
14397 substed = 1
14398 } else
14399 len += 1 + keylen
14400 }
14401
14402 print line
14403}
14404
14405_ACAWK
14406_ACEOF
14407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14408if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14409 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14410else
14411 cat
14412fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14413 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14414$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14415 { (exit 1); exit 1; }; }
14416_ACEOF
14417
14418# VPATH may cause trouble with some makes, so we remove $(srcdir),
14419# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14420# trailing colons and then remove the whole line if VPATH becomes empty
14421# (actually we leave an empty line to preserve line numbers).
14422if test "x$srcdir" = x.; then
14423 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14424s/:*\$(srcdir):*/:/
14425s/:*\${srcdir}:*/:/
14426s/:*@srcdir@:*/:/
14427s/^\([^=]*=[ ]*\):*/\1/
14428s/:*$//
14429s/^[^=]*=[ ]*$//
14430}'
14431fi
14432
14433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014434fi # test -n "$CONFIG_FILES"
14435
drh8b727472009-01-19 18:18:40 +000014436# Set up the scripts for CONFIG_HEADERS section.
14437# No need to generate them if there are no CONFIG_HEADERS.
14438# This happens for instance with `./config.status Makefile'.
14439if test -n "$CONFIG_HEADERS"; then
14440cat >"$tmp/defines.awk" <<\_ACAWK ||
14441BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000014442_ACEOF
drh8b727472009-01-19 18:18:40 +000014443
14444# Transform confdefs.h into an awk script `defines.awk', embedded as
14445# here-document in config.status, that substitutes the proper values into
14446# config.h.in to produce config.h.
14447
14448# Create a delimiter string that does not exist in confdefs.h, to ease
14449# handling of long lines.
14450ac_delim='%!_!# '
14451for ac_last_try in false false :; do
14452 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14453 if test -z "$ac_t"; then
14454 break
14455 elif $ac_last_try; then
14456 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14457$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14458 { (exit 1); exit 1; }; }
14459 else
14460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14461 fi
14462done
14463
14464# For the awk script, D is an array of macro values keyed by name,
14465# likewise P contains macro parameters if any. Preserve backslash
14466# newline sequences.
14467
14468ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14469sed -n '
14470s/.\{148\}/&'"$ac_delim"'/g
14471t rset
14472:rset
14473s/^[ ]*#[ ]*define[ ][ ]*/ /
14474t def
14475d
14476:def
14477s/\\$//
14478t bsnl
14479s/["\\]/\\&/g
14480s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14481D["\1"]=" \3"/p
14482s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14483d
14484:bsnl
14485s/["\\]/\\&/g
14486s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14487D["\1"]=" \3\\\\\\n"\\/p
14488t cont
14489s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14490t cont
14491d
14492:cont
14493n
14494s/.\{148\}/&'"$ac_delim"'/g
14495t clear
14496:clear
14497s/\\$//
14498t bsnlc
14499s/["\\]/\\&/g; s/^/"/; s/$/"/p
14500d
14501:bsnlc
14502s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14503b cont
14504' <confdefs.h | sed '
14505s/'"$ac_delim"'/"\\\
14506"/g' >>$CONFIG_STATUS || ac_write_fail=1
14507
14508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14509 for (key in D) D_is_set[key] = 1
14510 FS = ""
14511}
14512/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14513 line = \$ 0
14514 split(line, arg, " ")
14515 if (arg[1] == "#") {
14516 defundef = arg[2]
14517 mac1 = arg[3]
14518 } else {
14519 defundef = substr(arg[1], 2)
14520 mac1 = arg[2]
14521 }
14522 split(mac1, mac2, "(") #)
14523 macro = mac2[1]
14524 if (D_is_set[macro]) {
14525 # Preserve the white space surrounding the "#".
14526 prefix = substr(line, 1, index(line, defundef) - 1)
14527 print prefix "define", macro P[macro] D[macro]
14528 next
14529 } else {
14530 # Replace #undef with comments. This is necessary, for example,
14531 # in the case of _POSIX_SOURCE, which is predefined and required
14532 # on some systems where configure will not decide to define it.
14533 if (defundef == "undef") {
14534 print "/*", line, "*/"
14535 next
14536 }
14537 }
14538}
14539{ print }
14540_ACAWK
14541_ACEOF
14542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14543 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14544$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14545 { (exit 1); exit 1; }; }
14546fi # test -n "$CONFIG_HEADERS"
14547
14548
14549eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14550shift
14551for ac_tag
14552do
14553 case $ac_tag in
14554 :[FHLC]) ac_mode=$ac_tag; continue;;
14555 esac
14556 case $ac_mode$ac_tag in
14557 :[FHL]*:*);;
14558 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14559$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14560 { (exit 1); exit 1; }; };;
14561 :[FH]-) ac_tag=-:-;;
14562 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14563 esac
14564 ac_save_IFS=$IFS
14565 IFS=:
14566 set x $ac_tag
14567 IFS=$ac_save_IFS
14568 shift
14569 ac_file=$1
14570 shift
14571
14572 case $ac_mode in
14573 :L) ac_source=$1;;
14574 :[FH])
14575 ac_file_inputs=
14576 for ac_f
14577 do
14578 case $ac_f in
14579 -) ac_f="$tmp/stdin";;
14580 *) # Look for the file first in the build tree, then in the source tree
14581 # (if the path is not absolute). The absolute path cannot be DOS-style,
14582 # because $ac_f cannot contain `:'.
14583 test -f "$ac_f" ||
14584 case $ac_f in
14585 [\\/$]*) false;;
14586 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14587 esac ||
14588 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14589$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14590 { (exit 1); exit 1; }; };;
14591 esac
14592 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14593 ac_file_inputs="$ac_file_inputs '$ac_f'"
14594 done
14595
14596 # Let's still pretend it is `configure' which instantiates (i.e., don't
14597 # use $as_me), people would be surprised to read:
14598 # /* config.h. Generated by config.status. */
14599 configure_input='Generated from '`
14600 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14601 `' by configure.'
14602 if test x"$ac_file" != x-; then
14603 configure_input="$ac_file. $configure_input"
14604 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14605$as_echo "$as_me: creating $ac_file" >&6;}
14606 fi
14607 # Neutralize special characters interpreted by sed in replacement strings.
14608 case $configure_input in #(
14609 *\&* | *\|* | *\\* )
14610 ac_sed_conf_input=`$as_echo "$configure_input" |
14611 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14612 *) ac_sed_conf_input=$configure_input;;
14613 esac
14614
14615 case $ac_tag in
14616 *:-:* | *:-) cat >"$tmp/stdin" \
14617 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14618$as_echo "$as_me: error: could not create $ac_file" >&2;}
14619 { (exit 1); exit 1; }; } ;;
14620 esac
14621 ;;
drh71eb93e2001-09-28 01:34:43 +000014622 esac
14623
drh8b727472009-01-19 18:18:40 +000014624 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000014625$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014626 X"$ac_file" : 'X\(//\)[^/]' \| \
14627 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14629$as_echo X"$ac_file" |
14630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14631 s//\1/
14632 q
14633 }
14634 /^X\(\/\/\)[^/].*/{
14635 s//\1/
14636 q
14637 }
14638 /^X\(\/\/\)$/{
14639 s//\1/
14640 q
14641 }
14642 /^X\(\/\).*/{
14643 s//\1/
14644 q
14645 }
14646 s/.*/./; q'`
14647 { as_dir="$ac_dir"
14648 case $as_dir in #(
14649 -*) as_dir=./$as_dir;;
14650 esac
14651 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a.rottmann84e63352003-03-24 09:42:16 +000014652 as_dirs=
drh8b727472009-01-19 18:18:40 +000014653 while :; do
14654 case $as_dir in #(
14655 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14656 *) as_qdir=$as_dir;;
14657 esac
14658 as_dirs="'$as_qdir' $as_dirs"
14659 as_dir=`$as_dirname -- "$as_dir" ||
a.rottmann84e63352003-03-24 09:42:16 +000014660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014661 X"$as_dir" : 'X\(//\)[^/]' \| \
14662 X"$as_dir" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14664$as_echo X"$as_dir" |
14665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14666 s//\1/
14667 q
14668 }
14669 /^X\(\/\/\)[^/].*/{
14670 s//\1/
14671 q
14672 }
14673 /^X\(\/\/\)$/{
14674 s//\1/
14675 q
14676 }
14677 /^X\(\/\).*/{
14678 s//\1/
14679 q
14680 }
14681 s/.*/./; q'`
14682 test -d "$as_dir" && break
a.rottmann84e63352003-03-24 09:42:16 +000014683 done
drh8b727472009-01-19 18:18:40 +000014684 test -z "$as_dirs" || eval "mkdir $as_dirs"
14685 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14686$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000014687 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000014688 ac_builddir=.
14689
drh8b727472009-01-19 18:18:40 +000014690case "$ac_dir" in
14691.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14692*)
14693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14694 # A ".." for each directory in $ac_dir_suffix.
14695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14696 case $ac_top_builddir_sub in
14697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14699 esac ;;
14700esac
14701ac_abs_top_builddir=$ac_pwd
14702ac_abs_builddir=$ac_pwd$ac_dir_suffix
14703# for backward compatibility:
14704ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000014705
14706case $srcdir in
drh8b727472009-01-19 18:18:40 +000014707 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000014708 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000014709 ac_top_srcdir=$ac_top_builddir_sub
14710 ac_abs_top_srcdir=$ac_pwd ;;
14711 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000014712 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000014713 ac_top_srcdir=$srcdir
14714 ac_abs_top_srcdir=$srcdir ;;
14715 *) # Relative name.
14716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14717 ac_top_srcdir=$ac_top_build_prefix$srcdir
14718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000014719esac
drh8b727472009-01-19 18:18:40 +000014720ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000014721
a.rottmann84e63352003-03-24 09:42:16 +000014722
drh8b727472009-01-19 18:18:40 +000014723 case $ac_mode in
14724 :F)
14725 #
14726 # CONFIG_FILE
14727 #
drh75897232000-05-29 14:26:00 +000014728
drh71eb93e2001-09-28 01:34:43 +000014729 case $INSTALL in
14730 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000014731 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014732 esac
mlcreech94984912008-03-04 19:03:08 +000014733_ACEOF
drh8b727472009-01-19 18:18:40 +000014734
14735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14736# If the template does not know about datarootdir, expand it.
14737# FIXME: This hack should be removed a few years after 2.60.
14738ac_datarootdir_hack=; ac_datarootdir_seen=
14739
14740ac_sed_dataroot='
14741/datarootdir/ {
14742 p
14743 q
14744}
14745/@datadir@/p
14746/@docdir@/p
14747/@infodir@/p
14748/@localedir@/p
14749/@mandir@/p
14750'
14751case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14752*datarootdir*) ac_datarootdir_seen=yes;;
14753*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14754 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14755$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14756_ACEOF
14757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14758 ac_datarootdir_hack='
14759 s&@datadir@&$datadir&g
14760 s&@docdir@&$docdir&g
14761 s&@infodir@&$infodir&g
14762 s&@localedir@&$localedir&g
14763 s&@mandir@&$mandir&g
14764 s&\\\${datarootdir}&$datarootdir&g' ;;
14765esac
14766_ACEOF
14767
14768# Neutralize VPATH when `$srcdir' = `.'.
14769# Shell code in configure.ac might set extrasub.
14770# FIXME: do we really want to maintain this feature?
14771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14772ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000014773$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000014774_ACEOF
drh8b727472009-01-19 18:18:40 +000014775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014776:t
14777/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000014778s|@configure_input@|$ac_sed_conf_input|;t t
14779s&@top_builddir@&$ac_top_builddir_sub&;t t
14780s&@top_build_prefix@&$ac_top_build_prefix&;t t
14781s&@srcdir@&$ac_srcdir&;t t
14782s&@abs_srcdir@&$ac_abs_srcdir&;t t
14783s&@top_srcdir@&$ac_top_srcdir&;t t
14784s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14785s&@builddir@&$ac_builddir&;t t
14786s&@abs_builddir@&$ac_abs_builddir&;t t
14787s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14788s&@INSTALL@&$ac_INSTALL&;t t
14789$ac_datarootdir_hack
14790"
14791eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14792 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14793$as_echo "$as_me: error: could not create $ac_file" >&2;}
14794 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014795
drh8b727472009-01-19 18:18:40 +000014796test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14797 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14798 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14799 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14800which seems to be undefined. Please make sure it is defined." >&5
14801$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14802which seems to be undefined. Please make sure it is defined." >&2;}
drh866108f2008-05-13 00:57:21 +000014803
drh8b727472009-01-19 18:18:40 +000014804 rm -f "$tmp/stdin"
drh866108f2008-05-13 00:57:21 +000014805 case $ac_file in
drh8b727472009-01-19 18:18:40 +000014806 -) cat "$tmp/out" && rm -f "$tmp/out";;
14807 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14808 esac \
14809 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14810$as_echo "$as_me: error: could not create $ac_file" >&2;}
drh866108f2008-05-13 00:57:21 +000014811 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014812 ;;
14813 :H)
14814 #
14815 # CONFIG_HEADER
14816 #
drh866108f2008-05-13 00:57:21 +000014817 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000014818 {
14819 $as_echo "/* $configure_input */" \
14820 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14821 } >"$tmp/config.h" \
14822 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14823$as_echo "$as_me: error: could not create $ac_file" >&2;}
14824 { (exit 1); exit 1; }; }
14825 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14826 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14827$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000014828 else
drh8b727472009-01-19 18:18:40 +000014829 rm -f "$ac_file"
14830 mv "$tmp/config.h" "$ac_file" \
14831 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14832$as_echo "$as_me: error: could not create $ac_file" >&2;}
14833 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014834 fi
14835 else
drh8b727472009-01-19 18:18:40 +000014836 $as_echo "/* $configure_input */" \
14837 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14838 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14839$as_echo "$as_me: error: could not create -" >&2;}
14840 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014841 fi
drh8b727472009-01-19 18:18:40 +000014842 ;;
drh866108f2008-05-13 00:57:21 +000014843
drh8b727472009-01-19 18:18:40 +000014844 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14845$as_echo "$as_me: executing $ac_file commands" >&6;}
14846 ;;
14847 esac
drh866108f2008-05-13 00:57:21 +000014848
14849
drh8b727472009-01-19 18:18:40 +000014850 case $ac_file$ac_mode in
14851 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000014852
14853 # See if we are running on zsh, and set the options which allow our
14854 # commands through without removal of \ escapes.
14855 if test -n "${ZSH_VERSION+set}" ; then
14856 setopt NO_GLOB_SUBST
14857 fi
14858
14859 cfgfile="${ofile}T"
14860 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14861 $RM "$cfgfile"
14862
14863 cat <<_LT_EOF >> "$cfgfile"
14864#! $SHELL
14865
14866# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14867# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14868# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14869# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14870#
14871# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14872# 2006, 2007, 2008 Free Software Foundation, Inc.
14873# Written by Gordon Matzigkeit, 1996
14874#
14875# This file is part of GNU Libtool.
14876#
14877# GNU Libtool is free software; you can redistribute it and/or
14878# modify it under the terms of the GNU General Public License as
14879# published by the Free Software Foundation; either version 2 of
14880# the License, or (at your option) any later version.
14881#
14882# As a special exception to the GNU General Public License,
14883# if you distribute this file as part of a program or library that
14884# is built using GNU Libtool, you may include this file under the
14885# same distribution terms that you use for the rest of that program.
14886#
14887# GNU Libtool is distributed in the hope that it will be useful,
14888# but WITHOUT ANY WARRANTY; without even the implied warranty of
14889# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14890# GNU General Public License for more details.
14891#
14892# You should have received a copy of the GNU General Public License
14893# along with GNU Libtool; see the file COPYING. If not, a copy
14894# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14895# obtained by writing to the Free Software Foundation, Inc.,
14896# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14897
14898
14899# The names of the tagged configurations supported by this script.
14900available_tags=""
14901
14902# ### BEGIN LIBTOOL CONFIG
14903
14904# Which release of libtool.m4 was used?
14905macro_version=$macro_version
14906macro_revision=$macro_revision
14907
14908# Whether or not to build shared libraries.
14909build_libtool_libs=$enable_shared
14910
14911# Whether or not to build static libraries.
14912build_old_libs=$enable_static
14913
14914# What type of objects to build.
14915pic_mode=$pic_mode
14916
14917# Whether or not to optimize for fast installation.
14918fast_install=$enable_fast_install
14919
14920# The host system.
14921host_alias=$host_alias
14922host=$host
14923host_os=$host_os
14924
14925# The build system.
14926build_alias=$build_alias
14927build=$build
14928build_os=$build_os
14929
14930# A sed program that does not truncate output.
14931SED=$lt_SED
14932
14933# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14934Xsed="\$SED -e 1s/^X//"
14935
14936# A grep program that handles long lines.
14937GREP=$lt_GREP
14938
14939# An ERE matcher.
14940EGREP=$lt_EGREP
14941
14942# A literal string matcher.
14943FGREP=$lt_FGREP
14944
14945# A BSD- or MS-compatible name lister.
14946NM=$lt_NM
14947
14948# Whether we need soft or hard links.
14949LN_S=$lt_LN_S
14950
14951# What is the maximum length of a command?
14952max_cmd_len=$max_cmd_len
14953
14954# Object file suffix (normally "o").
14955objext=$ac_objext
14956
14957# Executable file suffix (normally "").
14958exeext=$exeext
14959
14960# whether the shell understands "unset".
14961lt_unset=$lt_unset
14962
14963# turn spaces into newlines.
14964SP2NL=$lt_lt_SP2NL
14965
14966# turn newlines into spaces.
14967NL2SP=$lt_lt_NL2SP
14968
14969# How to create reloadable object files.
14970reload_flag=$lt_reload_flag
14971reload_cmds=$lt_reload_cmds
14972
14973# Method to check whether dependent libraries are shared objects.
14974deplibs_check_method=$lt_deplibs_check_method
14975
14976# Command to use when deplibs_check_method == "file_magic".
14977file_magic_cmd=$lt_file_magic_cmd
14978
14979# The archiver.
14980AR=$lt_AR
14981AR_FLAGS=$lt_AR_FLAGS
14982
14983# A symbol stripping program.
14984STRIP=$lt_STRIP
14985
14986# Commands used to install an old-style archive.
14987RANLIB=$lt_RANLIB
14988old_postinstall_cmds=$lt_old_postinstall_cmds
14989old_postuninstall_cmds=$lt_old_postuninstall_cmds
14990
14991# A C compiler.
14992LTCC=$lt_CC
14993
14994# LTCC compiler flags.
14995LTCFLAGS=$lt_CFLAGS
14996
14997# Take the output of nm and produce a listing of raw symbols and C names.
14998global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14999
15000# Transform the output of nm in a proper C declaration.
15001global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15002
15003# Transform the output of nm in a C name address pair.
15004global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15005
15006# Transform the output of nm in a C name address pair when lib prefix is needed.
15007global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15008
15009# The name of the directory that contains temporary libtool files.
15010objdir=$objdir
15011
15012# Shell to use when invoking shell scripts.
15013SHELL=$lt_SHELL
15014
15015# An echo program that does not interpret backslashes.
15016ECHO=$lt_ECHO
15017
15018# Used to examine libraries when file_magic_cmd begins with "file".
15019MAGIC_CMD=$MAGIC_CMD
15020
15021# Must we lock files when doing compilation?
15022need_locks=$lt_need_locks
15023
15024# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15025DSYMUTIL=$lt_DSYMUTIL
15026
15027# Tool to change global to local symbols on Mac OS X.
15028NMEDIT=$lt_NMEDIT
15029
15030# Tool to manipulate fat objects and archives on Mac OS X.
15031LIPO=$lt_LIPO
15032
15033# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15034OTOOL=$lt_OTOOL
15035
15036# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15037OTOOL64=$lt_OTOOL64
15038
15039# Old archive suffix (normally "a").
15040libext=$libext
15041
15042# Shared library suffix (normally ".so").
15043shrext_cmds=$lt_shrext_cmds
15044
15045# The commands to extract the exported symbol list from a shared archive.
15046extract_expsyms_cmds=$lt_extract_expsyms_cmds
15047
15048# Variables whose values should be saved in libtool wrapper scripts and
15049# restored at link time.
15050variables_saved_for_relink=$lt_variables_saved_for_relink
15051
15052# Do we need the "lib" prefix for modules?
15053need_lib_prefix=$need_lib_prefix
15054
15055# Do we need a version for libraries?
15056need_version=$need_version
15057
15058# Library versioning type.
15059version_type=$version_type
15060
15061# Shared library runtime path variable.
15062runpath_var=$runpath_var
15063
15064# Shared library path variable.
15065shlibpath_var=$shlibpath_var
15066
15067# Is shlibpath searched before the hard-coded library search path?
15068shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15069
15070# Format of library name prefix.
15071libname_spec=$lt_libname_spec
15072
15073# List of archive names. First name is the real one, the rest are links.
15074# The last name is the one that the linker finds with -lNAME
15075library_names_spec=$lt_library_names_spec
15076
15077# The coded name of the library, if different from the real name.
15078soname_spec=$lt_soname_spec
15079
15080# Command to use after installation of a shared archive.
15081postinstall_cmds=$lt_postinstall_cmds
15082
15083# Command to use after uninstallation of a shared archive.
15084postuninstall_cmds=$lt_postuninstall_cmds
15085
15086# Commands used to finish a libtool library installation in a directory.
15087finish_cmds=$lt_finish_cmds
15088
15089# As "finish_cmds", except a single script fragment to be evaled but
15090# not shown.
15091finish_eval=$lt_finish_eval
15092
15093# Whether we should hardcode library paths into libraries.
15094hardcode_into_libs=$hardcode_into_libs
15095
15096# Compile-time system search path for libraries.
15097sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15098
15099# Run-time system search path for libraries.
15100sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15101
15102# Whether dlopen is supported.
15103dlopen_support=$enable_dlopen
15104
15105# Whether dlopen of programs is supported.
15106dlopen_self=$enable_dlopen_self
15107
15108# Whether dlopen of statically linked programs is supported.
15109dlopen_self_static=$enable_dlopen_self_static
15110
15111# Commands to strip libraries.
15112old_striplib=$lt_old_striplib
15113striplib=$lt_striplib
15114
15115
15116# The linker used to build libraries.
15117LD=$lt_LD
15118
15119# Commands used to build an old-style archive.
15120old_archive_cmds=$lt_old_archive_cmds
15121
15122# A language specific compiler.
15123CC=$lt_compiler
15124
15125# Is the compiler the GNU compiler?
15126with_gcc=$GCC
15127
15128# Compiler flag to turn off builtin functions.
15129no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15130
15131# How to pass a linker flag through the compiler.
15132wl=$lt_lt_prog_compiler_wl
15133
15134# Additional compiler flags for building library objects.
15135pic_flag=$lt_lt_prog_compiler_pic
15136
15137# Compiler flag to prevent dynamic linking.
15138link_static_flag=$lt_lt_prog_compiler_static
15139
15140# Does compiler simultaneously support -c and -o options?
15141compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15142
15143# Whether or not to add -lc for building shared libraries.
15144build_libtool_need_lc=$archive_cmds_need_lc
15145
15146# Whether or not to disallow shared libs when runtime libs are static.
15147allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15148
15149# Compiler flag to allow reflexive dlopens.
15150export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15151
15152# Compiler flag to generate shared objects directly from archives.
15153whole_archive_flag_spec=$lt_whole_archive_flag_spec
15154
15155# Whether the compiler copes with passing no objects directly.
15156compiler_needs_object=$lt_compiler_needs_object
15157
15158# Create an old-style archive from a shared archive.
15159old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15160
15161# Create a temporary old-style archive to link instead of a shared archive.
15162old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15163
15164# Commands used to build a shared archive.
15165archive_cmds=$lt_archive_cmds
15166archive_expsym_cmds=$lt_archive_expsym_cmds
15167
15168# Commands used to build a loadable module if different from building
15169# a shared archive.
15170module_cmds=$lt_module_cmds
15171module_expsym_cmds=$lt_module_expsym_cmds
15172
15173# Whether we are building with GNU ld or not.
15174with_gnu_ld=$lt_with_gnu_ld
15175
15176# Flag that allows shared libraries with undefined symbols to be built.
15177allow_undefined_flag=$lt_allow_undefined_flag
15178
15179# Flag that enforces no undefined symbols.
15180no_undefined_flag=$lt_no_undefined_flag
15181
15182# Flag to hardcode \$libdir into a binary during linking.
15183# This must work even if \$libdir does not exist
15184hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15185
15186# If ld is used when linking, flag to hardcode \$libdir into a binary
15187# during linking. This must work even if \$libdir does not exist.
15188hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15189
15190# Whether we need a single "-rpath" flag with a separated argument.
15191hardcode_libdir_separator=$lt_hardcode_libdir_separator
15192
15193# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15194# DIR into the resulting binary.
15195hardcode_direct=$hardcode_direct
15196
15197# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15198# DIR into the resulting binary and the resulting library dependency is
15199# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15200# library is relocated.
15201hardcode_direct_absolute=$hardcode_direct_absolute
15202
15203# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15204# into the resulting binary.
15205hardcode_minus_L=$hardcode_minus_L
15206
15207# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15208# into the resulting binary.
15209hardcode_shlibpath_var=$hardcode_shlibpath_var
15210
15211# Set to "yes" if building a shared library automatically hardcodes DIR
15212# into the library and all subsequent libraries and executables linked
15213# against it.
15214hardcode_automatic=$hardcode_automatic
15215
15216# Set to yes if linker adds runtime paths of dependent libraries
15217# to runtime path list.
15218inherit_rpath=$inherit_rpath
15219
15220# Whether libtool must link a program against all its dependency libraries.
15221link_all_deplibs=$link_all_deplibs
15222
15223# Fix the shell variable \$srcfile for the compiler.
15224fix_srcfile_path=$lt_fix_srcfile_path
15225
15226# Set to "yes" if exported symbols are required.
15227always_export_symbols=$always_export_symbols
15228
15229# The commands to list exported symbols.
15230export_symbols_cmds=$lt_export_symbols_cmds
15231
15232# Symbols that should not be listed in the preloaded symbols.
15233exclude_expsyms=$lt_exclude_expsyms
15234
15235# Symbols that must always be exported.
15236include_expsyms=$lt_include_expsyms
15237
15238# Commands necessary for linking programs (against libraries) with templates.
15239prelink_cmds=$lt_prelink_cmds
15240
15241# Specify filename containing input files.
15242file_list_spec=$lt_file_list_spec
15243
15244# How to hardcode a shared library path into an executable.
15245hardcode_action=$hardcode_action
15246
15247# ### END LIBTOOL CONFIG
15248
15249_LT_EOF
15250
15251 case $host_os in
15252 aix3*)
15253 cat <<\_LT_EOF >> "$cfgfile"
15254# AIX sometimes has problems with the GCC collect2 program. For some
15255# reason, if we set the COLLECT_NAMES environment variable, the problems
15256# vanish in a puff of smoke.
15257if test "X${COLLECT_NAMES+set}" != Xset; then
15258 COLLECT_NAMES=
15259 export COLLECT_NAMES
15260fi
15261_LT_EOF
15262 ;;
15263 esac
15264
15265
15266ltmain="$ac_aux_dir/ltmain.sh"
15267
15268
15269 # We use sed instead of cat because bash on DJGPP gets confused if
15270 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15271 # text mode, it properly converts lines to CR/LF. This bash problem
15272 # is reportedly fixed, but why not run on old versions too?
15273 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15274 || (rm -f "$cfgfile"; exit 1)
15275
15276 case $xsi_shell in
15277 yes)
15278 cat << \_LT_EOF >> "$cfgfile"
15279
15280# func_dirname file append nondir_replacement
15281# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15282# otherwise set result to NONDIR_REPLACEMENT.
15283func_dirname ()
15284{
15285 case ${1} in
15286 */*) func_dirname_result="${1%/*}${2}" ;;
15287 * ) func_dirname_result="${3}" ;;
15288 esac
15289}
15290
15291# func_basename file
15292func_basename ()
15293{
15294 func_basename_result="${1##*/}"
15295}
15296
15297# func_dirname_and_basename file append nondir_replacement
15298# perform func_basename and func_dirname in a single function
15299# call:
15300# dirname: Compute the dirname of FILE. If nonempty,
15301# add APPEND to the result, otherwise set result
15302# to NONDIR_REPLACEMENT.
15303# value returned in "$func_dirname_result"
15304# basename: Compute filename of FILE.
15305# value retuned in "$func_basename_result"
15306# Implementation must be kept synchronized with func_dirname
15307# and func_basename. For efficiency, we do not delegate to
15308# those functions but instead duplicate the functionality here.
15309func_dirname_and_basename ()
15310{
15311 case ${1} in
15312 */*) func_dirname_result="${1%/*}${2}" ;;
15313 * ) func_dirname_result="${3}" ;;
15314 esac
15315 func_basename_result="${1##*/}"
15316}
15317
15318# func_stripname prefix suffix name
15319# strip PREFIX and SUFFIX off of NAME.
15320# PREFIX and SUFFIX must not contain globbing or regex special
15321# characters, hashes, percent signs, but SUFFIX may contain a leading
15322# dot (in which case that matches only a dot).
15323func_stripname ()
15324{
15325 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15326 # positional parameters, so assign one to ordinary parameter first.
15327 func_stripname_result=${3}
15328 func_stripname_result=${func_stripname_result#"${1}"}
15329 func_stripname_result=${func_stripname_result%"${2}"}
15330}
15331
15332# func_opt_split
15333func_opt_split ()
15334{
15335 func_opt_split_opt=${1%%=*}
15336 func_opt_split_arg=${1#*=}
15337}
15338
15339# func_lo2o object
15340func_lo2o ()
15341{
15342 case ${1} in
15343 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15344 *) func_lo2o_result=${1} ;;
15345 esac
15346}
15347
15348# func_xform libobj-or-source
15349func_xform ()
15350{
15351 func_xform_result=${1%.*}.lo
15352}
15353
15354# func_arith arithmetic-term...
15355func_arith ()
15356{
15357 func_arith_result=$(( $* ))
15358}
15359
15360# func_len string
15361# STRING may not start with a hyphen.
15362func_len ()
15363{
15364 func_len_result=${#1}
15365}
15366
15367_LT_EOF
15368 ;;
15369 *) # Bourne compatible functions.
15370 cat << \_LT_EOF >> "$cfgfile"
15371
15372# func_dirname file append nondir_replacement
15373# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15374# otherwise set result to NONDIR_REPLACEMENT.
15375func_dirname ()
15376{
15377 # Extract subdirectory from the argument.
15378 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15379 if test "X$func_dirname_result" = "X${1}"; then
15380 func_dirname_result="${3}"
15381 else
15382 func_dirname_result="$func_dirname_result${2}"
15383 fi
15384}
15385
15386# func_basename file
15387func_basename ()
15388{
15389 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15390}
15391
15392
15393# func_stripname prefix suffix name
15394# strip PREFIX and SUFFIX off of NAME.
15395# PREFIX and SUFFIX must not contain globbing or regex special
15396# characters, hashes, percent signs, but SUFFIX may contain a leading
15397# dot (in which case that matches only a dot).
15398# func_strip_suffix prefix name
15399func_stripname ()
15400{
15401 case ${2} in
15402 .*) func_stripname_result=`$ECHO "X${3}" \
15403 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15404 *) func_stripname_result=`$ECHO "X${3}" \
15405 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15406 esac
15407}
15408
15409# sed scripts:
15410my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15411my_sed_long_arg='1s/^-[^=]*=//'
15412
15413# func_opt_split
15414func_opt_split ()
15415{
15416 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15417 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15418}
15419
15420# func_lo2o object
15421func_lo2o ()
15422{
15423 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15424}
15425
15426# func_xform libobj-or-source
15427func_xform ()
15428{
15429 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15430}
15431
15432# func_arith arithmetic-term...
15433func_arith ()
15434{
15435 func_arith_result=`expr "$@"`
15436}
15437
15438# func_len string
15439# STRING may not start with a hyphen.
15440func_len ()
15441{
15442 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15443}
15444
15445_LT_EOF
15446esac
15447
15448case $lt_shell_append in
15449 yes)
15450 cat << \_LT_EOF >> "$cfgfile"
15451
15452# func_append var value
15453# Append VALUE to the end of shell variable VAR.
15454func_append ()
15455{
15456 eval "$1+=\$2"
15457}
15458_LT_EOF
15459 ;;
15460 *)
15461 cat << \_LT_EOF >> "$cfgfile"
15462
15463# func_append var value
15464# Append VALUE to the end of shell variable VAR.
15465func_append ()
15466{
15467 eval "$1=\$$1\$2"
15468}
15469
15470_LT_EOF
15471 ;;
15472 esac
15473
15474
15475 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15476 || (rm -f "$cfgfile"; exit 1)
15477
15478 mv -f "$cfgfile" "$ofile" ||
15479 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15480 chmod +x "$ofile"
15481
15482 ;;
mlcreech94984912008-03-04 19:03:08 +000015483
drh8b727472009-01-19 18:18:40 +000015484 esac
15485done # for ac_tag
15486
drh71eb93e2001-09-28 01:34:43 +000015487
15488{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000015489_ACEOF
drh75897232000-05-29 14:26:00 +000015490chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000015491ac_clean_files=$ac_clean_files_save
15492
drh8b727472009-01-19 18:18:40 +000015493test $ac_write_fail = 0 ||
15494 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15495$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15496 { (exit 1); exit 1; }; }
15497
a.rottmann84e63352003-03-24 09:42:16 +000015498
drh71eb93e2001-09-28 01:34:43 +000015499# configure is writing to config.log, and then calls config.status.
15500# config.status does its own redirection, appending to config.log.
15501# Unfortunately, on DOS this fails, as config.log is still kept open
15502# by configure, so config.status won't be able to write to it; its
15503# output is simply discarded. So we exec the FD to /dev/null,
15504# effectively closing config.log, so it can be properly (re)opened and
15505# appended to by config.status. When coming back to configure, we
15506# need to make the FD available again.
15507if test "$no_create" != yes; then
15508 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000015509 ac_config_status_args=
15510 test "$silent" = yes &&
15511 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000015512 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000015513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000015514 exec 5>>config.log
15515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15516 # would make configure fail if this is the last instruction.
15517 $ac_cs_success || { (exit 1); exit 1; }
15518fi
drh8b727472009-01-19 18:18:40 +000015519if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15520 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15521$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15522fi
drh613a0fe2007-11-23 17:31:17 +000015523