blob: cd0383275caf62052108eab056c062f295245087 [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.
vapierd3dd12b2009-02-18 04:35:12 +00003# Generated by GNU Autoconf 2.63 for sqlite 3.6.11.
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'
vapierd3dd12b2009-02-18 04:35:12 +0000746PACKAGE_VERSION='3.6.11'
747PACKAGE_STRING='sqlite 3.6.11'
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
vapier6acb2cf2009-01-28 04:46:28 +0000786ac_subst_vars='LTLIBOBJS
drh8b727472009-01-19 18:18:40 +0000787LIBOBJS
vapier6acb2cf2009-01-28 04:46:28 +0000788BUILD_CFLAGS
789USE_GCOV
790OPT_FEATURE_FLAGS
791USE_AMALGAMATION
792TARGET_DEBUG
793TARGET_HAVE_READLINE
794TARGET_READLINE_INC
795TARGET_READLINE_LIBS
796HAVE_TCL
797TCL_STUB_LIB_SPEC
798TCL_STUB_LIB_FLAG
799TCL_STUB_LIB_FILE
800TCL_LIB_SPEC
801TCL_LIB_FLAG
802TCL_LIB_FILE
803TCL_INCLUDE_SPEC
804TCL_LIBS
805TCL_SRC_DIR
806TCL_BIN_DIR
807TCL_VERSION
808TARGET_EXEEXT
809SQLITE_OS_OS2
810SQLITE_OS_WIN
811SQLITE_OS_UNIX
812BUILD_EXEEXT
813TEMP_STORE
814ALLOWRELEASE
815THREADSOVERRIDELOCKS
816XTHREADCONNECT
817SQLITE_THREADSAFE
818BUILD_CC
819VERSION_NUMBER
820RELEASE
821VERSION
822program_prefix
823TCLLIBDIR
824TCLSH_CMD
825AWK
826INSTALL_DATA
827INSTALL_SCRIPT
828INSTALL_PROGRAM
829CPP
830OTOOL64
831OTOOL
832LIPO
833NMEDIT
834DSYMUTIL
835lt_ECHO
836RANLIB
837STRIP
838AR
839OBJDUMP
840LN_S
841NM
842ac_ct_DUMPBIN
843DUMPBIN
844LD
845FGREP
846EGREP
847GREP
848SED
849OBJEXT
850EXEEXT
851ac_ct_CC
852CPPFLAGS
853LDFLAGS
854CFLAGS
855CC
856host_os
857host_vendor
858host_cpu
859host
860build_os
861build_vendor
862build_cpu
863build
864LIBTOOL
865target_alias
866host_alias
867build_alias
868LIBS
869ECHO_T
870ECHO_N
871ECHO_C
872DEFS
873mandir
874localedir
875libdir
876psdir
877pdfdir
878dvidir
879htmldir
880infodir
881docdir
882oldincludedir
883includedir
884localstatedir
885sharedstatedir
886sysconfdir
887datadir
888datarootdir
889libexecdir
890sbindir
891bindir
892program_transform_name
893prefix
894exec_prefix
895PACKAGE_BUGREPORT
896PACKAGE_STRING
897PACKAGE_VERSION
898PACKAGE_TARNAME
899PACKAGE_NAME
900PATH_SEPARATOR
901SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000902ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000903ac_user_opts='
904enable_option_checking
905enable_shared
906enable_static
907with_pic
908enable_fast_install
909with_gnu_ld
910enable_libtool_lock
911enable_largefile
912with_hints
913enable_threadsafe
914enable_cross_thread_connections
915enable_threads_override_locks
916enable_releasemode
917enable_tempstore
918enable_tcl
919with_tcl
920enable_readline
921with_readline_lib
922with_readline_inc
923enable_debug
924enable_amalgamation
925enable_load_extension
926enable_gcov
927'
928 ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934LIBS
935CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000936CPP
937TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000938
drh75897232000-05-29 14:26:00 +0000939
940# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000941ac_init_help=
942ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000943ac_unrecognized_opts=
944ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000945# The variables have the same names as the options, with
946# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000947cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000948exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000949no_create=
drh75897232000-05-29 14:26:00 +0000950no_recursion=
951prefix=NONE
952program_prefix=NONE
953program_suffix=NONE
954program_transform_name=s,x,x,
955silent=
956site=
957srcdir=
drh75897232000-05-29 14:26:00 +0000958verbose=
959x_includes=NONE
960x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000961
962# Installation directory options.
963# These are left unexpanded so users can "make install exec_prefix=/foo"
964# and all the variables that are supposed to be based on exec_prefix
965# by default will actually change.
966# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000967# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000968bindir='${exec_prefix}/bin'
969sbindir='${exec_prefix}/sbin'
970libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000971datarootdir='${prefix}/share'
972datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000973sysconfdir='${prefix}/etc'
974sharedstatedir='${prefix}/com'
975localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000976includedir='${prefix}/include'
977oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000978docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979infodir='${datarootdir}/info'
980htmldir='${docdir}'
981dvidir='${docdir}'
982pdfdir='${docdir}'
983psdir='${docdir}'
984libdir='${exec_prefix}/lib'
985localedir='${datarootdir}/locale'
986mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000987
drh75897232000-05-29 14:26:00 +0000988ac_prev=
drh8b727472009-01-19 18:18:40 +0000989ac_dashdash=
drh75897232000-05-29 14:26:00 +0000990for ac_option
991do
drh75897232000-05-29 14:26:00 +0000992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000994 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000995 ac_prev=
996 continue
997 fi
998
drh8b727472009-01-19 18:18:40 +0000999 case $ac_option in
1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 *) ac_optarg=yes ;;
1002 esac
drh75897232000-05-29 14:26:00 +00001003
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1005
drh8b727472009-01-19 18:18:40 +00001006 case $ac_dashdash$ac_option in
1007 --)
1008 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001009
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 ac_prev=bindir ;;
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001013 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001014
1015 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001016 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001018 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001019
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001025 cache_file=$ac_optarg ;;
1026
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001029
drh8b727472009-01-19 18:18:40 +00001030 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001031 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001033 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001034
drh8b727472009-01-19 18:18:40 +00001035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1041
drh75897232000-05-29 14:26:00 +00001042 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001044 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001047 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"enable_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001068
1069 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001071 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001074 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079"enable_$ac_useropt"
1080"*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001083 esac
drh8b727472009-01-19 18:18:40 +00001084 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001085
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001093 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001094
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1098
drh71eb93e2001-09-28 01:34:43 +00001099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001105
1106 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001107 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001108 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001109 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001110
drh8b727472009-01-19 18:18:40 +00001111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1116
drh75897232000-05-29 14:26:00 +00001117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001122 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001123
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001127 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001128
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001132 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001133
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001139 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001140
drh8b727472009-01-19 18:18:40 +00001141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1145
drh75897232000-05-29 14:26:00 +00001146 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001147 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001151 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001152
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001156 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001157
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1161
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001163 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001164 no_create=yes ;;
1165
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1169
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001177 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001178
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001182 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001183
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001189 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001190
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001196 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001197
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001213 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001214
drh8b727472009-01-19 18:18:40 +00001215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1219
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1224
drh75897232000-05-29 14:26:00 +00001225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001233 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001244 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001249 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001254 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001261 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001264 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001266 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
drh71eb93e2001-09-28 01:34:43 +00001271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001273
1274 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001276 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001279 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"with_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001288 esac
drh8b727472009-01-19 18:18:40 +00001289 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001290
1291 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001293 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001296 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301"with_$ac_useropt"
1302"*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001317 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001324 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001325
drh8b727472009-01-19 18:18:40 +00001326 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
drh71eb93e2001-09-28 01:34:43 +00001327Try \`$0 --help' for more information." >&2
1328 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001329 ;;
1330
drh71eb93e2001-09-28 01:34:43 +00001331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001335 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
drh71eb93e2001-09-28 01:34:43 +00001336 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001337 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001338 export $ac_envvar ;;
1339
drh75897232000-05-29 14:26:00 +00001340 *)
drh71eb93e2001-09-28 01:34:43 +00001341 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001346 ;;
1347
1348 esac
1349done
1350
1351if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh8b727472009-01-19 18:18:40 +00001353 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001354 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001355fi
1356
drh8b727472009-01-19 18:18:40 +00001357if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
vapier6acb2cf2009-01-28 04:46:28 +00001360 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
drh8b727472009-01-19 18:18:40 +00001361 { (exit 1); exit 1; }; } ;;
vapier6acb2cf2009-01-28 04:46:28 +00001362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001363 esac
drh8b727472009-01-19 18:18:40 +00001364fi
drh866108f2008-05-13 00:57:21 +00001365
drh8b727472009-01-19 18:18:40 +00001366# Check all directory arguments for consistency.
1367for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001371do
drh8b727472009-01-19 18:18:40 +00001372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001374 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001378 esac
drh8b727472009-01-19 18:18:40 +00001379 # Be sure to have absolute directory names.
1380 case $ac_val in
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 esac
1384 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1385 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001386done
drh75897232000-05-29 14:26:00 +00001387
drh71eb93e2001-09-28 01:34:43 +00001388# There might be people who depend on the old broken behavior: `$host'
1389# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001390# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001391build=$build_alias
1392host=$host_alias
1393target=$target_alias
drh75897232000-05-29 14:26:00 +00001394
a.rottmann84e63352003-03-24 09:42:16 +00001395# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001396if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
drh8b727472009-01-19 18:18:40 +00001399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
drh71eb93e2001-09-28 01:34:43 +00001400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1403 fi
1404fi
1405
1406ac_tool_prefix=
1407test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001410
a.rottmann84e63352003-03-24 09:42:16 +00001411
drh8b727472009-01-19 18:18:40 +00001412ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413ac_ls_di=`ls -di .` &&
1414ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
vapier6acb2cf2009-01-28 04:46:28 +00001415 { $as_echo "$as_me: error: working directory cannot be determined" >&2
drh8b727472009-01-19 18:18:40 +00001416 { (exit 1); exit 1; }; }
1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1419 { (exit 1); exit 1; }; }
1420
1421
drh75897232000-05-29 14:26:00 +00001422# Find the source files, if location was not specified.
1423if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431$as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001449 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001450 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001451 srcdir=..
1452 fi
1453else
1454 ac_srcdir_defaulted=no
1455fi
drh8b727472009-01-19 18:18:40 +00001456if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +00001459 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001460fi
drh8b727472009-01-19 18:18:40 +00001461ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462ac_abs_confdir=`(
1463 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
drh866108f2008-05-13 00:57:21 +00001464 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001465 pwd)`
1466# When building in place, set srcdir=.
1467if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1469fi
1470# Remove unnecessary trailing slashes from srcdir.
1471# Double slashes in file names in object file debugging info
1472# mess up M-x gdb in Emacs.
1473case $srcdir in
1474*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475esac
1476for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481done
drh75897232000-05-29 14:26:00 +00001482
drh71eb93e2001-09-28 01:34:43 +00001483#
1484# Report the --help message.
1485#
1486if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001489 cat <<_ACEOF
vapierd3dd12b2009-02-18 04:35:12 +00001490\`configure' configures sqlite 3.6.11 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001491
1492Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495VAR=VALUE. See below for descriptions of some of the useful variables.
1496
1497Defaults for the options are specified in brackets.
1498
1499Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509
drh71eb93e2001-09-28 01:34:43 +00001510Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001512 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001514 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001515
1516By default, \`make install' will install all the files in
1517\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519for instance \`--prefix=\$HOME'.
1520
1521For better control, use the options below.
1522
1523Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001543_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001544
a.rottmann84e63352003-03-24 09:42:16 +00001545 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001546
1547System types:
1548 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001551fi
1552
1553if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001554 case $ac_init_help in
vapierd3dd12b2009-02-18 04:35:12 +00001555 short | recursive ) echo "Configuration of sqlite 3.6.11:";;
mlcreechb87057f2008-03-06 07:19:20 +00001556 esac
a.rottmann84e63352003-03-24 09:42:16 +00001557 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001558
1559Optional Features:
drh8b727472009-01-19 18:18:40 +00001560 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001567 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001568 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001569 --enable-threadsafe Support threadsafe operation
1570 --enable-cross-thread-connections
1571 Allow connection sharing across threads
1572 --enable-threads-override-locks
1573 Threads can override each others locks
1574 --enable-releasemode Support libtool link to release mode
1575 --enable-tempstore Use an in-ram database for temporary tables
1576 (never,no,yes,always)
1577 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001578 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001579 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001580 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001581 separately
mlcreecha4edab02008-03-06 04:14:17 +00001582 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001583 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001584
1585Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001588 --with-pic try to use only PIC/non-PIC objects [default=use
1589 both]
mlcreech636a9952008-05-05 22:52:56 +00001590 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001591 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001592 --with-tcl=DIR directory containing tcl configuration
1593 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001594 --with-readline-lib specify readline library
1595 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001596
1597Some influential environment variables:
1598 CC C compiler command
1599 CFLAGS C compiler flags
1600 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1601 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001602 LIBS libraries to pass to the linker, e.g. -l<library>
1603 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1604 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001605 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001606 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001607
1608Use these variables to override the choices made by `configure' or to help
1609it to find libraries and programs with nonstandard names/locations.
1610
a.rottmann84e63352003-03-24 09:42:16 +00001611_ACEOF
drh8b727472009-01-19 18:18:40 +00001612ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
a.rottmann84e63352003-03-24 09:42:16 +00001621 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001622
drh8b727472009-01-19 18:18:40 +00001623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001638
a.rottmann84e63352003-03-24 09:42:16 +00001639case $srcdir in
drh8b727472009-01-19 18:18:40 +00001640 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001641 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001645 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001652esac
drh8b727472009-01-19 18:18:40 +00001653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001654
drh8b727472009-01-19 18:18:40 +00001655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001663 else
drh8b727472009-01-19 18:18:40 +00001664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001667 done
1668fi
1669
drh8b727472009-01-19 18:18:40 +00001670test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001671if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001672 cat <<\_ACEOF
vapierd3dd12b2009-02-18 04:35:12 +00001673sqlite configure 3.6.11
vapier6acb2cf2009-01-28 04:46:28 +00001674generated by GNU Autoconf 2.63
drh71eb93e2001-09-28 01:34:43 +00001675
drh8b727472009-01-19 18:18:40 +00001676Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16772002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001678This configure script is free software; the Free Software Foundation
1679gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001680_ACEOF
drh8b727472009-01-19 18:18:40 +00001681 exit
drh71eb93e2001-09-28 01:34:43 +00001682fi
drh8b727472009-01-19 18:18:40 +00001683cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001684This file contains any messages produced by compilers while
1685running configure, to aid debugging if configure makes a mistake.
1686
vapierd3dd12b2009-02-18 04:35:12 +00001687It was created by sqlite $as_me 3.6.11, which was
vapier6acb2cf2009-01-28 04:46:28 +00001688generated by GNU Autoconf 2.63. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001689
1690 $ $0 $@
1691
a.rottmann84e63352003-03-24 09:42:16 +00001692_ACEOF
drh8b727472009-01-19 18:18:40 +00001693exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001694{
1695cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001696## --------- ##
1697## Platform. ##
1698## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001699
1700hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705
1706/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1708
1709/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1710/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1711/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00001712/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001713/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1714/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1715/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1716
drh71eb93e2001-09-28 01:34:43 +00001717_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001718
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +00001724 $as_echo "PATH: $as_dir"
a.rottmann84e63352003-03-24 09:42:16 +00001725done
drh8b727472009-01-19 18:18:40 +00001726IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001727
drh71eb93e2001-09-28 01:34:43 +00001728} >&5
1729
a.rottmann84e63352003-03-24 09:42:16 +00001730cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001731
a.rottmann84e63352003-03-24 09:42:16 +00001732
1733## ----------- ##
1734## Core tests. ##
1735## ----------- ##
1736
1737_ACEOF
1738
drh71eb93e2001-09-28 01:34:43 +00001739
1740# Keep a trace of the command line.
1741# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001742# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001743# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001744# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001745ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001746ac_configure_args0=
1747ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001748ac_must_keep_next=false
1749for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001750do
a.rottmann84e63352003-03-24 09:42:16 +00001751 for ac_arg
1752 do
1753 case $ac_arg in
1754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756 | -silent | --silent | --silen | --sile | --sil)
1757 continue ;;
drh8b727472009-01-19 18:18:40 +00001758 *\'*)
1759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001760 esac
1761 case $ac_pass in
1762 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1763 2)
1764 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1765 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001766 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001767 else
a.rottmann964dbb12004-02-26 19:47:42 +00001768 case $ac_arg in
1769 *=* | --config-cache | -C | -disable-* | --disable-* \
1770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772 | -with-* | --with-* | -without-* | --without-* | --x)
1773 case "$ac_configure_args0 " in
1774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1775 esac
1776 ;;
1777 -* ) ac_must_keep_next=true ;;
1778 esac
a.rottmann84e63352003-03-24 09:42:16 +00001779 fi
drh8b727472009-01-19 18:18:40 +00001780 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001781 ;;
1782 esac
1783 done
drh71eb93e2001-09-28 01:34:43 +00001784done
a.rottmann84e63352003-03-24 09:42:16 +00001785$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1786$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001787
1788# When interrupted or exit'd, cleanup temporary files, and complete
1789# config.log. We remove comments because anyway the quotes in there
1790# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00001791# WARNING: Use '\'' to represent an apostrophe within the trap.
1792# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001793trap 'exit_status=$?
1794 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001795 {
1796 echo
1797
1798 cat <<\_ASBOX
1799## ---------------- ##
1800## Cache variables. ##
1801## ---------------- ##
1802_ASBOX
1803 echo
1804 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00001805(
1806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1807 eval ac_val=\$$ac_var
1808 case $ac_val in #(
1809 *${as_nl}*)
1810 case $ac_var in #(
vapier6acb2cf2009-01-28 04:46:28 +00001811 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1812$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00001813 esac
1814 case $ac_var in #(
1815 _ | IFS | as_nl) ;; #(
1816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1817 *) $as_unset $ac_var ;;
1818 esac ;;
1819 esac
1820 done
drh71eb93e2001-09-28 01:34:43 +00001821 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00001822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1823 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001824 sed -n \
drh8b727472009-01-19 18:18:40 +00001825 "s/'\''/'\''\\\\'\'''\''/g;
1826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1827 ;; #(
drh866108f2008-05-13 00:57:21 +00001828 *)
drh8b727472009-01-19 18:18:40 +00001829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00001830 ;;
drh8b727472009-01-19 18:18:40 +00001831 esac |
1832 sort
1833)
a.rottmann84e63352003-03-24 09:42:16 +00001834 echo
1835
1836 cat <<\_ASBOX
1837## ----------------- ##
1838## Output variables. ##
1839## ----------------- ##
1840_ASBOX
1841 echo
1842 for ac_var in $ac_subst_vars
1843 do
drh8b727472009-01-19 18:18:40 +00001844 eval ac_val=\$$ac_var
1845 case $ac_val in
1846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 esac
1848 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001849 done | sort
1850 echo
1851
1852 if test -n "$ac_subst_files"; then
1853 cat <<\_ASBOX
drh8b727472009-01-19 18:18:40 +00001854## ------------------- ##
1855## File substitutions. ##
1856## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001857_ASBOX
1858 echo
1859 for ac_var in $ac_subst_files
1860 do
drh8b727472009-01-19 18:18:40 +00001861 eval ac_val=\$$ac_var
1862 case $ac_val in
1863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864 esac
1865 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001866 done | sort
1867 echo
1868 fi
1869
1870 if test -s confdefs.h; then
1871 cat <<\_ASBOX
1872## ----------- ##
1873## confdefs.h. ##
1874## ----------- ##
1875_ASBOX
1876 echo
drh8b727472009-01-19 18:18:40 +00001877 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001878 echo
1879 fi
1880 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00001881 $as_echo "$as_me: caught signal $ac_signal"
1882 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001883 } >&5
drh8b727472009-01-19 18:18:40 +00001884 rm -f core *.core core.conftest.* &&
1885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001886 exit $exit_status
drh8b727472009-01-19 18:18:40 +00001887' 0
drh71eb93e2001-09-28 01:34:43 +00001888for ac_signal in 1 2 13 15; do
1889 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1890done
1891ac_signal=0
1892
1893# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00001894rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001895
a.rottmann84e63352003-03-24 09:42:16 +00001896# Predefined preprocessor variables.
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_NAME "$PACKAGE_NAME"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_VERSION "$PACKAGE_VERSION"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_STRING "$PACKAGE_STRING"
1915_ACEOF
1916
1917
1918cat >>confdefs.h <<_ACEOF
1919#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1920_ACEOF
1921
1922
drh71eb93e2001-09-28 01:34:43 +00001923# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00001924# Prefer an explicitly selected file to automatically selected ones.
1925ac_site_file1=NONE
1926ac_site_file2=NONE
1927if test -n "$CONFIG_SITE"; then
1928 ac_site_file1=$CONFIG_SITE
1929elif test "x$prefix" != xNONE; then
1930 ac_site_file1=$prefix/share/config.site
1931 ac_site_file2=$prefix/etc/config.site
1932else
1933 ac_site_file1=$ac_default_prefix/share/config.site
1934 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00001935fi
drh8b727472009-01-19 18:18:40 +00001936for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1937do
1938 test "x$ac_site_file" = xNONE && continue
drh75897232000-05-29 14:26:00 +00001939 if test -r "$ac_site_file"; then
drh8b727472009-01-19 18:18:40 +00001940 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1941$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001942 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001943 . "$ac_site_file"
1944 fi
1945done
1946
1947if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001948 # Some versions of bash will fail to source /dev/null (special
1949 # files actually), so we avoid doing that.
1950 if test -f "$cache_file"; then
drh8b727472009-01-19 18:18:40 +00001951 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1952$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001953 case $cache_file in
drh8b727472009-01-19 18:18:40 +00001954 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1955 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001956 esac
1957 fi
drh75897232000-05-29 14:26:00 +00001958else
drh8b727472009-01-19 18:18:40 +00001959 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1960$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001961 >$cache_file
1962fi
1963
1964# Check that the precious variables saved in the cache have kept the same
1965# value.
1966ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00001967for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001968 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1969 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00001970 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1971 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001972 case $ac_old_set,$ac_new_set in
1973 set,)
drh8b727472009-01-19 18:18:40 +00001974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1975$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001976 ac_cache_corrupted=: ;;
1977 ,set)
drh8b727472009-01-19 18:18:40 +00001978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1979$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001980 ac_cache_corrupted=: ;;
1981 ,);;
1982 *)
1983 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00001984 # differences in whitespace do not lead to failure.
1985 ac_old_val_w=`echo x $ac_old_val`
1986 ac_new_val_w=`echo x $ac_new_val`
1987 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1988 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990 ac_cache_corrupted=:
1991 else
1992 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1993$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1994 eval $ac_var=\$ac_old_val
1995 fi
1996 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1997$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1998 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1999$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002000 fi;;
2001 esac
a.rottmann84e63352003-03-24 09:42:16 +00002002 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002005 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002011 esac
2012 fi
2013done
2014if $ac_cache_corrupted; then
vapier6acb2cf2009-01-28 04:46:28 +00002015 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh8b727472009-01-19 18:18:40 +00002017 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2018$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2019 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2020$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002021 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00002022fi
2023
drh8b727472009-01-19 18:18:40 +00002024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
drh75897232000-05-29 14:26:00 +00002048ac_ext=c
drh75897232000-05-29 14:26:00 +00002049ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002053
a.rottmann84e63352003-03-24 09:42:16 +00002054
2055
drh75897232000-05-29 14:26:00 +00002056# The following RCS revision string applies to configure.in
vapierd3dd12b2009-02-18 04:35:12 +00002057# $Revision: 1.68 $
drh75897232000-05-29 14:26:00 +00002058
2059#########
drh71eb93e2001-09-28 01:34:43 +00002060# Programs needed
drh75897232000-05-29 14:26:00 +00002061#
mlcreech636a9952008-05-05 22:52:56 +00002062case `pwd` in
2063 *\ * | *\ *)
drh8b727472009-01-19 18:18:40 +00002064 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2065$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002066esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002067
mlcreech94984912008-03-04 19:03:08 +00002068
mlcreech636a9952008-05-05 22:52:56 +00002069
vapier6acb2cf2009-01-28 04:46:28 +00002070macro_version='2.2.6'
2071macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002072
mlcreech94984912008-03-04 19:03:08 +00002073
mlcreech94984912008-03-04 19:03:08 +00002074
a.rottmann9bc8b932004-02-29 15:18:31 +00002075
mlcreech636a9952008-05-05 22:52:56 +00002076
2077
2078
2079
2080
2081
2082
2083
2084
2085ltmain="$ac_aux_dir/ltmain.sh"
2086
drh71eb93e2001-09-28 01:34:43 +00002087ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002088for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2089 if test -f "$ac_dir/install-sh"; then
drh71eb93e2001-09-28 01:34:43 +00002090 ac_aux_dir=$ac_dir
2091 ac_install_sh="$ac_aux_dir/install-sh -c"
2092 break
drh8b727472009-01-19 18:18:40 +00002093 elif test -f "$ac_dir/install.sh"; then
drh71eb93e2001-09-28 01:34:43 +00002094 ac_aux_dir=$ac_dir
2095 ac_install_sh="$ac_aux_dir/install.sh -c"
2096 break
drh8b727472009-01-19 18:18:40 +00002097 elif test -f "$ac_dir/shtool"; then
drh71eb93e2001-09-28 01:34:43 +00002098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/shtool install -c"
2100 break
2101 fi
2102done
2103if test -z "$ac_aux_dir"; then
drh8b727472009-01-19 18:18:40 +00002104 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2105$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002106 { (exit 1); exit 1; }; }
2107fi
drh8b727472009-01-19 18:18:40 +00002108
2109# These three variables are undocumented and unsupported,
2110# and are intended to be withdrawn in a future Autoconf release.
2111# They can cause serious problems if a builder's source tree is in a directory
2112# whose full name contains unusual characters.
2113ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2114ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2115ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2116
drh71eb93e2001-09-28 01:34:43 +00002117
2118# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002119$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2120 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2121$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002122 { (exit 1); exit 1; }; }
2123
drh8b727472009-01-19 18:18:40 +00002124{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2125$as_echo_n "checking build system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002126if test "${ac_cv_build+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002127 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002128else
drh8b727472009-01-19 18:18:40 +00002129 ac_build_alias=$build_alias
2130test "x$ac_build_alias" = x &&
2131 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2132test "x$ac_build_alias" = x &&
2133 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2134$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002135 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002136ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2137 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2138$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002139 { (exit 1); exit 1; }; }
2140
2141fi
drh8b727472009-01-19 18:18:40 +00002142{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2143$as_echo "$ac_cv_build" >&6; }
2144case $ac_cv_build in
2145*-*-*) ;;
2146*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2147$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2148 { (exit 1); exit 1; }; };;
2149esac
drh71eb93e2001-09-28 01:34:43 +00002150build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002151ac_save_IFS=$IFS; IFS='-'
2152set x $ac_cv_build
2153shift
2154build_cpu=$1
2155build_vendor=$2
2156shift; shift
2157# Remember, the first character of IFS is used to create $*,
2158# except with old shells:
2159build_os=$*
2160IFS=$ac_save_IFS
2161case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002162
a.rottmann84e63352003-03-24 09:42:16 +00002163
drh8b727472009-01-19 18:18:40 +00002164{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2165$as_echo_n "checking host system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002166if test "${ac_cv_host+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002167 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002168else
drh8b727472009-01-19 18:18:40 +00002169 if test "x$host_alias" = x; then
2170 ac_cv_host=$ac_cv_build
2171else
2172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2173 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2174$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002175 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002176fi
drh71eb93e2001-09-28 01:34:43 +00002177
2178fi
drh8b727472009-01-19 18:18:40 +00002179{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2180$as_echo "$ac_cv_host" >&6; }
2181case $ac_cv_host in
2182*-*-*) ;;
2183*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2184$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2185 { (exit 1); exit 1; }; };;
2186esac
drh71eb93e2001-09-28 01:34:43 +00002187host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002188ac_save_IFS=$IFS; IFS='-'
2189set x $ac_cv_host
2190shift
2191host_cpu=$1
2192host_vendor=$2
2193shift; shift
2194# Remember, the first character of IFS is used to create $*,
2195# except with old shells:
2196host_os=$*
2197IFS=$ac_save_IFS
2198case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002199
a.rottmann84e63352003-03-24 09:42:16 +00002200
drh71eb93e2001-09-28 01:34:43 +00002201ac_ext=c
2202ac_cpp='$CPP $CPPFLAGS'
2203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2205ac_compiler_gnu=$ac_cv_c_compiler_gnu
2206if test -n "$ac_tool_prefix"; then
2207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2208set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002209{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2210$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002211if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002212 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002213else
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2216else
a.rottmann84e63352003-03-24 09:42:16 +00002217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218for as_dir in $PATH
2219do
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002223 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 +00002224 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh8b727472009-01-19 18:18:40 +00002225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002226 break 2
2227 fi
2228done
drh71eb93e2001-09-28 01:34:43 +00002229done
drh8b727472009-01-19 18:18:40 +00002230IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002231
2232fi
2233fi
2234CC=$ac_cv_prog_CC
2235if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002236 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2237$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002238else
drh8b727472009-01-19 18:18:40 +00002239 { $as_echo "$as_me:$LINENO: result: no" >&5
2240$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002241fi
2242
drh8b727472009-01-19 18:18:40 +00002243
drh71eb93e2001-09-28 01:34:43 +00002244fi
2245if test -z "$ac_cv_prog_CC"; then
2246 ac_ct_CC=$CC
2247 # Extract the first word of "gcc", so it can be a program name with args.
2248set dummy gcc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002249{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2250$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002251if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002252 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002253else
2254 if test -n "$ac_ct_CC"; then
2255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2256else
a.rottmann84e63352003-03-24 09:42:16 +00002257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002263 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 +00002264 ac_cv_prog_ac_ct_CC="gcc"
drh8b727472009-01-19 18:18:40 +00002265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002266 break 2
2267 fi
2268done
drh71eb93e2001-09-28 01:34:43 +00002269done
drh8b727472009-01-19 18:18:40 +00002270IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002271
2272fi
2273fi
2274ac_ct_CC=$ac_cv_prog_ac_ct_CC
2275if test -n "$ac_ct_CC"; then
drh8b727472009-01-19 18:18:40 +00002276 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2277$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002278else
drh8b727472009-01-19 18:18:40 +00002279 { $as_echo "$as_me:$LINENO: result: no" >&5
2280$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002281fi
2282
drh8b727472009-01-19 18:18:40 +00002283 if test "x$ac_ct_CC" = x; then
2284 CC=""
2285 else
2286 case $cross_compiling:$ac_tool_warned in
2287yes:)
vapier6acb2cf2009-01-28 04:46:28 +00002288{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002290ac_tool_warned=yes ;;
2291esac
2292 CC=$ac_ct_CC
2293 fi
drh71eb93e2001-09-28 01:34:43 +00002294else
2295 CC="$ac_cv_prog_CC"
2296fi
2297
2298if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002299 if test -n "$ac_tool_prefix"; then
2300 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002301set dummy ${ac_tool_prefix}cc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002302{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2303$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002304if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002305 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002306else
2307 if test -n "$CC"; then
2308 ac_cv_prog_CC="$CC" # Let the user override the test.
2309else
a.rottmann84e63352003-03-24 09:42:16 +00002310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311for as_dir in $PATH
2312do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002316 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 +00002317 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh8b727472009-01-19 18:18:40 +00002318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002319 break 2
2320 fi
2321done
drh71eb93e2001-09-28 01:34:43 +00002322done
drh8b727472009-01-19 18:18:40 +00002323IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002324
2325fi
2326fi
2327CC=$ac_cv_prog_CC
2328if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002329 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2330$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002331else
drh8b727472009-01-19 18:18:40 +00002332 { $as_echo "$as_me:$LINENO: result: no" >&5
2333$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002334fi
2335
drh8b727472009-01-19 18:18:40 +00002336
a.rottmann84e63352003-03-24 09:42:16 +00002337 fi
drh71eb93e2001-09-28 01:34:43 +00002338fi
2339if test -z "$CC"; then
2340 # Extract the first word of "cc", so it can be a program name with args.
2341set dummy cc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002342{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2343$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002344if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002345 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002346else
2347 if test -n "$CC"; then
2348 ac_cv_prog_CC="$CC" # Let the user override the test.
2349else
2350 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002357 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 +00002358 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2359 ac_prog_rejected=yes
2360 continue
2361 fi
2362 ac_cv_prog_CC="cc"
drh8b727472009-01-19 18:18:40 +00002363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002364 break 2
2365 fi
2366done
drh71eb93e2001-09-28 01:34:43 +00002367done
drh8b727472009-01-19 18:18:40 +00002368IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002369
2370if test $ac_prog_rejected = yes; then
2371 # We found a bogon in the path, so make sure we never use it.
2372 set dummy $ac_cv_prog_CC
2373 shift
2374 if test $# != 0; then
2375 # We chose a different compiler from the bogus one.
2376 # However, it has the same basename, so the bogon will be chosen
2377 # first if we set CC to just the basename; use the full file name.
2378 shift
a.rottmann84e63352003-03-24 09:42:16 +00002379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002380 fi
2381fi
2382fi
2383fi
2384CC=$ac_cv_prog_CC
2385if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002386 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2387$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002388else
drh8b727472009-01-19 18:18:40 +00002389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002391fi
2392
drh8b727472009-01-19 18:18:40 +00002393
drh71eb93e2001-09-28 01:34:43 +00002394fi
2395if test -z "$CC"; then
2396 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002397 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002398 do
2399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2402$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002403if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002404 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002405else
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2408else
a.rottmann84e63352003-03-24 09:42:16 +00002409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002415 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 +00002416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh8b727472009-01-19 18:18:40 +00002417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002418 break 2
2419 fi
2420done
drh71eb93e2001-09-28 01:34:43 +00002421done
drh8b727472009-01-19 18:18:40 +00002422IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002423
2424fi
2425fi
2426CC=$ac_cv_prog_CC
2427if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002428 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2429$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002430else
drh8b727472009-01-19 18:18:40 +00002431 { $as_echo "$as_me:$LINENO: result: no" >&5
2432$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002433fi
2434
drh8b727472009-01-19 18:18:40 +00002435
drh71eb93e2001-09-28 01:34:43 +00002436 test -n "$CC" && break
2437 done
2438fi
2439if test -z "$CC"; then
2440 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002441 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002442do
2443 # Extract the first word of "$ac_prog", so it can be a program name with args.
2444set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002445{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2446$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002448 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002449else
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452else
a.rottmann84e63352003-03-24 09:42:16 +00002453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002459 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 +00002460 ac_cv_prog_ac_ct_CC="$ac_prog"
drh8b727472009-01-19 18:18:40 +00002461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002462 break 2
2463 fi
2464done
drh71eb93e2001-09-28 01:34:43 +00002465done
drh8b727472009-01-19 18:18:40 +00002466IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002467
2468fi
2469fi
2470ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471if test -n "$ac_ct_CC"; then
drh8b727472009-01-19 18:18:40 +00002472 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002474else
drh8b727472009-01-19 18:18:40 +00002475 { $as_echo "$as_me:$LINENO: result: no" >&5
2476$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002477fi
2478
drh8b727472009-01-19 18:18:40 +00002479
drh71eb93e2001-09-28 01:34:43 +00002480 test -n "$ac_ct_CC" && break
2481done
2482
drh8b727472009-01-19 18:18:40 +00002483 if test "x$ac_ct_CC" = x; then
2484 CC=""
2485 else
2486 case $cross_compiling:$ac_tool_warned in
2487yes:)
vapier6acb2cf2009-01-28 04:46:28 +00002488{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002490ac_tool_warned=yes ;;
2491esac
2492 CC=$ac_ct_CC
2493 fi
drh71eb93e2001-09-28 01:34:43 +00002494fi
2495
2496fi
2497
a.rottmann84e63352003-03-24 09:42:16 +00002498
vapier6acb2cf2009-01-28 04:46:28 +00002499test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501{ { $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;}
vapier6acb2cf2009-01-28 04:46:28 +00002505 { (exit 1); exit 1; }; }; }
drh71eb93e2001-09-28 01:34:43 +00002506
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
vapier6acb2cf2009-01-28 04:46:28 +00002635{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh8b727472009-01-19 18:18:40 +00002637{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002638See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002639$as_echo "$as_me: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002640See \`config.log' for more details." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00002641 { (exit 77); exit 77; }; }; }
drh71eb93e2001-09-28 01:34:43 +00002642fi
2643
2644ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002645
drh8b727472009-01-19 18:18:40 +00002646# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002647# the compiler is broken, or we cross compile.
drh8b727472009-01-19 18:18:40 +00002648{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2649$as_echo_n "checking whether the C compiler works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002650# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2651# If not cross compiling, check that we can run a simple program.
2652if test "$cross_compiling" != yes; then
2653 if { ac_try='./$ac_file'
drh8b727472009-01-19 18:18:40 +00002654 { (case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2657esac
2658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2659$as_echo "$ac_try_echo") >&5
2660 (eval "$ac_try") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002661 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002663 (exit $ac_status); }; }; then
2664 cross_compiling=no
2665 else
2666 if test "$cross_compiling" = maybe; then
2667 cross_compiling=yes
2668 else
vapier6acb2cf2009-01-28 04:46:28 +00002669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002672If you meant to cross compile, use \`--host'.
2673See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002674$as_echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002675If you meant to cross compile, use \`--host'.
2676See \`config.log' for more details." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00002677 { (exit 1); exit 1; }; }; }
drh71eb93e2001-09-28 01:34:43 +00002678 fi
2679 fi
2680fi
drh8b727472009-01-19 18:18:40 +00002681{ $as_echo "$as_me:$LINENO: result: yes" >&5
2682$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002683
drh8b727472009-01-19 18:18:40 +00002684rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002685ac_clean_files=$ac_clean_files_save
drh8b727472009-01-19 18:18:40 +00002686# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002687# the compiler is broken, or we cross compile.
drh8b727472009-01-19 18:18:40 +00002688{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2689$as_echo_n "checking whether we are cross compiling... " >&6; }
2690{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2691$as_echo "$cross_compiling" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002692
drh8b727472009-01-19 18:18:40 +00002693{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2694$as_echo_n "checking for suffix of executables... " >&6; }
2695if { (ac_try="$ac_link"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701$as_echo "$ac_try_echo") >&5
2702 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002703 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002705 (exit $ac_status); }; then
2706 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2707# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2708# work properly (i.e., refer to `conftest.exe'), while it won't with
2709# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002710for ac_file in conftest.exe conftest conftest.*; do
2711 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002712 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002714 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002715 break;;
drh71eb93e2001-09-28 01:34:43 +00002716 * ) break;;
2717 esac
2718done
2719else
vapier6acb2cf2009-01-28 04:46:28 +00002720 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002723See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002724$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002725See \`config.log' for more details." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00002726 { (exit 1); exit 1; }; }; }
drh71eb93e2001-09-28 01:34:43 +00002727fi
2728
2729rm -f conftest$ac_cv_exeext
drh8b727472009-01-19 18:18:40 +00002730{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2731$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002732
2733rm -f conftest.$ac_ext
2734EXEEXT=$ac_cv_exeext
2735ac_exeext=$EXEEXT
drh8b727472009-01-19 18:18:40 +00002736{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2737$as_echo_n "checking for suffix of object files... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002738if test "${ac_cv_objext+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002739 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002740else
2741 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002742/* confdefs.h. */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
2746/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002747
2748int
2749main ()
2750{
2751
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756rm -f conftest.o conftest.obj
drh8b727472009-01-19 18:18:40 +00002757if { (ac_try="$ac_compile"
2758case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761esac
2762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2763$as_echo "$ac_try_echo") >&5
2764 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002765 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002767 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002768 for ac_file in conftest.o conftest.obj conftest.*; do
2769 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002770 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00002772 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2773 break;;
2774 esac
2775done
2776else
drh8b727472009-01-19 18:18:40 +00002777 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002778sed 's/^/| /' conftest.$ac_ext >&5
2779
vapier6acb2cf2009-01-28 04:46:28 +00002780{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh8b727472009-01-19 18:18:40 +00002782{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002783See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002784$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002785See \`config.log' for more details." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00002786 { (exit 1); exit 1; }; }; }
drh71eb93e2001-09-28 01:34:43 +00002787fi
2788
2789rm -f conftest.$ac_cv_objext conftest.$ac_ext
2790fi
drh8b727472009-01-19 18:18:40 +00002791{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2792$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002793OBJEXT=$ac_cv_objext
2794ac_objext=$OBJEXT
drh8b727472009-01-19 18:18:40 +00002795{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2796$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002797if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002798 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002799else
2800 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002801/* confdefs.h. */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002806
2807int
2808main ()
2809{
2810#ifndef __GNUC__
2811 choke me
2812#endif
2813
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00002819if { (ac_try="$ac_compile"
2820case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823esac
2824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2825$as_echo "$ac_try_echo") >&5
2826 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002827 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00002831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } && {
2833 test -z "$ac_c_werror_flag" ||
2834 test ! -s conftest.err
2835 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002836 ac_compiler_gnu=yes
2837else
drh8b727472009-01-19 18:18:40 +00002838 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002839sed 's/^/| /' conftest.$ac_ext >&5
2840
drh8b727472009-01-19 18:18:40 +00002841 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002842fi
drh8b727472009-01-19 18:18:40 +00002843
2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002845ac_cv_c_compiler_gnu=$ac_compiler_gnu
2846
2847fi
drh8b727472009-01-19 18:18:40 +00002848{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2849$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2850if test $ac_compiler_gnu = yes; then
2851 GCC=yes
2852else
2853 GCC=
2854fi
drh71eb93e2001-09-28 01:34:43 +00002855ac_test_CFLAGS=${CFLAGS+set}
2856ac_save_CFLAGS=$CFLAGS
drh8b727472009-01-19 18:18:40 +00002857{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2858$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002859if test "${ac_cv_prog_cc_g+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002860 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002861else
drh8b727472009-01-19 18:18:40 +00002862 ac_save_c_werror_flag=$ac_c_werror_flag
2863 ac_c_werror_flag=yes
2864 ac_cv_prog_cc_g=no
2865 CFLAGS="-g"
2866 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002867/* confdefs.h. */
2868_ACEOF
2869cat confdefs.h >>conftest.$ac_ext
2870cat >>conftest.$ac_ext <<_ACEOF
2871/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002872
2873int
2874main ()
2875{
2876
2877 ;
2878 return 0;
2879}
2880_ACEOF
2881rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00002882if { (ac_try="$ac_compile"
2883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2888$as_echo "$ac_try_echo") >&5
2889 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002890 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00002894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } && {
2896 test -z "$ac_c_werror_flag" ||
2897 test ! -s conftest.err
2898 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002899 ac_cv_prog_cc_g=yes
2900else
drh8b727472009-01-19 18:18:40 +00002901 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002902sed 's/^/| /' conftest.$ac_ext >&5
2903
drh8b727472009-01-19 18:18:40 +00002904 CFLAGS=""
2905 cat >conftest.$ac_ext <<_ACEOF
2906/* confdefs.h. */
2907_ACEOF
2908cat confdefs.h >>conftest.$ac_ext
2909cat >>conftest.$ac_ext <<_ACEOF
2910/* end confdefs.h. */
2911
2912int
2913main ()
2914{
2915
2916 ;
2917 return 0;
2918}
2919_ACEOF
2920rm -f conftest.$ac_objext
2921if { (ac_try="$ac_compile"
2922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927$as_echo "$ac_try_echo") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_c_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.$ac_objext; then
2938 :
2939else
2940 $as_echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 ac_c_werror_flag=$ac_save_c_werror_flag
2944 CFLAGS="-g"
2945 cat >conftest.$ac_ext <<_ACEOF
2946/* confdefs.h. */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h. */
2951
2952int
2953main ()
2954{
2955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960rm -f conftest.$ac_objext
2961if { (ac_try="$ac_compile"
2962case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2967$as_echo "$ac_try_echo") >&5
2968 (eval "$ac_compile") 2>conftest.er1
2969 ac_status=$?
2970 grep -v '^ *+' conftest.er1 >conftest.err
2971 rm -f conftest.er1
2972 cat conftest.err >&5
2973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } && {
2975 test -z "$ac_c_werror_flag" ||
2976 test ! -s conftest.err
2977 } && test -s conftest.$ac_objext; then
2978 ac_cv_prog_cc_g=yes
2979else
2980 $as_echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983
drh71eb93e2001-09-28 01:34:43 +00002984fi
drh8b727472009-01-19 18:18:40 +00002985
2986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002987fi
drh8b727472009-01-19 18:18:40 +00002988
2989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990fi
2991
2992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_c_werror_flag=$ac_save_c_werror_flag
2994fi
2995{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2996$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002997if test "$ac_test_CFLAGS" = set; then
2998 CFLAGS=$ac_save_CFLAGS
2999elif test $ac_cv_prog_cc_g = yes; then
3000 if test "$GCC" = yes; then
3001 CFLAGS="-g -O2"
3002 else
3003 CFLAGS="-g"
3004 fi
3005else
3006 if test "$GCC" = yes; then
3007 CFLAGS="-O2"
3008 else
3009 CFLAGS=
3010 fi
3011fi
drh8b727472009-01-19 18:18:40 +00003012{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3013$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3014if test "${ac_cv_prog_cc_c89+set}" = set; then
3015 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003016else
drh8b727472009-01-19 18:18:40 +00003017 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003018ac_save_CC=$CC
3019cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003020/* confdefs.h. */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h. */
3025#include <stdarg.h>
3026#include <stdio.h>
3027#include <sys/types.h>
3028#include <sys/stat.h>
3029/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3030struct buf { int x; };
3031FILE * (*rcsopen) (struct buf *, struct stat *, int);
3032static char *e (p, i)
3033 char **p;
3034 int i;
3035{
3036 return p[i];
3037}
3038static char *f (char * (*g) (char **, int), char **p, ...)
3039{
3040 char *s;
3041 va_list v;
3042 va_start (v,p);
3043 s = g (p, va_arg (v,int));
3044 va_end (v);
3045 return s;
3046}
a.rottmann964dbb12004-02-26 19:47:42 +00003047
3048/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3049 function prototypes and stuff, but not '\xHH' hex character constants.
3050 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003051 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003052 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3053 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003054 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003055int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3056
drh8b727472009-01-19 18:18:40 +00003057/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3058 inside strings and character constants. */
3059#define FOO(x) 'x'
3060int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3061
a.rottmann84e63352003-03-24 09:42:16 +00003062int test (int i, double x);
3063struct s1 {int (*f) (int a);};
3064struct s2 {int (*f) (double a);};
3065int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3066int argc;
3067char **argv;
3068int
3069main ()
3070{
3071return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3072 ;
3073 return 0;
3074}
3075_ACEOF
drh8b727472009-01-19 18:18:40 +00003076for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3077 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003078do
3079 CC="$ac_save_CC $ac_arg"
3080 rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00003081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3087$as_echo "$ac_try_echo") >&5
3088 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003089 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00003093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003099else
drh8b727472009-01-19 18:18:40 +00003100 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003101sed 's/^/| /' conftest.$ac_ext >&5
3102
drh8b727472009-01-19 18:18:40 +00003103
a.rottmann84e63352003-03-24 09:42:16 +00003104fi
drh8b727472009-01-19 18:18:40 +00003105
3106rm -f core conftest.err conftest.$ac_objext
3107 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003108done
drh8b727472009-01-19 18:18:40 +00003109rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003110CC=$ac_save_CC
3111
3112fi
drh8b727472009-01-19 18:18:40 +00003113# AC_CACHE_VAL
3114case "x$ac_cv_prog_cc_c89" in
3115 x)
3116 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3117$as_echo "none needed" >&6; } ;;
3118 xno)
3119 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3120$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003121 *)
drh8b727472009-01-19 18:18:40 +00003122 CC="$CC $ac_cv_prog_cc_c89"
3123 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3124$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003125esac
3126
a.rottmann84e63352003-03-24 09:42:16 +00003127
drh71eb93e2001-09-28 01:34:43 +00003128ac_ext=c
3129ac_cpp='$CPP $CPPFLAGS'
3130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133
drh8b727472009-01-19 18:18:40 +00003134{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3135$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3136if test "${ac_cv_path_SED+set}" = set; then
3137 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003138else
drh8b727472009-01-19 18:18:40 +00003139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3140 for ac_i in 1 2 3 4 5 6 7; do
3141 ac_script="$ac_script$as_nl$ac_script"
3142 done
3143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3144 $as_unset ac_script || ac_script=
3145 if test -z "$SED"; then
3146 ac_path_SED_found=false
3147 # Loop through the user's path and test for each of PROGNAME-LIST
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +00003153 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003154 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3156 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3157# Check for GNU ac_path_SED and select it if it is found.
3158 # Check for GNU $ac_path_SED
3159case `"$ac_path_SED" --version 2>&1` in
3160*GNU*)
3161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3162*)
3163 ac_count=0
3164 $as_echo_n 0123456789 >"conftest.in"
3165 while :
3166 do
3167 cat "conftest.in" "conftest.in" >"conftest.tmp"
3168 mv "conftest.tmp" "conftest.in"
3169 cp "conftest.in" "conftest.nl"
3170 $as_echo '' >> "conftest.nl"
3171 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3173 ac_count=`expr $ac_count + 1`
3174 if test $ac_count -gt ${ac_path_SED_max-0}; then
3175 # Best one so far, save it but keep looking for a better one
3176 ac_cv_path_SED="$ac_path_SED"
3177 ac_path_SED_max=$ac_count
3178 fi
3179 # 10*(2^10) chars as input seems more than enough
3180 test $ac_count -gt 10 && break
3181 done
3182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3183esac
3184
3185 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003186 done
3187 done
3188done
mlcreech636a9952008-05-05 22:52:56 +00003189IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003190 if test -z "$ac_cv_path_SED"; then
3191 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3192$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3193 { (exit 1); exit 1; }; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003194 fi
drh8b727472009-01-19 18:18:40 +00003195else
3196 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003197fi
drh866108f2008-05-13 00:57:21 +00003198
drh8b727472009-01-19 18:18:40 +00003199fi
3200{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3201$as_echo "$ac_cv_path_SED" >&6; }
3202 SED="$ac_cv_path_SED"
3203 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003204
mlcreech636a9952008-05-05 22:52:56 +00003205test -z "$SED" && SED=sed
3206Xsed="$SED -e 1s/^X//"
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
drh8b727472009-01-19 18:18:40 +00003218{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3219$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3220if test "${ac_cv_path_GREP+set}" = set; then
3221 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003222else
drh8b727472009-01-19 18:18:40 +00003223 if test -z "$GREP"; then
3224 ac_path_GREP_found=false
3225 # Loop through the user's path and test for each of PROGNAME-LIST
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3228do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_prog in grep ggrep; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3235# Check for GNU ac_path_GREP and select it if it is found.
3236 # Check for GNU $ac_path_GREP
3237case `"$ac_path_GREP" --version 2>&1` in
3238*GNU*)
3239 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3240*)
3241 ac_count=0
3242 $as_echo_n 0123456789 >"conftest.in"
3243 while :
3244 do
3245 cat "conftest.in" "conftest.in" >"conftest.tmp"
3246 mv "conftest.tmp" "conftest.in"
3247 cp "conftest.in" "conftest.nl"
3248 $as_echo 'GREP' >> "conftest.nl"
3249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3251 ac_count=`expr $ac_count + 1`
3252 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3253 # Best one so far, save it but keep looking for a better one
3254 ac_cv_path_GREP="$ac_path_GREP"
3255 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003256 fi
drh8b727472009-01-19 18:18:40 +00003257 # 10*(2^10) chars as input seems more than enough
3258 test $ac_count -gt 10 && break
3259 done
3260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3261esac
3262
3263 $ac_path_GREP_found && break 3
3264 done
3265 done
3266done
3267IFS=$as_save_IFS
3268 if test -z "$ac_cv_path_GREP"; then
3269 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3270$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3271 { (exit 1); exit 1; }; }
3272 fi
3273else
3274 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003275fi
drh8b727472009-01-19 18:18:40 +00003276
3277fi
3278{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3279$as_echo "$ac_cv_path_GREP" >&6; }
3280 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003281
3282
drh8b727472009-01-19 18:18:40 +00003283{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3284$as_echo_n "checking for egrep... " >&6; }
3285if test "${ac_cv_path_EGREP+set}" = set; then
3286 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003287else
drh8b727472009-01-19 18:18:40 +00003288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3289 then ac_cv_path_EGREP="$GREP -E"
3290 else
3291 if test -z "$EGREP"; then
3292 ac_path_EGREP_found=false
3293 # Loop through the user's path and test for each of PROGNAME-LIST
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3296do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_prog in egrep; do
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3303# Check for GNU ac_path_EGREP and select it if it is found.
3304 # Check for GNU $ac_path_EGREP
3305case `"$ac_path_EGREP" --version 2>&1` in
3306*GNU*)
3307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3308*)
3309 ac_count=0
3310 $as_echo_n 0123456789 >"conftest.in"
3311 while :
3312 do
3313 cat "conftest.in" "conftest.in" >"conftest.tmp"
3314 mv "conftest.tmp" "conftest.in"
3315 cp "conftest.in" "conftest.nl"
3316 $as_echo 'EGREP' >> "conftest.nl"
3317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3319 ac_count=`expr $ac_count + 1`
3320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3321 # Best one so far, save it but keep looking for a better one
3322 ac_cv_path_EGREP="$ac_path_EGREP"
3323 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003324 fi
drh8b727472009-01-19 18:18:40 +00003325 # 10*(2^10) chars as input seems more than enough
3326 test $ac_count -gt 10 && break
3327 done
3328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3329esac
3330
3331 $ac_path_EGREP_found && break 3
3332 done
3333 done
3334done
3335IFS=$as_save_IFS
3336 if test -z "$ac_cv_path_EGREP"; then
3337 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3338$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3339 { (exit 1); exit 1; }; }
3340 fi
3341else
3342 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003343fi
drh8b727472009-01-19 18:18:40 +00003344
3345 fi
3346fi
3347{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3348$as_echo "$ac_cv_path_EGREP" >&6; }
3349 EGREP="$ac_cv_path_EGREP"
3350
3351
3352{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3353$as_echo_n "checking for fgrep... " >&6; }
3354if test "${ac_cv_path_FGREP+set}" = set; then
3355 $as_echo_n "(cached) " >&6
3356else
3357 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3358 then ac_cv_path_FGREP="$GREP -F"
3359 else
3360 if test -z "$FGREP"; then
3361 ac_path_FGREP_found=false
3362 # Loop through the user's path and test for each of PROGNAME-LIST
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_prog in fgrep; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3371 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3372# Check for GNU ac_path_FGREP and select it if it is found.
3373 # Check for GNU $ac_path_FGREP
3374case `"$ac_path_FGREP" --version 2>&1` in
3375*GNU*)
3376 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3377*)
3378 ac_count=0
3379 $as_echo_n 0123456789 >"conftest.in"
3380 while :
3381 do
3382 cat "conftest.in" "conftest.in" >"conftest.tmp"
3383 mv "conftest.tmp" "conftest.in"
3384 cp "conftest.in" "conftest.nl"
3385 $as_echo 'FGREP' >> "conftest.nl"
3386 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3388 ac_count=`expr $ac_count + 1`
3389 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3390 # Best one so far, save it but keep looking for a better one
3391 ac_cv_path_FGREP="$ac_path_FGREP"
3392 ac_path_FGREP_max=$ac_count
3393 fi
3394 # 10*(2^10) chars as input seems more than enough
3395 test $ac_count -gt 10 && break
3396 done
3397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3398esac
3399
3400 $ac_path_FGREP_found && break 3
3401 done
3402 done
3403done
3404IFS=$as_save_IFS
3405 if test -z "$ac_cv_path_FGREP"; then
3406 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3407$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3408 { (exit 1); exit 1; }; }
3409 fi
3410else
3411 ac_cv_path_FGREP=$FGREP
3412fi
3413
3414 fi
3415fi
3416{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3417$as_echo "$ac_cv_path_FGREP" >&6; }
3418 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003419
3420
3421test -z "$GREP" && GREP=grep
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
a.rottmann9bc8b932004-02-29 15:18:31 +00003438
3439
a.rottmann84e63352003-03-24 09:42:16 +00003440
drh8b727472009-01-19 18:18:40 +00003441# Check whether --with-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00003442if test "${with_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003443 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003444else
3445 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003446fi
3447
drh71eb93e2001-09-28 01:34:43 +00003448ac_prog=ld
3449if test "$GCC" = yes; then
3450 # Check if gcc -print-prog-name=ld gives a path.
drh8b727472009-01-19 18:18:40 +00003451 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3452$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003453 case $host in
3454 *-*-mingw*)
3455 # gcc leaves a trailing carriage return which upsets mingw
3456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3457 *)
3458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3459 esac
3460 case $ac_prog in
3461 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003462 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003463 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003464 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003465 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3466 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3467 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003468 done
3469 test -z "$LD" && LD="$ac_prog"
3470 ;;
3471 "")
3472 # If it fails, then pretend we aren't using GCC.
3473 ac_prog=ld
3474 ;;
3475 *)
3476 # If it is relative, then search for the first ld in PATH.
3477 with_gnu_ld=unknown
3478 ;;
3479 esac
3480elif test "$with_gnu_ld" = yes; then
drh8b727472009-01-19 18:18:40 +00003481 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3482$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003483else
drh8b727472009-01-19 18:18:40 +00003484 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3485$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003486fi
3487if test "${lt_cv_path_LD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003488 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003489else
3490 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003492 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003493 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003494 test -z "$ac_dir" && ac_dir=.
3495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3496 lt_cv_path_LD="$ac_dir/$ac_prog"
3497 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003498 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003499 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3501 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003502 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003503 ;;
3504 *)
drh71eb93e2001-09-28 01:34:43 +00003505 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003506 ;;
3507 esac
drh71eb93e2001-09-28 01:34:43 +00003508 fi
3509 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003510 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003511else
3512 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3513fi
3514fi
3515
3516LD="$lt_cv_path_LD"
3517if test -n "$LD"; then
drh8b727472009-01-19 18:18:40 +00003518 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3519$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003520else
drh8b727472009-01-19 18:18:40 +00003521 { $as_echo "$as_me:$LINENO: result: no" >&5
3522$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003523fi
drh8b727472009-01-19 18:18:40 +00003524test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3525$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
drh71eb93e2001-09-28 01:34:43 +00003526 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003527{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3528$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003529if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003530 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003531else
vapier7f19c022007-02-17 14:46:31 +00003532 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003533case `$LD -v 2>&1 </dev/null` in
3534*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003535 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003536 ;;
3537*)
drh71eb93e2001-09-28 01:34:43 +00003538 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003539 ;;
3540esac
drh71eb93e2001-09-28 01:34:43 +00003541fi
drh8b727472009-01-19 18:18:40 +00003542{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3543$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003544with_gnu_ld=$lt_cv_prog_gnu_ld
3545
a.rottmann84e63352003-03-24 09:42:16 +00003546
drh71eb93e2001-09-28 01:34:43 +00003547
mlcreech636a9952008-05-05 22:52:56 +00003548
3549
3550
3551
3552
3553
drh8b727472009-01-19 18:18:40 +00003554{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3555$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003556if test "${lt_cv_path_NM+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003557 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003558else
3559 if test -n "$NM"; then
3560 # Let the user override the test.
3561 lt_cv_path_NM="$NM"
3562else
vapier7f19c022007-02-17 14:46:31 +00003563 lt_nm_to_check="${ac_tool_prefix}nm"
3564 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3565 lt_nm_to_check="$lt_nm_to_check nm"
3566 fi
3567 for lt_tmp_nm in $lt_nm_to_check; do
3568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3569 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3570 IFS="$lt_save_ifs"
3571 test -z "$ac_dir" && ac_dir=.
3572 tmp_nm="$ac_dir/$lt_tmp_nm"
3573 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3574 # Check to see if the nm accepts a BSD-compat flag.
3575 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3576 # nm: unknown option "B" ignored
3577 # Tru64's nm complains that /dev/null is an invalid object file
3578 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3579 */dev/null* | *'Invalid file or object type'*)
3580 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003581 break
3582 ;;
3583 *)
vapier7f19c022007-02-17 14:46:31 +00003584 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3585 */dev/null*)
3586 lt_cv_path_NM="$tmp_nm -p"
3587 break
3588 ;;
3589 *)
3590 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3591 continue # so that we can try to find one that supports BSD flags
3592 ;;
3593 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003594 ;;
3595 esac
vapier7f19c022007-02-17 14:46:31 +00003596 fi
3597 done
3598 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003599 done
mlcreech636a9952008-05-05 22:52:56 +00003600 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003601fi
3602fi
drh8b727472009-01-19 18:18:40 +00003603{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3604$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003605if test "$lt_cv_path_NM" != "no"; then
3606 NM="$lt_cv_path_NM"
3607else
3608 # Didn't find any BSD compatible name lister, look for dumpbin.
3609 if test -n "$ac_tool_prefix"; then
3610 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3611 do
3612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00003614{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3615$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003616if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003617 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003618else
3619 if test -n "$DUMPBIN"; then
3620 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
3624do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003628 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 +00003629 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh8b727472009-01-19 18:18:40 +00003630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003631 break 2
3632 fi
3633done
3634done
drh8b727472009-01-19 18:18:40 +00003635IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003636
mlcreech636a9952008-05-05 22:52:56 +00003637fi
3638fi
3639DUMPBIN=$ac_cv_prog_DUMPBIN
3640if test -n "$DUMPBIN"; then
drh8b727472009-01-19 18:18:40 +00003641 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3642$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003643else
drh8b727472009-01-19 18:18:40 +00003644 { $as_echo "$as_me:$LINENO: result: no" >&5
3645$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003646fi
3647
drh8b727472009-01-19 18:18:40 +00003648
mlcreech636a9952008-05-05 22:52:56 +00003649 test -n "$DUMPBIN" && break
3650 done
3651fi
3652if test -z "$DUMPBIN"; then
3653 ac_ct_DUMPBIN=$DUMPBIN
3654 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3655do
3656 # Extract the first word of "$ac_prog", so it can be a program name with args.
3657set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00003658{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3659$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003660if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003661 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003662else
3663 if test -n "$ac_ct_DUMPBIN"; then
3664 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003672 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 +00003673 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh8b727472009-01-19 18:18:40 +00003674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003675 break 2
3676 fi
3677done
3678done
drh8b727472009-01-19 18:18:40 +00003679IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003680
3681fi
3682fi
3683ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3684if test -n "$ac_ct_DUMPBIN"; then
drh8b727472009-01-19 18:18:40 +00003685 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3686$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003687else
drh8b727472009-01-19 18:18:40 +00003688 { $as_echo "$as_me:$LINENO: result: no" >&5
3689$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003690fi
3691
drh8b727472009-01-19 18:18:40 +00003692
mlcreech636a9952008-05-05 22:52:56 +00003693 test -n "$ac_ct_DUMPBIN" && break
3694done
3695
drh8b727472009-01-19 18:18:40 +00003696 if test "x$ac_ct_DUMPBIN" = x; then
3697 DUMPBIN=":"
3698 else
3699 case $cross_compiling:$ac_tool_warned in
3700yes:)
vapier6acb2cf2009-01-28 04:46:28 +00003701{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003703ac_tool_warned=yes ;;
3704esac
3705 DUMPBIN=$ac_ct_DUMPBIN
3706 fi
mlcreech636a9952008-05-05 22:52:56 +00003707fi
3708
3709
3710 if test "$DUMPBIN" != ":"; then
3711 NM="$DUMPBIN"
3712 fi
3713fi
3714test -z "$NM" && NM=nm
3715
3716
3717
3718
3719
3720
drh8b727472009-01-19 18:18:40 +00003721{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3722$as_echo_n "checking the name lister ($NM) interface... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003723if test "${lt_cv_nm_interface+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003724 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003725else
3726 lt_cv_nm_interface="BSD nm"
3727 echo "int some_variable = 0;" > conftest.$ac_ext
vapier6acb2cf2009-01-28 04:46:28 +00003728 (eval echo "\"\$as_me:3728: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003729 (eval "$ac_compile" 2>conftest.err)
3730 cat conftest.err >&5
vapier6acb2cf2009-01-28 04:46:28 +00003731 (eval echo "\"\$as_me:3731: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003732 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3733 cat conftest.err >&5
vapier6acb2cf2009-01-28 04:46:28 +00003734 (eval echo "\"\$as_me:3734: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003735 cat conftest.out >&5
3736 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3737 lt_cv_nm_interface="MS dumpbin"
3738 fi
3739 rm -f conftest*
3740fi
drh8b727472009-01-19 18:18:40 +00003741{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3742$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003743
drh8b727472009-01-19 18:18:40 +00003744{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3745$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003746LN_S=$as_ln_s
3747if test "$LN_S" = "ln -s"; then
drh8b727472009-01-19 18:18:40 +00003748 { $as_echo "$as_me:$LINENO: result: yes" >&5
3749$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003750else
drh8b727472009-01-19 18:18:40 +00003751 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3752$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003753fi
3754
mlcreech636a9952008-05-05 22:52:56 +00003755# find the maximum length of command line arguments
drh8b727472009-01-19 18:18:40 +00003756{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3757$as_echo_n "checking the maximum length of command line arguments... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003758if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003759 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003760else
3761 i=0
3762 teststring="ABCD"
3763
3764 case $build_os in
3765 msdosdjgpp*)
3766 # On DJGPP, this test can blow up pretty badly due to problems in libc
3767 # (any single argument exceeding 2000 bytes causes a buffer overrun
3768 # during glob expansion). Even if it were fixed, the result of this
3769 # check would be larger than it should be.
3770 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3771 ;;
3772
3773 gnu*)
3774 # Under GNU Hurd, this test is not required because there is
3775 # no limit to the length of command line arguments.
3776 # Libtool will interpret -1 as no limit whatsoever
3777 lt_cv_sys_max_cmd_len=-1;
3778 ;;
3779
vapier6acb2cf2009-01-28 04:46:28 +00003780 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003781 # On Win9x/ME, this test blows up -- it succeeds, but takes
3782 # about 5 minutes as the teststring grows exponentially.
3783 # Worse, since 9x/ME are not pre-emptively multitasking,
3784 # you end up with a "frozen" computer, even though with patience
3785 # the test eventually succeeds (with a max line length of 256k).
3786 # Instead, let's just punt: use the minimum linelength reported by
3787 # all of the supported platforms: 8192 (on NT/2K/XP).
3788 lt_cv_sys_max_cmd_len=8192;
3789 ;;
3790
3791 amigaos*)
3792 # On AmigaOS with pdksh, this test takes hours, literally.
3793 # So we just punt and use a minimum line length of 8192.
3794 lt_cv_sys_max_cmd_len=8192;
3795 ;;
3796
3797 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3798 # This has been around since 386BSD, at least. Likely further.
3799 if test -x /sbin/sysctl; then
3800 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3801 elif test -x /usr/sbin/sysctl; then
3802 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3803 else
3804 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3805 fi
3806 # And add a safety zone
3807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3809 ;;
3810
3811 interix*)
3812 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3813 lt_cv_sys_max_cmd_len=196608
3814 ;;
3815
3816 osf*)
3817 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3818 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3819 # nice to cause kernel panics so lets avoid the loop below.
3820 # First set a reasonable default.
3821 lt_cv_sys_max_cmd_len=16384
3822 #
3823 if test -x /sbin/sysconfig; then
3824 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3825 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3826 esac
3827 fi
3828 ;;
3829 sco3.2v5*)
3830 lt_cv_sys_max_cmd_len=102400
3831 ;;
3832 sysv5* | sco5v6* | sysv4.2uw2*)
3833 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3834 if test -n "$kargmax"; then
3835 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3836 else
3837 lt_cv_sys_max_cmd_len=32768
3838 fi
3839 ;;
3840 *)
3841 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3842 if test -n "$lt_cv_sys_max_cmd_len"; then
3843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3845 else
3846 # Make teststring a little bigger before we do anything with it.
3847 # a 1K string should be a reasonable start.
3848 for i in 1 2 3 4 5 6 7 8 ; do
3849 teststring=$teststring$teststring
3850 done
3851 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3852 # If test is not a shell built-in, we'll probably end up computing a
3853 # maximum length that is only half of the actual maximum length, but
3854 # we can't tell.
3855 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3856 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3857 test $i != 17 # 1/2 MB should be enough
3858 do
3859 i=`expr $i + 1`
3860 teststring=$teststring$teststring
3861 done
3862 # Only check the string length outside the loop.
3863 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3864 teststring=
3865 # Add a significant safety factor because C++ compilers can tack on
3866 # massive amounts of additional arguments before passing them to the
3867 # linker. It appears as though 1/2 is a usable value.
3868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3869 fi
3870 ;;
3871 esac
3872
3873fi
3874
3875if test -n $lt_cv_sys_max_cmd_len ; then
drh8b727472009-01-19 18:18:40 +00003876 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3877$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003878else
drh8b727472009-01-19 18:18:40 +00003879 { $as_echo "$as_me:$LINENO: result: none" >&5
3880$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003881fi
3882max_cmd_len=$lt_cv_sys_max_cmd_len
3883
3884
3885
3886
3887
3888
3889: ${CP="cp -f"}
3890: ${MV="mv -f"}
3891: ${RM="rm -f"}
3892
drh8b727472009-01-19 18:18:40 +00003893{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3894$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003895# Try some XSI features
3896xsi_shell=no
3897( _lt_dummy="a/b/c"
3898 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3899 = c,a/b,, \
3900 && eval 'test $(( 1 + 1 )) -eq 2 \
3901 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3902 && xsi_shell=yes
drh8b727472009-01-19 18:18:40 +00003903{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3904$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003905
3906
drh8b727472009-01-19 18:18:40 +00003907{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3908$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003909lt_shell_append=no
3910( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3911 >/dev/null 2>&1 \
3912 && lt_shell_append=yes
drh8b727472009-01-19 18:18:40 +00003913{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3914$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003915
3916
3917if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3918 lt_unset=unset
3919else
3920 lt_unset=false
3921fi
3922
3923
3924
3925
3926
3927# test EBCDIC or ASCII
3928case `echo X|tr X '\101'` in
3929 A) # ASCII based system
3930 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3931 lt_SP2NL='tr \040 \012'
3932 lt_NL2SP='tr \015\012 \040\040'
3933 ;;
3934 *) # EBCDIC based system
3935 lt_SP2NL='tr \100 \n'
3936 lt_NL2SP='tr \r\n \100\100'
3937 ;;
3938esac
3939
3940
3941
3942
3943
3944
3945
3946
3947
drh8b727472009-01-19 18:18:40 +00003948{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3949$as_echo_n "checking for $LD option to reload object files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003950if test "${lt_cv_ld_reload_flag+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003951 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003952else
3953 lt_cv_ld_reload_flag='-r'
3954fi
drh8b727472009-01-19 18:18:40 +00003955{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3956$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003957reload_flag=$lt_cv_ld_reload_flag
3958case $reload_flag in
3959"" | " "*) ;;
3960*) reload_flag=" $reload_flag" ;;
3961esac
3962reload_cmds='$LD$reload_flag -o $output$reload_objs'
3963case $host_os in
3964 darwin*)
3965 if test "$GCC" = yes; then
3966 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3967 else
3968 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3969 fi
3970 ;;
3971esac
3972
3973
3974
3975
3976
3977
3978
3979
3980
vapier6acb2cf2009-01-28 04:46:28 +00003981if test -n "$ac_tool_prefix"; then
3982 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3983set dummy ${ac_tool_prefix}objdump; ac_word=$2
3984{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3985$as_echo_n "checking for $ac_word... " >&6; }
3986if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3987 $as_echo_n "(cached) " >&6
3988else
3989 if test -n "$OBJDUMP"; then
3990 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003done
4004done
4005IFS=$as_save_IFS
4006
4007fi
4008fi
4009OBJDUMP=$ac_cv_prog_OBJDUMP
4010if test -n "$OBJDUMP"; then
4011 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4012$as_echo "$OBJDUMP" >&6; }
4013else
4014 { $as_echo "$as_me:$LINENO: result: no" >&5
4015$as_echo "no" >&6; }
4016fi
4017
4018
4019fi
4020if test -z "$ac_cv_prog_OBJDUMP"; then
4021 ac_ct_OBJDUMP=$OBJDUMP
4022 # Extract the first word of "objdump", so it can be a program name with args.
4023set dummy objdump; ac_word=$2
4024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4025$as_echo_n "checking for $ac_word... " >&6; }
4026if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4027 $as_echo_n "(cached) " >&6
4028else
4029 if test -n "$ac_ct_OBJDUMP"; then
4030 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4031else
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043done
4044done
4045IFS=$as_save_IFS
4046
4047fi
4048fi
4049ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4050if test -n "$ac_ct_OBJDUMP"; then
4051 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4052$as_echo "$ac_ct_OBJDUMP" >&6; }
4053else
4054 { $as_echo "$as_me:$LINENO: result: no" >&5
4055$as_echo "no" >&6; }
4056fi
4057
4058 if test "x$ac_ct_OBJDUMP" = x; then
4059 OBJDUMP="false"
4060 else
4061 case $cross_compiling:$ac_tool_warned in
4062yes:)
4063{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065ac_tool_warned=yes ;;
4066esac
4067 OBJDUMP=$ac_ct_OBJDUMP
4068 fi
4069else
4070 OBJDUMP="$ac_cv_prog_OBJDUMP"
4071fi
4072
4073test -z "$OBJDUMP" && OBJDUMP=objdump
4074
4075
4076
4077
4078
4079
4080
4081
mlcreech636a9952008-05-05 22:52:56 +00004082
drh8b727472009-01-19 18:18:40 +00004083{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4084$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00004085if test "${lt_cv_deplibs_check_method+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004086 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004087else
4088 lt_cv_file_magic_cmd='$MAGIC_CMD'
4089lt_cv_file_magic_test_file=
4090lt_cv_deplibs_check_method='unknown'
4091# Need to set the preceding variable on all platforms that support
4092# interlibrary dependencies.
4093# 'none' -- dependencies not supported.
4094# `unknown' -- same as none, but documents that we really don't know.
4095# 'pass_all' -- all dependencies passed with no checks.
4096# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004097# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004098# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004099# If you have `file' or equivalent on your system and you're not sure
4100# whether `pass_all' will *always* work, you probably want this one.
4101
4102case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004103aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004104 lt_cv_deplibs_check_method=pass_all
4105 ;;
4106
4107beos*)
4108 lt_cv_deplibs_check_method=pass_all
4109 ;;
4110
vapier7f19c022007-02-17 14:46:31 +00004111bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4113 lt_cv_file_magic_cmd='/usr/bin/file -L'
4114 lt_cv_file_magic_test_file=/shlib/libc.so
4115 ;;
4116
a.rottmann9bc8b932004-02-29 15:18:31 +00004117cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004118 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004119 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004120 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004121 ;;
4122
4123mingw* | pw32*)
4124 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004125 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4126 # unless we find 'file', for example because we are cross-compiling.
4127 if ( file / ) >/dev/null 2>&1; then
4128 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4129 lt_cv_file_magic_cmd='func_win32_libid'
4130 else
4131 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4132 lt_cv_file_magic_cmd='$OBJDUMP -f'
4133 fi
drh71eb93e2001-09-28 01:34:43 +00004134 ;;
4135
vapier6acb2cf2009-01-28 04:46:28 +00004136cegcc)
4137 # use the weaker test based on 'objdump'. See mingw*.
4138 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4139 lt_cv_file_magic_cmd='$OBJDUMP -f'
4140 ;;
4141
drh71eb93e2001-09-28 01:34:43 +00004142darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004143 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004144 ;;
4145
mlcreech636a9952008-05-05 22:52:56 +00004146freebsd* | dragonfly*)
4147 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004148 case $host_cpu in
4149 i*86 )
4150 # Not sure whether the presence of OpenBSD here was a mistake.
4151 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004152 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 +00004153 lt_cv_file_magic_cmd=/usr/bin/file
4154 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4155 ;;
4156 esac
4157 else
4158 lt_cv_deplibs_check_method=pass_all
4159 fi
4160 ;;
4161
4162gnu*)
4163 lt_cv_deplibs_check_method=pass_all
4164 ;;
4165
a.rottmann9bc8b932004-02-29 15:18:31 +00004166hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004167 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004168 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004169 ia64*)
4170 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4171 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4172 ;;
4173 hppa*64*)
4174 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]'
4175 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4176 ;;
4177 *)
4178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4179 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4180 ;;
4181 esac
drh71eb93e2001-09-28 01:34:43 +00004182 ;;
4183
mlcreech636a9952008-05-05 22:52:56 +00004184interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004185 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4187 ;;
4188
a.rottmann84e63352003-03-24 09:42:16 +00004189irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004190 case $LD in
4191 *-32|*"-32 ") libmagic=32-bit;;
4192 *-n32|*"-n32 ") libmagic=N32;;
4193 *-64|*"-64 ") libmagic=64-bit;;
4194 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004195 esac
drh71eb93e2001-09-28 01:34:43 +00004196 lt_cv_deplibs_check_method=pass_all
4197 ;;
4198
4199# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004200linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004201 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004202 ;;
4203
vapier7f19c022007-02-17 14:46:31 +00004204netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004207 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004209 fi
4210 ;;
4211
4212newos6*)
4213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4214 lt_cv_file_magic_cmd=/usr/bin/file
4215 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4216 ;;
4217
mlcreech636a9952008-05-05 22:52:56 +00004218*nto* | *qnx*)
4219 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004220 ;;
4221
a.rottmann84e63352003-03-24 09:42:16 +00004222openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004225 else
vapier7f19c022007-02-17 14:46:31 +00004226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004227 fi
drh71eb93e2001-09-28 01:34:43 +00004228 ;;
4229
4230osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004231 lt_cv_deplibs_check_method=pass_all
4232 ;;
4233
mlcreech636a9952008-05-05 22:52:56 +00004234rdos*)
4235 lt_cv_deplibs_check_method=pass_all
4236 ;;
4237
drh71eb93e2001-09-28 01:34:43 +00004238solaris*)
4239 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004240 ;;
4241
mlcreech636a9952008-05-05 22:52:56 +00004242sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
vapier7f19c022007-02-17 14:46:31 +00004246sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004247 case $host_vendor in
4248 motorola)
4249 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]'
4250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4251 ;;
4252 ncr)
4253 lt_cv_deplibs_check_method=pass_all
4254 ;;
4255 sequent)
4256 lt_cv_file_magic_cmd='/bin/file'
4257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4258 ;;
4259 sni)
4260 lt_cv_file_magic_cmd='/bin/file'
4261 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4262 lt_cv_file_magic_test_file=/lib/libc.so
4263 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004264 siemens)
4265 lt_cv_deplibs_check_method=pass_all
4266 ;;
vapier7f19c022007-02-17 14:46:31 +00004267 pc)
4268 lt_cv_deplibs_check_method=pass_all
4269 ;;
drh71eb93e2001-09-28 01:34:43 +00004270 esac
4271 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004272
mlcreech636a9952008-05-05 22:52:56 +00004273tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004274 lt_cv_deplibs_check_method=pass_all
4275 ;;
drh71eb93e2001-09-28 01:34:43 +00004276esac
4277
4278fi
drh8b727472009-01-19 18:18:40 +00004279{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4280$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004281file_magic_cmd=$lt_cv_file_magic_cmd
4282deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004283test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004284
drh71eb93e2001-09-28 01:34:43 +00004285
drh71eb93e2001-09-28 01:34:43 +00004286
drh71eb93e2001-09-28 01:34:43 +00004287
mlcreech636a9952008-05-05 22:52:56 +00004288
4289
4290
4291
4292
4293
4294
4295
4296if test -n "$ac_tool_prefix"; then
4297 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4298set dummy ${ac_tool_prefix}ar; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004299{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4300$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004301if test "${ac_cv_prog_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004302 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004303else
4304 if test -n "$AR"; then
4305 ac_cv_prog_AR="$AR" # Let the user override the test.
4306else
4307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH
4309do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004313 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 +00004314 ac_cv_prog_AR="${ac_tool_prefix}ar"
drh8b727472009-01-19 18:18:40 +00004315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004316 break 2
4317 fi
4318done
4319done
drh8b727472009-01-19 18:18:40 +00004320IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004321
4322fi
4323fi
4324AR=$ac_cv_prog_AR
4325if test -n "$AR"; then
drh8b727472009-01-19 18:18:40 +00004326 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4327$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004328else
drh8b727472009-01-19 18:18:40 +00004329 { $as_echo "$as_me:$LINENO: result: no" >&5
4330$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004331fi
4332
drh8b727472009-01-19 18:18:40 +00004333
mlcreech636a9952008-05-05 22:52:56 +00004334fi
4335if test -z "$ac_cv_prog_AR"; then
4336 ac_ct_AR=$AR
4337 # Extract the first word of "ar", so it can be a program name with args.
4338set dummy ar; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4340$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004341if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004342 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004343else
4344 if test -n "$ac_ct_AR"; then
4345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4346else
4347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004353 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 +00004354 ac_cv_prog_ac_ct_AR="ar"
drh8b727472009-01-19 18:18:40 +00004355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004356 break 2
4357 fi
4358done
4359done
drh8b727472009-01-19 18:18:40 +00004360IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004361
4362fi
4363fi
4364ac_ct_AR=$ac_cv_prog_ac_ct_AR
4365if test -n "$ac_ct_AR"; then
drh8b727472009-01-19 18:18:40 +00004366 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4367$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004368else
drh8b727472009-01-19 18:18:40 +00004369 { $as_echo "$as_me:$LINENO: result: no" >&5
4370$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004371fi
4372
drh8b727472009-01-19 18:18:40 +00004373 if test "x$ac_ct_AR" = x; then
4374 AR="false"
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377yes:)
vapier6acb2cf2009-01-28 04:46:28 +00004378{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004380ac_tool_warned=yes ;;
4381esac
4382 AR=$ac_ct_AR
4383 fi
mlcreech636a9952008-05-05 22:52:56 +00004384else
4385 AR="$ac_cv_prog_AR"
4386fi
4387
4388test -z "$AR" && AR=ar
4389test -z "$AR_FLAGS" && AR_FLAGS=cru
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4403set dummy ${ac_tool_prefix}strip; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004404{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4405$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004406if test "${ac_cv_prog_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004407 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004408else
4409 if test -n "$STRIP"; then
4410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4411else
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004418 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 +00004419 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh8b727472009-01-19 18:18:40 +00004420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004421 break 2
4422 fi
4423done
4424done
drh8b727472009-01-19 18:18:40 +00004425IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004426
4427fi
4428fi
4429STRIP=$ac_cv_prog_STRIP
4430if test -n "$STRIP"; then
drh8b727472009-01-19 18:18:40 +00004431 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4432$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004433else
drh8b727472009-01-19 18:18:40 +00004434 { $as_echo "$as_me:$LINENO: result: no" >&5
4435$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004436fi
4437
drh8b727472009-01-19 18:18:40 +00004438
mlcreech636a9952008-05-05 22:52:56 +00004439fi
4440if test -z "$ac_cv_prog_STRIP"; then
4441 ac_ct_STRIP=$STRIP
4442 # Extract the first word of "strip", so it can be a program name with args.
4443set dummy strip; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004444{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4445$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004446if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004447 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004448else
4449 if test -n "$ac_ct_STRIP"; then
4450 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4451else
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004458 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 +00004459 ac_cv_prog_ac_ct_STRIP="strip"
drh8b727472009-01-19 18:18:40 +00004460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004461 break 2
4462 fi
4463done
4464done
drh8b727472009-01-19 18:18:40 +00004465IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004466
4467fi
4468fi
4469ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4470if test -n "$ac_ct_STRIP"; then
drh8b727472009-01-19 18:18:40 +00004471 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4472$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004473else
drh8b727472009-01-19 18:18:40 +00004474 { $as_echo "$as_me:$LINENO: result: no" >&5
4475$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004476fi
4477
drh8b727472009-01-19 18:18:40 +00004478 if test "x$ac_ct_STRIP" = x; then
4479 STRIP=":"
4480 else
4481 case $cross_compiling:$ac_tool_warned in
4482yes:)
vapier6acb2cf2009-01-28 04:46:28 +00004483{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004485ac_tool_warned=yes ;;
4486esac
4487 STRIP=$ac_ct_STRIP
4488 fi
mlcreech636a9952008-05-05 22:52:56 +00004489else
4490 STRIP="$ac_cv_prog_STRIP"
4491fi
4492
4493test -z "$STRIP" && STRIP=:
4494
4495
4496
4497
4498
4499
4500if test -n "$ac_tool_prefix"; then
4501 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4502set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004503{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4504$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004505if test "${ac_cv_prog_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004506 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004507else
4508 if test -n "$RANLIB"; then
4509 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4510else
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004517 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 +00004518 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh8b727472009-01-19 18:18:40 +00004519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004520 break 2
4521 fi
4522done
4523done
drh8b727472009-01-19 18:18:40 +00004524IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004525
4526fi
4527fi
4528RANLIB=$ac_cv_prog_RANLIB
4529if test -n "$RANLIB"; then
drh8b727472009-01-19 18:18:40 +00004530 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4531$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004532else
drh8b727472009-01-19 18:18:40 +00004533 { $as_echo "$as_me:$LINENO: result: no" >&5
4534$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004535fi
4536
drh8b727472009-01-19 18:18:40 +00004537
mlcreech636a9952008-05-05 22:52:56 +00004538fi
4539if test -z "$ac_cv_prog_RANLIB"; then
4540 ac_ct_RANLIB=$RANLIB
4541 # Extract the first word of "ranlib", so it can be a program name with args.
4542set dummy ranlib; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004543{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4544$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004545if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004546 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004547else
4548 if test -n "$ac_ct_RANLIB"; then
4549 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004557 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 +00004558 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh8b727472009-01-19 18:18:40 +00004559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004560 break 2
4561 fi
4562done
4563done
drh8b727472009-01-19 18:18:40 +00004564IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004565
4566fi
4567fi
4568ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4569if test -n "$ac_ct_RANLIB"; then
drh8b727472009-01-19 18:18:40 +00004570 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4571$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004572else
drh8b727472009-01-19 18:18:40 +00004573 { $as_echo "$as_me:$LINENO: result: no" >&5
4574$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004575fi
4576
drh8b727472009-01-19 18:18:40 +00004577 if test "x$ac_ct_RANLIB" = x; then
4578 RANLIB=":"
4579 else
4580 case $cross_compiling:$ac_tool_warned in
4581yes:)
vapier6acb2cf2009-01-28 04:46:28 +00004582{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004584ac_tool_warned=yes ;;
4585esac
4586 RANLIB=$ac_ct_RANLIB
4587 fi
mlcreech636a9952008-05-05 22:52:56 +00004588else
4589 RANLIB="$ac_cv_prog_RANLIB"
4590fi
4591
4592test -z "$RANLIB" && RANLIB=:
4593
4594
4595
4596
4597
4598
4599# Determine commands to create old-style static archives.
4600old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4601old_postinstall_cmds='chmod 644 $oldlib'
4602old_postuninstall_cmds=
4603
4604if test -n "$RANLIB"; then
4605 case $host_os in
4606 openbsd*)
4607 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4608 ;;
4609 *)
4610 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4611 ;;
4612 esac
4613 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4614fi
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
a.rottmann9bc8b932004-02-29 15:18:31 +00004649# If no C compiler was specified, use CC.
4650LTCC=${LTCC-"$CC"}
4651
vapier7f19c022007-02-17 14:46:31 +00004652# If no C compiler flags were specified, use CFLAGS.
4653LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4654
a.rottmann9bc8b932004-02-29 15:18:31 +00004655# Allow CC to be a program name with arguments.
4656compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004657
drh71eb93e2001-09-28 01:34:43 +00004658
mlcreech636a9952008-05-05 22:52:56 +00004659# Check for command to grab the raw symbol name followed by C symbol from nm.
drh8b727472009-01-19 18:18:40 +00004660{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4661$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004662if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004663 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004664else
4665
4666# These are sane defaults that work on at least a few old systems.
4667# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4668
4669# Character class describing NM global symbol codes.
4670symcode='[BCDEGRST]'
4671
4672# Regexp to match symbols that can be accessed directly from C.
4673sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4674
4675# Define system-specific variables.
4676case $host_os in
4677aix*)
4678 symcode='[BCDT]'
4679 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004680cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004681 symcode='[ABCDGISTW]'
4682 ;;
4683hpux*)
4684 if test "$host_cpu" = ia64; then
4685 symcode='[ABCDEGRST]'
4686 fi
4687 ;;
4688irix* | nonstopux*)
4689 symcode='[BCDEGRST]'
4690 ;;
4691osf*)
4692 symcode='[BCDEGQRST]'
4693 ;;
4694solaris*)
4695 symcode='[BDRT]'
4696 ;;
4697sco3.2v5*)
4698 symcode='[DT]'
4699 ;;
4700sysv4.2uw2*)
4701 symcode='[DT]'
4702 ;;
4703sysv5* | sco5v6* | unixware* | OpenUNIX*)
4704 symcode='[ABDT]'
4705 ;;
4706sysv4)
4707 symcode='[DFNSTU]'
4708 ;;
4709esac
4710
4711# If we're using GNU nm, then use its standard symbol codes.
4712case `$NM -V 2>&1` in
4713*GNU* | *'with BFD'*)
4714 symcode='[ABCDGIRSTW]' ;;
4715esac
4716
4717# Transform an extracted symbol line into a proper C declaration.
4718# Some systems (esp. on ia64) link data and code symbols differently,
4719# so use this general approach.
4720lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4721
4722# Transform an extracted symbol line into symbol name and symbol address
4723lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4724lt_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'"
4725
4726# Handle CRLF in mingw tool chain
4727opt_cr=
4728case $build_os in
4729mingw*)
4730 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4731 ;;
4732esac
4733
4734# Try without a prefix underscore, then with it.
4735for ac_symprfx in "" "_"; do
4736
4737 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4738 symxfrm="\\1 $ac_symprfx\\2 \\2"
4739
4740 # Write the raw and C identifiers.
4741 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4742 # Fake it for dumpbin and say T for any non-static function
4743 # and D for any global variable.
4744 # Also find C++ and __fastcall symbols from MSVC++,
4745 # which start with @ or ?.
4746 lt_cv_sys_global_symbol_pipe="$AWK '"\
4747" {last_section=section; section=\$ 3};"\
4748" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4749" \$ 0!~/External *\|/{next};"\
4750" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4751" {if(hide[section]) next};"\
4752" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4753" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4754" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4755" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4756" ' prfx=^$ac_symprfx"
4757 else
4758 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4759 fi
4760
4761 # Check to see that the pipe works correctly.
4762 pipe_works=no
4763
4764 rm -f conftest*
4765 cat > conftest.$ac_ext <<_LT_EOF
4766#ifdef __cplusplus
4767extern "C" {
4768#endif
4769char nm_test_var;
4770void nm_test_func(void);
4771void nm_test_func(void){}
4772#ifdef __cplusplus
4773}
4774#endif
4775int main(){nm_test_var='a';nm_test_func();return(0);}
4776_LT_EOF
4777
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>&5
4780 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004782 (exit $ac_status); }; then
4783 # Now try to grab the symbols.
4784 nlist=conftest.nm
4785 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4786 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4787 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004789 (exit $ac_status); } && test -s "$nlist"; then
4790 # Try sorting and uniquifying the output.
4791 if sort "$nlist" | uniq > "$nlist"T; then
4792 mv -f "$nlist"T "$nlist"
4793 else
4794 rm -f "$nlist"T
4795 fi
4796
4797 # Make sure that we snagged all the symbols we need.
4798 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4799 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4800 cat <<_LT_EOF > conftest.$ac_ext
4801#ifdef __cplusplus
4802extern "C" {
4803#endif
4804
4805_LT_EOF
4806 # Now generate the symbol file.
4807 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4808
4809 cat <<_LT_EOF >> conftest.$ac_ext
4810
4811/* The mapping between symbol names and symbols. */
4812const struct {
4813 const char *name;
4814 void *address;
4815}
4816lt__PROGRAM__LTX_preloaded_symbols[] =
4817{
4818 { "@PROGRAM@", (void *) 0 },
4819_LT_EOF
4820 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4821 cat <<\_LT_EOF >> conftest.$ac_ext
4822 {0, (void *) 0}
4823};
4824
4825/* This works around a problem in FreeBSD linker */
4826#ifdef FREEBSD_WORKAROUND
4827static const void *lt_preloaded_setup() {
4828 return lt__PROGRAM__LTX_preloaded_symbols;
4829}
4830#endif
4831
4832#ifdef __cplusplus
4833}
4834#endif
4835_LT_EOF
4836 # Now try linking the two files.
4837 mv conftest.$ac_objext conftstm.$ac_objext
4838 lt_save_LIBS="$LIBS"
4839 lt_save_CFLAGS="$CFLAGS"
4840 LIBS="conftstm.$ac_objext"
4841 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843 (eval $ac_link) 2>&5
4844 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004846 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4847 pipe_works=yes
4848 fi
4849 LIBS="$lt_save_LIBS"
4850 CFLAGS="$lt_save_CFLAGS"
4851 else
4852 echo "cannot find nm_test_func in $nlist" >&5
4853 fi
4854 else
4855 echo "cannot find nm_test_var in $nlist" >&5
4856 fi
4857 else
4858 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4859 fi
4860 else
4861 echo "$progname: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4863 fi
4864 rm -rf conftest* conftst*
4865
4866 # Do not use the global_symbol_pipe unless it works.
4867 if test "$pipe_works" = yes; then
4868 break
4869 else
4870 lt_cv_sys_global_symbol_pipe=
4871 fi
4872done
4873
4874fi
4875
4876if test -z "$lt_cv_sys_global_symbol_pipe"; then
4877 lt_cv_sys_global_symbol_to_cdecl=
4878fi
4879if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh8b727472009-01-19 18:18:40 +00004880 { $as_echo "$as_me:$LINENO: result: failed" >&5
4881$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004882else
drh8b727472009-01-19 18:18:40 +00004883 { $as_echo "$as_me:$LINENO: result: ok" >&5
4884$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004885fi
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
drh8b727472009-01-19 18:18:40 +00004909# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00004910if test "${enable_libtool_lock+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004911 enableval=$enable_libtool_lock;
4912fi
drh71eb93e2001-09-28 01:34:43 +00004913
a.rottmann9bc8b932004-02-29 15:18:31 +00004914test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00004915
a.rottmann9bc8b932004-02-29 15:18:31 +00004916# Some flags need to be propagated to the compiler or linker for good
4917# libtool support.
4918case $host in
4919ia64-*-hpux*)
4920 # Find out which ABI we are using.
4921 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00004923 (eval $ac_compile) 2>&5
4924 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00004926 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004927 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00004928 *ELF-32*)
4929 HPUX_IA64_MODE="32"
4930 ;;
4931 *ELF-64*)
4932 HPUX_IA64_MODE="64"
4933 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004934 esac
4935 fi
4936 rm -rf conftest*
4937 ;;
4938*-*-irix6*)
4939 # Find out which ABI we are using.
vapier6acb2cf2009-01-28 04:46:28 +00004940 echo '#line 4940 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4942 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00004943 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004945 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004946 if test "$lt_cv_prog_gnu_ld" = yes; then
4947 case `/usr/bin/file conftest.$ac_objext` in
4948 *32-bit*)
4949 LD="${LD-ld} -melf32bsmip"
4950 ;;
4951 *N32*)
4952 LD="${LD-ld} -melf32bmipn32"
4953 ;;
4954 *64-bit*)
4955 LD="${LD-ld} -melf64bmip"
4956 ;;
4957 esac
4958 else
4959 case `/usr/bin/file conftest.$ac_objext` in
4960 *32-bit*)
4961 LD="${LD-ld} -32"
4962 ;;
4963 *N32*)
4964 LD="${LD-ld} -n32"
4965 ;;
4966 *64-bit*)
4967 LD="${LD-ld} -64"
4968 ;;
4969 esac
4970 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004971 fi
4972 rm -rf conftest*
4973 ;;
drh71eb93e2001-09-28 01:34:43 +00004974
mlcreech636a9952008-05-05 22:52:56 +00004975x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4976s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004977 # Find out which ABI we are using.
4978 echo 'int i;' > conftest.$ac_ext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>&5
4981 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004983 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00004984 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00004985 *32-bit*)
4986 case $host in
4987 x86_64-*kfreebsd*-gnu)
4988 LD="${LD-ld} -m elf_i386_fbsd"
4989 ;;
4990 x86_64-*linux*)
4991 LD="${LD-ld} -m elf_i386"
4992 ;;
4993 ppc64-*linux*|powerpc64-*linux*)
4994 LD="${LD-ld} -m elf32ppclinux"
4995 ;;
4996 s390x-*linux*)
4997 LD="${LD-ld} -m elf_s390"
4998 ;;
4999 sparc64-*linux*)
5000 LD="${LD-ld} -m elf32_sparc"
5001 ;;
5002 esac
5003 ;;
5004 *64-bit*)
5005 case $host in
5006 x86_64-*kfreebsd*-gnu)
5007 LD="${LD-ld} -m elf_x86_64_fbsd"
5008 ;;
5009 x86_64-*linux*)
5010 LD="${LD-ld} -m elf_x86_64"
5011 ;;
5012 ppc*-*linux*|powerpc*-*linux*)
5013 LD="${LD-ld} -m elf64ppc"
5014 ;;
5015 s390*-*linux*|s390*-*tpf*)
5016 LD="${LD-ld} -m elf64_s390"
5017 ;;
5018 sparc*-*linux*)
5019 LD="${LD-ld} -m elf64_sparc"
5020 ;;
5021 esac
5022 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005023 esac
5024 fi
5025 rm -rf conftest*
5026 ;;
drh71eb93e2001-09-28 01:34:43 +00005027
a.rottmann9bc8b932004-02-29 15:18:31 +00005028*-*-sco3.2v5*)
5029 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5030 SAVE_CFLAGS="$CFLAGS"
5031 CFLAGS="$CFLAGS -belf"
drh8b727472009-01-19 18:18:40 +00005032 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5033$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005034if test "${lt_cv_cc_needs_belf+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005035 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005036else
5037 ac_ext=c
5038ac_cpp='$CPP $CPPFLAGS'
5039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005042
a.rottmann9bc8b932004-02-29 15:18:31 +00005043 cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005049
a.rottmann9bc8b932004-02-29 15:18:31 +00005050int
5051main ()
drh71eb93e2001-09-28 01:34:43 +00005052{
drh71eb93e2001-09-28 01:34:43 +00005053
a.rottmann9bc8b932004-02-29 15:18:31 +00005054 ;
5055 return 0;
drh71eb93e2001-09-28 01:34:43 +00005056}
a.rottmann9bc8b932004-02-29 15:18:31 +00005057_ACEOF
5058rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00005059if { (ac_try="$ac_link"
5060case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063esac
5064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5065$as_echo "$ac_try_echo") >&5
5066 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && {
5073 test -z "$ac_c_werror_flag" ||
5074 test ! -s conftest.err
5075 } && test -s conftest$ac_exeext && {
5076 test "$cross_compiling" = yes ||
5077 $as_test_x conftest$ac_exeext
5078 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005079 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005080else
drh8b727472009-01-19 18:18:40 +00005081 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005082sed 's/^/| /' conftest.$ac_ext >&5
5083
drh8b727472009-01-19 18:18:40 +00005084 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005085fi
drh8b727472009-01-19 18:18:40 +00005086
5087rm -rf conftest.dSYM
5088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00005089 conftest$ac_exeext conftest.$ac_ext
5090 ac_ext=c
5091ac_cpp='$CPP $CPPFLAGS'
5092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094ac_compiler_gnu=$ac_cv_c_compiler_gnu
5095
drh71eb93e2001-09-28 01:34:43 +00005096fi
drh8b727472009-01-19 18:18:40 +00005097{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5098$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005099 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5100 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5101 CFLAGS="$SAVE_CFLAGS"
5102 fi
5103 ;;
vapier7f19c022007-02-17 14:46:31 +00005104sparc*-*solaris*)
5105 # Find out which ABI we are using.
5106 echo 'int i;' > conftest.$ac_ext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>&5
5109 ac_status=$?
drh8b727472009-01-19 18:18:40 +00005110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
vapier7f19c022007-02-17 14:46:31 +00005111 (exit $ac_status); }; then
5112 case `/usr/bin/file conftest.o` in
5113 *64-bit*)
5114 case $lt_cv_prog_gnu_ld in
5115 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005116 *)
5117 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5118 LD="${LD-ld} -64"
5119 fi
5120 ;;
vapier7f19c022007-02-17 14:46:31 +00005121 esac
5122 ;;
5123 esac
5124 fi
5125 rm -rf conftest*
5126 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005127esac
5128
5129need_locks="$enable_libtool_lock"
5130
drh71eb93e2001-09-28 01:34:43 +00005131
mlcreech636a9952008-05-05 22:52:56 +00005132 case $host_os in
5133 rhapsody* | darwin*)
5134 if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5136set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5138$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005139if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005140 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005141else
5142 if test -n "$DSYMUTIL"; then
5143 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005151 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 +00005152 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh8b727472009-01-19 18:18:40 +00005153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005154 break 2
5155 fi
5156done
5157done
drh8b727472009-01-19 18:18:40 +00005158IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005159
5160fi
5161fi
5162DSYMUTIL=$ac_cv_prog_DSYMUTIL
5163if test -n "$DSYMUTIL"; then
drh8b727472009-01-19 18:18:40 +00005164 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5165$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005166else
drh8b727472009-01-19 18:18:40 +00005167 { $as_echo "$as_me:$LINENO: result: no" >&5
5168$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005169fi
5170
drh8b727472009-01-19 18:18:40 +00005171
mlcreech636a9952008-05-05 22:52:56 +00005172fi
5173if test -z "$ac_cv_prog_DSYMUTIL"; then
5174 ac_ct_DSYMUTIL=$DSYMUTIL
5175 # Extract the first word of "dsymutil", so it can be a program name with args.
5176set dummy dsymutil; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005179if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005180 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005181else
5182 if test -n "$ac_ct_DSYMUTIL"; then
5183 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005191 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 +00005192 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh8b727472009-01-19 18:18:40 +00005193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005194 break 2
5195 fi
5196done
5197done
drh8b727472009-01-19 18:18:40 +00005198IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005199
5200fi
5201fi
5202ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5203if test -n "$ac_ct_DSYMUTIL"; then
drh8b727472009-01-19 18:18:40 +00005204 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5205$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005206else
drh8b727472009-01-19 18:18:40 +00005207 { $as_echo "$as_me:$LINENO: result: no" >&5
5208$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005209fi
5210
drh8b727472009-01-19 18:18:40 +00005211 if test "x$ac_ct_DSYMUTIL" = x; then
5212 DSYMUTIL=":"
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215yes:)
vapier6acb2cf2009-01-28 04:46:28 +00005216{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005218ac_tool_warned=yes ;;
5219esac
5220 DSYMUTIL=$ac_ct_DSYMUTIL
5221 fi
mlcreech636a9952008-05-05 22:52:56 +00005222else
5223 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5224fi
5225
5226 if test -n "$ac_tool_prefix"; then
5227 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5228set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005229{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5230$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005231if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005232 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005233else
5234 if test -n "$NMEDIT"; then
5235 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005243 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 +00005244 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh8b727472009-01-19 18:18:40 +00005245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005246 break 2
5247 fi
5248done
5249done
drh8b727472009-01-19 18:18:40 +00005250IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005251
5252fi
5253fi
5254NMEDIT=$ac_cv_prog_NMEDIT
5255if test -n "$NMEDIT"; then
drh8b727472009-01-19 18:18:40 +00005256 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5257$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005258else
drh8b727472009-01-19 18:18:40 +00005259 { $as_echo "$as_me:$LINENO: result: no" >&5
5260$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005261fi
5262
drh8b727472009-01-19 18:18:40 +00005263
mlcreech636a9952008-05-05 22:52:56 +00005264fi
5265if test -z "$ac_cv_prog_NMEDIT"; then
5266 ac_ct_NMEDIT=$NMEDIT
5267 # Extract the first word of "nmedit", so it can be a program name with args.
5268set dummy nmedit; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5270$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005271if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005272 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005273else
5274 if test -n "$ac_ct_NMEDIT"; then
5275 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005283 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 +00005284 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh8b727472009-01-19 18:18:40 +00005285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005286 break 2
5287 fi
5288done
5289done
drh8b727472009-01-19 18:18:40 +00005290IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005291
5292fi
5293fi
5294ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5295if test -n "$ac_ct_NMEDIT"; then
drh8b727472009-01-19 18:18:40 +00005296 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5297$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005298else
drh8b727472009-01-19 18:18:40 +00005299 { $as_echo "$as_me:$LINENO: result: no" >&5
5300$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005301fi
5302
drh8b727472009-01-19 18:18:40 +00005303 if test "x$ac_ct_NMEDIT" = x; then
5304 NMEDIT=":"
5305 else
5306 case $cross_compiling:$ac_tool_warned in
5307yes:)
vapier6acb2cf2009-01-28 04:46:28 +00005308{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005310ac_tool_warned=yes ;;
5311esac
5312 NMEDIT=$ac_ct_NMEDIT
5313 fi
mlcreech636a9952008-05-05 22:52:56 +00005314else
5315 NMEDIT="$ac_cv_prog_NMEDIT"
5316fi
5317
5318 if test -n "$ac_tool_prefix"; then
5319 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5320set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5322$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005323if test "${ac_cv_prog_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005324 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005325else
5326 if test -n "$LIPO"; then
5327 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5328else
5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005335 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 +00005336 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh8b727472009-01-19 18:18:40 +00005337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005338 break 2
5339 fi
5340done
5341done
drh8b727472009-01-19 18:18:40 +00005342IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005343
5344fi
5345fi
5346LIPO=$ac_cv_prog_LIPO
5347if test -n "$LIPO"; then
drh8b727472009-01-19 18:18:40 +00005348 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5349$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005350else
drh8b727472009-01-19 18:18:40 +00005351 { $as_echo "$as_me:$LINENO: result: no" >&5
5352$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005353fi
5354
drh8b727472009-01-19 18:18:40 +00005355
mlcreech636a9952008-05-05 22:52:56 +00005356fi
5357if test -z "$ac_cv_prog_LIPO"; then
5358 ac_ct_LIPO=$LIPO
5359 # Extract the first word of "lipo", so it can be a program name with args.
5360set dummy lipo; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5362$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005363if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005364 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005365else
5366 if test -n "$ac_ct_LIPO"; then
5367 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5368else
5369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005375 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 +00005376 ac_cv_prog_ac_ct_LIPO="lipo"
drh8b727472009-01-19 18:18:40 +00005377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005378 break 2
5379 fi
5380done
5381done
drh8b727472009-01-19 18:18:40 +00005382IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005383
5384fi
5385fi
5386ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5387if test -n "$ac_ct_LIPO"; then
drh8b727472009-01-19 18:18:40 +00005388 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5389$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005390else
drh8b727472009-01-19 18:18:40 +00005391 { $as_echo "$as_me:$LINENO: result: no" >&5
5392$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005393fi
5394
drh8b727472009-01-19 18:18:40 +00005395 if test "x$ac_ct_LIPO" = x; then
5396 LIPO=":"
5397 else
5398 case $cross_compiling:$ac_tool_warned in
5399yes:)
vapier6acb2cf2009-01-28 04:46:28 +00005400{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005402ac_tool_warned=yes ;;
5403esac
5404 LIPO=$ac_ct_LIPO
5405 fi
mlcreech636a9952008-05-05 22:52:56 +00005406else
5407 LIPO="$ac_cv_prog_LIPO"
5408fi
5409
5410 if test -n "$ac_tool_prefix"; then
5411 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5412set dummy ${ac_tool_prefix}otool; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5414$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005415if test "${ac_cv_prog_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005416 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005417else
5418 if test -n "$OTOOL"; then
5419 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5420else
5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005427 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 +00005428 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh8b727472009-01-19 18:18:40 +00005429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005430 break 2
5431 fi
5432done
5433done
drh8b727472009-01-19 18:18:40 +00005434IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005435
5436fi
5437fi
5438OTOOL=$ac_cv_prog_OTOOL
5439if test -n "$OTOOL"; then
drh8b727472009-01-19 18:18:40 +00005440 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5441$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005442else
drh8b727472009-01-19 18:18:40 +00005443 { $as_echo "$as_me:$LINENO: result: no" >&5
5444$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005445fi
5446
drh8b727472009-01-19 18:18:40 +00005447
mlcreech636a9952008-05-05 22:52:56 +00005448fi
5449if test -z "$ac_cv_prog_OTOOL"; then
5450 ac_ct_OTOOL=$OTOOL
5451 # Extract the first word of "otool", so it can be a program name with args.
5452set dummy otool; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005455if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005456 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005457else
5458 if test -n "$ac_ct_OTOOL"; then
5459 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005467 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 +00005468 ac_cv_prog_ac_ct_OTOOL="otool"
drh8b727472009-01-19 18:18:40 +00005469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005470 break 2
5471 fi
5472done
5473done
drh8b727472009-01-19 18:18:40 +00005474IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005475
5476fi
5477fi
5478ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5479if test -n "$ac_ct_OTOOL"; then
drh8b727472009-01-19 18:18:40 +00005480 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5481$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005482else
drh8b727472009-01-19 18:18:40 +00005483 { $as_echo "$as_me:$LINENO: result: no" >&5
5484$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005485fi
5486
drh8b727472009-01-19 18:18:40 +00005487 if test "x$ac_ct_OTOOL" = x; then
5488 OTOOL=":"
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491yes:)
vapier6acb2cf2009-01-28 04:46:28 +00005492{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005494ac_tool_warned=yes ;;
5495esac
5496 OTOOL=$ac_ct_OTOOL
5497 fi
mlcreech636a9952008-05-05 22:52:56 +00005498else
5499 OTOOL="$ac_cv_prog_OTOOL"
5500fi
5501
5502 if test -n "$ac_tool_prefix"; then
5503 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5504set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005505{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5506$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005507if test "${ac_cv_prog_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005508 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005509else
5510 if test -n "$OTOOL64"; then
5511 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005519 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 +00005520 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drh8b727472009-01-19 18:18:40 +00005521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005522 break 2
5523 fi
5524done
5525done
drh8b727472009-01-19 18:18:40 +00005526IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005527
5528fi
5529fi
5530OTOOL64=$ac_cv_prog_OTOOL64
5531if test -n "$OTOOL64"; then
drh8b727472009-01-19 18:18:40 +00005532 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5533$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005534else
drh8b727472009-01-19 18:18:40 +00005535 { $as_echo "$as_me:$LINENO: result: no" >&5
5536$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005537fi
5538
drh8b727472009-01-19 18:18:40 +00005539
mlcreech636a9952008-05-05 22:52:56 +00005540fi
5541if test -z "$ac_cv_prog_OTOOL64"; then
5542 ac_ct_OTOOL64=$OTOOL64
5543 # Extract the first word of "otool64", so it can be a program name with args.
5544set dummy otool64; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005545{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5546$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005547if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005548 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005549else
5550 if test -n "$ac_ct_OTOOL64"; then
5551 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5552else
5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005559 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 +00005560 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh8b727472009-01-19 18:18:40 +00005561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005562 break 2
5563 fi
5564done
5565done
drh8b727472009-01-19 18:18:40 +00005566IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005567
5568fi
5569fi
5570ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5571if test -n "$ac_ct_OTOOL64"; then
drh8b727472009-01-19 18:18:40 +00005572 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5573$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005574else
drh8b727472009-01-19 18:18:40 +00005575 { $as_echo "$as_me:$LINENO: result: no" >&5
5576$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005577fi
5578
drh8b727472009-01-19 18:18:40 +00005579 if test "x$ac_ct_OTOOL64" = x; then
5580 OTOOL64=":"
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583yes:)
vapier6acb2cf2009-01-28 04:46:28 +00005584{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005586ac_tool_warned=yes ;;
5587esac
5588 OTOOL64=$ac_ct_OTOOL64
5589 fi
mlcreech636a9952008-05-05 22:52:56 +00005590else
5591 OTOOL64="$ac_cv_prog_OTOOL64"
5592fi
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
drh8b727472009-01-19 18:18:40 +00005620 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5621$as_echo_n "checking for -single_module linker flag... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005622if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005623 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005624else
5625 lt_cv_apple_cc_single_mod=no
5626 if test -z "${LT_MULTI_MODULE}"; then
5627 # By default we will add the -single_module flag. You can override
5628 # by either setting the environment variable LT_MULTI_MODULE
5629 # non-empty at configure time, or by adding -multi_module to the
5630 # link flags.
5631 rm -rf libconftest.dylib*
5632 echo "int foo(void){return 1;}" > conftest.c
5633 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5634-dynamiclib -Wl,-single_module conftest.c" >&5
5635 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5636 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5637 _lt_result=$?
5638 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5639 lt_cv_apple_cc_single_mod=yes
5640 else
5641 cat conftest.err >&5
5642 fi
5643 rm -rf libconftest.dylib*
5644 rm -f conftest.*
5645 fi
5646fi
drh8b727472009-01-19 18:18:40 +00005647{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5648$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5649 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5650$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005651if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005652 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005653else
5654 lt_cv_ld_exported_symbols_list=no
5655 save_LDFLAGS=$LDFLAGS
5656 echo "_main" > conftest.sym
5657 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5658 cat >conftest.$ac_ext <<_ACEOF
5659/* confdefs.h. */
5660_ACEOF
5661cat confdefs.h >>conftest.$ac_ext
5662cat >>conftest.$ac_ext <<_ACEOF
5663/* end confdefs.h. */
5664
5665int
5666main ()
5667{
5668
5669 ;
5670 return 0;
5671}
5672_ACEOF
5673rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00005674if { (ac_try="$ac_link"
5675case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678esac
5679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5680$as_echo "$ac_try_echo") >&5
5681 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00005682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest$ac_exeext && {
5691 test "$cross_compiling" = yes ||
5692 $as_test_x conftest$ac_exeext
5693 }; then
mlcreech636a9952008-05-05 22:52:56 +00005694 lt_cv_ld_exported_symbols_list=yes
5695else
drh8b727472009-01-19 18:18:40 +00005696 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00005697sed 's/^/| /' conftest.$ac_ext >&5
5698
drh8b727472009-01-19 18:18:40 +00005699 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005700fi
drh8b727472009-01-19 18:18:40 +00005701
5702rm -rf conftest.dSYM
5703rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00005704 conftest$ac_exeext conftest.$ac_ext
5705 LDFLAGS="$save_LDFLAGS"
5706
5707fi
drh8b727472009-01-19 18:18:40 +00005708{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5709$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005710 case $host_os in
5711 rhapsody* | darwin1.[012])
5712 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5713 darwin1.*)
5714 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5715 darwin*) # darwin 5.x on
5716 # if running on 10.5 or later, the deployment target defaults
5717 # to the OS version, if on x86, and 10.4, the deployment
5718 # target defaults to 10.4. Don't you love it?
5719 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5720 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5721 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5722 10.[012]*)
5723 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5724 10.*)
5725 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5726 esac
5727 ;;
5728 esac
5729 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5730 _lt_dar_single_mod='$single_module'
5731 fi
5732 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5733 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5734 else
5735 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5736 fi
5737 if test "$DSYMUTIL" != ":"; then
5738 _lt_dsymutil='~$DSYMUTIL $lib || :'
5739 else
5740 _lt_dsymutil=
5741 fi
5742 ;;
5743 esac
5744
a.rottmann84e63352003-03-24 09:42:16 +00005745ac_ext=c
5746ac_cpp='$CPP $CPPFLAGS'
5747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh8b727472009-01-19 18:18:40 +00005750{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5751$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005752# On Suns, sometimes $CPP names a directory.
5753if test -n "$CPP" && test -d "$CPP"; then
5754 CPP=
5755fi
5756if test -z "$CPP"; then
5757 if test "${ac_cv_prog_CPP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005758 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005759else
a.rottmann84e63352003-03-24 09:42:16 +00005760 # Double quotes because CPP needs to be expanded
5761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5762 do
5763 ac_preproc_ok=false
5764for ac_c_preproc_warn_flag in '' yes
5765do
5766 # Use a header file that comes with gcc, so configuring glibc
5767 # with a fresh cross-compiler works.
5768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5769 # <limits.h> exists even on freestanding compilers.
5770 # On the NeXT, cc -E runs the code through the compiler's parser,
5771 # not just through cpp. "Syntax error" is here to catch this case.
5772 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005773/* confdefs.h. */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h. */
5778#ifdef __STDC__
5779# include <limits.h>
5780#else
5781# include <assert.h>
5782#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005783 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005784_ACEOF
drh8b727472009-01-19 18:18:40 +00005785if { (ac_try="$ac_cpp conftest.$ac_ext"
5786case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789esac
5790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5791$as_echo "$ac_try_echo") >&5
5792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } >/dev/null && {
5799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005802 :
5803else
drh8b727472009-01-19 18:18:40 +00005804 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005805sed 's/^/| /' conftest.$ac_ext >&5
5806
5807 # Broken: fails on valid input.
5808continue
5809fi
drh8b727472009-01-19 18:18:40 +00005810
a.rottmann84e63352003-03-24 09:42:16 +00005811rm -f conftest.err conftest.$ac_ext
5812
drh8b727472009-01-19 18:18:40 +00005813 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005814 # can be detected and how.
5815 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
5821#include <ac_nonexistent.h>
5822_ACEOF
drh8b727472009-01-19 18:18:40 +00005823if { (ac_try="$ac_cpp conftest.$ac_ext"
5824case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827esac
5828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5829$as_echo "$ac_try_echo") >&5
5830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } >/dev/null && {
5837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005840 # Broken: success on invalid input.
5841continue
5842else
drh8b727472009-01-19 18:18:40 +00005843 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005844sed 's/^/| /' conftest.$ac_ext >&5
5845
5846 # Passes both tests.
5847ac_preproc_ok=:
5848break
5849fi
drh8b727472009-01-19 18:18:40 +00005850
a.rottmann84e63352003-03-24 09:42:16 +00005851rm -f conftest.err conftest.$ac_ext
5852
5853done
5854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855rm -f conftest.err conftest.$ac_ext
5856if $ac_preproc_ok; then
5857 break
5858fi
5859
5860 done
5861 ac_cv_prog_CPP=$CPP
5862
5863fi
5864 CPP=$ac_cv_prog_CPP
5865else
5866 ac_cv_prog_CPP=$CPP
5867fi
drh8b727472009-01-19 18:18:40 +00005868{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5869$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005870ac_preproc_ok=false
5871for ac_c_preproc_warn_flag in '' yes
5872do
5873 # Use a header file that comes with gcc, so configuring glibc
5874 # with a fresh cross-compiler works.
5875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876 # <limits.h> exists even on freestanding compilers.
5877 # On the NeXT, cc -E runs the code through the compiler's parser,
5878 # not just through cpp. "Syntax error" is here to catch this case.
5879 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005880/* confdefs.h. */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h. */
5885#ifdef __STDC__
5886# include <limits.h>
5887#else
5888# include <assert.h>
5889#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005890 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005891_ACEOF
drh8b727472009-01-19 18:18:40 +00005892if { (ac_try="$ac_cpp conftest.$ac_ext"
5893case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5898$as_echo "$ac_try_echo") >&5
5899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } >/dev/null && {
5906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5907 test ! -s conftest.err
5908 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005909 :
5910else
drh8b727472009-01-19 18:18:40 +00005911 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005912sed 's/^/| /' conftest.$ac_ext >&5
5913
5914 # Broken: fails on valid input.
5915continue
5916fi
drh8b727472009-01-19 18:18:40 +00005917
a.rottmann84e63352003-03-24 09:42:16 +00005918rm -f conftest.err conftest.$ac_ext
5919
drh8b727472009-01-19 18:18:40 +00005920 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005921 # can be detected and how.
5922 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h. */
5928#include <ac_nonexistent.h>
5929_ACEOF
drh8b727472009-01-19 18:18:40 +00005930if { (ac_try="$ac_cpp conftest.$ac_ext"
5931case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936$as_echo "$ac_try_echo") >&5
5937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } >/dev/null && {
5944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005947 # Broken: success on invalid input.
5948continue
5949else
drh8b727472009-01-19 18:18:40 +00005950 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005951sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 # Passes both tests.
5954ac_preproc_ok=:
5955break
5956fi
drh8b727472009-01-19 18:18:40 +00005957
a.rottmann84e63352003-03-24 09:42:16 +00005958rm -f conftest.err conftest.$ac_ext
5959
5960done
5961# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5962rm -f conftest.err conftest.$ac_ext
5963if $ac_preproc_ok; then
5964 :
5965else
vapier6acb2cf2009-01-28 04:46:28 +00005966 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5968{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00005969See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00005970$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00005971See \`config.log' for more details." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00005972 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +00005973fi
5974
5975ac_ext=c
5976ac_cpp='$CPP $CPPFLAGS'
5977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979ac_compiler_gnu=$ac_cv_c_compiler_gnu
5980
5981
drh8b727472009-01-19 18:18:40 +00005982{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5983$as_echo_n "checking for ANSI C header files... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005984if test "${ac_cv_header_stdc+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005985 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00005986else
5987 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005988/* confdefs.h. */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h. */
5993#include <stdlib.h>
5994#include <stdarg.h>
5995#include <string.h>
5996#include <float.h>
5997
5998int
5999main ()
6000{
6001
6002 ;
6003 return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006007if { (ac_try="$ac_compile"
6008case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011esac
6012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013$as_echo "$ac_try_echo") >&5
6014 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006015 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006024 ac_cv_header_stdc=yes
6025else
drh8b727472009-01-19 18:18:40 +00006026 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006027sed 's/^/| /' conftest.$ac_ext >&5
6028
drh8b727472009-01-19 18:18:40 +00006029 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006030fi
drh8b727472009-01-19 18:18:40 +00006031
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006033
6034if test $ac_cv_header_stdc = yes; then
6035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006037/* confdefs.h. */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h. */
6042#include <string.h>
6043
6044_ACEOF
6045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6046 $EGREP "memchr" >/dev/null 2>&1; then
6047 :
6048else
6049 ac_cv_header_stdc=no
6050fi
6051rm -f conftest*
6052
6053fi
6054
6055if test $ac_cv_header_stdc = yes; then
6056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6057 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006058/* confdefs.h. */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h. */
6063#include <stdlib.h>
6064
6065_ACEOF
6066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "free" >/dev/null 2>&1; then
6068 :
6069else
6070 ac_cv_header_stdc=no
6071fi
6072rm -f conftest*
6073
6074fi
6075
6076if test $ac_cv_header_stdc = yes; then
6077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6078 if test "$cross_compiling" = yes; then
6079 :
6080else
6081 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006082/* confdefs.h. */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h. */
6087#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006088#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006089#if ((' ' & 0x0FF) == 0x020)
6090# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6091# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6092#else
6093# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006094 (('a' <= (c) && (c) <= 'i') \
6095 || ('j' <= (c) && (c) <= 'r') \
6096 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006097# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6098#endif
6099
6100#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6101int
6102main ()
6103{
6104 int i;
6105 for (i = 0; i < 256; i++)
6106 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006107 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006108 return 2;
6109 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006110}
6111_ACEOF
6112rm -f conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00006113if { (ac_try="$ac_link"
6114case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117esac
6118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6119$as_echo "$ac_try_echo") >&5
6120 (eval "$ac_link") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006121 ac_status=$?
drh8b727472009-01-19 18:18:40 +00006122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
drh8b727472009-01-19 18:18:40 +00006124 { (case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6129$as_echo "$ac_try_echo") >&5
6130 (eval "$ac_try") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006131 ac_status=$?
drh8b727472009-01-19 18:18:40 +00006132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006133 (exit $ac_status); }; }; then
6134 :
6135else
drh8b727472009-01-19 18:18:40 +00006136 $as_echo "$as_me: program exited with status $ac_status" >&5
6137$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006138sed 's/^/| /' conftest.$ac_ext >&5
6139
6140( exit $ac_status )
6141ac_cv_header_stdc=no
6142fi
drh8b727472009-01-19 18:18:40 +00006143rm -rf conftest.dSYM
6144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6145fi
6146
6147
a.rottmann84e63352003-03-24 09:42:16 +00006148fi
6149fi
drh8b727472009-01-19 18:18:40 +00006150{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6151$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006152if test $ac_cv_header_stdc = yes; then
6153
6154cat >>confdefs.h <<\_ACEOF
6155#define STDC_HEADERS 1
6156_ACEOF
6157
6158fi
6159
6160# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006171 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00006172do
drh8b727472009-01-19 18:18:40 +00006173as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6175$as_echo_n "checking for $ac_header... " >&6; }
6176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6177 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006178else
6179 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006180/* confdefs.h. */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h. */
6185$ac_includes_default
6186
6187#include <$ac_header>
6188_ACEOF
6189rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006190if { (ac_try="$ac_compile"
6191case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6196$as_echo "$ac_try_echo") >&5
6197 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006198 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && {
6204 test -z "$ac_c_werror_flag" ||
6205 test ! -s conftest.err
6206 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006207 eval "$as_ac_Header=yes"
6208else
drh8b727472009-01-19 18:18:40 +00006209 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006210sed 's/^/| /' conftest.$ac_ext >&5
6211
drh8b727472009-01-19 18:18:40 +00006212 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006213fi
drh8b727472009-01-19 18:18:40 +00006214
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006216fi
drh8b727472009-01-19 18:18:40 +00006217ac_res=`eval 'as_val=${'$as_ac_Header'}
6218 $as_echo "$as_val"'`
6219 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6220$as_echo "$ac_res" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00006221as_val=`eval 'as_val=${'$as_ac_Header'}
6222 $as_echo "$as_val"'`
6223 if test "x$as_val" = x""yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006224 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006226_ACEOF
6227
6228fi
6229
6230done
6231
6232
6233
6234for ac_header in dlfcn.h
6235do
drh8b727472009-01-19 18:18:40 +00006236as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6237{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6238$as_echo_n "checking for $ac_header... " >&6; }
6239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6240 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006241else
mlcreech636a9952008-05-05 22:52:56 +00006242 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006243/* confdefs.h. */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h. */
6248$ac_includes_default
mlcreech636a9952008-05-05 22:52:56 +00006249
a.rottmann84e63352003-03-24 09:42:16 +00006250#include <$ac_header>
6251_ACEOF
6252rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006253if { (ac_try="$ac_compile"
6254case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257esac
6258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6259$as_echo "$ac_try_echo") >&5
6260 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006261 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } && {
6267 test -z "$ac_c_werror_flag" ||
6268 test ! -s conftest.err
6269 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +00006270 eval "$as_ac_Header=yes"
a.rottmann84e63352003-03-24 09:42:16 +00006271else
drh8b727472009-01-19 18:18:40 +00006272 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006273sed 's/^/| /' conftest.$ac_ext >&5
6274
drh8b727472009-01-19 18:18:40 +00006275 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006276fi
drh8b727472009-01-19 18:18:40 +00006277
6278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006279fi
drh8b727472009-01-19 18:18:40 +00006280ac_res=`eval 'as_val=${'$as_ac_Header'}
6281 $as_echo "$as_val"'`
6282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6283$as_echo "$ac_res" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00006284as_val=`eval 'as_val=${'$as_ac_Header'}
6285 $as_echo "$as_val"'`
6286 if test "x$as_val" = x""yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006287 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006289_ACEOF
6290
6291fi
6292
drh71eb93e2001-09-28 01:34:43 +00006293done
6294
drh71eb93e2001-09-28 01:34:43 +00006295
drh71eb93e2001-09-28 01:34:43 +00006296
mlcreech636a9952008-05-05 22:52:56 +00006297# Set options
mlcreech94984912008-03-04 19:03:08 +00006298
drh71eb93e2001-09-28 01:34:43 +00006299
drh71eb93e2001-09-28 01:34:43 +00006300
mlcreech636a9952008-05-05 22:52:56 +00006301 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006302
a.rottmann9bc8b932004-02-29 15:18:31 +00006303
mlcreech636a9952008-05-05 22:52:56 +00006304 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006305
a.rottmann9bc8b932004-02-29 15:18:31 +00006306
drh8b727472009-01-19 18:18:40 +00006307 # Check whether --enable-shared was given.
mlcreech636a9952008-05-05 22:52:56 +00006308if test "${enable_shared+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006309 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006310 case $enableval in
6311 yes) enable_shared=yes ;;
6312 no) enable_shared=no ;;
6313 *)
6314 enable_shared=no
6315 # Look at the argument we got. We use all the common list separators.
6316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6317 for pkg in $enableval; do
6318 IFS="$lt_save_ifs"
6319 if test "X$pkg" = "X$p"; then
6320 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006321 fi
mlcreech636a9952008-05-05 22:52:56 +00006322 done
6323 IFS="$lt_save_ifs"
6324 ;;
6325 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006326else
mlcreech636a9952008-05-05 22:52:56 +00006327 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006328fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006329
mlcreech636a9952008-05-05 22:52:56 +00006330
6331
6332
6333
6334
6335
6336
drh8b727472009-01-19 18:18:40 +00006337
6338 # Check whether --enable-static was given.
mlcreech636a9952008-05-05 22:52:56 +00006339if test "${enable_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006340 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006341 case $enableval in
6342 yes) enable_static=yes ;;
6343 no) enable_static=no ;;
6344 *)
6345 enable_static=no
6346 # Look at the argument we got. We use all the common list separators.
6347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6348 for pkg in $enableval; do
6349 IFS="$lt_save_ifs"
6350 if test "X$pkg" = "X$p"; then
6351 enable_static=yes
6352 fi
6353 done
6354 IFS="$lt_save_ifs"
6355 ;;
6356 esac
6357else
6358 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006359fi
mlcreech636a9952008-05-05 22:52:56 +00006360
6361
6362
6363
6364
6365
6366
6367
6368
drh8b727472009-01-19 18:18:40 +00006369
6370# Check whether --with-pic was given.
mlcreech636a9952008-05-05 22:52:56 +00006371if test "${with_pic+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006372 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006373else
6374 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006375fi
6376
mlcreech636a9952008-05-05 22:52:56 +00006377
6378test -z "$pic_mode" && pic_mode=default
6379
6380
6381
6382
6383
6384
6385
drh8b727472009-01-19 18:18:40 +00006386 # Check whether --enable-fast-install was given.
mlcreech636a9952008-05-05 22:52:56 +00006387if test "${enable_fast_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006388 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006389 case $enableval in
6390 yes) enable_fast_install=yes ;;
6391 no) enable_fast_install=no ;;
6392 *)
6393 enable_fast_install=no
6394 # Look at the argument we got. We use all the common list separators.
6395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6396 for pkg in $enableval; do
6397 IFS="$lt_save_ifs"
6398 if test "X$pkg" = "X$p"; then
6399 enable_fast_install=yes
6400 fi
6401 done
6402 IFS="$lt_save_ifs"
6403 ;;
6404 esac
6405else
6406 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006407fi
6408
mlcreech636a9952008-05-05 22:52:56 +00006409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419# This can be used to rebuild libtool when needed
6420LIBTOOL_DEPS="$ltmain"
6421
6422# Always use our own libtool.
6423LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449test -z "$LN_S" && LN_S="ln -s"
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464if test -n "${ZSH_VERSION+set}" ; then
6465 setopt NO_GLOB_SUBST
6466fi
6467
drh8b727472009-01-19 18:18:40 +00006468{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6469$as_echo_n "checking for objdir... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006470if test "${lt_cv_objdir+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006471 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006472else
6473 rm -f .libs 2>/dev/null
6474mkdir .libs 2>/dev/null
6475if test -d .libs; then
6476 lt_cv_objdir=.libs
6477else
6478 # MS-DOS does not allow filenames that begin with a dot.
6479 lt_cv_objdir=_libs
6480fi
6481rmdir .libs 2>/dev/null
6482fi
drh8b727472009-01-19 18:18:40 +00006483{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6484$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006485objdir=$lt_cv_objdir
6486
6487
6488
6489
6490
mlcreech636a9952008-05-05 22:52:56 +00006491cat >>confdefs.h <<_ACEOF
6492#define LT_OBJDIR "$lt_cv_objdir/"
6493_ACEOF
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
a.rottmann9bc8b932004-02-29 15:18:31 +00006511case $host_os in
6512aix3*)
6513 # AIX sometimes has problems with the GCC collect2 program. For some
6514 # reason, if we set the COLLECT_NAMES environment variable, the problems
6515 # vanish in a puff of smoke.
6516 if test "X${COLLECT_NAMES+set}" != Xset; then
6517 COLLECT_NAMES=
6518 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006519 fi
6520 ;;
6521esac
6522
a.rottmann9bc8b932004-02-29 15:18:31 +00006523# Sed substitution that helps us do robust quoting. It backslashifies
6524# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006525sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006526
6527# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006528double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006529
6530# Sed substitution to delay expansion of an escaped shell variable in a
6531# double_quote_subst'ed string.
6532delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6533
mlcreech636a9952008-05-05 22:52:56 +00006534# Sed substitution to delay expansion of an escaped single quote.
6535delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6536
a.rottmann9bc8b932004-02-29 15:18:31 +00006537# Sed substitution to avoid accidental globbing in evaled expressions
6538no_glob_subst='s/\*/\\\*/g'
6539
a.rottmann9bc8b932004-02-29 15:18:31 +00006540# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006541ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006542can_build_shared=yes
6543
vapier7f19c022007-02-17 14:46:31 +00006544# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006545# which needs '.lib').
6546libext=a
mlcreech636a9952008-05-05 22:52:56 +00006547
a.rottmann9bc8b932004-02-29 15:18:31 +00006548with_gnu_ld="$lt_cv_prog_gnu_ld"
6549
a.rottmann84e63352003-03-24 09:42:16 +00006550old_CC="$CC"
6551old_CFLAGS="$CFLAGS"
6552
6553# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006554test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006555test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006556test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006557test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006558test -z "$ac_objext" && ac_objext=o
6559
vapier7f19c022007-02-17 14:46:31 +00006560for cc_temp in $compiler""; do
6561 case $cc_temp in
6562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6564 \-*) ;;
6565 *) break;;
6566 esac
6567done
mlcreech636a9952008-05-05 22:52:56 +00006568cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006569
6570
a.rottmann9bc8b932004-02-29 15:18:31 +00006571# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006572test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006573case $deplibs_check_method in
6574file_magic*)
6575 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh8b727472009-01-19 18:18:40 +00006576 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6577$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006578if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006579 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006580else
a.rottmann9bc8b932004-02-29 15:18:31 +00006581 case $MAGIC_CMD in
6582[\\/*] | ?:[\\/]*)
6583 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6584 ;;
6585*)
6586 lt_save_MAGIC_CMD="$MAGIC_CMD"
6587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6588 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6589 for ac_dir in $ac_dummy; do
6590 IFS="$lt_save_ifs"
6591 test -z "$ac_dir" && ac_dir=.
6592 if test -f $ac_dir/${ac_tool_prefix}file; then
6593 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6594 if test -n "$file_magic_test_file"; then
6595 case $deplibs_check_method in
6596 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006597 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6599 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6600 $EGREP "$file_magic_regex" > /dev/null; then
6601 :
6602 else
mlcreech636a9952008-05-05 22:52:56 +00006603 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006604
a.rottmann9bc8b932004-02-29 15:18:31 +00006605*** Warning: the command libtool uses to detect shared libraries,
6606*** $file_magic_cmd, produces output that libtool cannot recognize.
6607*** The result is that libtool may fail to recognize shared libraries
6608*** as such. This will affect the creation of libtool libraries that
6609*** depend on shared libraries, but programs linked with such libtool
6610*** libraries will work regardless of this problem. Nevertheless, you
6611*** may want to report the problem to your system manager and/or to
6612*** bug-libtool@gnu.org
6613
mlcreech636a9952008-05-05 22:52:56 +00006614_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006615 fi ;;
6616 esac
6617 fi
6618 break
6619 fi
6620 done
6621 IFS="$lt_save_ifs"
6622 MAGIC_CMD="$lt_save_MAGIC_CMD"
6623 ;;
6624esac
6625fi
6626
6627MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6628if test -n "$MAGIC_CMD"; then
drh8b727472009-01-19 18:18:40 +00006629 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6630$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006631else
drh8b727472009-01-19 18:18:40 +00006632 { $as_echo "$as_me:$LINENO: result: no" >&5
6633$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006634fi
6635
mlcreech636a9952008-05-05 22:52:56 +00006636
6637
6638
6639
a.rottmann9bc8b932004-02-29 15:18:31 +00006640if test -z "$lt_cv_path_MAGIC_CMD"; then
6641 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00006642 { $as_echo "$as_me:$LINENO: checking for file" >&5
6643$as_echo_n "checking for file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006644if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006645 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006646else
6647 case $MAGIC_CMD in
6648[\\/*] | ?:[\\/]*)
6649 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6650 ;;
6651*)
6652 lt_save_MAGIC_CMD="$MAGIC_CMD"
6653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6654 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6655 for ac_dir in $ac_dummy; do
6656 IFS="$lt_save_ifs"
6657 test -z "$ac_dir" && ac_dir=.
6658 if test -f $ac_dir/file; then
6659 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6660 if test -n "$file_magic_test_file"; then
6661 case $deplibs_check_method in
6662 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006663 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6666 $EGREP "$file_magic_regex" > /dev/null; then
6667 :
6668 else
mlcreech636a9952008-05-05 22:52:56 +00006669 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006670
6671*** Warning: the command libtool uses to detect shared libraries,
6672*** $file_magic_cmd, produces output that libtool cannot recognize.
6673*** The result is that libtool may fail to recognize shared libraries
6674*** as such. This will affect the creation of libtool libraries that
6675*** depend on shared libraries, but programs linked with such libtool
6676*** libraries will work regardless of this problem. Nevertheless, you
6677*** may want to report the problem to your system manager and/or to
6678*** bug-libtool@gnu.org
6679
mlcreech636a9952008-05-05 22:52:56 +00006680_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006681 fi ;;
6682 esac
6683 fi
6684 break
6685 fi
6686 done
6687 IFS="$lt_save_ifs"
6688 MAGIC_CMD="$lt_save_MAGIC_CMD"
6689 ;;
6690esac
6691fi
6692
6693MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6694if test -n "$MAGIC_CMD"; then
drh8b727472009-01-19 18:18:40 +00006695 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6696$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006697else
drh8b727472009-01-19 18:18:40 +00006698 { $as_echo "$as_me:$LINENO: result: no" >&5
6699$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006700fi
6701
mlcreech636a9952008-05-05 22:52:56 +00006702
a.rottmann9bc8b932004-02-29 15:18:31 +00006703 else
6704 MAGIC_CMD=:
6705 fi
6706fi
6707
6708 fi
6709 ;;
6710esac
6711
a.rottmann9bc8b932004-02-29 15:18:31 +00006712# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006713
a.rottmann9bc8b932004-02-29 15:18:31 +00006714lt_save_CC="$CC"
6715ac_ext=c
6716ac_cpp='$CPP $CPPFLAGS'
6717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6719ac_compiler_gnu=$ac_cv_c_compiler_gnu
6720
6721
6722# Source file extension for C test sources.
6723ac_ext=c
6724
6725# Object file extension for compiled C test sources.
6726objext=o
6727objext=$objext
6728
6729# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006730lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006731
6732# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006733lt_simple_link_test_code='int main(){return(0);}'
6734
6735
6736
6737
6738
a.rottmann9bc8b932004-02-29 15:18:31 +00006739
6740
6741# If no C compiler was specified, use CC.
6742LTCC=${LTCC-"$CC"}
6743
vapier7f19c022007-02-17 14:46:31 +00006744# If no C compiler flags were specified, use CFLAGS.
6745LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6746
a.rottmann9bc8b932004-02-29 15:18:31 +00006747# Allow CC to be a program name with arguments.
6748compiler=$CC
6749
mlcreech636a9952008-05-05 22:52:56 +00006750# Save the default compiler, since it gets overwritten when the other
6751# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6752compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006753
vapier7f19c022007-02-17 14:46:31 +00006754# save warnings/boilerplate of simple test code
6755ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006756echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006757eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6758_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006759$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006760
vapier7f19c022007-02-17 14:46:31 +00006761ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006762echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006763eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6764_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006765$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006766
6767
mlcreech636a9952008-05-05 22:52:56 +00006768if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006769
6770lt_prog_compiler_no_builtin_flag=
6771
6772if test "$GCC" = yes; then
6773 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6774
drh8b727472009-01-19 18:18:40 +00006775 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6776$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006777if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006778 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006779else
6780 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006781 ac_outfile=conftest.$ac_objext
6782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006783 lt_compiler_flag="-fno-rtti -fno-exceptions"
6784 # Insert the option either (1) after the last *FLAGS variable, or
6785 # (2) before a word containing "conftest.", or (3) at the end.
6786 # Note that $ac_compile itself does not contain backslashes and begins
6787 # with a dollar sign (not a hyphen), so the echo should work correctly.
6788 # The option is referenced via a variable to avoid confusing sed.
6789 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6792 -e 's:$: $lt_compiler_flag:'`
vapier6acb2cf2009-01-28 04:46:28 +00006793 (eval echo "\"\$as_me:6793: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006794 (eval "$lt_compile" 2>conftest.err)
6795 ac_status=$?
6796 cat conftest.err >&5
vapier6acb2cf2009-01-28 04:46:28 +00006797 echo "$as_me:6797: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006798 if (exit $ac_status) && test -s "$ac_outfile"; then
6799 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006800 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006801 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6803 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006804 lt_cv_prog_compiler_rtti_exceptions=yes
6805 fi
6806 fi
mlcreech636a9952008-05-05 22:52:56 +00006807 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006808
6809fi
drh8b727472009-01-19 18:18:40 +00006810{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6811$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006812
6813if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6814 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6815else
6816 :
6817fi
6818
6819fi
6820
mlcreech636a9952008-05-05 22:52:56 +00006821
6822
6823
6824
6825
6826 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006827lt_prog_compiler_pic=
6828lt_prog_compiler_static=
6829
drh8b727472009-01-19 18:18:40 +00006830{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6831$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006832
drh71eb93e2001-09-28 01:34:43 +00006833 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006834 lt_prog_compiler_wl='-Wl,'
6835 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006836
6837 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006838 aix*)
6839 # All AIX code is PIC.
6840 if test "$host_cpu" = ia64; then
6841 # AIX 5 now supports IA64 processor
6842 lt_prog_compiler_static='-Bstatic'
6843 fi
drh71eb93e2001-09-28 01:34:43 +00006844 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006845
drh71eb93e2001-09-28 01:34:43 +00006846 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006847 case $host_cpu in
6848 powerpc)
6849 # see comment about AmigaOS4 .so support
6850 lt_prog_compiler_pic='-fPIC'
6851 ;;
6852 m68k)
6853 # FIXME: we need at least 68020 code to build shared libraries, but
6854 # adding the `-m68020' flag to GCC prevents building anything better,
6855 # like `-m68040'.
6856 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6857 ;;
6858 esac
drh71eb93e2001-09-28 01:34:43 +00006859 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006860
mlcreech636a9952008-05-05 22:52:56 +00006861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006862 # PIC is the default for these OSes.
6863 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006864
vapier6acb2cf2009-01-28 04:46:28 +00006865 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006866 # This hack is so that the source file can tell whether it is being
6867 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006868 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6869 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006870 lt_prog_compiler_pic='-DDLL_EXPORT'
6871 ;;
6872
drh71eb93e2001-09-28 01:34:43 +00006873 darwin* | rhapsody*)
6874 # PIC is the default on this platform
6875 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006876 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006877 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006878
a.rottmann9bc8b932004-02-29 15:18:31 +00006879 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006880 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6881 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6882 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006883 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006884 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006885 # +Z the default
6886 ;;
6887 *)
6888 lt_prog_compiler_pic='-fPIC'
6889 ;;
6890 esac
6891 ;;
6892
mlcreech636a9952008-05-05 22:52:56 +00006893 interix[3-9]*)
6894 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6895 # Instead, we relocate shared libraries at runtime.
6896 ;;
6897
6898 msdosdjgpp*)
6899 # Just because we use GCC doesn't mean we suddenly get shared libraries
6900 # on systems that don't support them.
6901 lt_prog_compiler_can_build_shared=no
6902 enable_shared=no
6903 ;;
6904
6905 *nto* | *qnx*)
6906 # QNX uses GNU C++, but need to define -shared option too, otherwise
6907 # it will coredump.
6908 lt_prog_compiler_pic='-fPIC -shared'
6909 ;;
6910
6911 sysv4*MP*)
6912 if test -d /usr/nec; then
6913 lt_prog_compiler_pic=-Kconform_pic
6914 fi
6915 ;;
6916
drh71eb93e2001-09-28 01:34:43 +00006917 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006918 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006919 ;;
6920 esac
6921 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006922 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006923 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006924 aix*)
6925 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006926 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006927 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006928 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006929 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006930 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006931 fi
6932 ;;
6933
vapier6acb2cf2009-01-28 04:46:28 +00006934 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006935 # This hack is so that the source file can tell whether it is being
6936 # built for inclusion in a dll (and should export symbols for example).
6937 lt_prog_compiler_pic='-DDLL_EXPORT'
6938 ;;
6939
a.rottmann84e63352003-03-24 09:42:16 +00006940 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006941 lt_prog_compiler_wl='-Wl,'
6942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6943 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006944 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006945 hppa*64*|ia64*)
6946 # +Z the default
6947 ;;
6948 *)
6949 lt_prog_compiler_pic='+Z'
6950 ;;
6951 esac
6952 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6953 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006954 ;;
6955
6956 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006957 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006958 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006959 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006960 ;;
6961
mlcreech636a9952008-05-05 22:52:56 +00006962 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006963 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006964 # old Intel for x86_64 which still supported -KPIC.
6965 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006966 lt_prog_compiler_wl='-Wl,'
6967 lt_prog_compiler_pic='-KPIC'
6968 lt_prog_compiler_static='-static'
6969 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006970 # icc used to be incompatible with GCC.
6971 # ICC 10 doesn't accept -KPIC any more.
6972 icc* | ifort*)
6973 lt_prog_compiler_wl='-Wl,'
6974 lt_prog_compiler_pic='-fPIC'
6975 lt_prog_compiler_static='-static'
6976 ;;
6977 # Lahey Fortran 8.1.
6978 lf95*)
6979 lt_prog_compiler_wl='-Wl,'
6980 lt_prog_compiler_pic='--shared'
6981 lt_prog_compiler_static='--static'
6982 ;;
vapier7f19c022007-02-17 14:46:31 +00006983 pgcc* | pgf77* | pgf90* | pgf95*)
6984 # Portland Group compilers (*not* the Pentium gcc compiler,
6985 # which looks to be a dead project)
6986 lt_prog_compiler_wl='-Wl,'
6987 lt_prog_compiler_pic='-fpic'
6988 lt_prog_compiler_static='-Bstatic'
6989 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006990 ccc*)
6991 lt_prog_compiler_wl='-Wl,'
6992 # All Alpha code is PIC.
6993 lt_prog_compiler_static='-non_shared'
6994 ;;
mlcreech636a9952008-05-05 22:52:56 +00006995 xl*)
6996 # IBM XL C 8.0/Fortran 10.1 on PPC
6997 lt_prog_compiler_wl='-Wl,'
6998 lt_prog_compiler_pic='-qpic'
6999 lt_prog_compiler_static='-qstaticlink'
7000 ;;
7001 *)
7002 case `$CC -V 2>&1 | sed 5q` in
7003 *Sun\ C*)
7004 # Sun C 5.9
7005 lt_prog_compiler_pic='-KPIC'
7006 lt_prog_compiler_static='-Bstatic'
7007 lt_prog_compiler_wl='-Wl,'
7008 ;;
7009 *Sun\ F*)
7010 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7011 lt_prog_compiler_pic='-KPIC'
7012 lt_prog_compiler_static='-Bstatic'
7013 lt_prog_compiler_wl=''
7014 ;;
7015 esac
7016 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007017 esac
drh71eb93e2001-09-28 01:34:43 +00007018 ;;
7019
mlcreech636a9952008-05-05 22:52:56 +00007020 newsos6)
7021 lt_prog_compiler_pic='-KPIC'
7022 lt_prog_compiler_static='-Bstatic'
7023 ;;
7024
7025 *nto* | *qnx*)
7026 # QNX uses GNU C++, but need to define -shared option too, otherwise
7027 # it will coredump.
7028 lt_prog_compiler_pic='-fPIC -shared'
7029 ;;
7030
drh71eb93e2001-09-28 01:34:43 +00007031 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007032 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00007033 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00007034 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007035 ;;
7036
mlcreech636a9952008-05-05 22:52:56 +00007037 rdos*)
7038 lt_prog_compiler_static='-non_shared'
7039 ;;
7040
drh71eb93e2001-09-28 01:34:43 +00007041 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007042 lt_prog_compiler_pic='-KPIC'
7043 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00007044 case $cc_basename in
7045 f77* | f90* | f95*)
7046 lt_prog_compiler_wl='-Qoption ld ';;
7047 *)
7048 lt_prog_compiler_wl='-Wl,';;
7049 esac
drh71eb93e2001-09-28 01:34:43 +00007050 ;;
7051
7052 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007053 lt_prog_compiler_wl='-Qoption ld '
7054 lt_prog_compiler_pic='-PIC'
7055 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007056 ;;
7057
vapier7f19c022007-02-17 14:46:31 +00007058 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007059 lt_prog_compiler_wl='-Wl,'
7060 lt_prog_compiler_pic='-KPIC'
7061 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007062 ;;
7063
7064 sysv4*MP*)
7065 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00007066 lt_prog_compiler_pic='-Kconform_pic'
7067 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007068 fi
7069 ;;
7070
vapier7f19c022007-02-17 14:46:31 +00007071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7072 lt_prog_compiler_wl='-Wl,'
7073 lt_prog_compiler_pic='-KPIC'
7074 lt_prog_compiler_static='-Bstatic'
7075 ;;
7076
7077 unicos*)
7078 lt_prog_compiler_wl='-Wl,'
7079 lt_prog_compiler_can_build_shared=no
7080 ;;
7081
a.rottmann9bc8b932004-02-29 15:18:31 +00007082 uts4*)
7083 lt_prog_compiler_pic='-pic'
7084 lt_prog_compiler_static='-Bstatic'
7085 ;;
7086
drh71eb93e2001-09-28 01:34:43 +00007087 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007088 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007089 ;;
7090 esac
7091 fi
7092
mlcreech636a9952008-05-05 22:52:56 +00007093case $host_os in
7094 # For platforms which do not support PIC, -DPIC is meaningless:
7095 *djgpp*)
7096 lt_prog_compiler_pic=
7097 ;;
7098 *)
7099 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7100 ;;
7101esac
drh8b727472009-01-19 18:18:40 +00007102{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7103$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007104
7105
7106
7107
7108
drh71eb93e2001-09-28 01:34:43 +00007109
a.rottmann9bc8b932004-02-29 15:18:31 +00007110#
7111# Check to make sure the PIC flag actually works.
7112#
7113if test -n "$lt_prog_compiler_pic"; then
drh8b727472009-01-19 18:18:40 +00007114 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7115$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007116if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007117 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007118else
mlcreech636a9952008-05-05 22:52:56 +00007119 lt_cv_prog_compiler_pic_works=no
7120 ac_outfile=conftest.$ac_objext
7121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007122 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7123 # Insert the option either (1) after the last *FLAGS variable, or
7124 # (2) before a word containing "conftest.", or (3) at the end.
7125 # Note that $ac_compile itself does not contain backslashes and begins
7126 # with a dollar sign (not a hyphen), so the echo should work correctly.
7127 # The option is referenced via a variable to avoid confusing sed.
7128 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7131 -e 's:$: $lt_compiler_flag:'`
vapier6acb2cf2009-01-28 04:46:28 +00007132 (eval echo "\"\$as_me:7132: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007133 (eval "$lt_compile" 2>conftest.err)
7134 ac_status=$?
7135 cat conftest.err >&5
vapier6acb2cf2009-01-28 04:46:28 +00007136 echo "$as_me:7136: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007137 if (exit $ac_status) && test -s "$ac_outfile"; then
7138 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007139 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007140 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7142 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007143 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007144 fi
7145 fi
mlcreech636a9952008-05-05 22:52:56 +00007146 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007147
a.rottmann9bc8b932004-02-29 15:18:31 +00007148fi
drh8b727472009-01-19 18:18:40 +00007149{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7150$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007151
mlcreech636a9952008-05-05 22:52:56 +00007152if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007153 case $lt_prog_compiler_pic in
7154 "" | " "*) ;;
7155 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7156 esac
drh71eb93e2001-09-28 01:34:43 +00007157else
a.rottmann9bc8b932004-02-29 15:18:31 +00007158 lt_prog_compiler_pic=
7159 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007160fi
7161
a.rottmann84e63352003-03-24 09:42:16 +00007162fi
mlcreech636a9952008-05-05 22:52:56 +00007163
7164
7165
7166
7167
a.rottmann84e63352003-03-24 09:42:16 +00007168
vapier7f19c022007-02-17 14:46:31 +00007169#
7170# Check to make sure the static flag actually works.
7171#
7172wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh8b727472009-01-19 18:18:40 +00007173{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7174$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007175if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007176 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007177else
mlcreech636a9952008-05-05 22:52:56 +00007178 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007179 save_LDFLAGS="$LDFLAGS"
7180 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007181 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007182 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7183 # The linker can only warn and ignore the option if not recognized
7184 # So say no if there are warnings
7185 if test -s conftest.err; then
7186 # Append any errors to the config.log.
7187 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007188 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7190 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007191 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007192 fi
7193 else
mlcreech636a9952008-05-05 22:52:56 +00007194 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007195 fi
7196 fi
mlcreech636a9952008-05-05 22:52:56 +00007197 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007198 LDFLAGS="$save_LDFLAGS"
7199
7200fi
drh8b727472009-01-19 18:18:40 +00007201{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7202$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007203
mlcreech636a9952008-05-05 22:52:56 +00007204if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007205 :
7206else
7207 lt_prog_compiler_static=
7208fi
7209
7210
mlcreech636a9952008-05-05 22:52:56 +00007211
7212
7213
7214
7215
drh8b727472009-01-19 18:18:40 +00007216 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7217$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007218if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007219 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007220else
a.rottmann9bc8b932004-02-29 15:18:31 +00007221 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007222 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007223 mkdir conftest
7224 cd conftest
7225 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007227
a.rottmann9bc8b932004-02-29 15:18:31 +00007228 lt_compiler_flag="-o out/conftest2.$ac_objext"
7229 # Insert the option either (1) after the last *FLAGS variable, or
7230 # (2) before a word containing "conftest.", or (3) at the end.
7231 # Note that $ac_compile itself does not contain backslashes and begins
7232 # with a dollar sign (not a hyphen), so the echo should work correctly.
7233 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7236 -e 's:$: $lt_compiler_flag:'`
vapier6acb2cf2009-01-28 04:46:28 +00007237 (eval echo "\"\$as_me:7237: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007238 (eval "$lt_compile" 2>out/conftest.err)
7239 ac_status=$?
7240 cat out/conftest.err >&5
vapier6acb2cf2009-01-28 04:46:28 +00007241 echo "$as_me:7241: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7243 then
7244 # The compiler can only warn and ignore the option if not recognized
7245 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007246 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007249 lt_cv_prog_compiler_c_o=yes
7250 fi
7251 fi
vapier7f19c022007-02-17 14:46:31 +00007252 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007253 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007254 # SGI C++ compiler will create directory out/ii_files/ for
7255 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007256 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7257 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007258 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007259 $RM -r conftest
7260 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007261
7262fi
drh8b727472009-01-19 18:18:40 +00007263{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7264$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007265
7266
7267
7268
7269
7270
drh8b727472009-01-19 18:18:40 +00007271 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7272$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007273if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007274 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007275else
7276 lt_cv_prog_compiler_c_o=no
7277 $RM -r conftest 2>/dev/null
7278 mkdir conftest
7279 cd conftest
7280 mkdir out
7281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7282
7283 lt_compiler_flag="-o out/conftest2.$ac_objext"
7284 # Insert the option either (1) after the last *FLAGS variable, or
7285 # (2) before a word containing "conftest.", or (3) at the end.
7286 # Note that $ac_compile itself does not contain backslashes and begins
7287 # with a dollar sign (not a hyphen), so the echo should work correctly.
7288 lt_compile=`echo "$ac_compile" | $SED \
7289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7291 -e 's:$: $lt_compiler_flag:'`
vapier6acb2cf2009-01-28 04:46:28 +00007292 (eval echo "\"\$as_me:7292: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007293 (eval "$lt_compile" 2>out/conftest.err)
7294 ac_status=$?
7295 cat out/conftest.err >&5
vapier6acb2cf2009-01-28 04:46:28 +00007296 echo "$as_me:7296: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7298 then
7299 # The compiler can only warn and ignore the option if not recognized
7300 # So say no if there are warnings
7301 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7304 lt_cv_prog_compiler_c_o=yes
7305 fi
7306 fi
7307 chmod u+w . 2>&5
7308 $RM conftest*
7309 # SGI C++ compiler will create directory out/ii_files/ for
7310 # template instantiation
7311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7312 $RM out/* && rmdir out
7313 cd ..
7314 $RM -r conftest
7315 $RM conftest*
7316
7317fi
drh8b727472009-01-19 18:18:40 +00007318{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7319$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007320
7321
drh71eb93e2001-09-28 01:34:43 +00007322
a.rottmann84e63352003-03-24 09:42:16 +00007323
drh71eb93e2001-09-28 01:34:43 +00007324hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007325if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007326 # do not overwrite the value of need_locks provided by the user
drh8b727472009-01-19 18:18:40 +00007327 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7328$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007329 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007330 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7332 touch conftest.a
7333 ln conftest.a conftest.b 2>&5 || hard_links=no
7334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh8b727472009-01-19 18:18:40 +00007335 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7336$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007337 if test "$hard_links" = no; then
drh8b727472009-01-19 18:18:40 +00007338 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7339$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007340 need_locks=warn
7341 fi
7342else
7343 need_locks=no
7344fi
7345
mlcreech636a9952008-05-05 22:52:56 +00007346
7347
7348
7349
7350
drh8b727472009-01-19 18:18:40 +00007351 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7352$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007353
7354 runpath_var=
7355 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007356 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007357 archive_cmds=
7358 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007359 compiler_needs_object=no
7360 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007361 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007362 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7363 hardcode_automatic=no
7364 hardcode_direct=no
7365 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007366 hardcode_libdir_flag_spec=
7367 hardcode_libdir_flag_spec_ld=
7368 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007369 hardcode_minus_L=no
7370 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007371 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007372 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007373 module_cmds=
7374 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007375 old_archive_from_new_cmds=
7376 old_archive_from_expsyms_cmds=
7377 thread_safe_flag_spec=
7378 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007379 # include_expsyms should be a list of space-separated symbols to be *always*
7380 # included in the symbol list
7381 include_expsyms=
7382 # exclude_expsyms can be an extended regexp of symbols to exclude
7383 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7384 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7385 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007386 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007387 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7388 # platforms (ab)use it in PIC code, but their linkers get confused if
7389 # the symbol is explicitly referenced. Since portable code cannot
7390 # rely on this symbol name, it's probably fine to never include it in
7391 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007392 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007393 extract_expsyms_cmds=
7394
7395 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007396 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007397 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7398 # When not using gcc, we currently assume that we are using
7399 # Microsoft Visual C++.
7400 if test "$GCC" != yes; then
7401 with_gnu_ld=no
7402 fi
7403 ;;
vapier7f19c022007-02-17 14:46:31 +00007404 interix*)
7405 # we just hope/assume this is gcc and not c89 (= MSVC++)
7406 with_gnu_ld=yes
7407 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007408 openbsd*)
7409 with_gnu_ld=no
7410 ;;
7411 esac
7412
7413 ld_shlibs=yes
7414 if test "$with_gnu_ld" = yes; then
7415 # If archive_cmds runs LD, not CC, wlarc should be empty
7416 wlarc='${wl}'
7417
vapier7f19c022007-02-17 14:46:31 +00007418 # Set some defaults for GNU ld with shared library support. These
7419 # are reset later if shared libraries are not supported. Putting them
7420 # here allows them to be overridden if necessary.
7421 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007423 export_dynamic_flag_spec='${wl}--export-dynamic'
7424 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007425 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7426 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7427 else
7428 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007429 fi
7430 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007431 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007432 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7433 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7434 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7435 *\ 2.11.*) ;; # other 2.11 versions
7436 *) supports_anon_versioning=yes ;;
7437 esac
7438
a.rottmann9bc8b932004-02-29 15:18:31 +00007439 # See if GNU ld supports shared libraries.
7440 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007441 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007442 # On AIX/PPC, the GNU linker is very broken
7443 if test "$host_cpu" != ia64; then
7444 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007445 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007446
7447*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7448*** to be unable to reliably create shared libraries on AIX.
7449*** Therefore, libtool is disabling shared libraries support. If you
7450*** really care for shared libraries, you may want to modify your PATH
7451*** so that a non-GNU linker is found, and then restart.
7452
mlcreech636a9952008-05-05 22:52:56 +00007453_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007454 fi
7455 ;;
7456
7457 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007458 case $host_cpu in
7459 powerpc)
7460 # see comment about AmigaOS4 .so support
7461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7462 archive_expsym_cmds=''
7463 ;;
7464 m68k)
7465 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)'
7466 hardcode_libdir_flag_spec='-L$libdir'
7467 hardcode_minus_L=yes
7468 ;;
7469 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007470 ;;
7471
7472 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007474 allow_undefined_flag=unsupported
7475 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7476 # support --undefined. This deserves some investigation. FIXME
7477 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7478 else
7479 ld_shlibs=no
7480 fi
7481 ;;
7482
vapier6acb2cf2009-01-28 04:46:28 +00007483 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007484 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007485 # as there is no search path for DLLs.
7486 hardcode_libdir_flag_spec='-L$libdir'
7487 allow_undefined_flag=unsupported
7488 always_export_symbols=no
7489 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007490 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 +00007491
mlcreech636a9952008-05-05 22:52:56 +00007492 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007493 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 +00007494 # If the export-symbols file already is a .def file (1st line
7495 # is EXPORTS), use it as is; otherwise, prepend...
7496 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7497 cp $export_symbols $output_objdir/$soname.def;
7498 else
7499 echo EXPORTS > $output_objdir/$soname.def;
7500 cat $export_symbols >> $output_objdir/$soname.def;
7501 fi~
vapier7f19c022007-02-17 14:46:31 +00007502 $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 +00007503 else
7504 ld_shlibs=no
7505 fi
7506 ;;
7507
mlcreech636a9952008-05-05 22:52:56 +00007508 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007509 hardcode_direct=no
7510 hardcode_shlibpath_var=no
7511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7512 export_dynamic_flag_spec='${wl}-E'
7513 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7514 # Instead, shared libraries are loaded at an image base (0x10000000 by
7515 # default) and relocated if they conflict, which is a slow very memory
7516 # consuming and fragmenting process. To avoid this, we pick a random,
7517 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7518 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7519 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7520 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'
7521 ;;
7522
mlcreech636a9952008-05-05 22:52:56 +00007523 gnu* | linux* | tpf* | k*bsd*-gnu)
7524 tmp_diet=no
7525 if test "$host_os" = linux-dietlibc; then
7526 case $cc_basename in
7527 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7528 esac
7529 fi
7530 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7531 && test "$tmp_diet" = no
7532 then
vapier7f19c022007-02-17 14:46:31 +00007533 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007534 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007535 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007536 pgcc*) # Portland Group C compiler
7537 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 +00007538 tmp_addflag=' $pic_flag'
7539 ;;
7540 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007541 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 +00007542 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007543 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007544 tmp_addflag=' -i_dynamic' ;;
7545 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7546 tmp_addflag=' -i_dynamic -nofor_main' ;;
7547 ifc* | ifort*) # Intel Fortran compiler
7548 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007549 lf95*) # Lahey Fortran 8.1
7550 whole_archive_flag_spec=
7551 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007552 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7553 tmp_sharedflag='-qmkshrobj'
7554 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007555 esac
mlcreech636a9952008-05-05 22:52:56 +00007556 case `$CC -V 2>&1 | sed 5q` in
7557 *Sun\ C*) # Sun C 5.9
7558 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'
7559 compiler_needs_object=yes
7560 tmp_sharedflag='-G' ;;
7561 *Sun\ F*) # Sun Fortran 8.3
7562 tmp_sharedflag='-G' ;;
7563 esac
7564 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007565
mlcreech636a9952008-05-05 22:52:56 +00007566 if test "x$supports_anon_versioning" = xyes; then
7567 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7568 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7569 echo "local: *; };" >> $output_objdir/$libname.ver~
7570 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7571 fi
7572
7573 case $cc_basename in
7574 xlf*)
7575 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7576 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7577 hardcode_libdir_flag_spec=
7578 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7579 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7580 if test "x$supports_anon_versioning" = xyes; then
7581 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7582 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7583 echo "local: *; };" >> $output_objdir/$libname.ver~
7584 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7585 fi
7586 ;;
7587 esac
vapier7f19c022007-02-17 14:46:31 +00007588 else
mlcreech636a9952008-05-05 22:52:56 +00007589 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007590 fi
7591 ;;
7592
7593 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007595 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7596 wlarc=
7597 else
7598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7600 fi
7601 ;;
7602
vapier7f19c022007-02-17 14:46:31 +00007603 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007604 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007605 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007606 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007607
7608*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7609*** create shared libraries on Solaris systems. Therefore, libtool
7610*** is disabling shared libraries support. We urge you to upgrade GNU
7611*** binutils to release 2.9.1 or newer. Another option is to modify
7612*** your PATH or compiler configuration so that the native linker is
7613*** used, and then restart.
7614
mlcreech636a9952008-05-05 22:52:56 +00007615_LT_EOF
7616 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7618 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7619 else
7620 ld_shlibs=no
7621 fi
7622 ;;
7623
vapier7f19c022007-02-17 14:46:31 +00007624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7625 case `$LD -v 2>&1` in
7626 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7627 ld_shlibs=no
7628 cat <<_LT_EOF 1>&2
7629
7630*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7631*** reliably create shared libraries on SCO systems. Therefore, libtool
7632*** is disabling shared libraries support. We urge you to upgrade GNU
7633*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7634*** your PATH or compiler configuration so that the native linker is
7635*** used, and then restart.
7636
7637_LT_EOF
7638 ;;
7639 *)
mlcreech636a9952008-05-05 22:52:56 +00007640 # For security reasons, it is highly recommended that you always
7641 # use absolute paths for naming shared libraries, and exclude the
7642 # DT_RUNPATH tag from executables and libraries. But doing so
7643 # requires that you compile everything twice, which is a pain.
7644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7647 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 +00007648 else
7649 ld_shlibs=no
7650 fi
7651 ;;
7652 esac
7653 ;;
7654
a.rottmann9bc8b932004-02-29 15:18:31 +00007655 sunos4*)
7656 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7657 wlarc=
7658 hardcode_direct=yes
7659 hardcode_shlibpath_var=no
7660 ;;
7661
a.rottmann9bc8b932004-02-29 15:18:31 +00007662 *)
mlcreech636a9952008-05-05 22:52:56 +00007663 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7666 else
7667 ld_shlibs=no
7668 fi
7669 ;;
7670 esac
7671
vapier7f19c022007-02-17 14:46:31 +00007672 if test "$ld_shlibs" = no; then
7673 runpath_var=
7674 hardcode_libdir_flag_spec=
7675 export_dynamic_flag_spec=
7676 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007677 fi
7678 else
7679 # PORTME fill in a description of your system's linker (not GNU ld)
7680 case $host_os in
7681 aix3*)
7682 allow_undefined_flag=unsupported
7683 always_export_symbols=yes
7684 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'
7685 # Note: this linker hardcodes the directories in LIBPATH if there
7686 # are no directories specified by -L.
7687 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007688 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007689 # Neither direct hardcoding nor static linking is supported with a
7690 # broken collect2.
7691 hardcode_direct=unsupported
7692 fi
7693 ;;
7694
mlcreech636a9952008-05-05 22:52:56 +00007695 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007696 if test "$host_cpu" = ia64; then
7697 # On IA64, the linker does run time linking by default, so we don't
7698 # have to do anything special.
7699 aix_use_runtimelinking=no
7700 exp_sym_flag='-Bexport'
7701 no_entry_flag=""
7702 else
7703 # If we're using GNU nm, then we don't want the "-C" option.
7704 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007705 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7706 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 +00007707 else
mlcreech636a9952008-05-05 22:52:56 +00007708 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 +00007709 fi
7710 aix_use_runtimelinking=no
7711
7712 # Test if we are trying to use run time linking or normal
7713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7714 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007715 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007716 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007717 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7718 aix_use_runtimelinking=yes
7719 break
7720 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007721 done
vapier7f19c022007-02-17 14:46:31 +00007722 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007723 esac
7724
7725 exp_sym_flag='-bexport'
7726 no_entry_flag='-bnoentry'
7727 fi
7728
7729 # When large executables or shared objects are built, AIX ld can
7730 # have problems creating the table of contents. If linking a library
7731 # or program results in "error TOC overflow" add -mminimal-toc to
7732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7734
7735 archive_cmds=''
7736 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007737 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007738 hardcode_libdir_separator=':'
7739 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007740 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007741
7742 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007743 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007744 # We only want to do this on AIX 4.2 and lower, the check
7745 # below for broken collect2 doesn't work under 4.3+
7746 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007747 if test -f "$collect2name" &&
7748 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007749 then
mlcreech636a9952008-05-05 22:52:56 +00007750 # We have reworked collect2
7751 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007752 else
mlcreech636a9952008-05-05 22:52:56 +00007753 # We have old collect2
7754 hardcode_direct=unsupported
7755 # It fails to find uninstalled libraries when the uninstalled
7756 # path is not listed in the libpath. Setting hardcode_minus_L
7757 # to unsupported forces relinking
7758 hardcode_minus_L=yes
7759 hardcode_libdir_flag_spec='-L$libdir'
7760 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007761 fi
vapier7f19c022007-02-17 14:46:31 +00007762 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007763 esac
7764 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007765 if test "$aix_use_runtimelinking" = yes; then
7766 shared_flag="$shared_flag "'${wl}-G'
7767 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007768 else
7769 # not using gcc
7770 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7772 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007773 shared_flag='-G'
7774 else
vapier7f19c022007-02-17 14:46:31 +00007775 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007776 shared_flag='${wl}-G'
7777 else
7778 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007779 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007780 fi
7781 fi
7782
vapier6acb2cf2009-01-28 04:46:28 +00007783 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007784 # It seems that -bexpall does not export symbols beginning with
7785 # underscore (_), so it is better to generate a list of symbols to export.
7786 always_export_symbols=yes
7787 if test "$aix_use_runtimelinking" = yes; then
7788 # Warning - without using the other runtime loading flags (-brtl),
7789 # -berok will link without error, but may produce a broken library.
7790 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007791 # Determine the default libpath from the value encoded in an
7792 # empty executable.
7793 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007794/* confdefs.h. */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007799
a.rottmann84e63352003-03-24 09:42:16 +00007800int
7801main ()
7802{
a.rottmann9bc8b932004-02-29 15:18:31 +00007803
a.rottmann84e63352003-03-24 09:42:16 +00007804 ;
7805 return 0;
7806}
7807_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007808rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00007809if { (ac_try="$ac_link"
7810case "(($ac_try" in
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7813esac
7814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7815$as_echo "$ac_try_echo") >&5
7816 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007817 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && {
7823 test -z "$ac_c_werror_flag" ||
7824 test ! -s conftest.err
7825 } && test -s conftest$ac_exeext && {
7826 test "$cross_compiling" = yes ||
7827 $as_test_x conftest$ac_exeext
7828 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007829
mlcreech636a9952008-05-05 22:52:56 +00007830lt_aix_libpath_sed='
7831 /Import File Strings/,/^$/ {
7832 /^0/ {
7833 s/^0 *\(.*\)$/\1/
7834 p
7835 }
7836 }'
7837aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007838# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007839if test -z "$aix_libpath"; then
7840 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7841fi
a.rottmann84e63352003-03-24 09:42:16 +00007842else
drh8b727472009-01-19 18:18:40 +00007843 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007844sed 's/^/| /' conftest.$ac_ext >&5
7845
drh8b727472009-01-19 18:18:40 +00007846
a.rottmann84e63352003-03-24 09:42:16 +00007847fi
drh8b727472009-01-19 18:18:40 +00007848
7849rm -rf conftest.dSYM
7850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007851 conftest$ac_exeext conftest.$ac_ext
7852if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007853
mlcreech636a9952008-05-05 22:52:56 +00007854 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7855 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"
7856 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007857 if test "$host_cpu" = ia64; then
7858 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7859 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007860 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 +00007861 else
mlcreech636a9952008-05-05 22:52:56 +00007862 # Determine the default libpath from the value encoded in an
7863 # empty executable.
a.rottmann9bc8b932004-02-29 15:18:31 +00007864 cat >conftest.$ac_ext <<_ACEOF
7865/* confdefs.h. */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007870
a.rottmann9bc8b932004-02-29 15:18:31 +00007871int
7872main ()
7873{
a.rottmann84e63352003-03-24 09:42:16 +00007874
a.rottmann9bc8b932004-02-29 15:18:31 +00007875 ;
7876 return 0;
7877}
7878_ACEOF
7879rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00007880if { (ac_try="$ac_link"
7881case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7884esac
7885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7886$as_echo "$ac_try_echo") >&5
7887 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest$ac_exeext && {
7897 test "$cross_compiling" = yes ||
7898 $as_test_x conftest$ac_exeext
7899 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007900
mlcreech636a9952008-05-05 22:52:56 +00007901lt_aix_libpath_sed='
7902 /Import File Strings/,/^$/ {
7903 /^0/ {
7904 s/^0 *\(.*\)$/\1/
7905 p
7906 }
7907 }'
7908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007909# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007910if test -z "$aix_libpath"; then
7911 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7912fi
a.rottmann84e63352003-03-24 09:42:16 +00007913else
drh8b727472009-01-19 18:18:40 +00007914 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007915sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00007916
drh8b727472009-01-19 18:18:40 +00007917
a.rottmann9bc8b932004-02-29 15:18:31 +00007918fi
drh8b727472009-01-19 18:18:40 +00007919
7920rm -rf conftest.dSYM
7921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007922 conftest$ac_exeext conftest.$ac_ext
7923if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007924
a.rottmann9bc8b932004-02-29 15:18:31 +00007925 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7926 # Warning - without using the other run time loading flags,
7927 # -berok will link without error, but may produce a broken library.
7928 no_undefined_flag=' ${wl}-bernotok'
7929 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007930 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007931 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007932 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007933 # This is similar to how AIX traditionally builds its shared libraries.
7934 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 +00007935 fi
7936 fi
a.rottmann84e63352003-03-24 09:42:16 +00007937 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007938
7939 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007940 case $host_cpu in
7941 powerpc)
7942 # see comment about AmigaOS4 .so support
7943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7944 archive_expsym_cmds=''
7945 ;;
7946 m68k)
7947 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)'
7948 hardcode_libdir_flag_spec='-L$libdir'
7949 hardcode_minus_L=yes
7950 ;;
7951 esac
a.rottmann84e63352003-03-24 09:42:16 +00007952 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007953
vapier7f19c022007-02-17 14:46:31 +00007954 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007955 export_dynamic_flag_spec=-rdynamic
7956 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007957
vapier6acb2cf2009-01-28 04:46:28 +00007958 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007959 # When not using gcc, we currently assume that we are using
7960 # Microsoft Visual C++.
7961 # hardcode_libdir_flag_spec is actually meaningless, as there is
7962 # no search path for DLLs.
7963 hardcode_libdir_flag_spec=' '
7964 allow_undefined_flag=unsupported
7965 # Tell ltmain to make .lib files, not .a files.
7966 libext=lib
7967 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007968 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007969 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007970 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 +00007971 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007972 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007973 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007974 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007975 fix_srcfile_path='`cygpath -w "$srcfile"`'
7976 enable_shared_with_static_runtimes=yes
7977 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007978
a.rottmann9bc8b932004-02-29 15:18:31 +00007979 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007980
7981
7982 archive_cmds_need_lc=no
7983 hardcode_direct=no
7984 hardcode_automatic=yes
7985 hardcode_shlibpath_var=unsupported
7986 whole_archive_flag_spec=''
7987 link_all_deplibs=yes
7988 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007989 case $cc_basename in
7990 ifort*) _lt_dar_can_shared=yes ;;
7991 *) _lt_dar_can_shared=$GCC ;;
7992 esac
7993 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007994 output_verbose_link_cmd=echo
7995 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7996 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7997 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}"
7998 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}"
7999
8000 else
8001 ld_shlibs=no
8002 fi
8003
a.rottmann9bc8b932004-02-29 15:18:31 +00008004 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008005
a.rottmann9bc8b932004-02-29 15:18:31 +00008006 dgux*)
8007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8008 hardcode_libdir_flag_spec='-L$libdir'
8009 hardcode_shlibpath_var=no
8010 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008011
a.rottmann9bc8b932004-02-29 15:18:31 +00008012 freebsd1*)
8013 ld_shlibs=no
8014 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008015
a.rottmann9bc8b932004-02-29 15:18:31 +00008016 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8017 # support. Future versions do this automatically, but an explicit c++rt0.o
8018 # does not break anything, and helps significantly (at the cost of a little
8019 # extra space).
8020 freebsd2.2*)
8021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8022 hardcode_libdir_flag_spec='-R$libdir'
8023 hardcode_direct=yes
8024 hardcode_shlibpath_var=no
8025 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008026
a.rottmann9bc8b932004-02-29 15:18:31 +00008027 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8028 freebsd2*)
8029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8030 hardcode_direct=yes
8031 hardcode_minus_L=yes
8032 hardcode_shlibpath_var=no
8033 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008034
a.rottmann9bc8b932004-02-29 15:18:31 +00008035 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00008036 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008037 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8038 hardcode_libdir_flag_spec='-R$libdir'
8039 hardcode_direct=yes
8040 hardcode_shlibpath_var=no
8041 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008042
a.rottmann9bc8b932004-02-29 15:18:31 +00008043 hpux9*)
8044 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008045 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 +00008046 else
mlcreech636a9952008-05-05 22:52:56 +00008047 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 +00008048 fi
8049 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8050 hardcode_libdir_separator=:
8051 hardcode_direct=yes
8052
8053 # hardcode_minus_L: Not really in the search PATH,
8054 # but as the default location of the library.
8055 hardcode_minus_L=yes
8056 export_dynamic_flag_spec='${wl}-E'
8057 ;;
8058
vapier7f19c022007-02-17 14:46:31 +00008059 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008060 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8062 else
8063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8064 fi
8065 if test "$with_gnu_ld" = no; then
8066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00008067 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00008068 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00008069 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008070 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00008071 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00008072 # hardcode_minus_L: Not really in the search PATH,
8073 # but as the default location of the library.
8074 hardcode_minus_L=yes
8075 fi
8076 ;;
8077
8078 hpux11*)
8079 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8080 case $host_cpu in
8081 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008082 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8083 ;;
vapier7f19c022007-02-17 14:46:31 +00008084 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00008085 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008086 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008087 *)
8088 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8089 ;;
8090 esac
8091 else
vapier7f19c022007-02-17 14:46:31 +00008092 case $host_cpu in
8093 hppa*64*)
8094 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8095 ;;
8096 ia64*)
8097 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008098 ;;
8099 *)
vapier7f19c022007-02-17 14:46:31 +00008100 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 +00008101 ;;
8102 esac
8103 fi
8104 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8106 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00008107
vapier7f19c022007-02-17 14:46:31 +00008108 case $host_cpu in
8109 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00008110 hardcode_direct=no
8111 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008112 ;;
8113 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008114 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008115 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008116 export_dynamic_flag_spec='${wl}-E'
8117
8118 # hardcode_minus_L: Not really in the search PATH,
8119 # but as the default location of the library.
8120 hardcode_minus_L=yes
8121 ;;
8122 esac
8123 fi
8124 ;;
8125
8126 irix5* | irix6* | nonstopux*)
8127 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008128 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'
8129 # Try to use the -exported_symbol ld option, if it does not
8130 # work, assume that -exports_file does not work either and
8131 # implicitly export all symbols.
8132 save_LDFLAGS="$LDFLAGS"
8133 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8134 cat >conftest.$ac_ext <<_ACEOF
8135int foo(void) {}
8136_ACEOF
8137rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00008138if { (ac_try="$ac_link"
8139case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142esac
8143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8144$as_echo "$ac_try_echo") >&5
8145 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00008146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00008150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest$ac_exeext && {
8155 test "$cross_compiling" = yes ||
8156 $as_test_x conftest$ac_exeext
8157 }; then
mlcreech636a9952008-05-05 22:52:56 +00008158 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'
8159
8160else
drh8b727472009-01-19 18:18:40 +00008161 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00008162sed 's/^/| /' conftest.$ac_ext >&5
8163
drh8b727472009-01-19 18:18:40 +00008164
mlcreech636a9952008-05-05 22:52:56 +00008165fi
drh8b727472009-01-19 18:18:40 +00008166
8167rm -rf conftest.dSYM
8168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00008169 conftest$ac_exeext conftest.$ac_ext
8170 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008171 else
mlcreech636a9952008-05-05 22:52:56 +00008172 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'
8173 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 +00008174 fi
mlcreech636a9952008-05-05 22:52:56 +00008175 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8177 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00008178 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008179 link_all_deplibs=yes
8180 ;;
8181
vapier7f19c022007-02-17 14:46:31 +00008182 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008183 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8185 else
8186 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8187 fi
8188 hardcode_libdir_flag_spec='-R$libdir'
8189 hardcode_direct=yes
8190 hardcode_shlibpath_var=no
8191 ;;
8192
8193 newsos6)
8194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8195 hardcode_direct=yes
8196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8197 hardcode_libdir_separator=:
8198 hardcode_shlibpath_var=no
8199 ;;
8200
mlcreech636a9952008-05-05 22:52:56 +00008201 *nto* | *qnx*)
8202 ;;
8203
a.rottmann9bc8b932004-02-29 15:18:31 +00008204 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008205 if test -f /usr/libexec/ld.so; then
8206 hardcode_direct=yes
8207 hardcode_shlibpath_var=no
8208 hardcode_direct_absolute=yes
8209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8211 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8212 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8213 export_dynamic_flag_spec='${wl}-E'
8214 else
8215 case $host_os in
8216 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8218 hardcode_libdir_flag_spec='-R$libdir'
8219 ;;
8220 *)
8221 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8222 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8223 ;;
8224 esac
8225 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008226 else
mlcreech636a9952008-05-05 22:52:56 +00008227 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008228 fi
8229 ;;
8230
8231 os2*)
8232 hardcode_libdir_flag_spec='-L$libdir'
8233 hardcode_minus_L=yes
8234 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008235 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'
8236 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008237 ;;
8238
8239 osf3*)
8240 if test "$GCC" = yes; then
8241 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008242 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 +00008243 else
8244 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008245 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 +00008246 fi
mlcreech636a9952008-05-05 22:52:56 +00008247 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8249 hardcode_libdir_separator=:
8250 ;;
8251
8252 osf4* | osf5*) # as osf3* with the addition of -msym flag
8253 if test "$GCC" = yes; then
8254 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008255 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 +00008256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8257 else
8258 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008259 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'
8260 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~
8261 $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 +00008262
8263 # Both c and cxx compiler support -rpath directly
8264 hardcode_libdir_flag_spec='-rpath $libdir'
8265 fi
mlcreech636a9952008-05-05 22:52:56 +00008266 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008267 hardcode_libdir_separator=:
8268 ;;
8269
a.rottmann9bc8b932004-02-29 15:18:31 +00008270 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008271 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008272 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008273 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008274 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8275 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8276 $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 +00008277 else
mlcreech636a9952008-05-05 22:52:56 +00008278 case `$CC -V 2>&1` in
8279 *"Compilers 5.0"*)
8280 wlarc=''
8281 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8282 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8283 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8284 ;;
8285 *)
8286 wlarc='${wl}'
8287 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8289 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8290 ;;
8291 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008292 fi
8293 hardcode_libdir_flag_spec='-R$libdir'
8294 hardcode_shlibpath_var=no
8295 case $host_os in
8296 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008297 *)
mlcreech636a9952008-05-05 22:52:56 +00008298 # The compiler driver will combine and reorder linker options,
8299 # but understands `-z linker_flag'. GCC discards it without `$wl',
8300 # but is careful enough not to reorder.
8301 # Supported since Solaris 2.6 (maybe 2.5.1?)
8302 if test "$GCC" = yes; then
8303 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8304 else
8305 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8306 fi
8307 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008308 esac
8309 link_all_deplibs=yes
8310 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008311
a.rottmann9bc8b932004-02-29 15:18:31 +00008312 sunos4*)
8313 if test "x$host_vendor" = xsequent; then
8314 # Use $CC to link under sequent, because it throws in some extra .o
8315 # files that make .init and .fini sections work.
8316 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8317 else
8318 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8319 fi
8320 hardcode_libdir_flag_spec='-L$libdir'
8321 hardcode_direct=yes
8322 hardcode_minus_L=yes
8323 hardcode_shlibpath_var=no
8324 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008325
a.rottmann9bc8b932004-02-29 15:18:31 +00008326 sysv4)
8327 case $host_vendor in
8328 sni)
8329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8330 hardcode_direct=yes # is this really true???
8331 ;;
8332 siemens)
8333 ## LD is ld it makes a PLAMLIB
8334 ## CC just makes a GrossModule.
8335 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8336 reload_cmds='$CC -r -o $output$reload_objs'
8337 hardcode_direct=no
8338 ;;
8339 motorola)
8340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8341 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8342 ;;
8343 esac
8344 runpath_var='LD_RUN_PATH'
8345 hardcode_shlibpath_var=no
8346 ;;
8347
8348 sysv4.3*)
8349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8350 hardcode_shlibpath_var=no
8351 export_dynamic_flag_spec='-Bexport'
8352 ;;
8353
8354 sysv4*MP*)
8355 if test -d /usr/nec; then
8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_shlibpath_var=no
8358 runpath_var=LD_RUN_PATH
8359 hardcode_runpath_var=yes
8360 ld_shlibs=yes
8361 fi
8362 ;;
8363
mlcreech636a9952008-05-05 22:52:56 +00008364 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008365 no_undefined_flag='${wl}-z,text'
8366 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008367 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008368 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008369
a.rottmann9bc8b932004-02-29 15:18:31 +00008370 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008371 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8372 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 +00008373 else
vapier7f19c022007-02-17 14:46:31 +00008374 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8375 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 +00008376 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008377 ;;
8378
vapier7f19c022007-02-17 14:46:31 +00008379 sysv5* | sco3.2v5* | sco5v6*)
8380 # Note: We can NOT use -z defs as we might desire, because we do not
8381 # link with -lc, and that would cause any symbols used from libc to
8382 # always be unresolved, which means just about no library would
8383 # ever link correctly. If we're not using GNU ld we use -z text
8384 # though, which does catch some bad symbols but isn't as heavy-handed
8385 # as -z defs.
8386 no_undefined_flag='${wl}-z,text'
8387 allow_undefined_flag='${wl}-z,nodefs'
8388 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008389 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008390 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008391 hardcode_libdir_separator=':'
8392 link_all_deplibs=yes
8393 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008394 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008395
8396 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008397 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008399 else
mlcreech636a9952008-05-05 22:52:56 +00008400 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008402 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008403 ;;
8404
8405 uts4*)
8406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407 hardcode_libdir_flag_spec='-L$libdir'
8408 hardcode_shlibpath_var=no
8409 ;;
8410
8411 *)
8412 ld_shlibs=no
8413 ;;
8414 esac
mlcreech636a9952008-05-05 22:52:56 +00008415
8416 if test x$host_vendor = xsni; then
8417 case $host in
8418 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8419 export_dynamic_flag_spec='${wl}-Blargedynsym'
8420 ;;
8421 esac
8422 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008423 fi
8424
drh8b727472009-01-19 18:18:40 +00008425{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8426$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008427test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008428
mlcreech636a9952008-05-05 22:52:56 +00008429with_gnu_ld=$with_gnu_ld
8430
8431
danielk197733a14782008-08-04 14:50:05 +00008432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
a.rottmann9bc8b932004-02-29 15:18:31 +00008445#
8446# Do we need to explicitly link libc?
8447#
8448case "x$archive_cmds_need_lc" in
8449x|xyes)
8450 # Assume -lc should be added
8451 archive_cmds_need_lc=yes
8452
8453 if test "$enable_shared" = yes && test "$GCC" = yes; then
8454 case $archive_cmds in
8455 *'~'*)
8456 # FIXME: we may have to deal with multi-command sequences.
8457 ;;
8458 '$CC '*)
8459 # Test whether the compiler implicitly links with -lc since on some
8460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8461 # to ld, don't add -lc before -lgcc.
drh8b727472009-01-19 18:18:40 +00008462 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8463$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008464 $RM conftest*
8465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008466
8467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>&5
8469 ac_status=$?
drh8b727472009-01-19 18:18:40 +00008470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008471 (exit $ac_status); } 2>conftest.err; then
8472 soname=conftest
8473 lib=conftest
8474 libobjs=conftest.$ac_objext
8475 deplibs=
8476 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008477 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008478 compiler_flags=-v
8479 linker_flags=-v
8480 verstring=
8481 output_objdir=.
8482 libname=conftest
8483 lt_save_allow_undefined_flag=$allow_undefined_flag
8484 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00008485 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8486 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008487 ac_status=$?
drh8b727472009-01-19 18:18:40 +00008488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008489 (exit $ac_status); }
8490 then
8491 archive_cmds_need_lc=no
8492 else
8493 archive_cmds_need_lc=yes
8494 fi
8495 allow_undefined_flag=$lt_save_allow_undefined_flag
8496 else
8497 cat conftest.err 1>&5
8498 fi
mlcreech636a9952008-05-05 22:52:56 +00008499 $RM conftest*
drh8b727472009-01-19 18:18:40 +00008500 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8501$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008502 ;;
8503 esac
drh71eb93e2001-09-28 01:34:43 +00008504 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008505 ;;
8506esac
drh71eb93e2001-09-28 01:34:43 +00008507
mlcreech636a9952008-05-05 22:52:56 +00008508
danielk197733a14782008-08-04 14:50:05 +00008509
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
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
drh8b727472009-01-19 18:18:40 +00008664 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8665$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008666
8667if test "$GCC" = yes; then
8668 case $host_os in
8669 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8670 *) lt_awk_arg="/^libraries:/" ;;
8671 esac
8672 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8673 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8674 # if the path contains ";" then we assume it to be the separator
8675 # otherwise default to the standard path separator (i.e. ":") - it is
8676 # assumed that no part of a normal pathname contains ";" but that should
8677 # okay in the real world where ";" in dirpaths is itself problematic.
8678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8679 else
8680 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8681 fi
8682 # Ok, now we have the path, separated by spaces, we can step through it
8683 # and add multilib dir if necessary.
8684 lt_tmp_lt_search_path_spec=
8685 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8686 for lt_sys_path in $lt_search_path_spec; do
8687 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8688 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8689 else
8690 test -d "$lt_sys_path" && \
8691 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8692 fi
8693 done
8694 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8695BEGIN {RS=" "; FS="/|\n";} {
8696 lt_foo="";
8697 lt_count=0;
8698 for (lt_i = NF; lt_i > 0; lt_i--) {
8699 if ($lt_i != "" && $lt_i != ".") {
8700 if ($lt_i == "..") {
8701 lt_count++;
8702 } else {
8703 if (lt_count == 0) {
8704 lt_foo="/" $lt_i lt_foo;
8705 } else {
8706 lt_count--;
8707 }
8708 }
8709 }
8710 }
8711 if (lt_foo != "") { lt_freq[lt_foo]++; }
8712 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8713}'`
8714 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8715else
8716 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8717fi
drh71eb93e2001-09-28 01:34:43 +00008718library_names_spec=
8719libname_spec='lib$name'
8720soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008721shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008722postinstall_cmds=
8723postuninstall_cmds=
8724finish_cmds=
8725finish_eval=
8726shlibpath_var=
8727shlibpath_overrides_runpath=unknown
8728version_type=none
8729dynamic_linker="$host_os ld.so"
8730sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008731need_lib_prefix=unknown
8732hardcode_into_libs=no
8733
8734# when you set need_version to no, make sure it does not cause -set_version
8735# flags to be left without arguments
8736need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008737
8738case $host_os in
8739aix3*)
8740 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008742 shlibpath_var=LIBPATH
8743
a.rottmann9bc8b932004-02-29 15:18:31 +00008744 # AIX 3 has no versioning support, so we append a major version to the name.
8745 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008746 ;;
8747
mlcreech636a9952008-05-05 22:52:56 +00008748aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008749 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008750 need_lib_prefix=no
8751 need_version=no
8752 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008753 if test "$host_cpu" = ia64; then
8754 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008756 shlibpath_var=LD_LIBRARY_PATH
8757 else
8758 # With GCC up to 2.95.x, collect2 would create an import file
8759 # for dependence libraries. The import file would start with
8760 # the line `#! .'. This would cause the generated library to
8761 # depend on `.', always an invalid library. This was fixed in
8762 # development snapshots of GCC prior to 3.0.
8763 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008764 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8766 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008767 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008768 :
8769 else
8770 can_build_shared=no
8771 fi
8772 ;;
drh71eb93e2001-09-28 01:34:43 +00008773 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8775 # soname into executable. Probably we can add versioning support to
8776 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008777 if test "$aix_use_runtimelinking" = yes; then
8778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8779 # instead of lib<name>.a to let people know that these are not
8780 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008782 else
8783 # We preserve .a as extension for shared libraries through AIX4.2
8784 # and later when we are not doing run time linking.
8785 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008786 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008787 fi
8788 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008789 fi
8790 ;;
8791
8792amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008793 case $host_cpu in
8794 powerpc)
8795 # Since July 2007 AmigaOS4 officially supports .so libraries.
8796 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8798 ;;
8799 m68k)
8800 library_names_spec='$libname.ixlibrary $libname.a'
8801 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8802 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'
8803 ;;
8804 esac
drh71eb93e2001-09-28 01:34:43 +00008805 ;;
8806
8807beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008808 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008809 dynamic_linker="$host_os ld.so"
8810 shlibpath_var=LIBRARY_PATH
8811 ;;
8812
vapier7f19c022007-02-17 14:46:31 +00008813bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008814 version_type=linux
8815 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8822 # the default ld.so.conf also contains /usr/contrib/lib and
8823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8824 # libtool to hard-code these into programs
8825 ;;
8826
vapier6acb2cf2009-01-28 04:46:28 +00008827cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008828 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008829 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008830 need_version=no
8831 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008832
drh71eb93e2001-09-28 01:34:43 +00008833 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008834 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008835 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8837 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008839 dldir=$destdir/`dirname \$dlpath`~
8840 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008841 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008842 chmod a+x \$dldir/$dlname~
8843 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8844 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8845 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008847 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008848 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008849 shlibpath_overrides_runpath=yes
8850
8851 case $host_os in
8852 cygwin*)
8853 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8854 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8855 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8856 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008857 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008858 # MinGW DLLs use traditional 'lib' prefix
8859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008860 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8861 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008862 # It is most probably a Windows format PATH printed by
8863 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8864 # path with ; separators, and with drive letters. We can handle the
8865 # drive letters (cygwin fileutils understands them), so leave them,
8866 # especially as we might pass files found there to a mingw objdump,
8867 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008868 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008869 else
mlcreech636a9952008-05-05 22:52:56 +00008870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008871 fi
8872 ;;
8873 pw32*)
8874 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008875 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 +00008876 ;;
8877 esac
drh71eb93e2001-09-28 01:34:43 +00008878 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008879
drh71eb93e2001-09-28 01:34:43 +00008880 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008882 ;;
8883 esac
8884 dynamic_linker='Win32 ld.exe'
8885 # FIXME: first we should search . and the directory the executable is in
8886 shlibpath_var=PATH
8887 ;;
8888
8889darwin* | rhapsody*)
8890 dynamic_linker="$host_os dyld"
8891 version_type=darwin
8892 need_lib_prefix=no
8893 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008894 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008895 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008896 shlibpath_overrides_runpath=yes
8897 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008898 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008899
8900 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008901 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8902 ;;
8903
8904dgux*)
8905 version_type=linux
8906 need_lib_prefix=no
8907 need_version=no
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008911 ;;
8912
a.rottmann84e63352003-03-24 09:42:16 +00008913freebsd1*)
8914 dynamic_linker=no
8915 ;;
8916
vapier7f19c022007-02-17 14:46:31 +00008917freebsd* | dragonfly*)
8918 # DragonFly does not have aout. When/if they implement a new
8919 # versioning mechanism, adjust this.
8920 if test -x /usr/bin/objformat; then
8921 objformat=`/usr/bin/objformat`
8922 else
8923 case $host_os in
8924 freebsd[123]*) objformat=aout ;;
8925 *) objformat=elf ;;
8926 esac
8927 fi
8928 # Handle Gentoo/FreeBSD as it was Linux
8929 case $host_vendor in
8930 gentoo)
8931 version_type=linux ;;
8932 *)
8933 version_type=freebsd-$objformat ;;
8934 esac
8935
drh71eb93e2001-09-28 01:34:43 +00008936 case $version_type in
8937 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008939 need_version=no
8940 need_lib_prefix=no
8941 ;;
8942 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008944 need_version=yes
8945 ;;
vapier7f19c022007-02-17 14:46:31 +00008946 linux)
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 need_lib_prefix=no
8950 need_version=no
8951 ;;
drh71eb93e2001-09-28 01:34:43 +00008952 esac
8953 shlibpath_var=LD_LIBRARY_PATH
8954 case $host_os in
8955 freebsd2*)
8956 shlibpath_overrides_runpath=yes
8957 ;;
vapier7f19c022007-02-17 14:46:31 +00008958 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008959 shlibpath_overrides_runpath=yes
8960 hardcode_into_libs=yes
8961 ;;
vapier7f19c022007-02-17 14:46:31 +00008962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008964 shlibpath_overrides_runpath=no
8965 hardcode_into_libs=yes
8966 ;;
mlcreech636a9952008-05-05 22:52:56 +00008967 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008968 shlibpath_overrides_runpath=yes
8969 hardcode_into_libs=yes
8970 ;;
drh71eb93e2001-09-28 01:34:43 +00008971 esac
8972 ;;
8973
8974gnu*)
8975 version_type=linux
8976 need_lib_prefix=no
8977 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008980 shlibpath_var=LD_LIBRARY_PATH
8981 hardcode_into_libs=yes
8982 ;;
8983
8984hpux9* | hpux10* | hpux11*)
8985 # Give a soname corresponding to the major version so that dld.sl refuses to
8986 # link against other versions.
8987 version_type=sunos
8988 need_lib_prefix=no
8989 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008990 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008991 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008992 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008993 hardcode_into_libs=yes
8994 dynamic_linker="$host_os dld.so"
8995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 if test "X$HPUX_IA64_MODE" = X32; then
9000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9001 else
9002 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9003 fi
9004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9005 ;;
mlcreech636a9952008-05-05 22:52:56 +00009006 hppa*64*)
9007 shrext_cmds='.sl'
9008 hardcode_into_libs=yes
9009 dynamic_linker="$host_os dld.sl"
9010 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9016 ;;
9017 *)
vapier7f19c022007-02-17 14:46:31 +00009018 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00009019 dynamic_linker="$host_os dld.sl"
9020 shlibpath_var=SHLIB_PATH
9021 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 ;;
9025 esac
drh71eb93e2001-09-28 01:34:43 +00009026 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9027 postinstall_cmds='chmod 555 $lib'
9028 ;;
9029
mlcreech636a9952008-05-05 22:52:56 +00009030interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00009031 version_type=linux
9032 need_lib_prefix=no
9033 need_version=no
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=no
9039 hardcode_into_libs=yes
9040 ;;
9041
a.rottmann84e63352003-03-24 09:42:16 +00009042irix5* | irix6* | nonstopux*)
9043 case $host_os in
9044 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009045 *)
9046 if test "$lt_cv_prog_gnu_ld" = yes; then
9047 version_type=linux
9048 else
9049 version_type=irix
9050 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00009051 esac
drh71eb93e2001-09-28 01:34:43 +00009052 need_lib_prefix=no
9053 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009054 soname_spec='${libname}${release}${shared_ext}$major'
9055 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 +00009056 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00009057 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00009058 libsuff= shlibsuff=
9059 ;;
9060 *)
9061 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9063 libsuff= shlibsuff= libmagic=32-bit;;
9064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9065 libsuff=32 shlibsuff=N32 libmagic=N32;;
9066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00009068 *) libsuff= shlibsuff= libmagic=never-match;;
9069 esac
9070 ;;
9071 esac
9072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9073 shlibpath_overrides_runpath=no
9074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00009076 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00009077 ;;
9078
9079# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00009080linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00009081 dynamic_linker=no
9082 ;;
9083
9084# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00009085linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00009086 version_type=linux
9087 need_lib_prefix=no
9088 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00009094 # Some binutils ld are patched to set DT_RUNPATH
9095 save_LDFLAGS=$LDFLAGS
9096 save_libdir=$libdir
9097 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9098 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9099 cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h. */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h. */
9105
9106int
9107main ()
9108{
9109
9110 ;
9111 return 0;
9112}
9113_ACEOF
9114rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009115if { (ac_try="$ac_link"
9116case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119esac
9120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9121$as_echo "$ac_try_echo") >&5
9122 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } && {
9129 test -z "$ac_c_werror_flag" ||
9130 test ! -s conftest.err
9131 } && test -s conftest$ac_exeext && {
9132 test "$cross_compiling" = yes ||
9133 $as_test_x conftest$ac_exeext
9134 }; then
mlcreech636a9952008-05-05 22:52:56 +00009135 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9136 shlibpath_overrides_runpath=yes
9137fi
9138
9139else
drh8b727472009-01-19 18:18:40 +00009140 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009141sed 's/^/| /' conftest.$ac_ext >&5
9142
drh8b727472009-01-19 18:18:40 +00009143
mlcreech636a9952008-05-05 22:52:56 +00009144fi
drh8b727472009-01-19 18:18:40 +00009145
9146rm -rf conftest.dSYM
9147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00009148 conftest$ac_exeext conftest.$ac_ext
9149 LDFLAGS=$save_LDFLAGS
9150 libdir=$save_libdir
9151
drh71eb93e2001-09-28 01:34:43 +00009152 # This implies no fast_install, which is unacceptable.
9153 # Some rework will be needed to allow for fast_install
9154 # before this can be enabled.
9155 hardcode_into_libs=yes
9156
a.rottmann9bc8b932004-02-29 15:18:31 +00009157 # Append ld.so.conf contents to the search path
9158 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00009159 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 +00009160 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00009161 fi
9162
drh71eb93e2001-09-28 01:34:43 +00009163 # We used to test for /lib/ld.so.1 and disable shared libraries on
9164 # powerpc, because MkLinux only supported shared libraries with the
9165 # GNU dynamic linker. Since this was broken with cross compilers,
9166 # most powerpc-linux boxes support dynamic linking these days and
9167 # people can always --disable-shared, the test was removed, and we
9168 # assume the GNU/Linux dynamic linker is in use.
9169 dynamic_linker='GNU/Linux ld.so'
9170 ;;
9171
9172netbsd*)
9173 version_type=sunos
9174 need_lib_prefix=no
9175 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00009176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9179 dynamic_linker='NetBSD (a.out) ld.so'
9180 else
a.rottmann9bc8b932004-02-29 15:18:31 +00009181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9182 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009183 dynamic_linker='NetBSD ld.elf_so'
9184 fi
9185 shlibpath_var=LD_LIBRARY_PATH
9186 shlibpath_overrides_runpath=yes
9187 hardcode_into_libs=yes
9188 ;;
9189
9190newsos6)
9191 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 shlibpath_overrides_runpath=yes
9195 ;;
9196
mlcreech636a9952008-05-05 22:52:56 +00009197*nto* | *qnx*)
9198 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00009199 need_lib_prefix=no
9200 need_version=no
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009203 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009204 shlibpath_overrides_runpath=no
9205 hardcode_into_libs=yes
9206 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00009207 ;;
9208
drh71eb93e2001-09-28 01:34:43 +00009209openbsd*)
9210 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00009211 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00009212 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00009213 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9214 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00009215 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9216 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00009217 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00009218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9220 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009221 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 +00009222 case $host_os in
9223 openbsd2.[89] | openbsd2.[89].*)
9224 shlibpath_overrides_runpath=no
9225 ;;
9226 *)
9227 shlibpath_overrides_runpath=yes
9228 ;;
9229 esac
a.rottmann84e63352003-03-24 09:42:16 +00009230 else
9231 shlibpath_overrides_runpath=yes
9232 fi
drh71eb93e2001-09-28 01:34:43 +00009233 ;;
9234
9235os2*)
9236 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009237 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009238 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009239 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009240 dynamic_linker='OS/2 ld.exe'
9241 shlibpath_var=LIBPATH
9242 ;;
9243
9244osf3* | osf4* | osf5*)
9245 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009246 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009247 need_version=no
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009250 shlibpath_var=LD_LIBRARY_PATH
9251 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9252 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9253 ;;
9254
mlcreech636a9952008-05-05 22:52:56 +00009255rdos*)
9256 dynamic_linker=no
9257 ;;
9258
drh71eb93e2001-09-28 01:34:43 +00009259solaris*)
9260 version_type=linux
9261 need_lib_prefix=no
9262 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=yes
9267 hardcode_into_libs=yes
9268 # ldd complains unless libraries are executable
9269 postinstall_cmds='chmod +x $lib'
9270 ;;
9271
9272sunos4*)
9273 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009275 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes
9278 if test "$with_gnu_ld" = yes; then
9279 need_lib_prefix=no
9280 fi
9281 need_version=yes
9282 ;;
9283
vapier7f19c022007-02-17 14:46:31 +00009284sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009285 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009288 shlibpath_var=LD_LIBRARY_PATH
9289 case $host_vendor in
9290 sni)
9291 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009292 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009293 runpath_var=LD_RUN_PATH
9294 ;;
9295 siemens)
9296 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009297 ;;
9298 motorola)
9299 need_lib_prefix=no
9300 need_version=no
9301 shlibpath_overrides_runpath=no
9302 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9303 ;;
9304 esac
9305 ;;
9306
9307sysv4*MP*)
9308 if test -d /usr/nec ;then
9309 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009310 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9311 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009312 shlibpath_var=LD_LIBRARY_PATH
9313 fi
9314 ;;
9315
vapier7f19c022007-02-17 14:46:31 +00009316sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9317 version_type=freebsd-elf
9318 need_lib_prefix=no
9319 need_version=no
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009323 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009324 hardcode_into_libs=yes
9325 if test "$with_gnu_ld" = yes; then
9326 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009327 else
9328 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009329 case $host_os in
9330 sco3.2v5*)
9331 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9332 ;;
9333 esac
9334 fi
9335 sys_lib_dlsearch_path_spec='/usr/lib'
9336 ;;
9337
mlcreech636a9952008-05-05 22:52:56 +00009338tpf*)
9339 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9340 version_type=linux
9341 need_lib_prefix=no
9342 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009344 shlibpath_var=LD_LIBRARY_PATH
9345 shlibpath_overrides_runpath=no
9346 hardcode_into_libs=yes
9347 ;;
9348
a.rottmann9bc8b932004-02-29 15:18:31 +00009349uts4*)
9350 version_type=linux
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 ;;
9355
drh71eb93e2001-09-28 01:34:43 +00009356*)
9357 dynamic_linker=no
9358 ;;
9359esac
drh8b727472009-01-19 18:18:40 +00009360{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9361$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009362test "$dynamic_linker" = no && can_build_shared=no
9363
vapier7f19c022007-02-17 14:46:31 +00009364variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9365if test "$GCC" = yes; then
9366 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9367fi
9368
mlcreech636a9952008-05-05 22:52:56 +00009369if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9370 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9371fi
9372if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9373 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9374fi
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
drh8b727472009-01-19 18:18:40 +00009462 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9463$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009464hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009465if test -n "$hardcode_libdir_flag_spec" ||
9466 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009467 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009468
mlcreech636a9952008-05-05 22:52:56 +00009469 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009470 if test "$hardcode_direct" != no &&
9471 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9472 # have to relink, otherwise we might link with an installed library
9473 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009474 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009475 test "$hardcode_minus_L" != no; then
9476 # Linking always hardcodes the temporary library directory.
9477 hardcode_action=relink
9478 else
9479 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9480 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009481 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009482else
9483 # We cannot hardcode anything, or else we can only hardcode existing
9484 # directories.
9485 hardcode_action=unsupported
9486fi
drh8b727472009-01-19 18:18:40 +00009487{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9488$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009489
mlcreech636a9952008-05-05 22:52:56 +00009490if test "$hardcode_action" = relink ||
9491 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009492 # Fast installation is not supported
9493 enable_fast_install=no
9494elif test "$shlibpath_overrides_runpath" = yes ||
9495 test "$enable_shared" = no; then
9496 # Fast installation is not necessary
9497 enable_fast_install=needless
9498fi
9499
a.rottmann84e63352003-03-24 09:42:16 +00009500
mlcreech636a9952008-05-05 22:52:56 +00009501
9502
9503
9504
9505 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009506 enable_dlopen=unknown
9507 enable_dlopen_self=unknown
9508 enable_dlopen_self_static=unknown
9509else
9510 lt_cv_dlopen=no
9511 lt_cv_dlopen_libs=
9512
9513 case $host_os in
9514 beos*)
9515 lt_cv_dlopen="load_add_on"
9516 lt_cv_dlopen_libs=
9517 lt_cv_dlopen_self=yes
9518 ;;
9519
vapier6acb2cf2009-01-28 04:46:28 +00009520 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009521 lt_cv_dlopen="LoadLibrary"
9522 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009523 ;;
drh71eb93e2001-09-28 01:34:43 +00009524
a.rottmann9bc8b932004-02-29 15:18:31 +00009525 cygwin*)
9526 lt_cv_dlopen="dlopen"
9527 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009528 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009529
9530 darwin*)
9531 # if libdl is installed we need to link against it
drh8b727472009-01-19 18:18:40 +00009532 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9533$as_echo_n "checking for dlopen in -ldl... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009534if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009535 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009536else
9537 ac_check_lib_save_LIBS=$LIBS
9538LIBS="-ldl $LIBS"
9539cat >conftest.$ac_ext <<_ACEOF
9540/* confdefs.h. */
9541_ACEOF
9542cat confdefs.h >>conftest.$ac_ext
9543cat >>conftest.$ac_ext <<_ACEOF
9544/* end confdefs.h. */
9545
drh8b727472009-01-19 18:18:40 +00009546/* Override any GCC internal prototype to avoid an error.
9547 Use char because int might match the return type of a GCC
9548 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009549#ifdef __cplusplus
9550extern "C"
9551#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009552char dlopen ();
9553int
9554main ()
9555{
drh8b727472009-01-19 18:18:40 +00009556return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009557 ;
9558 return 0;
9559}
9560_ACEOF
9561rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009562if { (ac_try="$ac_link"
9563case "(($ac_try" in
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9566esac
9567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9568$as_echo "$ac_try_echo") >&5
9569 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00009570 ac_status=$?
9571 grep -v '^ *+' conftest.er1 >conftest.err
9572 rm -f conftest.er1
9573 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && {
9576 test -z "$ac_c_werror_flag" ||
9577 test ! -s conftest.err
9578 } && test -s conftest$ac_exeext && {
9579 test "$cross_compiling" = yes ||
9580 $as_test_x conftest$ac_exeext
9581 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009582 ac_cv_lib_dl_dlopen=yes
9583else
drh8b727472009-01-19 18:18:40 +00009584 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00009585sed 's/^/| /' conftest.$ac_ext >&5
9586
drh8b727472009-01-19 18:18:40 +00009587 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009588fi
drh8b727472009-01-19 18:18:40 +00009589
9590rm -rf conftest.dSYM
9591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00009592 conftest$ac_exeext conftest.$ac_ext
9593LIBS=$ac_check_lib_save_LIBS
9594fi
drh8b727472009-01-19 18:18:40 +00009595{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9596$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009597if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9599else
9600
9601 lt_cv_dlopen="dyld"
9602 lt_cv_dlopen_libs=
9603 lt_cv_dlopen_self=yes
9604
9605fi
9606
mlcreech636a9952008-05-05 22:52:56 +00009607 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009608
drh71eb93e2001-09-28 01:34:43 +00009609 *)
drh8b727472009-01-19 18:18:40 +00009610 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9611$as_echo_n "checking for shl_load... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009612if test "${ac_cv_func_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009613 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009614else
9615 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009621/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9623#define shl_load innocuous_shl_load
9624
drh71eb93e2001-09-28 01:34:43 +00009625/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00009626 which can conflict with char shl_load (); below.
9627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9628 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009629
a.rottmann84e63352003-03-24 09:42:16 +00009630#ifdef __STDC__
9631# include <limits.h>
9632#else
9633# include <assert.h>
9634#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009635
9636#undef shl_load
9637
drh8b727472009-01-19 18:18:40 +00009638/* Override any GCC internal prototype to avoid an error.
9639 Use char because int might match the return type of a GCC
9640 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009641#ifdef __cplusplus
9642extern "C"
9643#endif
drh71eb93e2001-09-28 01:34:43 +00009644char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009645/* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +00009648#if defined __stub_shl_load || defined __stub___shl_load
drh71eb93e2001-09-28 01:34:43 +00009649choke me
drh71eb93e2001-09-28 01:34:43 +00009650#endif
9651
a.rottmann84e63352003-03-24 09:42:16 +00009652int
9653main ()
9654{
drh8b727472009-01-19 18:18:40 +00009655return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009656 ;
9657 return 0;
9658}
9659_ACEOF
9660rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009661if { (ac_try="$ac_link"
9662case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665esac
9666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9667$as_echo "$ac_try_echo") >&5
9668 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009669 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } && {
9675 test -z "$ac_c_werror_flag" ||
9676 test ! -s conftest.err
9677 } && test -s conftest$ac_exeext && {
9678 test "$cross_compiling" = yes ||
9679 $as_test_x conftest$ac_exeext
9680 }; then
drh71eb93e2001-09-28 01:34:43 +00009681 ac_cv_func_shl_load=yes
9682else
drh8b727472009-01-19 18:18:40 +00009683 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009684sed 's/^/| /' conftest.$ac_ext >&5
9685
drh8b727472009-01-19 18:18:40 +00009686 ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009687fi
drh8b727472009-01-19 18:18:40 +00009688
9689rm -rf conftest.dSYM
9690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009691 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009692fi
drh8b727472009-01-19 18:18:40 +00009693{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9694$as_echo "$ac_cv_func_shl_load" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009695if test "x$ac_cv_func_shl_load" = x""yes; then
drh71eb93e2001-09-28 01:34:43 +00009696 lt_cv_dlopen="shl_load"
9697else
drh8b727472009-01-19 18:18:40 +00009698 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9699$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009700if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009701 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009702else
9703 ac_check_lib_save_LIBS=$LIBS
9704LIBS="-ldld $LIBS"
9705cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009706/* confdefs.h. */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009711
drh8b727472009-01-19 18:18:40 +00009712/* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009715#ifdef __cplusplus
9716extern "C"
9717#endif
drh71eb93e2001-09-28 01:34:43 +00009718char shl_load ();
9719int
9720main ()
9721{
drh8b727472009-01-19 18:18:40 +00009722return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009723 ;
9724 return 0;
9725}
9726_ACEOF
9727rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009728if { (ac_try="$ac_link"
9729case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732esac
9733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9734$as_echo "$ac_try_echo") >&5
9735 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009736 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest$ac_exeext && {
9745 test "$cross_compiling" = yes ||
9746 $as_test_x conftest$ac_exeext
9747 }; then
drh71eb93e2001-09-28 01:34:43 +00009748 ac_cv_lib_dld_shl_load=yes
9749else
drh8b727472009-01-19 18:18:40 +00009750 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009751sed 's/^/| /' conftest.$ac_ext >&5
9752
drh8b727472009-01-19 18:18:40 +00009753 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009754fi
drh8b727472009-01-19 18:18:40 +00009755
9756rm -rf conftest.dSYM
9757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009758 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009759LIBS=$ac_check_lib_save_LIBS
9760fi
drh8b727472009-01-19 18:18:40 +00009761{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9762$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009763if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
mlcreech636a9952008-05-05 22:52:56 +00009764 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009765else
drh8b727472009-01-19 18:18:40 +00009766 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9767$as_echo_n "checking for dlopen... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009768if test "${ac_cv_func_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009769 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009770else
9771 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009772/* confdefs.h. */
9773_ACEOF
9774cat confdefs.h >>conftest.$ac_ext
9775cat >>conftest.$ac_ext <<_ACEOF
9776/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009777/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9779#define dlopen innocuous_dlopen
9780
a.rottmann84e63352003-03-24 09:42:16 +00009781/* System header to define __stub macros and hopefully few prototypes,
9782 which can conflict with char dlopen (); below.
9783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009785
a.rottmann84e63352003-03-24 09:42:16 +00009786#ifdef __STDC__
9787# include <limits.h>
9788#else
9789# include <assert.h>
9790#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009791
9792#undef dlopen
9793
drh8b727472009-01-19 18:18:40 +00009794/* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009797#ifdef __cplusplus
9798extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00009799#endif
a.rottmann84e63352003-03-24 09:42:16 +00009800char dlopen ();
9801/* The GNU C library defines this for functions which it implements
9802 to always fail with ENOSYS. Some functions are actually named
9803 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +00009804#if defined __stub_dlopen || defined __stub___dlopen
a.rottmann84e63352003-03-24 09:42:16 +00009805choke me
a.rottmann84e63352003-03-24 09:42:16 +00009806#endif
9807
9808int
9809main ()
9810{
drh8b727472009-01-19 18:18:40 +00009811return dlopen ();
a.rottmann84e63352003-03-24 09:42:16 +00009812 ;
9813 return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009817if { (ac_try="$ac_link"
9818case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821esac
9822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823$as_echo "$ac_try_echo") >&5
9824 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009825 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest$ac_exeext && {
9834 test "$cross_compiling" = yes ||
9835 $as_test_x conftest$ac_exeext
9836 }; then
a.rottmann84e63352003-03-24 09:42:16 +00009837 ac_cv_func_dlopen=yes
9838else
drh8b727472009-01-19 18:18:40 +00009839 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009840sed 's/^/| /' conftest.$ac_ext >&5
9841
drh8b727472009-01-19 18:18:40 +00009842 ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00009843fi
drh8b727472009-01-19 18:18:40 +00009844
9845rm -rf conftest.dSYM
9846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009847 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009848fi
drh8b727472009-01-19 18:18:40 +00009849{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9850$as_echo "$ac_cv_func_dlopen" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009851if test "x$ac_cv_func_dlopen" = x""yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009852 lt_cv_dlopen="dlopen"
9853else
drh8b727472009-01-19 18:18:40 +00009854 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9855$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009856if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009857 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009858else
9859 ac_check_lib_save_LIBS=$LIBS
9860LIBS="-ldl $LIBS"
9861cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009862/* confdefs.h. */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009867
drh8b727472009-01-19 18:18:40 +00009868/* Override any GCC internal prototype to avoid an error.
9869 Use char because int might match the return type of a GCC
9870 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009871#ifdef __cplusplus
9872extern "C"
9873#endif
drh71eb93e2001-09-28 01:34:43 +00009874char dlopen ();
9875int
9876main ()
9877{
drh8b727472009-01-19 18:18:40 +00009878return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009879 ;
9880 return 0;
9881}
9882_ACEOF
9883rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009884if { (ac_try="$ac_link"
9885case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9888esac
9889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9890$as_echo "$ac_try_echo") >&5
9891 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009892 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && {
9898 test -z "$ac_c_werror_flag" ||
9899 test ! -s conftest.err
9900 } && test -s conftest$ac_exeext && {
9901 test "$cross_compiling" = yes ||
9902 $as_test_x conftest$ac_exeext
9903 }; then
drh71eb93e2001-09-28 01:34:43 +00009904 ac_cv_lib_dl_dlopen=yes
9905else
drh8b727472009-01-19 18:18:40 +00009906 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009907sed 's/^/| /' conftest.$ac_ext >&5
9908
drh8b727472009-01-19 18:18:40 +00009909 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009910fi
drh8b727472009-01-19 18:18:40 +00009911
9912rm -rf conftest.dSYM
9913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009914 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009915LIBS=$ac_check_lib_save_LIBS
9916fi
drh8b727472009-01-19 18:18:40 +00009917{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9918$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009919if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
drh71eb93e2001-09-28 01:34:43 +00009920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9921else
drh8b727472009-01-19 18:18:40 +00009922 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9923$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009924if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009925 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009926else
9927 ac_check_lib_save_LIBS=$LIBS
9928LIBS="-lsvld $LIBS"
9929cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009930/* confdefs.h. */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009935
drh8b727472009-01-19 18:18:40 +00009936/* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009939#ifdef __cplusplus
9940extern "C"
9941#endif
drh71eb93e2001-09-28 01:34:43 +00009942char dlopen ();
9943int
9944main ()
9945{
drh8b727472009-01-19 18:18:40 +00009946return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009947 ;
9948 return 0;
9949}
9950_ACEOF
9951rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009952if { (ac_try="$ac_link"
9953case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956esac
9957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9958$as_echo "$ac_try_echo") >&5
9959 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009960 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext && {
9969 test "$cross_compiling" = yes ||
9970 $as_test_x conftest$ac_exeext
9971 }; then
drh71eb93e2001-09-28 01:34:43 +00009972 ac_cv_lib_svld_dlopen=yes
9973else
drh8b727472009-01-19 18:18:40 +00009974 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009975sed 's/^/| /' conftest.$ac_ext >&5
9976
drh8b727472009-01-19 18:18:40 +00009977 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009978fi
drh8b727472009-01-19 18:18:40 +00009979
9980rm -rf conftest.dSYM
9981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009982 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009983LIBS=$ac_check_lib_save_LIBS
9984fi
drh8b727472009-01-19 18:18:40 +00009985{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9986$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009987if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
drh71eb93e2001-09-28 01:34:43 +00009988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009989else
drh8b727472009-01-19 18:18:40 +00009990 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9991$as_echo_n "checking for dld_link in -ldld... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009992if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009993 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009994else
9995 ac_check_lib_save_LIBS=$LIBS
9996LIBS="-ldld $LIBS"
9997cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009998/* confdefs.h. */
9999_ACEOF
10000cat confdefs.h >>conftest.$ac_ext
10001cat >>conftest.$ac_ext <<_ACEOF
10002/* end confdefs.h. */
10003
drh8b727472009-01-19 18:18:40 +000010004/* Override any GCC internal prototype to avoid an error.
10005 Use char because int might match the return type of a GCC
10006 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +000010007#ifdef __cplusplus
10008extern "C"
10009#endif
a.rottmann84e63352003-03-24 09:42:16 +000010010char dld_link ();
10011int
10012main ()
10013{
drh8b727472009-01-19 18:18:40 +000010014return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +000010015 ;
10016 return 0;
10017}
10018_ACEOF
10019rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000010020if { (ac_try="$ac_link"
10021case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10024esac
10025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10026$as_echo "$ac_try_echo") >&5
10027 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000010028 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000010029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } && {
10034 test -z "$ac_c_werror_flag" ||
10035 test ! -s conftest.err
10036 } && test -s conftest$ac_exeext && {
10037 test "$cross_compiling" = yes ||
10038 $as_test_x conftest$ac_exeext
10039 }; then
a.rottmann84e63352003-03-24 09:42:16 +000010040 ac_cv_lib_dld_dld_link=yes
10041else
drh8b727472009-01-19 18:18:40 +000010042 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010043sed 's/^/| /' conftest.$ac_ext >&5
10044
drh8b727472009-01-19 18:18:40 +000010045 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +000010046fi
drh8b727472009-01-19 18:18:40 +000010047
10048rm -rf conftest.dSYM
10049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000010050 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010051LIBS=$ac_check_lib_save_LIBS
10052fi
drh8b727472009-01-19 18:18:40 +000010053{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10054$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000010055if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
mlcreech636a9952008-05-05 22:52:56 +000010056 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +000010057fi
10058
drh71eb93e2001-09-28 01:34:43 +000010059
10060fi
10061
drh71eb93e2001-09-28 01:34:43 +000010062
10063fi
10064
a.rottmann84e63352003-03-24 09:42:16 +000010065
10066fi
10067
10068
10069fi
10070
10071
drh71eb93e2001-09-28 01:34:43 +000010072fi
10073
10074 ;;
10075 esac
10076
10077 if test "x$lt_cv_dlopen" != xno; then
10078 enable_dlopen=yes
10079 else
10080 enable_dlopen=no
10081 fi
10082
10083 case $lt_cv_dlopen in
10084 dlopen)
10085 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +000010086 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +000010087
10088 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +000010089 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +000010090
10091 save_LIBS="$LIBS"
10092 LIBS="$lt_cv_dlopen_libs $LIBS"
10093
drh8b727472009-01-19 18:18:40 +000010094 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10095$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010096if test "${lt_cv_dlopen_self+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010097 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010098else
10099 if test "$cross_compiling" = yes; then :
10100 lt_cv_dlopen_self=cross
10101else
a.rottmann9bc8b932004-02-29 15:18:31 +000010102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010103 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010104 cat > conftest.$ac_ext <<_LT_EOF
vapier6acb2cf2009-01-28 04:46:28 +000010105#line 10105 "configure"
drh71eb93e2001-09-28 01:34:43 +000010106#include "confdefs.h"
10107
10108#if HAVE_DLFCN_H
10109#include <dlfcn.h>
10110#endif
10111
10112#include <stdio.h>
10113
10114#ifdef RTLD_GLOBAL
10115# define LT_DLGLOBAL RTLD_GLOBAL
10116#else
10117# ifdef DL_GLOBAL
10118# define LT_DLGLOBAL DL_GLOBAL
10119# else
10120# define LT_DLGLOBAL 0
10121# endif
10122#endif
10123
10124/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10125 find out it does not work in some platform. */
10126#ifndef LT_DLLAZY_OR_NOW
10127# ifdef RTLD_LAZY
10128# define LT_DLLAZY_OR_NOW RTLD_LAZY
10129# else
10130# ifdef DL_LAZY
10131# define LT_DLLAZY_OR_NOW DL_LAZY
10132# else
10133# ifdef RTLD_NOW
10134# define LT_DLLAZY_OR_NOW RTLD_NOW
10135# else
10136# ifdef DL_NOW
10137# define LT_DLLAZY_OR_NOW DL_NOW
10138# else
10139# define LT_DLLAZY_OR_NOW 0
10140# endif
10141# endif
10142# endif
10143# endif
10144#endif
10145
drh71eb93e2001-09-28 01:34:43 +000010146void fnord() { int i=42;}
10147int main ()
10148{
10149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10150 int status = $lt_dlunknown;
10151
10152 if (self)
10153 {
10154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10155 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10156 /* dlclose (self); */
10157 }
vapier7f19c022007-02-17 14:46:31 +000010158 else
10159 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010160
vapier6acb2cf2009-01-28 04:46:28 +000010161 return status;
drh71eb93e2001-09-28 01:34:43 +000010162}
mlcreech636a9952008-05-05 22:52:56 +000010163_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010165 (eval $ac_link) 2>&5
10166 ac_status=$?
drh8b727472009-01-19 18:18:40 +000010167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010168 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010169 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010170 lt_status=$?
10171 case x$lt_status in
10172 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10173 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010174 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +000010175 esac
10176 else :
10177 # compilation failed
10178 lt_cv_dlopen_self=no
10179 fi
10180fi
10181rm -fr conftest*
10182
a.rottmann84e63352003-03-24 09:42:16 +000010183
drh71eb93e2001-09-28 01:34:43 +000010184fi
drh8b727472009-01-19 18:18:40 +000010185{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10186$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010187
10188 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +000010189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh8b727472009-01-19 18:18:40 +000010190 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10191$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010192if test "${lt_cv_dlopen_self_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010193 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010194else
10195 if test "$cross_compiling" = yes; then :
10196 lt_cv_dlopen_self_static=cross
10197else
a.rottmann9bc8b932004-02-29 15:18:31 +000010198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010199 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010200 cat > conftest.$ac_ext <<_LT_EOF
vapier6acb2cf2009-01-28 04:46:28 +000010201#line 10201 "configure"
drh71eb93e2001-09-28 01:34:43 +000010202#include "confdefs.h"
10203
10204#if HAVE_DLFCN_H
10205#include <dlfcn.h>
10206#endif
10207
10208#include <stdio.h>
10209
10210#ifdef RTLD_GLOBAL
10211# define LT_DLGLOBAL RTLD_GLOBAL
10212#else
10213# ifdef DL_GLOBAL
10214# define LT_DLGLOBAL DL_GLOBAL
10215# else
10216# define LT_DLGLOBAL 0
10217# endif
10218#endif
10219
10220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10221 find out it does not work in some platform. */
10222#ifndef LT_DLLAZY_OR_NOW
10223# ifdef RTLD_LAZY
10224# define LT_DLLAZY_OR_NOW RTLD_LAZY
10225# else
10226# ifdef DL_LAZY
10227# define LT_DLLAZY_OR_NOW DL_LAZY
10228# else
10229# ifdef RTLD_NOW
10230# define LT_DLLAZY_OR_NOW RTLD_NOW
10231# else
10232# ifdef DL_NOW
10233# define LT_DLLAZY_OR_NOW DL_NOW
10234# else
10235# define LT_DLLAZY_OR_NOW 0
10236# endif
10237# endif
10238# endif
10239# endif
10240#endif
10241
drh71eb93e2001-09-28 01:34:43 +000010242void fnord() { int i=42;}
10243int main ()
10244{
10245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10246 int status = $lt_dlunknown;
10247
10248 if (self)
10249 {
10250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10251 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10252 /* dlclose (self); */
10253 }
vapier7f19c022007-02-17 14:46:31 +000010254 else
10255 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010256
vapier6acb2cf2009-01-28 04:46:28 +000010257 return status;
drh71eb93e2001-09-28 01:34:43 +000010258}
mlcreech636a9952008-05-05 22:52:56 +000010259_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010261 (eval $ac_link) 2>&5
10262 ac_status=$?
drh8b727472009-01-19 18:18:40 +000010263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010264 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010265 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010266 lt_status=$?
10267 case x$lt_status in
10268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +000010271 esac
10272 else :
10273 # compilation failed
10274 lt_cv_dlopen_self_static=no
10275 fi
10276fi
10277rm -fr conftest*
10278
a.rottmann84e63352003-03-24 09:42:16 +000010279
drh71eb93e2001-09-28 01:34:43 +000010280fi
drh8b727472009-01-19 18:18:40 +000010281{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10282$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010283 fi
10284
10285 CPPFLAGS="$save_CPPFLAGS"
10286 LDFLAGS="$save_LDFLAGS"
10287 LIBS="$save_LIBS"
10288 ;;
10289 esac
10290
10291 case $lt_cv_dlopen_self in
10292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10293 *) enable_dlopen_self=unknown ;;
10294 esac
10295
10296 case $lt_cv_dlopen_self_static in
10297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10298 *) enable_dlopen_self_static=unknown ;;
10299 esac
10300fi
10301
drh71eb93e2001-09-28 01:34:43 +000010302
drh71eb93e2001-09-28 01:34:43 +000010303
a.rottmann9bc8b932004-02-29 15:18:31 +000010304
a.rottmann9bc8b932004-02-29 15:18:31 +000010305
mlcreech636a9952008-05-05 22:52:56 +000010306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318striplib=
10319old_striplib=
drh8b727472009-01-19 18:18:40 +000010320{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10321$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010322if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10323 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10324 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh8b727472009-01-19 18:18:40 +000010325 { $as_echo "$as_me:$LINENO: result: yes" >&5
10326$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010327else
10328# FIXME - insert some real tests, host_os isn't really good enough
10329 case $host_os in
10330 darwin*)
10331 if test -n "$STRIP" ; then
10332 striplib="$STRIP -x"
10333 old_striplib="$STRIP -S"
drh8b727472009-01-19 18:18:40 +000010334 { $as_echo "$as_me:$LINENO: result: yes" >&5
10335$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010336 else
drh8b727472009-01-19 18:18:40 +000010337 { $as_echo "$as_me:$LINENO: result: no" >&5
10338$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010339 fi
a.rottmann84e63352003-03-24 09:42:16 +000010340 ;;
mlcreech636a9952008-05-05 22:52:56 +000010341 *)
drh8b727472009-01-19 18:18:40 +000010342 { $as_echo "$as_me:$LINENO: result: no" >&5
10343$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010344 ;;
10345 esac
mlcreech636a9952008-05-05 22:52:56 +000010346fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010347
a.rottmann9bc8b932004-02-29 15:18:31 +000010348
drh71eb93e2001-09-28 01:34:43 +000010349
drh71eb93e2001-09-28 01:34:43 +000010350
a.rottmann84e63352003-03-24 09:42:16 +000010351
drh71eb93e2001-09-28 01:34:43 +000010352
drh71eb93e2001-09-28 01:34:43 +000010353
a.rottmann9bc8b932004-02-29 15:18:31 +000010354
drh71eb93e2001-09-28 01:34:43 +000010355
drh71eb93e2001-09-28 01:34:43 +000010356
drh71eb93e2001-09-28 01:34:43 +000010357
drh71eb93e2001-09-28 01:34:43 +000010358
mlcreech636a9952008-05-05 22:52:56 +000010359 # Report which library types will actually be built
drh8b727472009-01-19 18:18:40 +000010360 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10361$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10362 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10363$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010364
drh8b727472009-01-19 18:18:40 +000010365 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10366$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010367 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010368
mlcreech636a9952008-05-05 22:52:56 +000010369 # On AIX, shared libraries and static libraries use the same namespace, and
10370 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +000010371 case $host_os in
10372 aix3*)
vapier7f19c022007-02-17 14:46:31 +000010373 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +000010374 if test -n "$RANLIB"; then
10375 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10376 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +000010377 fi
10378 ;;
10379
mlcreech636a9952008-05-05 22:52:56 +000010380 aix[4-9]*)
10381 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10382 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010383 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010384 ;;
10385 esac
drh8b727472009-01-19 18:18:40 +000010386 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10387$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010388
drh8b727472009-01-19 18:18:40 +000010389 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10390$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010391 # Make sure either enable_shared or enable_static is yes.
10392 test "$enable_shared" = yes || enable_static=yes
drh8b727472009-01-19 18:18:40 +000010393 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10394$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +000010395
a.rottmann9bc8b932004-02-29 15:18:31 +000010396
a.rottmann9bc8b932004-02-29 15:18:31 +000010397
a.rottmann9bc8b932004-02-29 15:18:31 +000010398
vapier7f19c022007-02-17 14:46:31 +000010399fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010400ac_ext=c
10401ac_cpp='$CPP $CPPFLAGS'
10402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10404ac_compiler_gnu=$ac_cv_c_compiler_gnu
10405
10406CC="$lt_save_CC"
10407
a.rottmann9bc8b932004-02-29 15:18:31 +000010408
a.rottmann9bc8b932004-02-29 15:18:31 +000010409
10410
a.rottmann9bc8b932004-02-29 15:18:31 +000010411
a.rottmann9bc8b932004-02-29 15:18:31 +000010412
a.rottmann9bc8b932004-02-29 15:18:31 +000010413
a.rottmann9bc8b932004-02-29 15:18:31 +000010414
a.rottmann9bc8b932004-02-29 15:18:31 +000010415
a.rottmann9bc8b932004-02-29 15:18:31 +000010416
vapier7f19c022007-02-17 14:46:31 +000010417
a.rottmann9bc8b932004-02-29 15:18:31 +000010418
10419
drh8b727472009-01-19 18:18:40 +000010420 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +000010421
vapier7f19c022007-02-17 14:46:31 +000010422
10423
vapier7f19c022007-02-17 14:46:31 +000010424
mlcreech636a9952008-05-05 22:52:56 +000010425# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +000010426
10427
drh71eb93e2001-09-28 01:34:43 +000010428# Find a good install program. We prefer a C program (faster),
10429# so one script is as good as another. But avoid the broken or
10430# incompatible versions:
10431# SysV /etc/install, /usr/sbin/install
10432# SunOS /usr/etc/install
10433# IRIX /sbin/install
10434# AIX /bin/install
10435# AmigaOS /C/install, which installs bootblocks on floppy discs
10436# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10437# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10438# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000010439# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000010440# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +000010441# Reject install programs that cannot install multiple files.
10442{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10443$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010444if test -z "$INSTALL"; then
10445if test "${ac_cv_path_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010446 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010447else
a.rottmann84e63352003-03-24 09:42:16 +000010448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 # Account for people who put trailing slashes in PATH elements.
10454case $as_dir/ in
10455 ./ | .// | /cC/* | \
10456 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000010457 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010458 /usr/ucb/* ) ;;
10459 *)
10460 # OSF1 and SCO ODT 3.0 have their own names for install.
10461 # Don't use installbsd from OSF since it installs stuff as root
10462 # by default.
10463 for ac_prog in ginstall scoinst install; do
10464 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010465 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 +000010466 if test $ac_prog = install &&
10467 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10468 # AIX install. It has an incompatible calling convention.
10469 :
10470 elif test $ac_prog = install &&
10471 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10472 # program-specific install script used by HP pwplus--don't use.
10473 :
10474 else
drh8b727472009-01-19 18:18:40 +000010475 rm -rf conftest.one conftest.two conftest.dir
10476 echo one > conftest.one
10477 echo two > conftest.two
10478 mkdir conftest.dir
10479 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10480 test -s conftest.one && test -s conftest.two &&
10481 test -s conftest.dir/conftest.one &&
10482 test -s conftest.dir/conftest.two
10483 then
10484 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10485 break 3
10486 fi
a.rottmann964dbb12004-02-26 19:47:42 +000010487 fi
10488 fi
drh71eb93e2001-09-28 01:34:43 +000010489 done
a.rottmann84e63352003-03-24 09:42:16 +000010490 done
10491 ;;
10492esac
a.rottmann84e63352003-03-24 09:42:16 +000010493
drh8b727472009-01-19 18:18:40 +000010494done
10495IFS=$as_save_IFS
10496
10497rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +000010498
10499fi
10500 if test "${ac_cv_path_install+set}" = set; then
10501 INSTALL=$ac_cv_path_install
10502 else
drh8b727472009-01-19 18:18:40 +000010503 # As a last resort, use the slow shell script. Don't cache a
10504 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000010505 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +000010506 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000010507 INSTALL=$ac_install_sh
10508 fi
10509fi
drh8b727472009-01-19 18:18:40 +000010510{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10511$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010512
10513# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10514# It thinks the first close brace ends the variable substitution.
10515test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10516
10517test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10518
10519test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10520
drhf1878b42006-01-23 18:06:52 +000010521for ac_prog in gawk mawk nawk awk
10522do
10523 # Extract the first word of "$ac_prog", so it can be a program name with args.
10524set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000010525{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10526$as_echo_n "checking for $ac_word... " >&6; }
drhf1878b42006-01-23 18:06:52 +000010527if test "${ac_cv_prog_AWK+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010528 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +000010529else
10530 if test -n "$AWK"; then
10531 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10532else
10533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534for as_dir in $PATH
10535do
10536 IFS=$as_save_IFS
10537 test -z "$as_dir" && as_dir=.
10538 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010539 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 +000010540 ac_cv_prog_AWK="$ac_prog"
drh8b727472009-01-19 18:18:40 +000010541 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +000010542 break 2
10543 fi
10544done
10545done
drh8b727472009-01-19 18:18:40 +000010546IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000010547
10548fi
10549fi
10550AWK=$ac_cv_prog_AWK
10551if test -n "$AWK"; then
drh8b727472009-01-19 18:18:40 +000010552 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10553$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000010554else
drh8b727472009-01-19 18:18:40 +000010555 { $as_echo "$as_me:$LINENO: result: no" >&5
10556$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +000010557fi
10558
drh8b727472009-01-19 18:18:40 +000010559
drhf1878b42006-01-23 18:06:52 +000010560 test -n "$AWK" && break
10561done
10562
a.rottmann84e63352003-03-24 09:42:16 +000010563
drh75897232000-05-29 14:26:00 +000010564#########
mlcreech636a9952008-05-05 22:52:56 +000010565# Enable large file support (if special flags are necessary)
10566#
drh8b727472009-01-19 18:18:40 +000010567# Check whether --enable-largefile was given.
mlcreech636a9952008-05-05 22:52:56 +000010568if test "${enable_largefile+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010569 enableval=$enable_largefile;
10570fi
mlcreech636a9952008-05-05 22:52:56 +000010571
10572if test "$enable_largefile" != no; then
10573
drh8b727472009-01-19 18:18:40 +000010574 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10575$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010576if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010577 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010578else
mlcreech636a9952008-05-05 22:52:56 +000010579 ac_cv_sys_largefile_CC=no
10580 if test "$GCC" != yes; then
10581 ac_save_CC=$CC
10582 while :; do
drh8b727472009-01-19 18:18:40 +000010583 # IRIX 6.2 and later do not support large files by default,
10584 # so use the C compiler's -n32 option if that helps.
mlcreech636a9952008-05-05 22:52:56 +000010585 cat >conftest.$ac_ext <<_ACEOF
10586/* confdefs.h. */
10587_ACEOF
10588cat confdefs.h >>conftest.$ac_ext
10589cat >>conftest.$ac_ext <<_ACEOF
10590/* end confdefs.h. */
10591#include <sys/types.h>
10592 /* Check that off_t can represent 2**63 - 1 correctly.
10593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10594 since some C++ compilers masquerading as C compilers
10595 incorrectly reject 9223372036854775807. */
10596#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10598 && LARGE_OFF_T % 2147483647 == 1)
10599 ? 1 : -1];
10600int
10601main ()
10602{
10603
10604 ;
10605 return 0;
10606}
10607_ACEOF
drh8b727472009-01-19 18:18:40 +000010608 rm -f conftest.$ac_objext
10609if { (ac_try="$ac_compile"
10610case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613esac
10614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615$as_echo "$ac_try_echo") >&5
10616 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010626 break
10627else
drh8b727472009-01-19 18:18:40 +000010628 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010629sed 's/^/| /' conftest.$ac_ext >&5
10630
drh8b727472009-01-19 18:18:40 +000010631
mlcreech636a9952008-05-05 22:52:56 +000010632fi
drh8b727472009-01-19 18:18:40 +000010633
10634rm -f core conftest.err conftest.$ac_objext
10635 CC="$CC -n32"
10636 rm -f conftest.$ac_objext
10637if { (ac_try="$ac_compile"
10638case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10641esac
10642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10643$as_echo "$ac_try_echo") >&5
10644 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010645 ac_status=$?
10646 grep -v '^ *+' conftest.er1 >conftest.err
10647 rm -f conftest.er1
10648 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010654 ac_cv_sys_largefile_CC=' -n32'; break
10655else
drh8b727472009-01-19 18:18:40 +000010656 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010657sed 's/^/| /' conftest.$ac_ext >&5
10658
drh8b727472009-01-19 18:18:40 +000010659
mlcreech636a9952008-05-05 22:52:56 +000010660fi
drh8b727472009-01-19 18:18:40 +000010661
10662rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010663 break
10664 done
10665 CC=$ac_save_CC
10666 rm -f conftest.$ac_ext
10667 fi
10668fi
drh8b727472009-01-19 18:18:40 +000010669{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10670$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010671 if test "$ac_cv_sys_largefile_CC" != no; then
10672 CC=$CC$ac_cv_sys_largefile_CC
10673 fi
10674
drh8b727472009-01-19 18:18:40 +000010675 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10676$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010677if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010678 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010679else
10680 while :; do
mlcreechb87057f2008-03-06 07:19:20 +000010681 cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h. */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010687#include <sys/types.h>
10688 /* Check that off_t can represent 2**63 - 1 correctly.
10689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10690 since some C++ compilers masquerading as C compilers
10691 incorrectly reject 9223372036854775807. */
10692#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10694 && LARGE_OFF_T % 2147483647 == 1)
10695 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010696int
10697main ()
10698{
mlcreech636a9952008-05-05 22:52:56 +000010699
mlcreechb87057f2008-03-06 07:19:20 +000010700 ;
10701 return 0;
10702}
10703_ACEOF
10704rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010705if { (ac_try="$ac_compile"
10706case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
10710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10711$as_echo "$ac_try_echo") >&5
10712 (eval "$ac_compile") 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000010713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest.$ac_objext; then
10722 ac_cv_sys_file_offset_bits=no; break
mlcreechb87057f2008-03-06 07:19:20 +000010723else
drh8b727472009-01-19 18:18:40 +000010724 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010725sed 's/^/| /' conftest.$ac_ext >&5
10726
drh8b727472009-01-19 18:18:40 +000010727
mlcreech636a9952008-05-05 22:52:56 +000010728fi
drh8b727472009-01-19 18:18:40 +000010729
10730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010731 cat >conftest.$ac_ext <<_ACEOF
10732/* confdefs.h. */
10733_ACEOF
10734cat confdefs.h >>conftest.$ac_ext
10735cat >>conftest.$ac_ext <<_ACEOF
10736/* end confdefs.h. */
10737#define _FILE_OFFSET_BITS 64
10738#include <sys/types.h>
10739 /* Check that off_t can represent 2**63 - 1 correctly.
10740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10741 since some C++ compilers masquerading as C compilers
10742 incorrectly reject 9223372036854775807. */
10743#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10745 && LARGE_OFF_T % 2147483647 == 1)
10746 ? 1 : -1];
10747int
10748main ()
10749{
10750
10751 ;
10752 return 0;
10753}
10754_ACEOF
10755rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010756if { (ac_try="$ac_compile"
10757case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10760esac
10761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10762$as_echo "$ac_try_echo") >&5
10763 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010773 ac_cv_sys_file_offset_bits=64; break
10774else
drh8b727472009-01-19 18:18:40 +000010775 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010776sed 's/^/| /' conftest.$ac_ext >&5
10777
drh8b727472009-01-19 18:18:40 +000010778
mlcreech636a9952008-05-05 22:52:56 +000010779fi
drh8b727472009-01-19 18:18:40 +000010780
10781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010783 break
10784done
10785fi
drh8b727472009-01-19 18:18:40 +000010786{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10787$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10788case $ac_cv_sys_file_offset_bits in #(
10789 no | unknown) ;;
10790 *)
mlcreech636a9952008-05-05 22:52:56 +000010791cat >>confdefs.h <<_ACEOF
10792#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10793_ACEOF
drh8b727472009-01-19 18:18:40 +000010794;;
10795esac
10796rm -rf conftest*
10797 if test $ac_cv_sys_file_offset_bits = unknown; then
10798 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10799$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010800if test "${ac_cv_sys_large_files+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010801 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010802else
10803 while :; do
10804 cat >conftest.$ac_ext <<_ACEOF
10805/* confdefs.h. */
10806_ACEOF
10807cat confdefs.h >>conftest.$ac_ext
10808cat >>conftest.$ac_ext <<_ACEOF
10809/* end confdefs.h. */
10810#include <sys/types.h>
10811 /* Check that off_t can represent 2**63 - 1 correctly.
10812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10813 since some C++ compilers masquerading as C compilers
10814 incorrectly reject 9223372036854775807. */
10815#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10817 && LARGE_OFF_T % 2147483647 == 1)
10818 ? 1 : -1];
10819int
10820main ()
10821{
10822
10823 ;
10824 return 0;
10825}
10826_ACEOF
10827rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010828if { (ac_try="$ac_compile"
10829case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10832esac
10833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10834$as_echo "$ac_try_echo") >&5
10835 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010836 ac_status=$?
10837 grep -v '^ *+' conftest.er1 >conftest.err
10838 rm -f conftest.er1
10839 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } && {
10842 test -z "$ac_c_werror_flag" ||
10843 test ! -s conftest.err
10844 } && test -s conftest.$ac_objext; then
10845 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010846else
drh8b727472009-01-19 18:18:40 +000010847 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010848sed 's/^/| /' conftest.$ac_ext >&5
10849
drh8b727472009-01-19 18:18:40 +000010850
mlcreech636a9952008-05-05 22:52:56 +000010851fi
drh8b727472009-01-19 18:18:40 +000010852
10853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010854 cat >conftest.$ac_ext <<_ACEOF
10855/* confdefs.h. */
10856_ACEOF
10857cat confdefs.h >>conftest.$ac_ext
10858cat >>conftest.$ac_ext <<_ACEOF
10859/* end confdefs.h. */
10860#define _LARGE_FILES 1
10861#include <sys/types.h>
10862 /* Check that off_t can represent 2**63 - 1 correctly.
10863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10864 since some C++ compilers masquerading as C compilers
10865 incorrectly reject 9223372036854775807. */
10866#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10868 && LARGE_OFF_T % 2147483647 == 1)
10869 ? 1 : -1];
10870int
10871main ()
10872{
10873
10874 ;
10875 return 0;
10876}
10877_ACEOF
10878rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010879if { (ac_try="$ac_compile"
10880case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10883esac
10884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10885$as_echo "$ac_try_echo") >&5
10886 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } && {
10893 test -z "$ac_c_werror_flag" ||
10894 test ! -s conftest.err
10895 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010896 ac_cv_sys_large_files=1; break
10897else
drh8b727472009-01-19 18:18:40 +000010898 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010899sed 's/^/| /' conftest.$ac_ext >&5
10900
drh8b727472009-01-19 18:18:40 +000010901
mlcreech636a9952008-05-05 22:52:56 +000010902fi
drh8b727472009-01-19 18:18:40 +000010903
10904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010906 break
10907done
10908fi
drh8b727472009-01-19 18:18:40 +000010909{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10910$as_echo "$ac_cv_sys_large_files" >&6; }
10911case $ac_cv_sys_large_files in #(
10912 no | unknown) ;;
10913 *)
mlcreech636a9952008-05-05 22:52:56 +000010914cat >>confdefs.h <<_ACEOF
10915#define _LARGE_FILES $ac_cv_sys_large_files
10916_ACEOF
drh8b727472009-01-19 18:18:40 +000010917;;
10918esac
10919rm -rf conftest*
10920 fi
mlcreech636a9952008-05-05 22:52:56 +000010921fi
10922
10923
10924#########
10925# Check for needed/wanted data types
drh8b727472009-01-19 18:18:40 +000010926{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10927$as_echo_n "checking for int8_t... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010928if test "${ac_cv_type_int8_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010929 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010930else
drh8b727472009-01-19 18:18:40 +000010931 ac_cv_type_int8_t=no
10932cat >conftest.$ac_ext <<_ACEOF
10933/* confdefs.h. */
10934_ACEOF
10935cat confdefs.h >>conftest.$ac_ext
10936cat >>conftest.$ac_ext <<_ACEOF
10937/* end confdefs.h. */
10938$ac_includes_default
10939int
10940main ()
10941{
10942if (sizeof (int8_t))
10943 return 0;
10944 ;
10945 return 0;
10946}
10947_ACEOF
10948rm -f conftest.$ac_objext
10949if { (ac_try="$ac_compile"
10950case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953esac
10954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10955$as_echo "$ac_try_echo") >&5
10956 (eval "$ac_compile") 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } && {
10963 test -z "$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010966 cat >conftest.$ac_ext <<_ACEOF
10967/* confdefs.h. */
10968_ACEOF
10969cat confdefs.h >>conftest.$ac_ext
10970cat >>conftest.$ac_ext <<_ACEOF
10971/* end confdefs.h. */
10972$ac_includes_default
10973int
10974main ()
10975{
drh8b727472009-01-19 18:18:40 +000010976if (sizeof ((int8_t)))
10977 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010978 ;
10979 return 0;
10980}
10981_ACEOF
10982rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010983if { (ac_try="$ac_compile"
10984case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987esac
10988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10989$as_echo "$ac_try_echo") >&5
10990 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010991 ac_status=$?
10992 grep -v '^ *+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } && {
10997 test -z "$ac_c_werror_flag" ||
10998 test ! -s conftest.err
10999 } && test -s conftest.$ac_objext; then
11000 :
mlcreech636a9952008-05-05 22:52:56 +000011001else
drh8b727472009-01-19 18:18:40 +000011002 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000011003sed 's/^/| /' conftest.$ac_ext >&5
11004
drh8b727472009-01-19 18:18:40 +000011005 ac_cv_type_int8_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011006fi
drh8b727472009-01-19 18:18:40 +000011007
11008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11009else
11010 $as_echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013
mlcreechb87057f2008-03-06 07:19:20 +000011014fi
drh8b727472009-01-19 18:18:40 +000011015
11016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017fi
11018{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11019$as_echo "$ac_cv_type_int8_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011020if test "x$ac_cv_type_int8_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011021
11022cat >>confdefs.h <<_ACEOF
11023#define HAVE_INT8_T 1
11024_ACEOF
11025
11026
11027fi
drh8b727472009-01-19 18:18:40 +000011028{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11029$as_echo_n "checking for int16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011030if test "${ac_cv_type_int16_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011031 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011032else
drh8b727472009-01-19 18:18:40 +000011033 ac_cv_type_int16_t=no
11034cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h. */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h. */
11040$ac_includes_default
11041int
11042main ()
11043{
11044if (sizeof (int16_t))
11045 return 0;
11046 ;
11047 return 0;
11048}
11049_ACEOF
11050rm -f conftest.$ac_objext
11051if { (ac_try="$ac_compile"
11052case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055esac
11056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11057$as_echo "$ac_try_echo") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011068 cat >conftest.$ac_ext <<_ACEOF
11069/* confdefs.h. */
11070_ACEOF
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
11073/* end confdefs.h. */
11074$ac_includes_default
11075int
11076main ()
11077{
drh8b727472009-01-19 18:18:40 +000011078if (sizeof ((int16_t)))
11079 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011080 ;
11081 return 0;
11082}
11083_ACEOF
11084rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011085if { (ac_try="$ac_compile"
11086case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11089esac
11090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11091$as_echo "$ac_try_echo") >&5
11092 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest.$ac_objext; then
11102 :
mlcreechb87057f2008-03-06 07:19:20 +000011103else
drh8b727472009-01-19 18:18:40 +000011104 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011105sed 's/^/| /' conftest.$ac_ext >&5
11106
drh8b727472009-01-19 18:18:40 +000011107 ac_cv_type_int16_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011108fi
drh8b727472009-01-19 18:18:40 +000011109
11110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111else
11112 $as_echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
11114
11115
mlcreechb87057f2008-03-06 07:19:20 +000011116fi
drh8b727472009-01-19 18:18:40 +000011117
11118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119fi
11120{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11121$as_echo "$ac_cv_type_int16_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011122if test "x$ac_cv_type_int16_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011123
11124cat >>confdefs.h <<_ACEOF
11125#define HAVE_INT16_T 1
11126_ACEOF
11127
11128
11129fi
drh8b727472009-01-19 18:18:40 +000011130{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11131$as_echo_n "checking for int32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011132if test "${ac_cv_type_int32_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011133 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011134else
drh8b727472009-01-19 18:18:40 +000011135 ac_cv_type_int32_t=no
11136cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142$ac_includes_default
11143int
11144main ()
11145{
11146if (sizeof (int32_t))
11147 return 0;
11148 ;
11149 return 0;
11150}
11151_ACEOF
11152rm -f conftest.$ac_objext
11153if { (ac_try="$ac_compile"
11154case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157esac
11158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11159$as_echo "$ac_try_echo") >&5
11160 (eval "$ac_compile") 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } && {
11167 test -z "$ac_c_werror_flag" ||
11168 test ! -s conftest.err
11169 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011170 cat >conftest.$ac_ext <<_ACEOF
11171/* confdefs.h. */
11172_ACEOF
11173cat confdefs.h >>conftest.$ac_ext
11174cat >>conftest.$ac_ext <<_ACEOF
11175/* end confdefs.h. */
11176$ac_includes_default
11177int
11178main ()
11179{
drh8b727472009-01-19 18:18:40 +000011180if (sizeof ((int32_t)))
11181 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011182 ;
11183 return 0;
11184}
11185_ACEOF
11186rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011187if { (ac_try="$ac_compile"
11188case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11191esac
11192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11193$as_echo "$ac_try_echo") >&5
11194 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011195 ac_status=$?
11196 grep -v '^ *+' conftest.er1 >conftest.err
11197 rm -f conftest.er1
11198 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } && {
11201 test -z "$ac_c_werror_flag" ||
11202 test ! -s conftest.err
11203 } && test -s conftest.$ac_objext; then
11204 :
mlcreechb87057f2008-03-06 07:19:20 +000011205else
drh8b727472009-01-19 18:18:40 +000011206 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011207sed 's/^/| /' conftest.$ac_ext >&5
11208
drh8b727472009-01-19 18:18:40 +000011209 ac_cv_type_int32_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011210fi
drh8b727472009-01-19 18:18:40 +000011211
11212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11213else
11214 $as_echo "$as_me: failed program was:" >&5
11215sed 's/^/| /' conftest.$ac_ext >&5
11216
11217
mlcreechb87057f2008-03-06 07:19:20 +000011218fi
drh8b727472009-01-19 18:18:40 +000011219
11220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221fi
11222{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11223$as_echo "$ac_cv_type_int32_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011224if test "x$ac_cv_type_int32_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011225
11226cat >>confdefs.h <<_ACEOF
11227#define HAVE_INT32_T 1
11228_ACEOF
11229
11230
11231fi
drh8b727472009-01-19 18:18:40 +000011232{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11233$as_echo_n "checking for int64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011234if test "${ac_cv_type_int64_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011235 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011236else
drh8b727472009-01-19 18:18:40 +000011237 ac_cv_type_int64_t=no
11238cat >conftest.$ac_ext <<_ACEOF
11239/* confdefs.h. */
11240_ACEOF
11241cat confdefs.h >>conftest.$ac_ext
11242cat >>conftest.$ac_ext <<_ACEOF
11243/* end confdefs.h. */
11244$ac_includes_default
11245int
11246main ()
11247{
11248if (sizeof (int64_t))
11249 return 0;
11250 ;
11251 return 0;
11252}
11253_ACEOF
11254rm -f conftest.$ac_objext
11255if { (ac_try="$ac_compile"
11256case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259esac
11260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11261$as_echo "$ac_try_echo") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011272 cat >conftest.$ac_ext <<_ACEOF
11273/* confdefs.h. */
11274_ACEOF
11275cat confdefs.h >>conftest.$ac_ext
11276cat >>conftest.$ac_ext <<_ACEOF
11277/* end confdefs.h. */
11278$ac_includes_default
11279int
11280main ()
11281{
drh8b727472009-01-19 18:18:40 +000011282if (sizeof ((int64_t)))
11283 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011284 ;
11285 return 0;
11286}
11287_ACEOF
11288rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011289if { (ac_try="$ac_compile"
11290case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11293esac
11294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11295$as_echo "$ac_try_echo") >&5
11296 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } && {
11303 test -z "$ac_c_werror_flag" ||
11304 test ! -s conftest.err
11305 } && test -s conftest.$ac_objext; then
11306 :
mlcreechb87057f2008-03-06 07:19:20 +000011307else
drh8b727472009-01-19 18:18:40 +000011308 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011309sed 's/^/| /' conftest.$ac_ext >&5
11310
drh8b727472009-01-19 18:18:40 +000011311 ac_cv_type_int64_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011312fi
drh8b727472009-01-19 18:18:40 +000011313
11314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315else
11316 $as_echo "$as_me: failed program was:" >&5
11317sed 's/^/| /' conftest.$ac_ext >&5
11318
11319
mlcreechb87057f2008-03-06 07:19:20 +000011320fi
drh8b727472009-01-19 18:18:40 +000011321
11322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323fi
11324{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11325$as_echo "$ac_cv_type_int64_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011326if test "x$ac_cv_type_int64_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011327
11328cat >>confdefs.h <<_ACEOF
11329#define HAVE_INT64_T 1
11330_ACEOF
11331
11332
11333fi
drh8b727472009-01-19 18:18:40 +000011334{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11335$as_echo_n "checking for intptr_t... " >&6; }
danielk197733a14782008-08-04 14:50:05 +000011336if test "${ac_cv_type_intptr_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011337 $as_echo_n "(cached) " >&6
danielk197733a14782008-08-04 14:50:05 +000011338else
drh8b727472009-01-19 18:18:40 +000011339 ac_cv_type_intptr_t=no
11340cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346$ac_includes_default
11347int
11348main ()
11349{
11350if (sizeof (intptr_t))
11351 return 0;
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (ac_try="$ac_compile"
11358case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361esac
11362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11363$as_echo "$ac_try_echo") >&5
11364 (eval "$ac_compile") 2>conftest.er1
11365 ac_status=$?
11366 grep -v '^ *+' conftest.er1 >conftest.err
11367 rm -f conftest.er1
11368 cat conftest.err >&5
11369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } && {
11371 test -z "$ac_c_werror_flag" ||
11372 test ! -s conftest.err
11373 } && test -s conftest.$ac_objext; then
danielk197733a14782008-08-04 14:50:05 +000011374 cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h. */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h. */
11380$ac_includes_default
11381int
11382main ()
11383{
drh8b727472009-01-19 18:18:40 +000011384if (sizeof ((intptr_t)))
11385 return 0;
danielk197733a14782008-08-04 14:50:05 +000011386 ;
11387 return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011391if { (ac_try="$ac_compile"
11392case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395esac
11396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397$as_echo "$ac_try_echo") >&5
11398 (eval "$ac_compile") 2>conftest.er1
danielk197733a14782008-08-04 14:50:05 +000011399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest.$ac_objext; then
11408 :
danielk197733a14782008-08-04 14:50:05 +000011409else
drh8b727472009-01-19 18:18:40 +000011410 $as_echo "$as_me: failed program was:" >&5
danielk197733a14782008-08-04 14:50:05 +000011411sed 's/^/| /' conftest.$ac_ext >&5
mlcreechb87057f2008-03-06 07:19:20 +000011412
drh8b727472009-01-19 18:18:40 +000011413 ac_cv_type_intptr_t=yes
danielk197733a14782008-08-04 14:50:05 +000011414fi
drh8b727472009-01-19 18:18:40 +000011415
11416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11417else
11418 $as_echo "$as_me: failed program was:" >&5
11419sed 's/^/| /' conftest.$ac_ext >&5
11420
11421
danielk197733a14782008-08-04 14:50:05 +000011422fi
drh8b727472009-01-19 18:18:40 +000011423
11424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425fi
11426{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11427$as_echo "$ac_cv_type_intptr_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011428if test "x$ac_cv_type_intptr_t" = x""yes; then
danielk197733a14782008-08-04 14:50:05 +000011429
11430cat >>confdefs.h <<_ACEOF
11431#define HAVE_INTPTR_T 1
11432_ACEOF
11433
11434
11435fi
drh8b727472009-01-19 18:18:40 +000011436{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11437$as_echo_n "checking for uint8_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011438if test "${ac_cv_type_uint8_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011439 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011440else
drh8b727472009-01-19 18:18:40 +000011441 ac_cv_type_uint8_t=no
11442cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h. */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h. */
11448$ac_includes_default
11449int
11450main ()
11451{
11452if (sizeof (uint8_t))
11453 return 0;
11454 ;
11455 return 0;
11456}
11457_ACEOF
11458rm -f conftest.$ac_objext
11459if { (ac_try="$ac_compile"
11460case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463esac
11464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11465$as_echo "$ac_try_echo") >&5
11466 (eval "$ac_compile") 2>conftest.er1
11467 ac_status=$?
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
11471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011476 cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h. */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h. */
11482$ac_includes_default
11483int
11484main ()
11485{
drh8b727472009-01-19 18:18:40 +000011486if (sizeof ((uint8_t)))
11487 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011488 ;
11489 return 0;
11490}
11491_ACEOF
11492rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011493if { (ac_try="$ac_compile"
11494case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497esac
11498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11499$as_echo "$ac_try_echo") >&5
11500 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && {
11507 test -z "$ac_c_werror_flag" ||
11508 test ! -s conftest.err
11509 } && test -s conftest.$ac_objext; then
11510 :
mlcreechb87057f2008-03-06 07:19:20 +000011511else
drh8b727472009-01-19 18:18:40 +000011512 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011513sed 's/^/| /' conftest.$ac_ext >&5
11514
drh8b727472009-01-19 18:18:40 +000011515 ac_cv_type_uint8_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011516fi
drh8b727472009-01-19 18:18:40 +000011517
11518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11519else
11520 $as_echo "$as_me: failed program was:" >&5
11521sed 's/^/| /' conftest.$ac_ext >&5
11522
11523
mlcreechb87057f2008-03-06 07:19:20 +000011524fi
drh8b727472009-01-19 18:18:40 +000011525
11526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527fi
11528{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11529$as_echo "$ac_cv_type_uint8_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011530if test "x$ac_cv_type_uint8_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011531
11532cat >>confdefs.h <<_ACEOF
11533#define HAVE_UINT8_T 1
11534_ACEOF
11535
11536
11537fi
drh8b727472009-01-19 18:18:40 +000011538{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11539$as_echo_n "checking for uint16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011540if test "${ac_cv_type_uint16_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011541 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011542else
drh8b727472009-01-19 18:18:40 +000011543 ac_cv_type_uint16_t=no
11544cat >conftest.$ac_ext <<_ACEOF
11545/* confdefs.h. */
11546_ACEOF
11547cat confdefs.h >>conftest.$ac_ext
11548cat >>conftest.$ac_ext <<_ACEOF
11549/* end confdefs.h. */
11550$ac_includes_default
11551int
11552main ()
11553{
11554if (sizeof (uint16_t))
11555 return 0;
11556 ;
11557 return 0;
11558}
11559_ACEOF
11560rm -f conftest.$ac_objext
11561if { (ac_try="$ac_compile"
11562case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565esac
11566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567$as_echo "$ac_try_echo") >&5
11568 (eval "$ac_compile") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011578 cat >conftest.$ac_ext <<_ACEOF
11579/* confdefs.h. */
11580_ACEOF
11581cat confdefs.h >>conftest.$ac_ext
11582cat >>conftest.$ac_ext <<_ACEOF
11583/* end confdefs.h. */
11584$ac_includes_default
11585int
11586main ()
11587{
drh8b727472009-01-19 18:18:40 +000011588if (sizeof ((uint16_t)))
11589 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011590 ;
11591 return 0;
11592}
11593_ACEOF
11594rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011595if { (ac_try="$ac_compile"
11596case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599esac
11600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11601$as_echo "$ac_try_echo") >&5
11602 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011603 ac_status=$?
11604 grep -v '^ *+' conftest.er1 >conftest.err
11605 rm -f conftest.er1
11606 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } && {
11609 test -z "$ac_c_werror_flag" ||
11610 test ! -s conftest.err
11611 } && test -s conftest.$ac_objext; then
11612 :
mlcreechb87057f2008-03-06 07:19:20 +000011613else
drh8b727472009-01-19 18:18:40 +000011614 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011615sed 's/^/| /' conftest.$ac_ext >&5
11616
drh8b727472009-01-19 18:18:40 +000011617 ac_cv_type_uint16_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011618fi
drh8b727472009-01-19 18:18:40 +000011619
11620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621else
11622 $as_echo "$as_me: failed program was:" >&5
11623sed 's/^/| /' conftest.$ac_ext >&5
11624
11625
mlcreechb87057f2008-03-06 07:19:20 +000011626fi
drh8b727472009-01-19 18:18:40 +000011627
11628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629fi
11630{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11631$as_echo "$ac_cv_type_uint16_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011632if test "x$ac_cv_type_uint16_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011633
11634cat >>confdefs.h <<_ACEOF
11635#define HAVE_UINT16_T 1
11636_ACEOF
11637
11638
11639fi
drh8b727472009-01-19 18:18:40 +000011640{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11641$as_echo_n "checking for uint32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011642if test "${ac_cv_type_uint32_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011643 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011644else
drh8b727472009-01-19 18:18:40 +000011645 ac_cv_type_uint32_t=no
11646cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
11652$ac_includes_default
11653int
11654main ()
11655{
11656if (sizeof (uint32_t))
11657 return 0;
11658 ;
11659 return 0;
11660}
11661_ACEOF
11662rm -f conftest.$ac_objext
11663if { (ac_try="$ac_compile"
11664case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11667esac
11668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11669$as_echo "$ac_try_echo") >&5
11670 (eval "$ac_compile") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011680 cat >conftest.$ac_ext <<_ACEOF
11681/* confdefs.h. */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h. */
11686$ac_includes_default
11687int
11688main ()
11689{
drh8b727472009-01-19 18:18:40 +000011690if (sizeof ((uint32_t)))
11691 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011692 ;
11693 return 0;
11694}
11695_ACEOF
11696rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011697if { (ac_try="$ac_compile"
11698case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701esac
11702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11703$as_echo "$ac_try_echo") >&5
11704 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } && {
11711 test -z "$ac_c_werror_flag" ||
11712 test ! -s conftest.err
11713 } && test -s conftest.$ac_objext; then
11714 :
mlcreechb87057f2008-03-06 07:19:20 +000011715else
drh8b727472009-01-19 18:18:40 +000011716 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011717sed 's/^/| /' conftest.$ac_ext >&5
11718
drh8b727472009-01-19 18:18:40 +000011719 ac_cv_type_uint32_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011720fi
drh8b727472009-01-19 18:18:40 +000011721
11722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723else
11724 $as_echo "$as_me: failed program was:" >&5
11725sed 's/^/| /' conftest.$ac_ext >&5
11726
11727
mlcreechb87057f2008-03-06 07:19:20 +000011728fi
drh8b727472009-01-19 18:18:40 +000011729
11730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731fi
11732{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11733$as_echo "$ac_cv_type_uint32_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011734if test "x$ac_cv_type_uint32_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011735
11736cat >>confdefs.h <<_ACEOF
11737#define HAVE_UINT32_T 1
11738_ACEOF
11739
11740
11741fi
drh8b727472009-01-19 18:18:40 +000011742{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11743$as_echo_n "checking for uint64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011744if test "${ac_cv_type_uint64_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011745 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011746else
drh8b727472009-01-19 18:18:40 +000011747 ac_cv_type_uint64_t=no
11748cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754$ac_includes_default
11755int
11756main ()
11757{
11758if (sizeof (uint64_t))
11759 return 0;
11760 ;
11761 return 0;
11762}
11763_ACEOF
11764rm -f conftest.$ac_objext
11765if { (ac_try="$ac_compile"
11766case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769esac
11770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11771$as_echo "$ac_try_echo") >&5
11772 (eval "$ac_compile") 2>conftest.er1
11773 ac_status=$?
11774 grep -v '^ *+' conftest.er1 >conftest.err
11775 rm -f conftest.er1
11776 cat conftest.err >&5
11777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } && {
11779 test -z "$ac_c_werror_flag" ||
11780 test ! -s conftest.err
11781 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011782 cat >conftest.$ac_ext <<_ACEOF
11783/* confdefs.h. */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h. */
11788$ac_includes_default
11789int
11790main ()
11791{
drh8b727472009-01-19 18:18:40 +000011792if (sizeof ((uint64_t)))
11793 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011794 ;
11795 return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011799if { (ac_try="$ac_compile"
11800case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11805$as_echo "$ac_try_echo") >&5
11806 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest.$ac_objext; then
11816 :
mlcreechb87057f2008-03-06 07:19:20 +000011817else
drh8b727472009-01-19 18:18:40 +000011818 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011819sed 's/^/| /' conftest.$ac_ext >&5
11820
drh8b727472009-01-19 18:18:40 +000011821 ac_cv_type_uint64_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011822fi
drh8b727472009-01-19 18:18:40 +000011823
11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825else
11826 $as_echo "$as_me: failed program was:" >&5
11827sed 's/^/| /' conftest.$ac_ext >&5
11828
11829
mlcreechb87057f2008-03-06 07:19:20 +000011830fi
drh8b727472009-01-19 18:18:40 +000011831
11832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833fi
11834{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11835$as_echo "$ac_cv_type_uint64_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011836if test "x$ac_cv_type_uint64_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011837
11838cat >>confdefs.h <<_ACEOF
11839#define HAVE_UINT64_T 1
11840_ACEOF
11841
11842
11843fi
drh8b727472009-01-19 18:18:40 +000011844{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11845$as_echo_n "checking for uintptr_t... " >&6; }
danielk197733a14782008-08-04 14:50:05 +000011846if test "${ac_cv_type_uintptr_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011847 $as_echo_n "(cached) " >&6
danielk197733a14782008-08-04 14:50:05 +000011848else
drh8b727472009-01-19 18:18:40 +000011849 ac_cv_type_uintptr_t=no
11850cat >conftest.$ac_ext <<_ACEOF
11851/* confdefs.h. */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h. */
11856$ac_includes_default
11857int
11858main ()
11859{
11860if (sizeof (uintptr_t))
11861 return 0;
11862 ;
11863 return 0;
11864}
11865_ACEOF
11866rm -f conftest.$ac_objext
11867if { (ac_try="$ac_compile"
11868case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871esac
11872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11873$as_echo "$ac_try_echo") >&5
11874 (eval "$ac_compile") 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } && {
11881 test -z "$ac_c_werror_flag" ||
11882 test ! -s conftest.err
11883 } && test -s conftest.$ac_objext; then
danielk197733a14782008-08-04 14:50:05 +000011884 cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
11890$ac_includes_default
11891int
11892main ()
11893{
drh8b727472009-01-19 18:18:40 +000011894if (sizeof ((uintptr_t)))
11895 return 0;
danielk197733a14782008-08-04 14:50:05 +000011896 ;
11897 return 0;
11898}
11899_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000011900rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011901if { (ac_try="$ac_compile"
11902case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905esac
11906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11907$as_echo "$ac_try_echo") >&5
11908 (eval "$ac_compile") 2>conftest.er1
danielk197733a14782008-08-04 14:50:05 +000011909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest.$ac_objext; then
11918 :
danielk197733a14782008-08-04 14:50:05 +000011919else
drh8b727472009-01-19 18:18:40 +000011920 $as_echo "$as_me: failed program was:" >&5
danielk197733a14782008-08-04 14:50:05 +000011921sed 's/^/| /' conftest.$ac_ext >&5
11922
drh8b727472009-01-19 18:18:40 +000011923 ac_cv_type_uintptr_t=yes
danielk197733a14782008-08-04 14:50:05 +000011924fi
drh8b727472009-01-19 18:18:40 +000011925
11926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927else
11928 $as_echo "$as_me: failed program was:" >&5
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
11931
danielk197733a14782008-08-04 14:50:05 +000011932fi
drh8b727472009-01-19 18:18:40 +000011933
11934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935fi
11936{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11937$as_echo "$ac_cv_type_uintptr_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011938if test "x$ac_cv_type_uintptr_t" = x""yes; then
danielk197733a14782008-08-04 14:50:05 +000011939
11940cat >>confdefs.h <<_ACEOF
11941#define HAVE_UINTPTR_T 1
11942_ACEOF
11943
11944
11945fi
mlcreechb87057f2008-03-06 07:19:20 +000011946
11947
11948#########
11949# Check for needed/wanted headers
11950
mlcreech8390bc32008-03-06 08:54:38 +000011951
11952
11953
11954for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
mlcreechb87057f2008-03-06 07:19:20 +000011955do
drh8b727472009-01-19 18:18:40 +000011956as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11959$as_echo_n "checking for $ac_header... " >&6; }
11960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11961 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000011962fi
drh8b727472009-01-19 18:18:40 +000011963ac_res=`eval 'as_val=${'$as_ac_Header'}
11964 $as_echo "$as_val"'`
11965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11966$as_echo "$ac_res" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011967else
mlcreech8390bc32008-03-06 08:54:38 +000011968 # Is the header compilable?
drh8b727472009-01-19 18:18:40 +000011969{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11970$as_echo_n "checking $ac_header usability... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011971cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011972/* confdefs.h. */
11973_ACEOF
11974cat confdefs.h >>conftest.$ac_ext
11975cat >>conftest.$ac_ext <<_ACEOF
11976/* end confdefs.h. */
mlcreech8390bc32008-03-06 08:54:38 +000011977$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011978#include <$ac_header>
11979_ACEOF
11980rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011981if { (ac_try="$ac_compile"
11982case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985esac
11986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11987$as_echo "$ac_try_echo") >&5
11988 (eval "$ac_compile") 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000011989 ac_status=$?
11990 grep -v '^ *+' conftest.er1 >conftest.err
11991 rm -f conftest.er1
11992 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } && {
11995 test -z "$ac_c_werror_flag" ||
11996 test ! -s conftest.err
11997 } && test -s conftest.$ac_objext; then
mlcreech8390bc32008-03-06 08:54:38 +000011998 ac_header_compiler=yes
mlcreechb87057f2008-03-06 07:19:20 +000011999else
drh8b727472009-01-19 18:18:40 +000012000 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000012001sed 's/^/| /' conftest.$ac_ext >&5
12002
drh8b727472009-01-19 18:18:40 +000012003 ac_header_compiler=no
mlcreechb87057f2008-03-06 07:19:20 +000012004fi
drh8b727472009-01-19 18:18:40 +000012005
12006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12007{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12008$as_echo "$ac_header_compiler" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012009
12010# Is the header present?
drh8b727472009-01-19 18:18:40 +000012011{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12012$as_echo_n "checking $ac_header presence... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012013cat >conftest.$ac_ext <<_ACEOF
12014/* confdefs.h. */
12015_ACEOF
12016cat confdefs.h >>conftest.$ac_ext
12017cat >>conftest.$ac_ext <<_ACEOF
12018/* end confdefs.h. */
12019#include <$ac_header>
12020_ACEOF
drh8b727472009-01-19 18:18:40 +000012021if { (ac_try="$ac_cpp conftest.$ac_ext"
12022case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025esac
12026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12027$as_echo "$ac_try_echo") >&5
12028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mlcreech8390bc32008-03-06 08:54:38 +000012029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } >/dev/null && {
12035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12036 test ! -s conftest.err
12037 }; then
mlcreech8390bc32008-03-06 08:54:38 +000012038 ac_header_preproc=yes
12039else
drh8b727472009-01-19 18:18:40 +000012040 $as_echo "$as_me: failed program was:" >&5
mlcreech8390bc32008-03-06 08:54:38 +000012041sed 's/^/| /' conftest.$ac_ext >&5
12042
12043 ac_header_preproc=no
12044fi
drh8b727472009-01-19 18:18:40 +000012045
mlcreech8390bc32008-03-06 08:54:38 +000012046rm -f conftest.err conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +000012047{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12048$as_echo "$ac_header_preproc" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012049
12050# So? What about this header?
12051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12052 yes:no: )
drh8b727472009-01-19 18:18:40 +000012053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12054$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12056$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
mlcreech8390bc32008-03-06 08:54:38 +000012057 ac_header_preproc=yes
12058 ;;
12059 no:yes:* )
drh8b727472009-01-19 18:18:40 +000012060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12061$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12063$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12065$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12067$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12069$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12071$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12072
mlcreech8390bc32008-03-06 08:54:38 +000012073 ;;
12074esac
drh8b727472009-01-19 18:18:40 +000012075{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12076$as_echo_n "checking for $ac_header... " >&6; }
12077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12078 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000012079else
12080 eval "$as_ac_Header=\$ac_header_preproc"
mlcreechb87057f2008-03-06 07:19:20 +000012081fi
drh8b727472009-01-19 18:18:40 +000012082ac_res=`eval 'as_val=${'$as_ac_Header'}
12083 $as_echo "$as_val"'`
12084 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12085$as_echo "$ac_res" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012086
12087fi
vapier6acb2cf2009-01-28 04:46:28 +000012088as_val=`eval 'as_val=${'$as_ac_Header'}
12089 $as_echo "$as_val"'`
12090 if test "x$as_val" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000012091 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000012093_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000012094
mlcreechb87057f2008-03-06 07:19:20 +000012095fi
12096
12097done
12098
12099
12100#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000012101# Figure out whether or not we have these functions
12102#
12103
12104
12105
12106
danielk197733a14782008-08-04 14:50:05 +000012107
shanefbedede2008-07-22 05:05:01 +000012108for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
mlcreech5b0a9eb2008-03-09 01:38:09 +000012109do
drh8b727472009-01-19 18:18:40 +000012110as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12111{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12112$as_echo_n "checking for $ac_func... " >&6; }
12113if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12114 $as_echo_n "(cached) " >&6
mlcreech5b0a9eb2008-03-09 01:38:09 +000012115else
12116 cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
12122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12124#define $ac_func innocuous_$ac_func
12125
12126/* System header to define __stub macros and hopefully few prototypes,
12127 which can conflict with char $ac_func (); below.
12128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12129 <limits.h> exists even on freestanding compilers. */
12130
12131#ifdef __STDC__
12132# include <limits.h>
12133#else
12134# include <assert.h>
12135#endif
12136
12137#undef $ac_func
12138
drh8b727472009-01-19 18:18:40 +000012139/* Override any GCC internal prototype to avoid an error.
12140 Use char because int might match the return type of a GCC
12141 builtin and then its argument prototype would still apply. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000012142#ifdef __cplusplus
12143extern "C"
12144#endif
12145char $ac_func ();
12146/* The GNU C library defines this for functions which it implements
12147 to always fail with ENOSYS. Some functions are actually named
12148 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +000012149#if defined __stub_$ac_func || defined __stub___$ac_func
mlcreech5b0a9eb2008-03-09 01:38:09 +000012150choke me
12151#endif
12152
12153int
12154main ()
12155{
drh8b727472009-01-19 18:18:40 +000012156return $ac_func ();
mlcreech5b0a9eb2008-03-09 01:38:09 +000012157 ;
12158 return 0;
12159}
12160_ACEOF
12161rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000012162if { (ac_try="$ac_link"
12163case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166esac
12167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12168$as_echo "$ac_try_echo") >&5
12169 (eval "$ac_link") 2>conftest.er1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest$ac_exeext && {
12179 test "$cross_compiling" = yes ||
12180 $as_test_x conftest$ac_exeext
12181 }; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012182 eval "$as_ac_var=yes"
12183else
drh8b727472009-01-19 18:18:40 +000012184 $as_echo "$as_me: failed program was:" >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000012185sed 's/^/| /' conftest.$ac_ext >&5
12186
drh8b727472009-01-19 18:18:40 +000012187 eval "$as_ac_var=no"
mlcreech5b0a9eb2008-03-09 01:38:09 +000012188fi
drh8b727472009-01-19 18:18:40 +000012189
12190rm -rf conftest.dSYM
12191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech5b0a9eb2008-03-09 01:38:09 +000012192 conftest$ac_exeext conftest.$ac_ext
12193fi
drh8b727472009-01-19 18:18:40 +000012194ac_res=`eval 'as_val=${'$as_ac_var'}
12195 $as_echo "$as_val"'`
12196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12197$as_echo "$ac_res" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000012198as_val=`eval 'as_val=${'$as_ac_var'}
12199 $as_echo "$as_val"'`
12200 if test "x$as_val" = x""yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012201 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012202#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012203_ACEOF
12204
12205fi
12206done
12207
12208
mlcreechab1c47b2008-03-09 02:51:10 +000012209#########
mlcreechf3868112008-03-11 18:03:30 +000012210# By default, we use the amalgamation (this may be changed below...)
12211#
12212USE_AMALGAMATION=1
12213
12214#########
mlcreechab1c47b2008-03-09 02:51:10 +000012215# See whether we can run specific tclsh versions known to work well;
12216# if not, then we fall back to plain tclsh.
12217# TODO: try other versions before falling back?
12218#
12219for ac_prog in tclsh8.4 tclsh
12220do
12221 # Extract the first word of "$ac_prog", so it can be a program name with args.
12222set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000012223{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12224$as_echo_n "checking for $ac_word... " >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012225if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012226 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000012227else
12228 if test -n "$TCLSH_CMD"; then
12229 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12230else
12231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012237 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 +000012238 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh8b727472009-01-19 18:18:40 +000012239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000012240 break 2
12241 fi
12242done
12243done
drh8b727472009-01-19 18:18:40 +000012244IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000012245
12246fi
12247fi
12248TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12249if test -n "$TCLSH_CMD"; then
drh8b727472009-01-19 18:18:40 +000012250 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12251$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012252else
drh8b727472009-01-19 18:18:40 +000012253 { $as_echo "$as_me:$LINENO: result: no" >&5
12254$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012255fi
12256
drh8b727472009-01-19 18:18:40 +000012257
mlcreechab1c47b2008-03-09 02:51:10 +000012258 test -n "$TCLSH_CMD" && break
12259done
mlcreechf3868112008-03-11 18:03:30 +000012260test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000012261
mlcreechf3868112008-03-11 18:03:30 +000012262if test "$TCLSH_CMD" = "none"; then
12263 # If we can't find a local tclsh, then building the amalgamation will fail.
12264 # We act as though --disable-amalgamation has been used.
12265 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12266 USE_AMALGAMATION=0
12267 TCLSH_CMD="tclsh"
12268fi
mlcreechab1c47b2008-03-09 02:51:10 +000012269
12270
mlcreech5b0a9eb2008-03-09 01:38:09 +000012271
vapier6acb2cf2009-01-28 04:46:28 +000012272if test "x${TCLLIBDIR+set}" != "xset" ; then
12273 TCLLIBDIR='$(libdir)'
12274 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12275 TCLLIBDIR=$i
12276 break
12277 done
12278 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12279fi
12280
12281
mlcreech5b0a9eb2008-03-09 01:38:09 +000012282#########
drh75897232000-05-29 14:26:00 +000012283# Set up an appropriate program prefix
12284#
12285if test "$program_prefix" = "NONE"; then
12286 program_prefix=""
12287fi
12288
a.rottmann84e63352003-03-24 09:42:16 +000012289
drh4b2266a2004-11-27 15:52:16 +000012290VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
vapier6acb2cf2009-01-28 04:46:28 +000012291{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
12292$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000012293
12294RELEASE=`cat $srcdir/VERSION`
vapier6acb2cf2009-01-28 04:46:28 +000012295{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
12296$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012297
vapier6acb2cf2009-01-28 04:46:28 +000012298VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000012299 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000012300 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
vapier6acb2cf2009-01-28 04:46:28 +000012301{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
12302$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012303
drh26d0e2a2005-07-06 13:51:27 +000012304
drh75897232000-05-29 14:26:00 +000012305#########
12306# Check to see if the --with-hints=FILE option is used. If there is none,
12307# then check for a files named "$host.hints" and ../$hosts.hints where
12308# $host is the hostname of the build system. If still no hints are
12309# found, try looking in $system.hints and ../$system.hints where
12310# $system is the result of uname -s.
12311#
drh71eb93e2001-09-28 01:34:43 +000012312
drh8b727472009-01-19 18:18:40 +000012313# Check whether --with-hints was given.
drh75897232000-05-29 14:26:00 +000012314if test "${with_hints+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012315 withval=$with_hints; hints=$withval
12316fi
12317
drh75897232000-05-29 14:26:00 +000012318if test "$hints" = ""; then
12319 host=`hostname | sed 's/\..*//'`
12320 if test -r $host.hints; then
12321 hints=$host.hints
12322 else
12323 if test -r ../$host.hints; then
12324 hints=../$host.hints
12325 fi
12326 fi
12327fi
12328if test "$hints" = ""; then
12329 sys=`uname -s`
12330 if test -r $sys.hints; then
12331 hints=$sys.hints
12332 else
12333 if test -r ../$sys.hints; then
12334 hints=../$sys.hints
12335 fi
12336 fi
12337fi
12338if test "$hints" != ""; then
drh8b727472009-01-19 18:18:40 +000012339 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12340$as_echo "reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000012341 . $hints
12342fi
12343
12344#########
12345# Locate a compiler for the build machine. This compiler should
12346# generate command-line programs that run on the build machine.
12347#
vapier7f19c022007-02-17 14:46:31 +000012348if test x"$cross_compiling" = xno; then
12349 BUILD_CC=$CC
12350 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000012351else
vapier7f19c022007-02-17 14:46:31 +000012352 if test "${BUILD_CC+set}" != set; then
12353 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000012354do
12355 # Extract the first word of "$ac_prog", so it can be a program name with args.
12356set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000012357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12358$as_echo_n "checking for $ac_word... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000012359if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012360 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000012361else
vapier7f19c022007-02-17 14:46:31 +000012362 if test -n "$BUILD_CC"; then
12363 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000012364else
a.rottmann84e63352003-03-24 09:42:16 +000012365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366for as_dir in $PATH
12367do
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012371 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 +000012372 ac_cv_prog_BUILD_CC="$ac_prog"
drh8b727472009-01-19 18:18:40 +000012373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012374 break 2
12375 fi
12376done
drh71eb93e2001-09-28 01:34:43 +000012377done
drh8b727472009-01-19 18:18:40 +000012378IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000012379
drh71eb93e2001-09-28 01:34:43 +000012380fi
12381fi
vapier7f19c022007-02-17 14:46:31 +000012382BUILD_CC=$ac_cv_prog_BUILD_CC
12383if test -n "$BUILD_CC"; then
drh8b727472009-01-19 18:18:40 +000012384 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12385$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012386else
drh8b727472009-01-19 18:18:40 +000012387 { $as_echo "$as_me:$LINENO: result: no" >&5
12388$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012389fi
drh75897232000-05-29 14:26:00 +000012390
drh8b727472009-01-19 18:18:40 +000012391
vapier7f19c022007-02-17 14:46:31 +000012392 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000012393done
drh75897232000-05-29 14:26:00 +000012394
vapier7f19c022007-02-17 14:46:31 +000012395 fi
12396 if test "${BUILD_CFLAGS+set}" != set; then
12397 BUILD_CFLAGS="-g"
12398 fi
drh71eb93e2001-09-28 01:34:43 +000012399fi
12400
a.rottmann84e63352003-03-24 09:42:16 +000012401
drh297ecf12001-04-05 15:57:13 +000012402##########
dougcurrie0f290bf2004-06-21 18:57:29 +000012403# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000012404#
drh8b727472009-01-19 18:18:40 +000012405# Check whether --enable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012406if test "${enable_threadsafe+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012407 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000012408else
drh5a3032b2007-09-03 16:12:09 +000012409 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000012410fi
12411
12412{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12413$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012414if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000012415 SQLITE_THREADSAFE=0
drh8b727472009-01-19 18:18:40 +000012416 { $as_echo "$as_me:$LINENO: result: no" >&5
12417$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012418else
drh5a3032b2007-09-03 16:12:09 +000012419 SQLITE_THREADSAFE=1
drh8b727472009-01-19 18:18:40 +000012420 { $as_echo "$as_me:$LINENO: result: yes" >&5
12421$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012422fi
12423
a.rottmann964dbb12004-02-26 19:47:42 +000012424
drh5a3032b2007-09-03 16:12:09 +000012425if test "$SQLITE_THREADSAFE" = "1"; then
drh8b727472009-01-19 18:18:40 +000012426 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12427$as_echo_n "checking for library containing pthread_create... " >&6; }
mlcreechc658b0f2008-03-09 02:20:11 +000012428if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012429 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000012430else
mlcreechc658b0f2008-03-09 02:20:11 +000012431 ac_func_search_save_LIBS=$LIBS
dougcurrie65623c72004-09-20 14:57:23 +000012432cat >conftest.$ac_ext <<_ACEOF
12433/* confdefs.h. */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
12437/* end confdefs.h. */
12438
drh8b727472009-01-19 18:18:40 +000012439/* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000012442#ifdef __cplusplus
12443extern "C"
12444#endif
dougcurrie65623c72004-09-20 14:57:23 +000012445char pthread_create ();
12446int
12447main ()
12448{
drh8b727472009-01-19 18:18:40 +000012449return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000012450 ;
12451 return 0;
12452}
12453_ACEOF
drh8b727472009-01-19 18:18:40 +000012454for ac_lib in '' pthread; do
12455 if test -z "$ac_lib"; then
12456 ac_res="none required"
12457 else
12458 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012460 fi
12461 rm -f conftest.$ac_objext conftest$ac_exeext
12462if { (ac_try="$ac_link"
12463case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466esac
12467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12468$as_echo "$ac_try_echo") >&5
12469 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000012470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest$ac_exeext && {
12479 test "$cross_compiling" = yes ||
12480 $as_test_x conftest$ac_exeext
12481 }; then
12482 ac_cv_search_pthread_create=$ac_res
dougcurrie65623c72004-09-20 14:57:23 +000012483else
drh8b727472009-01-19 18:18:40 +000012484 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000012485sed 's/^/| /' conftest.$ac_ext >&5
12486
drh8b727472009-01-19 18:18:40 +000012487
mlcreechc658b0f2008-03-09 02:20:11 +000012488fi
drh8b727472009-01-19 18:18:40 +000012489
12490rm -rf conftest.dSYM
12491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12492 conftest$ac_exeext
12493 if test "${ac_cv_search_pthread_create+set}" = set; then
12494 break
drh866108f2008-05-13 00:57:21 +000012495fi
drh8b727472009-01-19 18:18:40 +000012496done
12497if test "${ac_cv_search_pthread_create+set}" = set; then
12498 :
12499else
12500 ac_cv_search_pthread_create=no
12501fi
12502rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000012503LIBS=$ac_func_search_save_LIBS
12504fi
drh8b727472009-01-19 18:18:40 +000012505{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12506$as_echo "$ac_cv_search_pthread_create" >&6; }
12507ac_res=$ac_cv_search_pthread_create
12508if test "$ac_res" != no; then
12509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000012510
dougcurrie65623c72004-09-20 14:57:23 +000012511fi
12512
mlcreechc658b0f2008-03-09 02:20:11 +000012513fi
dougcurrie65623c72004-09-20 14:57:23 +000012514
xdong28f79f72003-09-23 00:35:21 +000012515##########
drh91636d52005-11-24 23:14:00 +000012516# Do we want to allow a connection created in one thread to be used
12517# in another thread. This does not work on many Linux systems (ex: RedHat 9)
12518# due to bugs in the threading implementations. This is thus off by default.
12519#
drh8b727472009-01-19 18:18:40 +000012520# Check whether --enable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000012521if test "${enable_cross_thread_connections+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012522 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000012523else
12524 enable_xthreadconnect=no
drh8b727472009-01-19 18:18:40 +000012525fi
12526
12527{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12528$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
drh91636d52005-11-24 23:14:00 +000012529if test "$enable_xthreadconnect" = "no"; then
12530 XTHREADCONNECT=''
drh8b727472009-01-19 18:18:40 +000012531 { $as_echo "$as_me:$LINENO: result: no" >&5
12532$as_echo "no" >&6; }
drh91636d52005-11-24 23:14:00 +000012533else
12534 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh8b727472009-01-19 18:18:40 +000012535 { $as_echo "$as_me:$LINENO: result: yes" >&5
12536$as_echo "yes" >&6; }
drh91636d52005-11-24 23:14:00 +000012537fi
12538
12539
12540##########
drh8e2e2a12006-02-01 01:55:17 +000012541# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
12542# default. Normally, a test at runtime is performed to determine the
12543# appropriate value of this variable. Use this option only if you're sure that
12544# threads can safely override each others locks in all runtime situations.
12545#
drh8b727472009-01-19 18:18:40 +000012546# Check whether --enable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000012547if test "${enable_threads_override_locks+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012548 enableval=$enable_threads_override_locks;
drh8e2e2a12006-02-01 01:55:17 +000012549else
12550 enable_threads_override_locks=no
drh8b727472009-01-19 18:18:40 +000012551fi
12552
12553{ $as_echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
12554$as_echo_n "checking whether threads can override each others locks... " >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012555if test "$enable_threads_override_locks" = "no"; then
12556 THREADSOVERRIDELOCKS='-1'
drh8b727472009-01-19 18:18:40 +000012557 { $as_echo "$as_me:$LINENO: result: no" >&5
12558$as_echo "no" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012559else
12560 THREADSOVERRIDELOCKS='1'
drh8b727472009-01-19 18:18:40 +000012561 { $as_echo "$as_me:$LINENO: result: yes" >&5
12562$as_echo "yes" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012563fi
12564
12565
12566##########
xdong28f79f72003-09-23 00:35:21 +000012567# Do we want to support release
12568#
drh8b727472009-01-19 18:18:40 +000012569# Check whether --enable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000012570if test "${enable_releasemode+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012571 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000012572else
12573 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000012574fi
12575
12576{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12577$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000012578if test "$enable_releasemode" = "no"; then
12579 ALLOWRELEASE=""
drh8b727472009-01-19 18:18:40 +000012580 { $as_echo "$as_me:$LINENO: result: no" >&5
12581$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012582else
drh0b47d342007-11-27 14:50:06 +000012583 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh8b727472009-01-19 18:18:40 +000012584 { $as_echo "$as_me:$LINENO: result: yes" >&5
12585$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012586fi
paulb0208cc2003-04-13 18:26:49 +000012587
a.rottmann964dbb12004-02-26 19:47:42 +000012588
paulb0208cc2003-04-13 18:26:49 +000012589##########
12590# Do we want temporary databases in memory
12591#
drh8b727472009-01-19 18:18:40 +000012592# Check whether --enable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012593if test "${enable_tempstore+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012594 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000012595else
drh54414bb2005-10-10 00:05:50 +000012596 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000012597fi
12598
12599{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
12600$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012601case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000012602 never )
paul2dc96f92003-04-20 11:46:34 +000012603 TEMP_STORE=0
drh8b727472009-01-19 18:18:40 +000012604 { $as_echo "$as_me:$LINENO: result: never" >&5
12605$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012606 ;;
12607 no )
paul2dc96f92003-04-20 11:46:34 +000012608 TEMP_STORE=1
drh8b727472009-01-19 18:18:40 +000012609 { $as_echo "$as_me:$LINENO: result: no" >&5
12610$as_echo "no" >&6; }
12611 ;;
12612 yes )
12613 TEMP_STORE=2
12614 { $as_echo "$as_me:$LINENO: result: yes" >&5
12615$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012616 ;;
12617 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000012618 TEMP_STORE=3
drh8b727472009-01-19 18:18:40 +000012619 { $as_echo "$as_me:$LINENO: result: always" >&5
12620$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000012621 ;;
paulb0208cc2003-04-13 18:26:49 +000012622 * )
drh54414bb2005-10-10 00:05:50 +000012623 TEMP_STORE=1
drh8b727472009-01-19 18:18:40 +000012624 { $as_echo "$as_me:$LINENO: result: no" >&5
12625$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012626 ;;
12627esac
12628
12629
12630
drh75897232000-05-29 14:26:00 +000012631###########
12632# Lots of things are different if we are compiling for Windows using
12633# the CYGWIN environment. So check for that special case and handle
12634# things accordingly.
12635#
drh8b727472009-01-19 18:18:40 +000012636{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12637$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000012638if test "$config_BUILD_EXEEXT" = ".exe"; then
12639 CYGWIN=yes
drh8b727472009-01-19 18:18:40 +000012640 { $as_echo "$as_me:$LINENO: result: yes" >&5
12641$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000012642else
drh8b727472009-01-19 18:18:40 +000012643 { $as_echo "$as_me:$LINENO: result: unknown" >&5
12644$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000012645fi
12646if test "$CYGWIN" != "yes"; then
drh8b727472009-01-19 18:18:40 +000012647 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12648$as_echo_n "checking host system type... " >&6; }
12649if test "${ac_cv_host+set}" = set; then
12650 $as_echo_n "(cached) " >&6
12651else
12652 if test "x$host_alias" = x; then
12653 ac_cv_host=$ac_cv_build
12654else
12655 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12656 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12657$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12658 { (exit 1); exit 1; }; }
12659fi
12660
12661fi
12662{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12663$as_echo "$ac_cv_host" >&6; }
12664case $ac_cv_host in
12665*-*-*) ;;
12666*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12667$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12668 { (exit 1); exit 1; }; };;
12669esac
12670host=$ac_cv_host
12671ac_save_IFS=$IFS; IFS='-'
12672set x $ac_cv_host
12673shift
12674host_cpu=$1
12675host_vendor=$2
12676shift; shift
12677# Remember, the first character of IFS is used to create $*,
12678# except with old shells:
12679host_os=$*
12680IFS=$ac_save_IFS
12681case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12682
a.rottmann84e63352003-03-24 09:42:16 +000012683
12684case $host_os in
drh71eb93e2001-09-28 01:34:43 +000012685 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000012686 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000012687esac
drh75897232000-05-29 14:26:00 +000012688
drh75897232000-05-29 14:26:00 +000012689fi
12690if test "$CYGWIN" = "yes"; then
12691 BUILD_EXEEXT=.exe
12692else
dougcurrie6194a5f2003-12-19 20:09:51 +000012693 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000012694fi
vapier7f19c022007-02-17 14:46:31 +000012695if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000012696 TARGET_EXEEXT=$BUILD_EXEEXT
12697else
12698 TARGET_EXEEXT=$config_TARGET_EXEEXT
12699fi
12700if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000012701 if test $OS2_SHELL ; then
danielk197729bafea2008-06-26 10:41:19 +000012702 SQLITE_OS_UNIX=0
12703 SQLITE_OS_WIN=0
12704 SQLITE_OS_OS2=1
12705 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
drh60a1e4b2006-06-03 18:02:15 +000012706 else
danielk197729bafea2008-06-26 10:41:19 +000012707 SQLITE_OS_UNIX=0
12708 SQLITE_OS_WIN=1
12709 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000012710 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000012711 fi
drh75897232000-05-29 14:26:00 +000012712else
danielk197729bafea2008-06-26 10:41:19 +000012713 SQLITE_OS_UNIX=1
12714 SQLITE_OS_WIN=0
12715 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000012716 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000012717fi
drh75897232000-05-29 14:26:00 +000012718
a.rottmann84e63352003-03-24 09:42:16 +000012719
12720
12721
12722
12723
drh75897232000-05-29 14:26:00 +000012724
drh75897232000-05-29 14:26:00 +000012725##########
drh7b5717e2004-11-25 13:50:01 +000012726# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000012727#
drh7b5717e2004-11-25 13:50:01 +000012728# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12729# macros in the in the tcl.m4 file of the standard TCL distribution.
12730# Those macros could not be used directly since we have to make some
12731# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000012732#
drh8b727472009-01-19 18:18:40 +000012733# Check whether --enable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000012734if test "${enable_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012735 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000012736else
drh7b5717e2004-11-25 13:50:01 +000012737 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000012738fi
12739
drh7b5717e2004-11-25 13:50:01 +000012740if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000012741
drh8b727472009-01-19 18:18:40 +000012742# Check whether --with-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000012743if test "${with_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012744 withval=$with_tcl; with_tclconfig=${withval}
12745fi
12746
12747 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12748$as_echo_n "checking for Tcl configuration... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012749 if test "${ac_cv_c_tclconfig+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012750 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012751else
a.rottmann84e63352003-03-24 09:42:16 +000012752
drh7b5717e2004-11-25 13:50:01 +000012753 # First check to see if --with-tcl was specified.
12754 if test x"${with_tclconfig}" != x ; then
12755 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12756 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12757 else
drh8b727472009-01-19 18:18:40 +000012758 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12759$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000012760 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000012761 fi
12762 fi
vapier6acb2cf2009-01-28 04:46:28 +000012763
12764 # Start autosearch by asking tclsh
12765 if test x"$cross_compiling" = xno; then
12766 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12767 do
12768 if test -f "$i/tclConfig.sh" ; then
12769 ac_cv_c_tclconfig="$i"
12770 break
12771 fi
12772 done
12773 fi
12774
drh7b5717e2004-11-25 13:50:01 +000012775 # then check for a private Tcl installation
12776 if test x"${ac_cv_c_tclconfig}" = x ; then
12777 for i in \
12778 ../tcl \
12779 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12780 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12781 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12782 ../../tcl \
12783 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12784 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12785 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12786 ../../../tcl \
12787 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12788 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12789 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12790 do
12791 if test -f "$i/unix/tclConfig.sh" ; then
12792 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12793 break
12794 fi
12795 done
12796 fi
12797
12798 # check in a few common install locations
12799 if test x"${ac_cv_c_tclconfig}" = x ; then
12800 for i in \
12801 `ls -d ${libdir} 2>/dev/null` \
12802 `ls -d /usr/local/lib 2>/dev/null` \
12803 `ls -d /usr/contrib/lib 2>/dev/null` \
12804 `ls -d /usr/lib 2>/dev/null`
12805 do
12806 if test -f "$i/tclConfig.sh" ; then
12807 ac_cv_c_tclconfig=`(cd $i; pwd)`
12808 break
12809 fi
12810 done
12811 fi
12812
12813 # check in a few other private locations
12814 if test x"${ac_cv_c_tclconfig}" = x ; then
12815 for i in \
12816 ${srcdir}/../tcl \
12817 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12818 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12819 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12820 do
12821 if test -f "$i/unix/tclConfig.sh" ; then
12822 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12823 break
12824 fi
12825 done
12826 fi
12827
drh75897232000-05-29 14:26:00 +000012828fi
12829
drh7b5717e2004-11-25 13:50:01 +000012830
12831 if test x"${ac_cv_c_tclconfig}" = x ; then
12832 use_tcl=no
drh8b727472009-01-19 18:18:40 +000012833 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
12834$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12835 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12836$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12837 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12838$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000012839 else
12840 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh8b727472009-01-19 18:18:40 +000012841 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12842$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012843
drh8b727472009-01-19 18:18:40 +000012844 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12845$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012846 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh8b727472009-01-19 18:18:40 +000012847 { $as_echo "$as_me:$LINENO: result: loading" >&5
12848$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012849 . $TCL_BIN_DIR/tclConfig.sh
12850 else
drh8b727472009-01-19 18:18:40 +000012851 { $as_echo "$as_me:$LINENO: result: file not found" >&5
12852$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000012853 fi
drh7b5717e2004-11-25 13:50:01 +000012854
12855 #
12856 # If the TCL_BIN_DIR is the build directory (not the install directory),
12857 # then set the common variable name to the value of the build variables.
12858 # For example, the variable TCL_LIB_SPEC will be set to the value
12859 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12860 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12861 # installed and uninstalled version of Tcl.
12862 #
12863
mlcreechab1c47b2008-03-09 02:51:10 +000012864 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000012865 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12866 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12867 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12868 fi
12869
12870 #
12871 # eval is required to do the TCL_DBGX substitution
12872 #
12873
12874 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12875 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12876 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12877
12878 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12879 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12880 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895 fi
drh75897232000-05-29 14:26:00 +000012896fi
drh7b5717e2004-11-25 13:50:01 +000012897if test "${use_tcl}" = "no" ; then
12898 HAVE_TCL=""
12899else
12900 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000012901fi
drh75897232000-05-29 14:26:00 +000012902
a.rottmann84e63352003-03-24 09:42:16 +000012903
drh75897232000-05-29 14:26:00 +000012904##########
12905# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000012906# that use "readline()" library.
12907#
vapier7f19c022007-02-17 14:46:31 +000012908TARGET_READLINE_LIBS=""
12909TARGET_READLINE_INC=""
12910TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000012911# Check whether --enable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000012912if test "${enable_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012913 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000012914else
vapier7f19c022007-02-17 14:46:31 +000012915 with_readline=auto
drh8b727472009-01-19 18:18:40 +000012916fi
12917
vapier7f19c022007-02-17 14:46:31 +000012918
12919if test x"$with_readline" != xno; then
12920 found="yes"
12921
12922
drh8b727472009-01-19 18:18:40 +000012923# Check whether --with-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000012924if test "${with_readline_lib+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012925 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000012926else
12927 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000012928fi
12929
vapier7f19c022007-02-17 14:46:31 +000012930 if test "x$with_readline_lib" = xauto; then
12931 save_LIBS="$LIBS"
12932 LIBS=""
drh8b727472009-01-19 18:18:40 +000012933 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12934$as_echo_n "checking for library containing tgetent... " >&6; }
paul38372372003-04-22 08:04:49 +000012935if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012936 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000012937else
drh71eb93e2001-09-28 01:34:43 +000012938 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000012939cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000012940/* confdefs.h. */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h. */
12945
drh8b727472009-01-19 18:18:40 +000012946/* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000012949#ifdef __cplusplus
12950extern "C"
12951#endif
paul38372372003-04-22 08:04:49 +000012952char tgetent ();
12953int
12954main ()
12955{
drh8b727472009-01-19 18:18:40 +000012956return tgetent ();
paul38372372003-04-22 08:04:49 +000012957 ;
12958 return 0;
12959}
12960_ACEOF
drh8b727472009-01-19 18:18:40 +000012961for ac_lib in '' readline ncurses curses termcap; do
12962 if test -z "$ac_lib"; then
12963 ac_res="none required"
12964 else
12965 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012967 fi
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969if { (ac_try="$ac_link"
12970case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973esac
12974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12975$as_echo "$ac_try_echo") >&5
12976 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000012977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } && {
12983 test -z "$ac_c_werror_flag" ||
12984 test ! -s conftest.err
12985 } && test -s conftest$ac_exeext && {
12986 test "$cross_compiling" = yes ||
12987 $as_test_x conftest$ac_exeext
12988 }; then
12989 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000012990else
drh8b727472009-01-19 18:18:40 +000012991 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000012992sed 's/^/| /' conftest.$ac_ext >&5
12993
drh8b727472009-01-19 18:18:40 +000012994
mlcreech94984912008-03-04 19:03:08 +000012995fi
drh8b727472009-01-19 18:18:40 +000012996
12997rm -rf conftest.dSYM
12998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12999 conftest$ac_exeext
13000 if test "${ac_cv_search_tgetent+set}" = set; then
13001 break
drh866108f2008-05-13 00:57:21 +000013002fi
drh8b727472009-01-19 18:18:40 +000013003done
13004if test "${ac_cv_search_tgetent+set}" = set; then
13005 :
13006else
13007 ac_cv_search_tgetent=no
13008fi
13009rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013010LIBS=$ac_func_search_save_LIBS
13011fi
drh8b727472009-01-19 18:18:40 +000013012{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13013$as_echo "$ac_cv_search_tgetent" >&6; }
13014ac_res=$ac_cv_search_tgetent
13015if test "$ac_res" != no; then
13016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000013017 term_LIBS="$LIBS"
13018else
13019 term_LIBS=""
paul38372372003-04-22 08:04:49 +000013020fi
13021
drh8b727472009-01-19 18:18:40 +000013022 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13023$as_echo_n "checking for readline in -lreadline... " >&6; }
paul38372372003-04-22 08:04:49 +000013024if test "${ac_cv_lib_readline_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013025 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000013026else
13027 ac_check_lib_save_LIBS=$LIBS
13028LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000013029cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013030/* confdefs.h. */
13031_ACEOF
13032cat confdefs.h >>conftest.$ac_ext
13033cat >>conftest.$ac_ext <<_ACEOF
13034/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013035
drh8b727472009-01-19 18:18:40 +000013036/* Override any GCC internal prototype to avoid an error.
13037 Use char because int might match the return type of a GCC
13038 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000013039#ifdef __cplusplus
13040extern "C"
13041#endif
drh71eb93e2001-09-28 01:34:43 +000013042char readline ();
13043int
13044main ()
13045{
drh8b727472009-01-19 18:18:40 +000013046return readline ();
drh71eb93e2001-09-28 01:34:43 +000013047 ;
13048 return 0;
13049}
13050_ACEOF
13051rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000013052if { (ac_try="$ac_link"
13053case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056esac
13057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13058$as_echo "$ac_try_echo") >&5
13059 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000013060 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000013061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest$ac_exeext && {
13069 test "$cross_compiling" = yes ||
13070 $as_test_x conftest$ac_exeext
13071 }; then
paul38372372003-04-22 08:04:49 +000013072 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000013073else
drh8b727472009-01-19 18:18:40 +000013074 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013075sed 's/^/| /' conftest.$ac_ext >&5
13076
drh8b727472009-01-19 18:18:40 +000013077 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000013078fi
drh8b727472009-01-19 18:18:40 +000013079
13080rm -rf conftest.dSYM
13081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000013082 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013083LIBS=$ac_check_lib_save_LIBS
13084fi
drh8b727472009-01-19 18:18:40 +000013085{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13086$as_echo "$ac_cv_lib_readline_readline" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000013087if test "x$ac_cv_lib_readline_readline" = x""yes; then
vapier7f19c022007-02-17 14:46:31 +000013088 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000013089else
vapier7f19c022007-02-17 14:46:31 +000013090 found="no"
13091fi
drhf1878b42006-01-23 18:06:52 +000013092
vapier7f19c022007-02-17 14:46:31 +000013093 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13094 LIBS="$save_LIBS"
13095 else
13096 TARGET_READLINE_LIBS="$with_readline_lib"
13097 fi
13098
13099
drh8b727472009-01-19 18:18:40 +000013100# Check whether --with-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000013101if test "${with_readline_inc+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013102 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000013103else
vapier7f19c022007-02-17 14:46:31 +000013104 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000013105fi
13106
vapier7f19c022007-02-17 14:46:31 +000013107 if test "x$with_readline_inc" = xauto; then
13108 if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013109 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13110$as_echo_n "checking for readline.h... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000013111if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013112 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000013113fi
drh8b727472009-01-19 18:18:40 +000013114{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13115$as_echo "$ac_cv_header_readline_h" >&6; }
drh75897232000-05-29 14:26:00 +000013116else
a.rottmann84e63352003-03-24 09:42:16 +000013117 # Is the header compilable?
drh8b727472009-01-19 18:18:40 +000013118{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13119$as_echo_n "checking readline.h usability... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013120cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013121/* confdefs.h. */
13122_ACEOF
13123cat confdefs.h >>conftest.$ac_ext
13124cat >>conftest.$ac_ext <<_ACEOF
13125/* end confdefs.h. */
13126$ac_includes_default
drh75897232000-05-29 14:26:00 +000013127#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000013128_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013129rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000013130if { (ac_try="$ac_compile"
13131case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134esac
13135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13136$as_echo "$ac_try_echo") >&5
13137 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000013138 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000013139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } && {
13144 test -z "$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13146 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +000013147 ac_header_compiler=yes
13148else
drh8b727472009-01-19 18:18:40 +000013149 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013150sed 's/^/| /' conftest.$ac_ext >&5
13151
drh8b727472009-01-19 18:18:40 +000013152 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000013153fi
drh8b727472009-01-19 18:18:40 +000013154
13155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13157$as_echo "$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013158
13159# Is the header present?
drh8b727472009-01-19 18:18:40 +000013160{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13161$as_echo_n "checking readline.h presence... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013162cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013163/* confdefs.h. */
13164_ACEOF
13165cat confdefs.h >>conftest.$ac_ext
13166cat >>conftest.$ac_ext <<_ACEOF
13167/* end confdefs.h. */
13168#include <readline.h>
13169_ACEOF
drh8b727472009-01-19 18:18:40 +000013170if { (ac_try="$ac_cpp conftest.$ac_ext"
13171case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13174esac
13175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13176$as_echo "$ac_try_echo") >&5
13177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000013178 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000013179 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000013180 rm -f conftest.er1
13181 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } >/dev/null && {
13184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 }; then
a.rottmann84e63352003-03-24 09:42:16 +000013187 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000013188else
drh8b727472009-01-19 18:18:40 +000013189 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013190sed 's/^/| /' conftest.$ac_ext >&5
13191
13192 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000013193fi
drh8b727472009-01-19 18:18:40 +000013194
drh71eb93e2001-09-28 01:34:43 +000013195rm -f conftest.err conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +000013196{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197$as_echo "$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013198
13199# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000013200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13201 yes:no: )
drh8b727472009-01-19 18:18:40 +000013202 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13203$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13204 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13205$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000013206 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000013207 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000013208 no:yes:* )
drh8b727472009-01-19 18:18:40 +000013209 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13210$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13211 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13212$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13213 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13214$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13215 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13216$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13217 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13218$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13219 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13220$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13221
a.rottmann84e63352003-03-24 09:42:16 +000013222 ;;
13223esac
drh8b727472009-01-19 18:18:40 +000013224{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13225$as_echo_n "checking for readline.h... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013226if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013227 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000013228else
13229 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000013230fi
drh8b727472009-01-19 18:18:40 +000013231{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13232$as_echo "$ac_cv_header_readline_h" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013233
13234fi
vapier6acb2cf2009-01-28 04:46:28 +000013235if test "x$ac_cv_header_readline_h" = x""yes; then
vapier7f19c022007-02-17 14:46:31 +000013236 found="yes"
13237else
drh75897232000-05-29 14:26:00 +000013238
vapier7f19c022007-02-17 14:46:31 +000013239 found="no"
13240 if test "$cross_compiling" != yes; then
13241 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13242 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000013243 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13244{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13245$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
13246if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13247 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013248else
13249 test "$cross_compiling" = yes &&
drh8b727472009-01-19 18:18:40 +000013250 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13251$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
xdong28f79f72003-09-23 00:35:21 +000013252 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000013253if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000013254 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013255else
drh71eb93e2001-09-28 01:34:43 +000013256 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013257fi
13258fi
drh8b727472009-01-19 18:18:40 +000013259ac_res=`eval 'as_val=${'$as_ac_File'}
13260 $as_echo "$as_val"'`
13261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13262$as_echo "$ac_res" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000013263as_val=`eval 'as_val=${'$as_ac_File'}
13264 $as_echo "$as_val"'`
13265 if test "x$as_val" = x""yes; then
drh75897232000-05-29 14:26:00 +000013266 found=yes
drh75897232000-05-29 14:26:00 +000013267fi
13268
vapier7f19c022007-02-17 14:46:31 +000013269 if test "$found" = "yes"; then
13270 TARGET_READLINE_INC="-I$dir/$subdir"
13271 break
13272 fi
13273 done
13274 test "$found" = "yes" && break
13275 done
13276 fi
13277
13278fi
13279
13280
13281 else
13282 TARGET_READLINE_INC="$with_readline_inc"
13283 fi
13284
13285 if test x"$found" = xno; then
13286 TARGET_READLINE_LIBS=""
13287 TARGET_READLINE_INC=""
13288 TARGET_HAVE_READLINE=0
13289 else
13290 TARGET_HAVE_READLINE=1
13291 fi
13292fi
13293
13294
13295
13296
13297
13298##########
13299# Figure out what C libraries are required to compile programs
13300# that use "fdatasync()" function.
13301#
drh8b727472009-01-19 18:18:40 +000013302{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13303$as_echo_n "checking for library containing fdatasync... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000013304if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013305 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013306else
vapier7f19c022007-02-17 14:46:31 +000013307 ac_func_search_save_LIBS=$LIBS
13308cat >conftest.$ac_ext <<_ACEOF
13309/* confdefs.h. */
13310_ACEOF
13311cat confdefs.h >>conftest.$ac_ext
13312cat >>conftest.$ac_ext <<_ACEOF
13313/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013314
drh8b727472009-01-19 18:18:40 +000013315/* Override any GCC internal prototype to avoid an error.
13316 Use char because int might match the return type of a GCC
13317 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000013318#ifdef __cplusplus
13319extern "C"
13320#endif
13321char fdatasync ();
13322int
13323main ()
13324{
drh8b727472009-01-19 18:18:40 +000013325return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000013326 ;
13327 return 0;
13328}
13329_ACEOF
drh8b727472009-01-19 18:18:40 +000013330for ac_lib in '' rt; do
13331 if test -z "$ac_lib"; then
13332 ac_res="none required"
13333 else
13334 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000013335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000013336 fi
13337 rm -f conftest.$ac_objext conftest$ac_exeext
13338if { (ac_try="$ac_link"
13339case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13342esac
13343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13344$as_echo "$ac_try_echo") >&5
13345 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000013346 ac_status=$?
13347 grep -v '^ *+' conftest.er1 >conftest.err
13348 rm -f conftest.er1
13349 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } && {
13352 test -z "$ac_c_werror_flag" ||
13353 test ! -s conftest.err
13354 } && test -s conftest$ac_exeext && {
13355 test "$cross_compiling" = yes ||
13356 $as_test_x conftest$ac_exeext
13357 }; then
13358 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000013359else
drh8b727472009-01-19 18:18:40 +000013360 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000013361sed 's/^/| /' conftest.$ac_ext >&5
13362
drh8b727472009-01-19 18:18:40 +000013363
mlcreech94984912008-03-04 19:03:08 +000013364fi
drh8b727472009-01-19 18:18:40 +000013365
13366rm -rf conftest.dSYM
13367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13368 conftest$ac_exeext
13369 if test "${ac_cv_search_fdatasync+set}" = set; then
13370 break
drh866108f2008-05-13 00:57:21 +000013371fi
drh8b727472009-01-19 18:18:40 +000013372done
13373if test "${ac_cv_search_fdatasync+set}" = set; then
13374 :
13375else
13376 ac_cv_search_fdatasync=no
13377fi
13378rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000013379LIBS=$ac_func_search_save_LIBS
13380fi
drh8b727472009-01-19 18:18:40 +000013381{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13382$as_echo "$ac_cv_search_fdatasync" >&6; }
13383ac_res=$ac_cv_search_fdatasync
13384if test "$ac_res" != no; then
13385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000013386
vapier7f19c022007-02-17 14:46:31 +000013387fi
13388
a.rottmann84e63352003-03-24 09:42:16 +000013389
drh75897232000-05-29 14:26:00 +000013390#########
tpoindex9d9f76c2005-01-03 21:28:56 +000013391# check for debug enabled
drh8b727472009-01-19 18:18:40 +000013392# Check whether --enable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000013393if test "${enable_debug+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013394 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000013395else
13396 use_debug=no
drh8b727472009-01-19 18:18:40 +000013397fi
13398
tpoindex9d9f76c2005-01-03 21:28:56 +000013399if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000013400 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000013401else
13402 TARGET_DEBUG="-DNDEBUG"
13403fi
13404
13405
13406#########
mlcreech94984912008-03-04 19:03:08 +000013407# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000013408# Check whether --enable-amalgamation was given.
mlcreech94984912008-03-04 19:03:08 +000013409if test "${enable_amalgamation+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013410 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000013411else
13412 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000013413fi
13414
mlcreechf3868112008-03-11 18:03:30 +000013415if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000013416 USE_AMALGAMATION=0
13417fi
13418
13419
13420#########
mlcreecha4edab02008-03-06 04:14:17 +000013421# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000013422# Check whether --enable-load-extension was given.
mlcreecha4edab02008-03-06 04:14:17 +000013423if test "${enable_load_extension+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013424 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000013425else
13426 use_loadextension=no
drh8b727472009-01-19 18:18:40 +000013427fi
13428
mlcreecha4edab02008-03-06 04:14:17 +000013429if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000013430 OPT_FEATURE_FLAGS=""
mlcreecha4edab02008-03-06 04:14:17 +000013431else
shanefbedede2008-07-22 05:05:01 +000013432 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000013433fi
13434
mlcreechaac7b932008-04-01 02:45:22 +000013435#########
shaneb1cd7302008-10-22 18:27:31 +000013436# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013437for option in $CFLAGS $CPPFLAGS
13438do
13439 case $option in
danielk197733a14782008-08-04 14:50:05 +000013440 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000013441 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013442 esac
13443done
13444
13445
danielk197733a14782008-08-04 14:50:05 +000013446
shaneb1cd7302008-10-22 18:27:31 +000013447# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013448ac_temp_CFLAGS=""
13449for option in $CFLAGS
13450do
13451 case $option in
13452 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013453 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013454 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013455 esac
13456done
13457CFLAGS=$ac_temp_CFLAGS
13458
13459
shaneb1cd7302008-10-22 18:27:31 +000013460# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013461ac_temp_CPPFLAGS=""
13462for option in $CPPFLAGS
13463do
13464 case $option in
13465 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013466 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013467 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013468 esac
13469done
13470CPPFLAGS=$ac_temp_CPPFLAGS
13471
danielk197733a14782008-08-04 14:50:05 +000013472
drh8b727472009-01-19 18:18:40 +000013473# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013474ac_temp_BUILD_CFLAGS=""
13475for option in $BUILD_CFLAGS
13476do
13477 case $option in
13478 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013479 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013480 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013481 esac
13482done
13483BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13484
13485
13486#########
13487# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000013488# Check whether --enable-gcov was given.
mlcreechaac7b932008-04-01 02:45:22 +000013489if test "${enable_gcov+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013490 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000013491else
13492 use_gcov=no
drh8b727472009-01-19 18:18:40 +000013493fi
13494
mlcreechaac7b932008-04-01 02:45:22 +000013495if test "${use_gcov}" = "yes" ; then
13496 USE_GCOV=1
13497else
13498 USE_GCOV=0
13499fi
13500
13501
danielk197733a14782008-08-04 14:50:05 +000013502
drh2dfbbca2000-07-28 14:32:48 +000013503#########
mlcreechb87057f2008-03-06 07:19:20 +000013504# Output the config header
drh8b727472009-01-19 18:18:40 +000013505ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000013506
13507
13508#########
drh75897232000-05-29 14:26:00 +000013509# Generate the output files.
13510#
mlcreechdf59c7c2008-03-06 07:51:15 +000013511
drh8b727472009-01-19 18:18:40 +000013512ac_config_files="$ac_config_files Makefile sqlite3.pc"
13513
drh71eb93e2001-09-28 01:34:43 +000013514cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013515# This file is a shell script that caches the results of configure
13516# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013517# scripts and configure runs, see configure's option --config-cache.
13518# It is not useful on other systems. If it contains results you don't
13519# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013520#
drh71eb93e2001-09-28 01:34:43 +000013521# config.status only pays attention to the cache file if you give it
13522# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013523#
a.rottmann84e63352003-03-24 09:42:16 +000013524# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000013525# loading this file, other *unset* `ac_cv_foo' will be assigned the
13526# following values.
13527
13528_ACEOF
13529
drh75897232000-05-29 14:26:00 +000013530# The following way of writing the cache mishandles newlines in values,
13531# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000013532# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000013533# Ultrix sh set writes to stderr and can't be redirected directly,
13534# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000013535(
13536 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13537 eval ac_val=\$$ac_var
13538 case $ac_val in #(
13539 *${as_nl}*)
13540 case $ac_var in #(
vapier6acb2cf2009-01-28 04:46:28 +000013541 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13542$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000013543 esac
13544 case $ac_var in #(
13545 _ | IFS | as_nl) ;; #(
13546 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13547 *) $as_unset $ac_var ;;
13548 esac ;;
13549 esac
13550 done
13551
drh71eb93e2001-09-28 01:34:43 +000013552 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000013553 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13554 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000013555 # `set' does not quote correctly, so add quotes (double-quote
13556 # substitution turns \\\\ into \\, and sed turns \\ into \).
13557 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000013558 "s/'/'\\\\''/g;
13559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000013560 ;; #(
drh71eb93e2001-09-28 01:34:43 +000013561 *)
13562 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000013563 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000013564 ;;
drh8b727472009-01-19 18:18:40 +000013565 esac |
13566 sort
13567) |
drh71eb93e2001-09-28 01:34:43 +000013568 sed '
drh8b727472009-01-19 18:18:40 +000013569 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000013570 t clear
drh8b727472009-01-19 18:18:40 +000013571 :clear
drh71eb93e2001-09-28 01:34:43 +000013572 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13573 t end
drh8b727472009-01-19 18:18:40 +000013574 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13575 :end' >>confcache
13576if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13577 if test -w "$cache_file"; then
13578 test "x$cache_file" != "x/dev/null" &&
13579 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13580$as_echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000013581 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013582 else
drh8b727472009-01-19 18:18:40 +000013583 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13584$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000013585 fi
13586fi
13587rm -f confcache
13588
drh75897232000-05-29 14:26:00 +000013589test "x$prefix" = xNONE && prefix=$ac_default_prefix
13590# Let make expand exec_prefix.
13591test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13592
mlcreechb87057f2008-03-06 07:19:20 +000013593DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000013594
13595ac_libobjs=
13596ac_ltlibobjs=
13597for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13598 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000013599 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13600 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13601 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13602 # will be set to the directory where LIBOBJS objects are built.
13603 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13604 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000013605done
13606LIBOBJS=$ac_libobjs
13607
13608LTLIBOBJS=$ac_ltlibobjs
13609
13610
13611
drh75897232000-05-29 14:26:00 +000013612: ${CONFIG_STATUS=./config.status}
drh8b727472009-01-19 18:18:40 +000013613ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000013614ac_clean_files_save=$ac_clean_files
13615ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh8b727472009-01-19 18:18:40 +000013616{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13617$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13618cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013619#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000013620# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000013621# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013622# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013623# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013624
drh71eb93e2001-09-28 01:34:43 +000013625debug=false
a.rottmann84e63352003-03-24 09:42:16 +000013626ac_cs_recheck=false
13627ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000013628SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000013629_ACEOF
drh75897232000-05-29 14:26:00 +000013630
drh8b727472009-01-19 18:18:40 +000013631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000013632## --------------------- ##
13633## M4sh Initialization. ##
13634## --------------------- ##
13635
drh8b727472009-01-19 18:18:40 +000013636# Be more Bourne compatible
13637DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000013638if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13639 emulate sh
13640 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000013641 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000013642 # is contrary to our usage. Disable this feature.
13643 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000013644 setopt NO_GLOB_SUBST
13645else
13646 case `(set -o) 2>/dev/null` in
13647 *posix*) set -o posix ;;
13648esac
13649
a.rottmann84e63352003-03-24 09:42:16 +000013650fi
drh8b727472009-01-19 18:18:40 +000013651
13652
13653
13654
13655# PATH needs CR
13656# Avoid depending upon Character Ranges.
13657as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13658as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13659as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13660as_cr_digits='0123456789'
13661as_cr_alnum=$as_cr_Letters$as_cr_digits
13662
13663as_nl='
13664'
13665export as_nl
13666# Printing a long string crashes Solaris 7 /usr/bin/printf.
13667as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13668as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13669as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13670if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13671 as_echo='printf %s\n'
13672 as_echo_n='printf %s'
13673else
13674 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13675 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13676 as_echo_n='/usr/ucb/echo -n'
13677 else
13678 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13679 as_echo_n_body='eval
13680 arg=$1;
13681 case $arg in
13682 *"$as_nl"*)
13683 expr "X$arg" : "X\\(.*\\)$as_nl";
13684 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13685 esac;
13686 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13687 '
13688 export as_echo_n_body
13689 as_echo_n='sh -c $as_echo_n_body as_echo'
13690 fi
13691 export as_echo_body
13692 as_echo='sh -c $as_echo_body as_echo'
13693fi
13694
13695# The user is always right.
13696if test "${PATH_SEPARATOR+set}" != set; then
13697 PATH_SEPARATOR=:
13698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13700 PATH_SEPARATOR=';'
13701 }
13702fi
a.rottmann84e63352003-03-24 09:42:16 +000013703
mlcreech94984912008-03-04 19:03:08 +000013704# Support unset when possible.
13705if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13706 as_unset=unset
13707else
13708 as_unset=false
13709fi
a.rottmann84e63352003-03-24 09:42:16 +000013710
mlcreech94984912008-03-04 19:03:08 +000013711
drh8b727472009-01-19 18:18:40 +000013712# IFS
13713# We need space, tab and new line, in precisely that order. Quoting is
13714# there to prevent editors from complaining about space-tab.
13715# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13716# splitting by setting IFS to empty value.)
13717IFS=" "" $as_nl"
13718
13719# Find who we are. Look in the path if we contain no directory separator.
13720case $0 in
13721 *[\\/]* ) as_myself=$0 ;;
13722 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723for as_dir in $PATH
13724do
13725 IFS=$as_save_IFS
13726 test -z "$as_dir" && as_dir=.
13727 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13728done
13729IFS=$as_save_IFS
13730
13731 ;;
13732esac
13733# We did not find ourselves, most probably we were run as `sh COMMAND'
13734# in which case we are not to be found in the path.
13735if test "x$as_myself" = x; then
13736 as_myself=$0
13737fi
13738if test ! -f "$as_myself"; then
13739 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13740 { (exit 1); exit 1; }
13741fi
13742
mlcreech94984912008-03-04 19:03:08 +000013743# Work around bugs in pre-3.0 UWIN ksh.
drh8b727472009-01-19 18:18:40 +000013744for as_var in ENV MAIL MAILPATH
13745do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13746done
mlcreech94984912008-03-04 19:03:08 +000013747PS1='$ '
13748PS2='> '
13749PS4='+ '
13750
13751# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000013752LC_ALL=C
13753export LC_ALL
13754LANGUAGE=C
13755export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000013756
13757# Required to use basename.
drh8b727472009-01-19 18:18:40 +000013758if expr a : '\(a\)' >/dev/null 2>&1 &&
13759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000013760 as_expr=expr
13761else
13762 as_expr=false
13763fi
13764
drh8b727472009-01-19 18:18:40 +000013765if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000013766 as_basename=basename
13767else
13768 as_basename=false
13769fi
13770
13771
13772# Name of the executable.
drh8b727472009-01-19 18:18:40 +000013773as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000013774$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13775 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013776 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13777$as_echo X/"$0" |
13778 sed '/^.*\/\([^/][^/]*\)\/*$/{
13779 s//\1/
13780 q
13781 }
13782 /^X\/\(\/\/\)$/{
13783 s//\1/
13784 q
13785 }
13786 /^X\/\(\/\).*/{
13787 s//\1/
13788 q
13789 }
13790 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000013791
drh8b727472009-01-19 18:18:40 +000013792# CDPATH.
13793$as_unset CDPATH
mlcreech94984912008-03-04 19:03:08 +000013794
13795
13796
a.rottmann84e63352003-03-24 09:42:16 +000013797 as_lineno_1=$LINENO
13798 as_lineno_2=$LINENO
a.rottmann84e63352003-03-24 09:42:16 +000013799 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh8b727472009-01-19 18:18:40 +000013800 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +000013801
13802 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13803 # uniformly replaced by the line number. The first 'sed' inserts a
drh8b727472009-01-19 18:18:40 +000013804 # line-number line after each line using $LINENO; the second 'sed'
13805 # does the real work. The second script uses 'N' to pair each
13806 # line-number line with the line containing $LINENO, and appends
13807 # trailing '-' during substitution so that $LINENO is not a special
13808 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000013809 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh8b727472009-01-19 18:18:40 +000013810 # scripts with optimization help from Paolo Bonzini. Blame Lee
13811 # E. McMahon (1931-1989) for sed's syntax. :-)
13812 sed -n '
13813 p
13814 /[$]LINENO/=
13815 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000013816 sed '
drh8b727472009-01-19 18:18:40 +000013817 s/[$]LINENO.*/&-/
13818 t lineno
13819 b
13820 :lineno
a.rottmann84e63352003-03-24 09:42:16 +000013821 N
drh8b727472009-01-19 18:18:40 +000013822 :loop
13823 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +000013824 t loop
drh8b727472009-01-19 18:18:40 +000013825 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +000013826 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +000013827 chmod +x "$as_me.lineno" ||
13828 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +000013829 { (exit 1); exit 1; }; }
13830
13831 # Don't try to exec as it changes $[0], causing all sort of problems
13832 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +000013833 # original and so on. Autoconf is especially sensitive to this).
13834 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +000013835 # Exit status is that of the last command.
13836 exit
13837}
13838
13839
drh8b727472009-01-19 18:18:40 +000013840if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13841 as_dirname=dirname
13842else
13843 as_dirname=false
13844fi
drh866108f2008-05-13 00:57:21 +000013845
drh8b727472009-01-19 18:18:40 +000013846ECHO_C= ECHO_N= ECHO_T=
13847case `echo -n x` in
13848-n*)
13849 case `echo 'x\c'` in
13850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13851 *) ECHO_C='\c';;
13852 esac;;
13853*)
13854 ECHO_N='-n';;
13855esac
13856if expr a : '\(a\)' >/dev/null 2>&1 &&
13857 test "X`expr 00001 : '.*\(...\)'`" = X001; then
drh71eb93e2001-09-28 01:34:43 +000013858 as_expr=expr
13859else
13860 as_expr=false
13861fi
13862
13863rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000013864if test -d conf$$.dir; then
13865 rm -f conf$$.dir/conf$$.file
13866else
13867 rm -f conf$$.dir
13868 mkdir conf$$.dir 2>/dev/null
13869fi
13870if (echo >conf$$.file) 2>/dev/null; then
13871 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000013872 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000013873 # ... but there are two gotchas:
13874 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13875 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13876 # In both cases, we have to default to `cp -p'.
13877 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13878 as_ln_s='cp -p'
13879 elif ln conf$$.file conf$$ 2>/dev/null; then
13880 as_ln_s=ln
13881 else
13882 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000013883 fi
drh71eb93e2001-09-28 01:34:43 +000013884else
13885 as_ln_s='cp -p'
13886fi
drh8b727472009-01-19 18:18:40 +000013887rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13888rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000013889
a.rottmann84e63352003-03-24 09:42:16 +000013890if mkdir -p . 2>/dev/null; then
13891 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000013892else
a.rottmann964dbb12004-02-26 19:47:42 +000013893 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000013894 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000013895fi
13896
drh8b727472009-01-19 18:18:40 +000013897if test -x / >/dev/null 2>&1; then
13898 as_test_x='test -x'
13899else
13900 if ls -dL / >/dev/null 2>&1; then
13901 as_ls_L_option=L
13902 else
13903 as_ls_L_option=
13904 fi
13905 as_test_x='
13906 eval sh -c '\''
13907 if test -d "$1"; then
13908 test -d "$1/.";
13909 else
13910 case $1 in
13911 -*)set "./$1";;
13912 esac;
13913 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13914 ???[sx]*):;;*)false;;esac;fi
13915 '\'' sh
13916 '
13917fi
13918as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000013919
13920# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000013921as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013922
13923# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000013924as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013925
drh71eb93e2001-09-28 01:34:43 +000013926
drh71eb93e2001-09-28 01:34:43 +000013927exec 6>&1
13928
drh8b727472009-01-19 18:18:40 +000013929# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000013930# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000013931# values after options handling.
13932ac_log="
vapierd3dd12b2009-02-18 04:35:12 +000013933This file was extended by sqlite $as_me 3.6.11, which was
vapier6acb2cf2009-01-28 04:46:28 +000013934generated by GNU Autoconf 2.63. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000013935
13936 CONFIG_FILES = $CONFIG_FILES
13937 CONFIG_HEADERS = $CONFIG_HEADERS
13938 CONFIG_LINKS = $CONFIG_LINKS
13939 CONFIG_COMMANDS = $CONFIG_COMMANDS
13940 $ $0 $@
13941
drh8b727472009-01-19 18:18:40 +000013942on `(hostname || uname -n) 2>/dev/null | sed 1q`
13943"
13944
drh71eb93e2001-09-28 01:34:43 +000013945_ACEOF
13946
vapier6acb2cf2009-01-28 04:46:28 +000013947case $ac_config_files in *"
13948"*) set x $ac_config_files; shift; ac_config_files=$*;;
13949esac
13950
13951case $ac_config_headers in *"
13952"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13953esac
13954
13955
drh8b727472009-01-19 18:18:40 +000013956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013957# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000013958config_files="$ac_config_files"
13959config_headers="$ac_config_headers"
13960config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000013961
drh8b727472009-01-19 18:18:40 +000013962_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013963
drh8b727472009-01-19 18:18:40 +000013964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013965ac_cs_usage="\
13966\`$as_me' instantiates files from templates according to the
13967current configuration.
13968
vapier6acb2cf2009-01-28 04:46:28 +000013969Usage: $0 [OPTION]... [FILE]...
drh71eb93e2001-09-28 01:34:43 +000013970
13971 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000013972 -V, --version print version number and configuration settings, then exit
vapier6acb2cf2009-01-28 04:46:28 +000013973 -q, --quiet, --silent
13974 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000013975 -d, --debug don't remove temporary files
13976 --recheck update $as_me by reconfiguring in the same conditions
vapier6acb2cf2009-01-28 04:46:28 +000013977 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013978 instantiate the configuration file FILE
vapier6acb2cf2009-01-28 04:46:28 +000013979 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013980 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000013981
13982Configuration files:
13983$config_files
13984
mlcreechb87057f2008-03-06 07:19:20 +000013985Configuration headers:
13986$config_headers
13987
mlcreech636a9952008-05-05 22:52:56 +000013988Configuration commands:
13989$config_commands
13990
drh71eb93e2001-09-28 01:34:43 +000013991Report bugs to <bug-autoconf@gnu.org>."
drh8b727472009-01-19 18:18:40 +000013992
mlcreech94984912008-03-04 19:03:08 +000013993_ACEOF
drh8b727472009-01-19 18:18:40 +000013994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh866108f2008-05-13 00:57:21 +000013995ac_cs_version="\\
vapierd3dd12b2009-02-18 04:35:12 +000013996sqlite config.status 3.6.11
vapier6acb2cf2009-01-28 04:46:28 +000013997configured by $0, generated by GNU Autoconf 2.63,
drh8b727472009-01-19 18:18:40 +000013998 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh866108f2008-05-13 00:57:21 +000013999
drh8b727472009-01-19 18:18:40 +000014000Copyright (C) 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000014001This config.status script is free software; the Free Software Foundation
14002gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000014003
14004ac_pwd='$ac_pwd'
14005srcdir='$srcdir'
14006INSTALL='$INSTALL'
14007AWK='$AWK'
14008test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000014009_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014010
drh8b727472009-01-19 18:18:40 +000014011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14012# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000014013ac_need_defaults=:
14014while test $# != 0
14015do
14016 case $1 in
14017 --*=*)
drh8b727472009-01-19 18:18:40 +000014018 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14019 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000014020 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000014021 ;;
drh8b727472009-01-19 18:18:40 +000014022 *)
a.rottmann84e63352003-03-24 09:42:16 +000014023 ac_option=$1
14024 ac_optarg=$2
14025 ac_shift=shift
14026 ;;
drh75897232000-05-29 14:26:00 +000014027 esac
14028
a.rottmann84e63352003-03-24 09:42:16 +000014029 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000014030 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000014031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000014032 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000014033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14034 $as_echo "$ac_cs_version"; exit ;;
14035 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000014036 debug=: ;;
14037 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000014038 $ac_shift
drh8b727472009-01-19 18:18:40 +000014039 case $ac_optarg in
14040 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14041 esac
14042 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000014043 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000014044 --header | --heade | --head | --hea )
14045 $ac_shift
drh8b727472009-01-19 18:18:40 +000014046 case $ac_optarg in
14047 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14048 esac
14049 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000014050 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000014051 --he | --h)
14052 # Conflict between --help and --header
14053 { $as_echo "$as_me: error: ambiguous option: $1
14054Try \`$0 --help' for more information." >&2
14055 { (exit 1); exit 1; }; };;
14056 --help | --hel | -h )
14057 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000014058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14060 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000014061
drh71eb93e2001-09-28 01:34:43 +000014062 # This is an error.
drh8b727472009-01-19 18:18:40 +000014063 -*) { $as_echo "$as_me: error: unrecognized option: $1
14064Try \`$0 --help' for more information." >&2
drh71eb93e2001-09-28 01:34:43 +000014065 { (exit 1); exit 1; }; } ;;
14066
drh8b727472009-01-19 18:18:40 +000014067 *) ac_config_targets="$ac_config_targets $1"
14068 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000014069
14070 esac
14071 shift
14072done
14073
a.rottmann84e63352003-03-24 09:42:16 +000014074ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000014075
a.rottmann84e63352003-03-24 09:42:16 +000014076if $ac_cs_silent; then
14077 exec 6>/dev/null
14078 ac_configure_extra_args="$ac_configure_extra_args --silent"
14079fi
drh71eb93e2001-09-28 01:34:43 +000014080
14081_ACEOF
drh8b727472009-01-19 18:18:40 +000014082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000014083if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000014084 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14085 shift
14086 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14087 CONFIG_SHELL='$SHELL'
14088 export CONFIG_SHELL
14089 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000014090fi
drh71eb93e2001-09-28 01:34:43 +000014091
a.rottmann84e63352003-03-24 09:42:16 +000014092_ACEOF
drh8b727472009-01-19 18:18:40 +000014093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14094exec 5>>config.log
14095{
14096 echo
14097 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14098## Running $as_me. ##
14099_ASBOX
14100 $as_echo "$ac_log"
14101} >&5
a.rottmann84e63352003-03-24 09:42:16 +000014102
drh8b727472009-01-19 18:18:40 +000014103_ACEOF
14104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000014105#
drh8b727472009-01-19 18:18:40 +000014106# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000014107#
14108
14109
14110# The HP-UX ksh and POSIX shell print the target directory to stdout
14111# if CDPATH is set.
14112(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14113
14114sed_quote_subst='$sed_quote_subst'
14115double_quote_subst='$double_quote_subst'
14116delay_variable_subst='$delay_variable_subst'
14117macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14118macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14119enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14120enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14121pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14122enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14123host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14124host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14125host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14126build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14127build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14128build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14129SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14130Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14131GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14132EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14133FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14134LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14135NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14136LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14137max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14138ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14139exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14140lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14141lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14142lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14143reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14144reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000014145OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000014146deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14147file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14148AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14149AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14150STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14151RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14152old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14153old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14154old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14155CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14156CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14157compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14158GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14159lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14160lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14161lt_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"`'
14162lt_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"`'
14163objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14164SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14165ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14166MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14167lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14168lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14169lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14170lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14171lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14172need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14173DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14174NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14175LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14176OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14177OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14178libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14179shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14180extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14181archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14182enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14183export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14184whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14185compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14186old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14187old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14188archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14189archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14190module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14191module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14192with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14193allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14194no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14195hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14196hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14197hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14198hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14199hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14200hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14201hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14202hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14203inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14204link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14205fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14206always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14207export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14208exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14209include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14210prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14211file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14212variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14213need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14214need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14215version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14216runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14217shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14218shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14219libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14220library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14221soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14222postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14223postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14224finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14225finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14226hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14227sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14228sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14229hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14230enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14231enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14232enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14233old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14234striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14235
14236LTCC='$LTCC'
14237LTCFLAGS='$LTCFLAGS'
14238compiler='$compiler_DEFAULT'
14239
14240# Quote evaled strings.
14241for var in SED \
14242GREP \
14243EGREP \
14244FGREP \
14245LD \
14246NM \
14247LN_S \
14248lt_SP2NL \
14249lt_NL2SP \
14250reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000014251OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000014252deplibs_check_method \
14253file_magic_cmd \
14254AR \
14255AR_FLAGS \
14256STRIP \
14257RANLIB \
14258CC \
14259CFLAGS \
14260compiler \
14261lt_cv_sys_global_symbol_pipe \
14262lt_cv_sys_global_symbol_to_cdecl \
14263lt_cv_sys_global_symbol_to_c_name_address \
14264lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14265SHELL \
14266ECHO \
14267lt_prog_compiler_no_builtin_flag \
14268lt_prog_compiler_wl \
14269lt_prog_compiler_pic \
14270lt_prog_compiler_static \
14271lt_cv_prog_compiler_c_o \
14272need_locks \
14273DSYMUTIL \
14274NMEDIT \
14275LIPO \
14276OTOOL \
14277OTOOL64 \
14278shrext_cmds \
14279export_dynamic_flag_spec \
14280whole_archive_flag_spec \
14281compiler_needs_object \
14282with_gnu_ld \
14283allow_undefined_flag \
14284no_undefined_flag \
14285hardcode_libdir_flag_spec \
14286hardcode_libdir_flag_spec_ld \
14287hardcode_libdir_separator \
14288fix_srcfile_path \
14289exclude_expsyms \
14290include_expsyms \
14291file_list_spec \
14292variables_saved_for_relink \
14293libname_spec \
14294library_names_spec \
14295soname_spec \
14296finish_eval \
14297old_striplib \
14298striplib; do
14299 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14300 *[\\\\\\\`\\"\\\$]*)
14301 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14302 ;;
14303 *)
14304 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14305 ;;
14306 esac
14307done
14308
14309# Double-quote double-evaled strings.
14310for var in reload_cmds \
14311old_postinstall_cmds \
14312old_postuninstall_cmds \
14313old_archive_cmds \
14314extract_expsyms_cmds \
14315old_archive_from_new_cmds \
14316old_archive_from_expsyms_cmds \
14317archive_cmds \
14318archive_expsym_cmds \
14319module_cmds \
14320module_expsym_cmds \
14321export_symbols_cmds \
14322prelink_cmds \
14323postinstall_cmds \
14324postuninstall_cmds \
14325finish_cmds \
14326sys_lib_search_path_spec \
14327sys_lib_dlsearch_path_spec; do
14328 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14329 *[\\\\\\\`\\"\\\$]*)
14330 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14331 ;;
14332 *)
14333 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14334 ;;
14335 esac
14336done
14337
14338# Fix-up fallback echo if it was mangled by the above quoting rules.
14339case \$lt_ECHO in
14340*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14341 ;;
14342esac
14343
14344ac_aux_dir='$ac_aux_dir'
14345xsi_shell='$xsi_shell'
14346lt_shell_append='$lt_shell_append'
14347
14348# See if we are running on zsh, and set the options which allow our
14349# commands through without removal of \ escapes INIT.
14350if test -n "\${ZSH_VERSION+set}" ; then
14351 setopt NO_GLOB_SUBST
14352fi
14353
14354
14355 PACKAGE='$PACKAGE'
14356 VERSION='$VERSION'
14357 TIMESTAMP='$TIMESTAMP'
14358 RM='$RM'
14359 ofile='$ofile'
14360
14361
14362
14363
mlcreech94984912008-03-04 19:03:08 +000014364_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000014365
drh8b727472009-01-19 18:18:40 +000014366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014367
drh8b727472009-01-19 18:18:40 +000014368# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000014369for ac_config_target in $ac_config_targets
14370do
drh8b727472009-01-19 18:18:40 +000014371 case $ac_config_target in
14372 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14373 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14374 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14375 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14376
14377 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14378$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
drh71eb93e2001-09-28 01:34:43 +000014379 { (exit 1); exit 1; }; };;
14380 esac
14381done
14382
drh8b727472009-01-19 18:18:40 +000014383
drh71eb93e2001-09-28 01:34:43 +000014384# If the user did not use the arguments to specify the items to instantiate,
14385# then the envvar interface is used. Set only those that are not.
14386# We use the long form for the default assignment because of an extremely
14387# bizarre bug on SunOS 4.1.3.
14388if $ac_need_defaults; then
14389 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000014390 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000014391 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000014392fi
14393
a.rottmann84e63352003-03-24 09:42:16 +000014394# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000014395# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000014396# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000014397# Hook for its removal unless debugging.
14398# Note that there is a small window in which the directory will not be cleaned:
14399# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000014400$debug ||
14401{
drh8b727472009-01-19 18:18:40 +000014402 tmp=
14403 trap 'exit_status=$?
14404 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14405' 0
drh71eb93e2001-09-28 01:34:43 +000014406 trap '{ (exit 1); exit 1; }' 1 2 13 15
14407}
drh71eb93e2001-09-28 01:34:43 +000014408# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000014409
drh71eb93e2001-09-28 01:34:43 +000014410{
drh8b727472009-01-19 18:18:40 +000014411 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000014412 test -n "$tmp" && test -d "$tmp"
14413} ||
14414{
drh8b727472009-01-19 18:18:40 +000014415 tmp=./conf$$-$RANDOM
14416 (umask 077 && mkdir "$tmp")
drh71eb93e2001-09-28 01:34:43 +000014417} ||
14418{
drh8b727472009-01-19 18:18:40 +000014419 $as_echo "$as_me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000014420 { (exit 1); exit 1; }
14421}
14422
drh8b727472009-01-19 18:18:40 +000014423# Set up the scripts for CONFIG_FILES section.
14424# No need to generate them if there are no CONFIG_FILES.
14425# This happens for instance with `./config.status config.h'.
14426if test -n "$CONFIG_FILES"; then
14427
14428
14429ac_cr=' '
14430ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14431if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14432 ac_cs_awk_cr='\\r'
14433else
14434 ac_cs_awk_cr=$ac_cr
14435fi
14436
14437echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000014438_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014439
mlcreech94984912008-03-04 19:03:08 +000014440
drh8b727472009-01-19 18:18:40 +000014441{
14442 echo "cat >conf$$subs.awk <<_ACEOF" &&
14443 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14444 echo "_ACEOF"
14445} >conf$$subs.sh ||
14446 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14447$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14448 { (exit 1); exit 1; }; }
14449ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14450ac_delim='%!_!# '
14451for ac_last_try in false false false false false :; do
14452 . ./conf$$subs.sh ||
14453 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14454$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14455 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014456
vapier6acb2cf2009-01-28 04:46:28 +000014457 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14458 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000014459 break
14460 elif $ac_last_try; then
14461 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14462$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14463 { (exit 1); exit 1; }; }
14464 else
14465 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000014466 fi
drh8b727472009-01-19 18:18:40 +000014467done
14468rm -f conf$$subs.sh
14469
14470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14471cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14472_ACEOF
14473sed -n '
14474h
14475s/^/S["/; s/!.*/"]=/
14476p
14477g
14478s/^[^!]*!//
14479:repl
14480t repl
14481s/'"$ac_delim"'$//
14482t delim
14483:nl
14484h
14485s/\(.\{148\}\).*/\1/
14486t more1
14487s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14488p
14489n
14490b repl
14491:more1
14492s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14493p
14494g
14495s/.\{148\}//
14496t nl
14497:delim
14498h
14499s/\(.\{148\}\).*/\1/
14500t more2
14501s/["\\]/\\&/g; s/^/"/; s/$/"/
14502p
14503b
14504:more2
14505s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14506p
14507g
14508s/.\{148\}//
14509t delim
14510' <conf$$subs.awk | sed '
14511/^[^""]/{
14512 N
14513 s/\n//
14514}
14515' >>$CONFIG_STATUS || ac_write_fail=1
14516rm -f conf$$subs.awk
14517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14518_ACAWK
14519cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14520 for (key in S) S_is_set[key] = 1
14521 FS = ""
14522
14523}
14524{
14525 line = $ 0
14526 nfields = split(line, field, "@")
14527 substed = 0
14528 len = length(field[1])
14529 for (i = 2; i < nfields; i++) {
14530 key = field[i]
14531 keylen = length(key)
14532 if (S_is_set[key]) {
14533 value = S[key]
14534 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14535 len += length(value) + length(field[++i])
14536 substed = 1
14537 } else
14538 len += 1 + keylen
14539 }
14540
14541 print line
14542}
14543
14544_ACAWK
14545_ACEOF
14546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14547if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14548 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14549else
14550 cat
14551fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14552 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14553$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14554 { (exit 1); exit 1; }; }
14555_ACEOF
14556
14557# VPATH may cause trouble with some makes, so we remove $(srcdir),
14558# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14559# trailing colons and then remove the whole line if VPATH becomes empty
14560# (actually we leave an empty line to preserve line numbers).
14561if test "x$srcdir" = x.; then
14562 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14563s/:*\$(srcdir):*/:/
14564s/:*\${srcdir}:*/:/
14565s/:*@srcdir@:*/:/
14566s/^\([^=]*=[ ]*\):*/\1/
14567s/:*$//
14568s/^[^=]*=[ ]*$//
14569}'
14570fi
14571
14572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014573fi # test -n "$CONFIG_FILES"
14574
drh8b727472009-01-19 18:18:40 +000014575# Set up the scripts for CONFIG_HEADERS section.
14576# No need to generate them if there are no CONFIG_HEADERS.
14577# This happens for instance with `./config.status Makefile'.
14578if test -n "$CONFIG_HEADERS"; then
14579cat >"$tmp/defines.awk" <<\_ACAWK ||
14580BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000014581_ACEOF
drh8b727472009-01-19 18:18:40 +000014582
14583# Transform confdefs.h into an awk script `defines.awk', embedded as
14584# here-document in config.status, that substitutes the proper values into
14585# config.h.in to produce config.h.
14586
14587# Create a delimiter string that does not exist in confdefs.h, to ease
14588# handling of long lines.
14589ac_delim='%!_!# '
14590for ac_last_try in false false :; do
14591 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14592 if test -z "$ac_t"; then
14593 break
14594 elif $ac_last_try; then
14595 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14596$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14597 { (exit 1); exit 1; }; }
14598 else
14599 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14600 fi
14601done
14602
14603# For the awk script, D is an array of macro values keyed by name,
14604# likewise P contains macro parameters if any. Preserve backslash
14605# newline sequences.
14606
14607ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14608sed -n '
14609s/.\{148\}/&'"$ac_delim"'/g
14610t rset
14611:rset
14612s/^[ ]*#[ ]*define[ ][ ]*/ /
14613t def
14614d
14615:def
14616s/\\$//
14617t bsnl
14618s/["\\]/\\&/g
14619s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14620D["\1"]=" \3"/p
14621s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14622d
14623:bsnl
14624s/["\\]/\\&/g
14625s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14626D["\1"]=" \3\\\\\\n"\\/p
14627t cont
14628s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14629t cont
14630d
14631:cont
14632n
14633s/.\{148\}/&'"$ac_delim"'/g
14634t clear
14635:clear
14636s/\\$//
14637t bsnlc
14638s/["\\]/\\&/g; s/^/"/; s/$/"/p
14639d
14640:bsnlc
14641s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14642b cont
14643' <confdefs.h | sed '
14644s/'"$ac_delim"'/"\\\
14645"/g' >>$CONFIG_STATUS || ac_write_fail=1
14646
14647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14648 for (key in D) D_is_set[key] = 1
14649 FS = ""
14650}
14651/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14652 line = \$ 0
14653 split(line, arg, " ")
14654 if (arg[1] == "#") {
14655 defundef = arg[2]
14656 mac1 = arg[3]
14657 } else {
14658 defundef = substr(arg[1], 2)
14659 mac1 = arg[2]
14660 }
14661 split(mac1, mac2, "(") #)
14662 macro = mac2[1]
vapier6acb2cf2009-01-28 04:46:28 +000014663 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000014664 if (D_is_set[macro]) {
14665 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000014666 print prefix "define", macro P[macro] D[macro]
14667 next
14668 } else {
14669 # Replace #undef with comments. This is necessary, for example,
14670 # in the case of _POSIX_SOURCE, which is predefined and required
14671 # on some systems where configure will not decide to define it.
14672 if (defundef == "undef") {
vapier6acb2cf2009-01-28 04:46:28 +000014673 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000014674 next
14675 }
14676 }
14677}
14678{ print }
14679_ACAWK
14680_ACEOF
14681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14682 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14683$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14684 { (exit 1); exit 1; }; }
14685fi # test -n "$CONFIG_HEADERS"
14686
14687
14688eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14689shift
14690for ac_tag
14691do
14692 case $ac_tag in
14693 :[FHLC]) ac_mode=$ac_tag; continue;;
14694 esac
14695 case $ac_mode$ac_tag in
14696 :[FHL]*:*);;
vapier6acb2cf2009-01-28 04:46:28 +000014697 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14698$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
drh8b727472009-01-19 18:18:40 +000014699 { (exit 1); exit 1; }; };;
14700 :[FH]-) ac_tag=-:-;;
14701 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14702 esac
14703 ac_save_IFS=$IFS
14704 IFS=:
14705 set x $ac_tag
14706 IFS=$ac_save_IFS
14707 shift
14708 ac_file=$1
14709 shift
14710
14711 case $ac_mode in
14712 :L) ac_source=$1;;
14713 :[FH])
14714 ac_file_inputs=
14715 for ac_f
14716 do
14717 case $ac_f in
14718 -) ac_f="$tmp/stdin";;
14719 *) # Look for the file first in the build tree, then in the source tree
14720 # (if the path is not absolute). The absolute path cannot be DOS-style,
14721 # because $ac_f cannot contain `:'.
14722 test -f "$ac_f" ||
14723 case $ac_f in
14724 [\\/$]*) false;;
14725 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14726 esac ||
14727 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14728$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14729 { (exit 1); exit 1; }; };;
14730 esac
14731 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14732 ac_file_inputs="$ac_file_inputs '$ac_f'"
14733 done
14734
14735 # Let's still pretend it is `configure' which instantiates (i.e., don't
14736 # use $as_me), people would be surprised to read:
14737 # /* config.h. Generated by config.status. */
14738 configure_input='Generated from '`
14739 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14740 `' by configure.'
14741 if test x"$ac_file" != x-; then
14742 configure_input="$ac_file. $configure_input"
14743 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14744$as_echo "$as_me: creating $ac_file" >&6;}
14745 fi
14746 # Neutralize special characters interpreted by sed in replacement strings.
14747 case $configure_input in #(
14748 *\&* | *\|* | *\\* )
14749 ac_sed_conf_input=`$as_echo "$configure_input" |
14750 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14751 *) ac_sed_conf_input=$configure_input;;
14752 esac
14753
14754 case $ac_tag in
14755 *:-:* | *:-) cat >"$tmp/stdin" \
14756 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14757$as_echo "$as_me: error: could not create $ac_file" >&2;}
14758 { (exit 1); exit 1; }; } ;;
14759 esac
14760 ;;
drh71eb93e2001-09-28 01:34:43 +000014761 esac
14762
drh8b727472009-01-19 18:18:40 +000014763 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000014764$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014765 X"$ac_file" : 'X\(//\)[^/]' \| \
14766 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014767 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14768$as_echo X"$ac_file" |
14769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14770 s//\1/
14771 q
14772 }
14773 /^X\(\/\/\)[^/].*/{
14774 s//\1/
14775 q
14776 }
14777 /^X\(\/\/\)$/{
14778 s//\1/
14779 q
14780 }
14781 /^X\(\/\).*/{
14782 s//\1/
14783 q
14784 }
14785 s/.*/./; q'`
14786 { as_dir="$ac_dir"
14787 case $as_dir in #(
14788 -*) as_dir=./$as_dir;;
14789 esac
14790 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a.rottmann84e63352003-03-24 09:42:16 +000014791 as_dirs=
drh8b727472009-01-19 18:18:40 +000014792 while :; do
14793 case $as_dir in #(
14794 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14795 *) as_qdir=$as_dir;;
14796 esac
14797 as_dirs="'$as_qdir' $as_dirs"
14798 as_dir=`$as_dirname -- "$as_dir" ||
a.rottmann84e63352003-03-24 09:42:16 +000014799$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014800 X"$as_dir" : 'X\(//\)[^/]' \| \
14801 X"$as_dir" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014802 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14803$as_echo X"$as_dir" |
14804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14805 s//\1/
14806 q
14807 }
14808 /^X\(\/\/\)[^/].*/{
14809 s//\1/
14810 q
14811 }
14812 /^X\(\/\/\)$/{
14813 s//\1/
14814 q
14815 }
14816 /^X\(\/\).*/{
14817 s//\1/
14818 q
14819 }
14820 s/.*/./; q'`
14821 test -d "$as_dir" && break
a.rottmann84e63352003-03-24 09:42:16 +000014822 done
drh8b727472009-01-19 18:18:40 +000014823 test -z "$as_dirs" || eval "mkdir $as_dirs"
14824 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14825$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000014826 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000014827 ac_builddir=.
14828
drh8b727472009-01-19 18:18:40 +000014829case "$ac_dir" in
14830.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14831*)
14832 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14833 # A ".." for each directory in $ac_dir_suffix.
14834 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14835 case $ac_top_builddir_sub in
14836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14838 esac ;;
14839esac
14840ac_abs_top_builddir=$ac_pwd
14841ac_abs_builddir=$ac_pwd$ac_dir_suffix
14842# for backward compatibility:
14843ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000014844
14845case $srcdir in
drh8b727472009-01-19 18:18:40 +000014846 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000014847 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000014848 ac_top_srcdir=$ac_top_builddir_sub
14849 ac_abs_top_srcdir=$ac_pwd ;;
14850 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000014851 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000014852 ac_top_srcdir=$srcdir
14853 ac_abs_top_srcdir=$srcdir ;;
14854 *) # Relative name.
14855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14856 ac_top_srcdir=$ac_top_build_prefix$srcdir
14857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000014858esac
drh8b727472009-01-19 18:18:40 +000014859ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000014860
a.rottmann84e63352003-03-24 09:42:16 +000014861
drh8b727472009-01-19 18:18:40 +000014862 case $ac_mode in
14863 :F)
14864 #
14865 # CONFIG_FILE
14866 #
drh75897232000-05-29 14:26:00 +000014867
drh71eb93e2001-09-28 01:34:43 +000014868 case $INSTALL in
14869 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000014870 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014871 esac
mlcreech94984912008-03-04 19:03:08 +000014872_ACEOF
drh8b727472009-01-19 18:18:40 +000014873
14874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14875# If the template does not know about datarootdir, expand it.
14876# FIXME: This hack should be removed a few years after 2.60.
14877ac_datarootdir_hack=; ac_datarootdir_seen=
14878
14879ac_sed_dataroot='
14880/datarootdir/ {
14881 p
14882 q
14883}
14884/@datadir@/p
14885/@docdir@/p
14886/@infodir@/p
14887/@localedir@/p
14888/@mandir@/p
14889'
14890case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14891*datarootdir*) ac_datarootdir_seen=yes;;
14892*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14893 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14894$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14895_ACEOF
14896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14897 ac_datarootdir_hack='
14898 s&@datadir@&$datadir&g
14899 s&@docdir@&$docdir&g
14900 s&@infodir@&$infodir&g
14901 s&@localedir@&$localedir&g
14902 s&@mandir@&$mandir&g
14903 s&\\\${datarootdir}&$datarootdir&g' ;;
14904esac
14905_ACEOF
14906
14907# Neutralize VPATH when `$srcdir' = `.'.
14908# Shell code in configure.ac might set extrasub.
14909# FIXME: do we really want to maintain this feature?
14910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14911ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000014912$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000014913_ACEOF
drh8b727472009-01-19 18:18:40 +000014914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014915:t
14916/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000014917s|@configure_input@|$ac_sed_conf_input|;t t
14918s&@top_builddir@&$ac_top_builddir_sub&;t t
14919s&@top_build_prefix@&$ac_top_build_prefix&;t t
14920s&@srcdir@&$ac_srcdir&;t t
14921s&@abs_srcdir@&$ac_abs_srcdir&;t t
14922s&@top_srcdir@&$ac_top_srcdir&;t t
14923s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14924s&@builddir@&$ac_builddir&;t t
14925s&@abs_builddir@&$ac_abs_builddir&;t t
14926s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14927s&@INSTALL@&$ac_INSTALL&;t t
14928$ac_datarootdir_hack
14929"
14930eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14931 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14932$as_echo "$as_me: error: could not create $ac_file" >&2;}
14933 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014934
drh8b727472009-01-19 18:18:40 +000014935test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14936 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14937 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14938 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14939which seems to be undefined. Please make sure it is defined." >&5
14940$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14941which seems to be undefined. Please make sure it is defined." >&2;}
drh866108f2008-05-13 00:57:21 +000014942
drh8b727472009-01-19 18:18:40 +000014943 rm -f "$tmp/stdin"
drh866108f2008-05-13 00:57:21 +000014944 case $ac_file in
drh8b727472009-01-19 18:18:40 +000014945 -) cat "$tmp/out" && rm -f "$tmp/out";;
14946 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14947 esac \
14948 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14949$as_echo "$as_me: error: could not create $ac_file" >&2;}
drh866108f2008-05-13 00:57:21 +000014950 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014951 ;;
14952 :H)
14953 #
14954 # CONFIG_HEADER
14955 #
drh866108f2008-05-13 00:57:21 +000014956 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000014957 {
14958 $as_echo "/* $configure_input */" \
14959 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14960 } >"$tmp/config.h" \
14961 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14962$as_echo "$as_me: error: could not create $ac_file" >&2;}
14963 { (exit 1); exit 1; }; }
14964 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14965 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14966$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000014967 else
drh8b727472009-01-19 18:18:40 +000014968 rm -f "$ac_file"
14969 mv "$tmp/config.h" "$ac_file" \
14970 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14971$as_echo "$as_me: error: could not create $ac_file" >&2;}
14972 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014973 fi
14974 else
drh8b727472009-01-19 18:18:40 +000014975 $as_echo "/* $configure_input */" \
14976 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14977 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14978$as_echo "$as_me: error: could not create -" >&2;}
14979 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014980 fi
drh8b727472009-01-19 18:18:40 +000014981 ;;
drh866108f2008-05-13 00:57:21 +000014982
drh8b727472009-01-19 18:18:40 +000014983 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14984$as_echo "$as_me: executing $ac_file commands" >&6;}
14985 ;;
14986 esac
drh866108f2008-05-13 00:57:21 +000014987
14988
drh8b727472009-01-19 18:18:40 +000014989 case $ac_file$ac_mode in
14990 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000014991
14992 # See if we are running on zsh, and set the options which allow our
14993 # commands through without removal of \ escapes.
14994 if test -n "${ZSH_VERSION+set}" ; then
14995 setopt NO_GLOB_SUBST
14996 fi
14997
14998 cfgfile="${ofile}T"
14999 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15000 $RM "$cfgfile"
15001
15002 cat <<_LT_EOF >> "$cfgfile"
15003#! $SHELL
15004
15005# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15006# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15007# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15008# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15009#
15010# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15011# 2006, 2007, 2008 Free Software Foundation, Inc.
15012# Written by Gordon Matzigkeit, 1996
15013#
15014# This file is part of GNU Libtool.
15015#
15016# GNU Libtool is free software; you can redistribute it and/or
15017# modify it under the terms of the GNU General Public License as
15018# published by the Free Software Foundation; either version 2 of
15019# the License, or (at your option) any later version.
15020#
15021# As a special exception to the GNU General Public License,
15022# if you distribute this file as part of a program or library that
15023# is built using GNU Libtool, you may include this file under the
15024# same distribution terms that you use for the rest of that program.
15025#
15026# GNU Libtool is distributed in the hope that it will be useful,
15027# but WITHOUT ANY WARRANTY; without even the implied warranty of
15028# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15029# GNU General Public License for more details.
15030#
15031# You should have received a copy of the GNU General Public License
15032# along with GNU Libtool; see the file COPYING. If not, a copy
15033# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15034# obtained by writing to the Free Software Foundation, Inc.,
15035# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15036
15037
15038# The names of the tagged configurations supported by this script.
15039available_tags=""
15040
15041# ### BEGIN LIBTOOL CONFIG
15042
15043# Which release of libtool.m4 was used?
15044macro_version=$macro_version
15045macro_revision=$macro_revision
15046
15047# Whether or not to build shared libraries.
15048build_libtool_libs=$enable_shared
15049
15050# Whether or not to build static libraries.
15051build_old_libs=$enable_static
15052
15053# What type of objects to build.
15054pic_mode=$pic_mode
15055
15056# Whether or not to optimize for fast installation.
15057fast_install=$enable_fast_install
15058
15059# The host system.
15060host_alias=$host_alias
15061host=$host
15062host_os=$host_os
15063
15064# The build system.
15065build_alias=$build_alias
15066build=$build
15067build_os=$build_os
15068
15069# A sed program that does not truncate output.
15070SED=$lt_SED
15071
15072# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15073Xsed="\$SED -e 1s/^X//"
15074
15075# A grep program that handles long lines.
15076GREP=$lt_GREP
15077
15078# An ERE matcher.
15079EGREP=$lt_EGREP
15080
15081# A literal string matcher.
15082FGREP=$lt_FGREP
15083
15084# A BSD- or MS-compatible name lister.
15085NM=$lt_NM
15086
15087# Whether we need soft or hard links.
15088LN_S=$lt_LN_S
15089
15090# What is the maximum length of a command?
15091max_cmd_len=$max_cmd_len
15092
15093# Object file suffix (normally "o").
15094objext=$ac_objext
15095
15096# Executable file suffix (normally "").
15097exeext=$exeext
15098
15099# whether the shell understands "unset".
15100lt_unset=$lt_unset
15101
15102# turn spaces into newlines.
15103SP2NL=$lt_lt_SP2NL
15104
15105# turn newlines into spaces.
15106NL2SP=$lt_lt_NL2SP
15107
15108# How to create reloadable object files.
15109reload_flag=$lt_reload_flag
15110reload_cmds=$lt_reload_cmds
15111
vapier6acb2cf2009-01-28 04:46:28 +000015112# An object symbol dumper.
15113OBJDUMP=$lt_OBJDUMP
15114
mlcreech636a9952008-05-05 22:52:56 +000015115# Method to check whether dependent libraries are shared objects.
15116deplibs_check_method=$lt_deplibs_check_method
15117
15118# Command to use when deplibs_check_method == "file_magic".
15119file_magic_cmd=$lt_file_magic_cmd
15120
15121# The archiver.
15122AR=$lt_AR
15123AR_FLAGS=$lt_AR_FLAGS
15124
15125# A symbol stripping program.
15126STRIP=$lt_STRIP
15127
15128# Commands used to install an old-style archive.
15129RANLIB=$lt_RANLIB
15130old_postinstall_cmds=$lt_old_postinstall_cmds
15131old_postuninstall_cmds=$lt_old_postuninstall_cmds
15132
15133# A C compiler.
15134LTCC=$lt_CC
15135
15136# LTCC compiler flags.
15137LTCFLAGS=$lt_CFLAGS
15138
15139# Take the output of nm and produce a listing of raw symbols and C names.
15140global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15141
15142# Transform the output of nm in a proper C declaration.
15143global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15144
15145# Transform the output of nm in a C name address pair.
15146global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15147
15148# Transform the output of nm in a C name address pair when lib prefix is needed.
15149global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15150
15151# The name of the directory that contains temporary libtool files.
15152objdir=$objdir
15153
15154# Shell to use when invoking shell scripts.
15155SHELL=$lt_SHELL
15156
15157# An echo program that does not interpret backslashes.
15158ECHO=$lt_ECHO
15159
15160# Used to examine libraries when file_magic_cmd begins with "file".
15161MAGIC_CMD=$MAGIC_CMD
15162
15163# Must we lock files when doing compilation?
15164need_locks=$lt_need_locks
15165
15166# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15167DSYMUTIL=$lt_DSYMUTIL
15168
15169# Tool to change global to local symbols on Mac OS X.
15170NMEDIT=$lt_NMEDIT
15171
15172# Tool to manipulate fat objects and archives on Mac OS X.
15173LIPO=$lt_LIPO
15174
15175# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15176OTOOL=$lt_OTOOL
15177
15178# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15179OTOOL64=$lt_OTOOL64
15180
15181# Old archive suffix (normally "a").
15182libext=$libext
15183
15184# Shared library suffix (normally ".so").
15185shrext_cmds=$lt_shrext_cmds
15186
15187# The commands to extract the exported symbol list from a shared archive.
15188extract_expsyms_cmds=$lt_extract_expsyms_cmds
15189
15190# Variables whose values should be saved in libtool wrapper scripts and
15191# restored at link time.
15192variables_saved_for_relink=$lt_variables_saved_for_relink
15193
15194# Do we need the "lib" prefix for modules?
15195need_lib_prefix=$need_lib_prefix
15196
15197# Do we need a version for libraries?
15198need_version=$need_version
15199
15200# Library versioning type.
15201version_type=$version_type
15202
15203# Shared library runtime path variable.
15204runpath_var=$runpath_var
15205
15206# Shared library path variable.
15207shlibpath_var=$shlibpath_var
15208
15209# Is shlibpath searched before the hard-coded library search path?
15210shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15211
15212# Format of library name prefix.
15213libname_spec=$lt_libname_spec
15214
15215# List of archive names. First name is the real one, the rest are links.
15216# The last name is the one that the linker finds with -lNAME
15217library_names_spec=$lt_library_names_spec
15218
15219# The coded name of the library, if different from the real name.
15220soname_spec=$lt_soname_spec
15221
15222# Command to use after installation of a shared archive.
15223postinstall_cmds=$lt_postinstall_cmds
15224
15225# Command to use after uninstallation of a shared archive.
15226postuninstall_cmds=$lt_postuninstall_cmds
15227
15228# Commands used to finish a libtool library installation in a directory.
15229finish_cmds=$lt_finish_cmds
15230
15231# As "finish_cmds", except a single script fragment to be evaled but
15232# not shown.
15233finish_eval=$lt_finish_eval
15234
15235# Whether we should hardcode library paths into libraries.
15236hardcode_into_libs=$hardcode_into_libs
15237
15238# Compile-time system search path for libraries.
15239sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15240
15241# Run-time system search path for libraries.
15242sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15243
15244# Whether dlopen is supported.
15245dlopen_support=$enable_dlopen
15246
15247# Whether dlopen of programs is supported.
15248dlopen_self=$enable_dlopen_self
15249
15250# Whether dlopen of statically linked programs is supported.
15251dlopen_self_static=$enable_dlopen_self_static
15252
15253# Commands to strip libraries.
15254old_striplib=$lt_old_striplib
15255striplib=$lt_striplib
15256
15257
15258# The linker used to build libraries.
15259LD=$lt_LD
15260
15261# Commands used to build an old-style archive.
15262old_archive_cmds=$lt_old_archive_cmds
15263
15264# A language specific compiler.
15265CC=$lt_compiler
15266
15267# Is the compiler the GNU compiler?
15268with_gcc=$GCC
15269
15270# Compiler flag to turn off builtin functions.
15271no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15272
15273# How to pass a linker flag through the compiler.
15274wl=$lt_lt_prog_compiler_wl
15275
15276# Additional compiler flags for building library objects.
15277pic_flag=$lt_lt_prog_compiler_pic
15278
15279# Compiler flag to prevent dynamic linking.
15280link_static_flag=$lt_lt_prog_compiler_static
15281
15282# Does compiler simultaneously support -c and -o options?
15283compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15284
15285# Whether or not to add -lc for building shared libraries.
15286build_libtool_need_lc=$archive_cmds_need_lc
15287
15288# Whether or not to disallow shared libs when runtime libs are static.
15289allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15290
15291# Compiler flag to allow reflexive dlopens.
15292export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15293
15294# Compiler flag to generate shared objects directly from archives.
15295whole_archive_flag_spec=$lt_whole_archive_flag_spec
15296
15297# Whether the compiler copes with passing no objects directly.
15298compiler_needs_object=$lt_compiler_needs_object
15299
15300# Create an old-style archive from a shared archive.
15301old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15302
15303# Create a temporary old-style archive to link instead of a shared archive.
15304old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15305
15306# Commands used to build a shared archive.
15307archive_cmds=$lt_archive_cmds
15308archive_expsym_cmds=$lt_archive_expsym_cmds
15309
15310# Commands used to build a loadable module if different from building
15311# a shared archive.
15312module_cmds=$lt_module_cmds
15313module_expsym_cmds=$lt_module_expsym_cmds
15314
15315# Whether we are building with GNU ld or not.
15316with_gnu_ld=$lt_with_gnu_ld
15317
15318# Flag that allows shared libraries with undefined symbols to be built.
15319allow_undefined_flag=$lt_allow_undefined_flag
15320
15321# Flag that enforces no undefined symbols.
15322no_undefined_flag=$lt_no_undefined_flag
15323
15324# Flag to hardcode \$libdir into a binary during linking.
15325# This must work even if \$libdir does not exist
15326hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15327
15328# If ld is used when linking, flag to hardcode \$libdir into a binary
15329# during linking. This must work even if \$libdir does not exist.
15330hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15331
15332# Whether we need a single "-rpath" flag with a separated argument.
15333hardcode_libdir_separator=$lt_hardcode_libdir_separator
15334
15335# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15336# DIR into the resulting binary.
15337hardcode_direct=$hardcode_direct
15338
15339# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15340# DIR into the resulting binary and the resulting library dependency is
15341# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15342# library is relocated.
15343hardcode_direct_absolute=$hardcode_direct_absolute
15344
15345# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15346# into the resulting binary.
15347hardcode_minus_L=$hardcode_minus_L
15348
15349# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15350# into the resulting binary.
15351hardcode_shlibpath_var=$hardcode_shlibpath_var
15352
15353# Set to "yes" if building a shared library automatically hardcodes DIR
15354# into the library and all subsequent libraries and executables linked
15355# against it.
15356hardcode_automatic=$hardcode_automatic
15357
15358# Set to yes if linker adds runtime paths of dependent libraries
15359# to runtime path list.
15360inherit_rpath=$inherit_rpath
15361
15362# Whether libtool must link a program against all its dependency libraries.
15363link_all_deplibs=$link_all_deplibs
15364
15365# Fix the shell variable \$srcfile for the compiler.
15366fix_srcfile_path=$lt_fix_srcfile_path
15367
15368# Set to "yes" if exported symbols are required.
15369always_export_symbols=$always_export_symbols
15370
15371# The commands to list exported symbols.
15372export_symbols_cmds=$lt_export_symbols_cmds
15373
15374# Symbols that should not be listed in the preloaded symbols.
15375exclude_expsyms=$lt_exclude_expsyms
15376
15377# Symbols that must always be exported.
15378include_expsyms=$lt_include_expsyms
15379
15380# Commands necessary for linking programs (against libraries) with templates.
15381prelink_cmds=$lt_prelink_cmds
15382
15383# Specify filename containing input files.
15384file_list_spec=$lt_file_list_spec
15385
15386# How to hardcode a shared library path into an executable.
15387hardcode_action=$hardcode_action
15388
15389# ### END LIBTOOL CONFIG
15390
15391_LT_EOF
15392
15393 case $host_os in
15394 aix3*)
15395 cat <<\_LT_EOF >> "$cfgfile"
15396# AIX sometimes has problems with the GCC collect2 program. For some
15397# reason, if we set the COLLECT_NAMES environment variable, the problems
15398# vanish in a puff of smoke.
15399if test "X${COLLECT_NAMES+set}" != Xset; then
15400 COLLECT_NAMES=
15401 export COLLECT_NAMES
15402fi
15403_LT_EOF
15404 ;;
15405 esac
15406
15407
15408ltmain="$ac_aux_dir/ltmain.sh"
15409
15410
15411 # We use sed instead of cat because bash on DJGPP gets confused if
15412 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15413 # text mode, it properly converts lines to CR/LF. This bash problem
15414 # is reportedly fixed, but why not run on old versions too?
15415 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15416 || (rm -f "$cfgfile"; exit 1)
15417
15418 case $xsi_shell in
15419 yes)
15420 cat << \_LT_EOF >> "$cfgfile"
15421
15422# func_dirname file append nondir_replacement
15423# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15424# otherwise set result to NONDIR_REPLACEMENT.
15425func_dirname ()
15426{
15427 case ${1} in
15428 */*) func_dirname_result="${1%/*}${2}" ;;
15429 * ) func_dirname_result="${3}" ;;
15430 esac
15431}
15432
15433# func_basename file
15434func_basename ()
15435{
15436 func_basename_result="${1##*/}"
15437}
15438
15439# func_dirname_and_basename file append nondir_replacement
15440# perform func_basename and func_dirname in a single function
15441# call:
15442# dirname: Compute the dirname of FILE. If nonempty,
15443# add APPEND to the result, otherwise set result
15444# to NONDIR_REPLACEMENT.
15445# value returned in "$func_dirname_result"
15446# basename: Compute filename of FILE.
15447# value retuned in "$func_basename_result"
15448# Implementation must be kept synchronized with func_dirname
15449# and func_basename. For efficiency, we do not delegate to
15450# those functions but instead duplicate the functionality here.
15451func_dirname_and_basename ()
15452{
15453 case ${1} in
15454 */*) func_dirname_result="${1%/*}${2}" ;;
15455 * ) func_dirname_result="${3}" ;;
15456 esac
15457 func_basename_result="${1##*/}"
15458}
15459
15460# func_stripname prefix suffix name
15461# strip PREFIX and SUFFIX off of NAME.
15462# PREFIX and SUFFIX must not contain globbing or regex special
15463# characters, hashes, percent signs, but SUFFIX may contain a leading
15464# dot (in which case that matches only a dot).
15465func_stripname ()
15466{
15467 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15468 # positional parameters, so assign one to ordinary parameter first.
15469 func_stripname_result=${3}
15470 func_stripname_result=${func_stripname_result#"${1}"}
15471 func_stripname_result=${func_stripname_result%"${2}"}
15472}
15473
15474# func_opt_split
15475func_opt_split ()
15476{
15477 func_opt_split_opt=${1%%=*}
15478 func_opt_split_arg=${1#*=}
15479}
15480
15481# func_lo2o object
15482func_lo2o ()
15483{
15484 case ${1} in
15485 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15486 *) func_lo2o_result=${1} ;;
15487 esac
15488}
15489
15490# func_xform libobj-or-source
15491func_xform ()
15492{
15493 func_xform_result=${1%.*}.lo
15494}
15495
15496# func_arith arithmetic-term...
15497func_arith ()
15498{
15499 func_arith_result=$(( $* ))
15500}
15501
15502# func_len string
15503# STRING may not start with a hyphen.
15504func_len ()
15505{
15506 func_len_result=${#1}
15507}
15508
15509_LT_EOF
15510 ;;
15511 *) # Bourne compatible functions.
15512 cat << \_LT_EOF >> "$cfgfile"
15513
15514# func_dirname file append nondir_replacement
15515# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15516# otherwise set result to NONDIR_REPLACEMENT.
15517func_dirname ()
15518{
15519 # Extract subdirectory from the argument.
15520 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15521 if test "X$func_dirname_result" = "X${1}"; then
15522 func_dirname_result="${3}"
15523 else
15524 func_dirname_result="$func_dirname_result${2}"
15525 fi
15526}
15527
15528# func_basename file
15529func_basename ()
15530{
15531 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15532}
15533
15534
15535# func_stripname prefix suffix name
15536# strip PREFIX and SUFFIX off of NAME.
15537# PREFIX and SUFFIX must not contain globbing or regex special
15538# characters, hashes, percent signs, but SUFFIX may contain a leading
15539# dot (in which case that matches only a dot).
15540# func_strip_suffix prefix name
15541func_stripname ()
15542{
15543 case ${2} in
15544 .*) func_stripname_result=`$ECHO "X${3}" \
15545 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15546 *) func_stripname_result=`$ECHO "X${3}" \
15547 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15548 esac
15549}
15550
15551# sed scripts:
15552my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15553my_sed_long_arg='1s/^-[^=]*=//'
15554
15555# func_opt_split
15556func_opt_split ()
15557{
15558 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15559 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15560}
15561
15562# func_lo2o object
15563func_lo2o ()
15564{
15565 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15566}
15567
15568# func_xform libobj-or-source
15569func_xform ()
15570{
15571 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15572}
15573
15574# func_arith arithmetic-term...
15575func_arith ()
15576{
15577 func_arith_result=`expr "$@"`
15578}
15579
15580# func_len string
15581# STRING may not start with a hyphen.
15582func_len ()
15583{
15584 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15585}
15586
15587_LT_EOF
15588esac
15589
15590case $lt_shell_append in
15591 yes)
15592 cat << \_LT_EOF >> "$cfgfile"
15593
15594# func_append var value
15595# Append VALUE to the end of shell variable VAR.
15596func_append ()
15597{
15598 eval "$1+=\$2"
15599}
15600_LT_EOF
15601 ;;
15602 *)
15603 cat << \_LT_EOF >> "$cfgfile"
15604
15605# func_append var value
15606# Append VALUE to the end of shell variable VAR.
15607func_append ()
15608{
15609 eval "$1=\$$1\$2"
15610}
15611
15612_LT_EOF
15613 ;;
15614 esac
15615
15616
15617 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15618 || (rm -f "$cfgfile"; exit 1)
15619
15620 mv -f "$cfgfile" "$ofile" ||
15621 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15622 chmod +x "$ofile"
15623
15624 ;;
mlcreech94984912008-03-04 19:03:08 +000015625
drh8b727472009-01-19 18:18:40 +000015626 esac
15627done # for ac_tag
15628
drh71eb93e2001-09-28 01:34:43 +000015629
15630{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000015631_ACEOF
drh75897232000-05-29 14:26:00 +000015632chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000015633ac_clean_files=$ac_clean_files_save
15634
drh8b727472009-01-19 18:18:40 +000015635test $ac_write_fail = 0 ||
15636 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15637$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15638 { (exit 1); exit 1; }; }
15639
a.rottmann84e63352003-03-24 09:42:16 +000015640
drh71eb93e2001-09-28 01:34:43 +000015641# configure is writing to config.log, and then calls config.status.
15642# config.status does its own redirection, appending to config.log.
15643# Unfortunately, on DOS this fails, as config.log is still kept open
15644# by configure, so config.status won't be able to write to it; its
15645# output is simply discarded. So we exec the FD to /dev/null,
15646# effectively closing config.log, so it can be properly (re)opened and
15647# appended to by config.status. When coming back to configure, we
15648# need to make the FD available again.
15649if test "$no_create" != yes; then
15650 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000015651 ac_config_status_args=
15652 test "$silent" = yes &&
15653 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000015654 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000015655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000015656 exec 5>>config.log
15657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15658 # would make configure fail if this is the last instruction.
15659 $ac_cs_success || { (exit 1); exit 1; }
15660fi
drh8b727472009-01-19 18:18:40 +000015661if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
vapier6acb2cf2009-01-28 04:46:28 +000015662 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15663$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000015664fi
drh613a0fe2007-11-23 17:31:17 +000015665